tmpfile: Add support for Android, part 2.
[gnulib.git] / ChangeLog
blobc678a472bce53f4168efdb6cc68ba9d8956d6f61
1 2019-01-27  Bruno Haible  <bruno@clisp.org>
3         gperf: Fix error when this module is required by some test module.
4         * modules/gperf (Applicability): Set to 'all'.
6 2019-01-27  Bruno Haible  <bruno@clisp.org>
8         tmpfile: Add support for Android.
9         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
10         works.
11         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
12         Android.
13         * modules/tmpfile (Depends-on): Add 'stdbool'.
14         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
17 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
19         bitsetv: allow free on NULL.
20         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
22 2019-01-27  Bruno Haible  <bruno@clisp.org>
24         test-framework-sh: Improve maintainability.
25         * tests/init.sh: Clarify what belongs together. Reorder definitions.
27 2019-01-27  Bruno Haible  <bruno@clisp.org>
29         tests: Don't assume that /tmp exists.
30         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
31         * tests/test-copy-acl-1.sh: Likewise.
32         * tests/test-file-has-acl-1.sh: Likewise.
33         * tests/test-copy-file-1.sh: Likewise.
35 2019-01-27  Bruno Haible  <bruno@clisp.org>
37         tests: Accommodate a shell that is not in /bin/sh.
38         * tests/init.sh (setup_): Set srcdir and builddir.
39         (BOURNE_SHELL): New variable.
40         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
41         * modules/file-has-acl-tests (Depends-on): Likewise.
42         * modules/copy-file-tests (Depends-on): Likewise.
43         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
44         scripts through $BOURNE_SHELL.
45         * tests/test-set-mode-acl-2.sh: Likewise.
46         * tests/test-copy-acl-1.sh: Likewise.
47         * tests/test-copy-acl-2.sh: Likewise.
48         * tests/test-file-has-acl-1.sh: Likewise.
49         * tests/test-file-has-acl-2.sh: Likewise.
50         * tests/test-copy-file-1.sh: Likewise.
51         * tests/test-copy-file-2.sh: Likewise.
52         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
53         invoker.
54         * tests/test-copy-acl.sh (builddir): Likewise.
55         * tests/test-file-has-acl.sh (builddir): Likewise.
56         * tests/test-copy-file.sh (builddir): Likewise.
57         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
58         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
59         * tests/test-vc-list-files-git.sh: Likewise.
61 2019-01-27  Bruno Haible  <bruno@clisp.org>
63         tests: Fix some "unused variable" warnings.
64         * tests/test-fts.c (fts_dealloc): Remove unused variable.
65         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
66         * tests/test-striconveh.c (main): Move some variable into the
67         '#if HAVE_ICONV'.
68         * tests/test-striconveha.c (main): Likewise.
69         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
71         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
72         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
73         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
74         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
75         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
76         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
77         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
78         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
79         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
80         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
81         * tests/test-tsearch.c (main): Move some variable into the
82         '#if HAVE_INITSTATE'.
84 2019-01-27  Bruno Haible  <bruno@clisp.org>
86         unigbrk/uc-grapheme-breaks: Fix build failure.
87         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
88         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
90 2019-01-27  Bruno Haible  <bruno@clisp.org>
92         mountlist: Merge two .m4 files.
93         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
94         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
95         * m4/ls-mntd-fs.m4: Remove file.
96         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
98 2019-01-27  Bruno Haible  <bruno@clisp.org>
100         tests: Enable Linux specific tests on Android.
101         * tests/test-flock.c (main): Treat Android like Linux.
102         * tests/test-openat-safer.c (main): Likewise.
104 2019-01-27  Bruno Haible  <bruno@clisp.org>
106         relocatable-prog: Use Linux code on Android.
107         * lib/progreloc.c: Treat Android like Linux.
109 2019-01-26  Bruno Haible  <bruno@clisp.org>
111         getloadavg: Add support for Android.
112         * lib/getloadavg.c: Treat Android like Linux.
114 2019-01-26  Bruno Haible  <bruno@clisp.org>
116         vma-iter: Add support for Android.
117         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
118         * lib/vma-iter.c: Treat Android like Linux.
119         * lib/get-rusage-data.c (get_rusage_data): Likewise.
121 2019-01-26  Bruno Haible  <bruno@clisp.org>
123         fts: Optimize on Android.
124         * lib/fts.c: Treat Android like Linux.
126 2019-01-26  Bruno Haible  <bruno@clisp.org>
128         fts: Add support for Android.
129         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
130         defined by this module and the ones in libc.
131         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
133 2019-01-26  Bruno Haible  <bruno@clisp.org>
135         mountlist: Use Linux code on Android.
136         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
137         (unescape_tab, read_file_system_list): Enable Linux code on Android
138         as well.
139         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
140         and endmntent.
141         * modules/mountlist (Depends-on): Add 'getline'.
143 2019-01-26  Bruno Haible  <bruno@clisp.org>
145         localename tests: Fix test failure on Android.
146         * modules/localename-tests (Depends-on): Add 'setlocale'.
148 2019-01-26  Bruno Haible  <bruno@clisp.org>
150         mountlist: Port better to Android.
151         * lib/mountlist.c (MOUNTED): Redefine on Android.
152         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
153         Android.
155 2019-01-26  Bruno Haible  <bruno@clisp.org>
157         striconveh: Fix use of uninitialized iconv_t.
158         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
159         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
160         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
162 2019-01-26  Bruno Haible  <bruno@clisp.org>
164         nonblocking-socket-tests: Fix test failure on Android 4.3.
165         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
166         also on Android.
168 2019-01-26  Bruno Haible  <bruno@clisp.org>
170         sh-filename: Add support for Android 4.3.
171         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
173 2019-01-26  Bruno Haible  <bruno@clisp.org>
175         ptsname_r: Work around bug on Android 4.3.
176         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
177         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
178         correct.
179         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
180         is defined, just fix the return value.
181         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
182         The behaviour of musl libc is nothing to be "fixed", since it is
183         compliant with the next POSIX standard.
185 2019-01-26  Bruno Haible  <bruno@clisp.org>
187         ttyname_r: Work around bug on Android 4.3.
188         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
189         * lib/ttyname_r.c (ttyname_r): Implement for Android.
190         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
191         * doc/posix-functions/ttyname.texi: Likewise.
193 2019-01-25  Bruno Haible  <bruno@clisp.org>
195         getprogname: Port to Android 4.3.
196         * lib/getprogname.c (getprogname): On Android, take only the last
197         component of __progname.
199 2019-01-25  Bruno Haible  <bruno@clisp.org>
201         wcrtomb: Work around bug on Android 4.3.
202         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
203         the C locale.
204         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
205         which does not have the 'wctomb' function.
206         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
207         * tests/test-wcrtomb.c (main): Accept argument '5'.
208         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
210 2019-01-25  Bruno Haible  <bruno@clisp.org>
212         setlocale: Work around bug on Android 4.3.
213         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
214         the "C" locale.
215         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
216         * doc/posix-functions/setlocale.texi: Mention the Android bug.
218 2019-01-24  Bruno Haible  <bruno@clisp.org>
220         memchr: Work around bug on Android <= 5.0.
221         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
222         * doc/posix-functions/memchr.texi: Mention the Android bug.
224 2019-01-24  Bruno Haible  <bruno@clisp.org>
226         random: Fix compilation error on Android 4.3.
227         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
228         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
229         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
230         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
231         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
232         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
233         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
234         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
235         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
236         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
237         REPLACE_INITSTATE, REPLACE_SETSTATE.
238         * doc/posix-functions/random.texi: Correct the description of the
239         situation on Android.
240         * doc/posix-functions/srandom.texi: Likewise.
241         * doc/posix-functions/rand.texi: Likewise.
242         * doc/posix-functions/srand.texi: Likewise.
244 2019-01-24  Bruno Haible  <bruno@clisp.org>
246         mbtowc: Fix compilation error on Android 4.3.
247         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
248         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
249         HAVE_MBTOWC.
250         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
251         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
252         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
253         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
254         * doc/posix-functions/mbtowc.texi: Mention the change.
256 2019-01-24  Bruno Haible  <bruno@clisp.org>
258         fdatasync: Fix compilation error on Android 4.3.
259         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
260         test whether fdatasync() exists.
262 2019-01-24  Bruno Haible  <bruno@clisp.org>
264         unlinkat: Fix compilation error on Android 4.3.
265         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
266         also on Android.
267         * doc/posix-functions/unlinkat.texi: Mention the issue.
269 2019-01-24  Bruno Haible  <bruno@clisp.org>
271         renameat: Fix compilation error on Android 4.3.
272         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
273         * doc/posix-functions/renameat.texi: Mention the issue.
275 2019-01-24  Bruno Haible  <bruno@clisp.org>
277         fchownat: Fix compilation error on Android 4.3.
278         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
279         use.
280         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
281         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
282         * doc/posix-functions/fchownat.texi: Mention the issue.
284 2019-01-23  Bruno Haible  <bruno@clisp.org>
286         gnulib-tool: Support running testdirs on Android.
287         * build-aux/test-driver.diff: New file.
288         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
289         build-aux/test-driver after running automake.
291 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
293         relocatable-prog: avoid warnings from Automake
294         * modules/relocatable-prog: Don't declare PHONY dependencies in
295         Automake conditionals.
297 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
299         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
300         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
302 2019-01-23  Bruno Haible  <bruno@clisp.org>
304         threadlib: Revert commit from 2018-06-25. We now have a better fix.
305         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
306         preceding -Wl,--as-needed option. Don't check whether the linker
307         supports --as-needed/--no-as-needed and --push-state/--pop-state.
309 2019-01-23  Bruno Haible  <bruno@clisp.org>
311         thread: Force linking with -lpthread, even when --as-needed is in use.
312         Reported by Richard W.M. Jones <rjones@redhat.com> in
313         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
314         * lib/glthread/thread.h (pthread_create): Don't declare weak.
316 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
317             Bruno Haible  <bruno@clisp.org>
319         relocatable: avoid compiler warnings (-Wshadow)
320         * lib/relocatable.c (compute_curr_prefix): Rename local variables
321         to avoid name collisions with global variables.
323 2019-01-22  Bruno Haible  <bruno@clisp.org>
325         vasnprintf: Don't use %n on Android.
326         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
327         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
328         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
330 2019-01-22  Bruno Haible  <bruno@clisp.org>
332         *printf: Support cross-compilation to Android.
333         * m4/printf.m4: Add cross-compilation guesses for Android.
335 2019-01-21  Bruno Haible  <bruno@clisp.org>
337         diacrit: Mark deprecated.
338         * modules/diacrit (Status, Notice): Mark as deprecated.
339         * NEWS: Mention it.
341 2019-01-20  Bruno Haible  <bruno@clisp.org>
343         rintl: Override broken implementation on NetBSD.
344         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
345         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
346         REPLACE_RINTL.
347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
348         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
349         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
350         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
352 2019-01-20  Bruno Haible  <bruno@clisp.org>
354         log10l: Work around inaccurate implementation on NetBSD.
355         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
356         * lib/log10l.c: Comment out too simplistic override.
357         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
359 2019-01-20  Bruno Haible  <bruno@clisp.org>
361         logl: Work around inaccurate implementation on NetBSD.
362         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
363         * lib/logl.c: Comment out unused code.
364         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
366 2019-01-20  Bruno Haible  <bruno@clisp.org>
368         expm1l: Work around inaccurate implementation on NetBSD.
369         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
370         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
371         REPLACE_EXPM1L.
372         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
373         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
374         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
375         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
377 2019-01-20  Bruno Haible  <bruno@clisp.org>
379         expl: Work around inaccurate implementation on NetBSD.
380         * lib/math.in.h (expl): Test also REPLACE_EXPL.
381         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
382         REPLACE_EXPL.
383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
384         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
385         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
386         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
388 2019-01-20  Bruno Haible  <bruno@clisp.org>
390         exp2l: Work around inaccurate implementation on NetBSD.
391         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
392         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
394 2019-01-20  Bruno Haible  <bruno@clisp.org>
396         floor, floorl: Avoid autoconf warnings.
397         * modules/floor (configure.ac): Use AC_REQUIRE.
398         * modules/floorl (configure.ac): Likewise.
400 2019-01-20  Bruno Haible  <bruno@clisp.org>
402         Defeat current GCC optimizations in math autoconf tests.
403         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
404         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
405         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
406         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
407         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
408         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
409         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
410         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
411         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
412         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
413         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
414         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
415         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
416         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
417         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
418         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
419         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
420         * m4/log.m4 (gl_FUNC_LOG): Likewise.
421         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
422         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
423         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
424         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
425         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
426         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
427         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
428         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
429         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
430         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
431         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
432         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
433         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
435         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
436         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
437         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
438         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
439         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
440         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
442 2019-01-19  Pádraig Brady  <P@draigBrady.com>
444         gettext: support disabling use of VLAs
445         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
447 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
449         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
450         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
452 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
454         fcntl: Fix syntax error (regression from 2018-10-05).
455         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
457 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
459         relocatable: improve documentation.
460         * doc/relocatable-maint.texi (Supporting Relocation): For
461         substitutions performed by config.status, we need more variables
462         (for instance datarootdir defaults to '${prefix}/share' so we need
463         prefix).
465 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
467         backup: update dependencies
468         * modules/backup-rename (Depends-on): It now depends on opendirat
469         instead of opendir.  It also uses stdint, and xalloc-oversized.
470         But no longer dirfd.
471         * modules/backupfile (Depends-on): Add xalloc-oversized.
473 2019-01-13  Bruno Haible  <bruno@clisp.org>
475         getcwd: Fix test failure when building on a Linux 9p file system.
476         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
477         EINVAL from mkdir like ENAMETOOLONG.
478         * tests/test-getcwd.c (test_long_name): Likewise.
480 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
482         Fix typos found by codespell.
483         * lib/*.[hc]: Fix typos in comments.
484         * pygnulib/*.py: Fix typos in error messages and comments.
486 2019-01-12  Bruno Haible  <bruno@clisp.org>
488         doc: Fix documentation about container data types.
489         Reported by Werner Lemberg <wl@gnu.org>.
490         * doc/containers.texi (Container data types): Fix typo.
492 2019-01-10  Bruno Haible  <bruno@clisp.org>
494         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
495         Reported by Reuben Thomas <rrt@sc3d.org>.
496         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
498 2019-01-06  Bruno Haible  <bruno@clisp.org>
500         maintainer-makefile: Make the configure.ac section optional.
501         * top/maint.mk (GREP, SED): Define if not defined.
503 2019-01-06  Bruno Haible  <bruno@clisp.org>
505         localename: Assume setlocale function.
506         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
507         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
509 2019-01-06  Bruno Haible  <bruno@clisp.org>
511         doc: Add documentation about container data types.
512         * doc/containers.texi: New file.
513         * doc/gnulib.texi (Particular Modules): Include it.
515 2019-01-06  Bruno Haible  <bruno@clisp.org>
517         doc: Update documentation about 'progname' module.
518         * doc/progname.texi: Rename from doc/error.texi. Change node name and
519         title. Rewrite.
520         * doc/gnulib.texi (Particular Modules): Update.
522 2019-01-06  Bruno Haible  <bruno@clisp.org>
524         doc: Document the xstdopen and *-safer modules.
525         * doc/xstdopen.texi: New file.
526         * doc/gnulib.texi (Particular Modules): Include it.
528 2019-01-06  Bruno Haible  <bruno@clisp.org>
530         xstdopen: Add tests.
531         * tests/test-xstdopen.c: New file.
532         * tests/test-xstdopen.sh: New file.
533         * modules/xstdopen-tests: New file.
535         xstdopen: New module.
536         * lib/xstdopen.h: New file.
537         * lib/xstdopen.c: New file.
538         * modules/xstdopen: New file.
540 2019-01-06  Bruno Haible  <bruno@clisp.org>
542         stdopen: Fix compilation error with IRIX cc.
543         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
545 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
547         xfreopen need not include stdio--.h
548         * lib/xfreopen.c: Do not include stdio--.h.
550         xfreopen need not depend on freopen-safer
551         * modules/xfreopen (Depends-on):
552         Depend on freopen, not freopen-safer.
554         stdopen: modernize and simplify
555         * lib/stdopen.c: Update copyright date
556         Do not include sys/types.h; no longer needed these days.
557         (stdopen): Use C99-style decl in loop.  Return int errno
558         value, rather than just a bool.  Do not worry about fd mismatches,
559         since the caller cares only if 0, 1, 2 are occupied.
560         * lib/stdopen.h: No need to include <stdbool.h>.
561         * m4/stdopen.m4: Remove.
562         * modules/stdopen: New file.
564         stdopen: copy from last use in coreutils
565         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
566         New files, taken from their last commit in coreutils
567         2007-07-23T12:35:58Z!jim@meyering.net
568         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
570 2019-01-05  Bruno Haible  <bruno@clisp.org>
572         argp: Don't pass an invalid argument to dgettext().
573         Reported by He X <xw897002528@gmail.com>.
574         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
575         dgettext().
577 2019-01-05  Bruno Haible  <bruno@clisp.org>
579         argp: Don't pass an invalid argument to dgettext().
580         Reported by He X <xw897002528@gmail.com>.
581         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
582         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
583         dgettext().
585 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
587         stdioext: port to newer 32-bit Android
588         Problem reported by Tom Yan in:
589         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
590         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
591         (fp_) [__ANDROID__]: Use it.
593 2019-01-04  Bruno Haible  <bruno@clisp.org>
595         lock: Fix link error with --enable-threads=pth.
596         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
597         Mark as weak.
599 2019-01-04  Bruno Haible  <bruno@clisp.org>
601         Fix link errors in unit tests.
602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
603         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
604         * modules/array-map-tests (Makefile.am): Link test-array_map against
605         libintl.
606         * modules/array-set-tests (Makefile.am): Link test-array_set against
607         libintl.
608         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
609         libintl.
610         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
611         libintl.
612         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
613         against libintl.
614         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
615         against libintl.
617 2019-01-04  Bruno Haible  <bruno@clisp.org>
619         Fix incorrect 'Link' sections.
620         * modules/regex (Link): Mention the link requirement of module 'lock'.
621         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
623 2019-01-04  Bruno Haible  <bruno@clisp.org>
625         Fix some 'Link' sections.
626         * modules/c-stack (Link): Add link directive from the 'gettext-h'
627         dependency.
628         * modules/getaddrinfo (Link): Likewise.
630 2019-01-04  Bruno Haible  <bruno@clisp.org>
632         Remove redundant 'Link' sections.
633         * modules/canon-host (Link): Remove section.
634         * modules/timevar (Link): Likewise.
636 2019-01-04  Bruno Haible  <bruno@clisp.org>
638         Remove incorrect 'Link' sections.
639         * modules/acl (Link): Remove section. Use combined 'Link' sections from
640         the dependencies instead.
641         * modules/crypto/md5 (Link): Likewise.
642         * modules/crypto/sha1 (Link): Likewise.
643         * modules/crypto/sha256 (Link): Likewise.
644         * modules/crypto/sha512 (Link): Likewise.
645         * modules/faccessat (Link): Likewise.
646         * modules/fdutimensat (Link): Likewise.
647         * modules/iconv_open-utf (Link): Likewise.
648         * modules/propername (Link): Likewise.
649         * modules/qacl (Link): Likewise.
650         * modules/unicodeio (Link): Likewise.
651         * modules/utimecmp (Link): Likewise.
652         * modules/utimensat (Link): Likewise.
653         * modules/xstriconv (Link): Likewise.
654         * modules/xstriconveh (Link): Likewise.
656 2019-01-04  Bruno Haible  <bruno@clisp.org>
658         gnulib-tool: New option --extract-recursive-link-directive.
659         * gnulib-tool (func_usage): Document the new options
660         --extract-recursive-dependencies, --extract-recursive-link-directive.
661         (func_verify_module): Document output variables.
662         (func_get_dependencies_recursively): New function.
663         (func_get_link_directive_recursively): New function.
664         Use them to implement the new options
665         --extract-recursive-dependencies, --extract-recursive-link-directive.
666         * doc/gnulib-tool.texi (Link-time requirements): New section.
668 2019-01-04  Bruno Haible  <bruno@clisp.org>
670         Clarify meaning of 'Link' section in module description.
671         * doc/gnulib.texi (Module description): Clarify the meaning of the
672         'Link' section versus the one of the dependencies.
673         * NEWS: Mention the change.
675 2019-01-04  Bruno Haible  <bruno@clisp.org>
677         pselect: Fix module description.
678         * modules/pselect (Link): Put one link option per line.
680 2019-01-04  Bruno Haible  <bruno@clisp.org>
682         cosl: Fix module description.
683         * modules/cosl (Link): Fix typo.
684         * modules/mathl (configure.ac): Likewise.
686 2019-01-04  Bruno Haible  <bruno@clisp.org>
688         c-xvasprintf: Fix module dependencies.
689         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
691 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
693         bootstrap: die when some submodules are not initialized
694         * build-aux/bootstrap: Make sure all submodules are initialized.
696 2019-01-04  Bruno Haible  <bruno@clisp.org>
698         bitsetv: Fix module dependencies.
699         * lib/bitsetv.c: Include xalloc.h.
700         * modules/bitsetv (Depends-on): Add 'xalloc'.
702 2019-01-04  Bruno Haible  <bruno@clisp.org>
704         xmemdup0: Remove redundant code.
705         * lib/xmemdup0.h (xalloc_die): Remove declaration.
707 2019-01-04  Bruno Haible  <bruno@clisp.org>
709         backupfile: Fix module dependencies.
710         * modules/backupfile (Depends-on): Add 'xalloc'.
712 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
714         bitset, crypto/gc: fix conflicts with Solaris 11
715         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
716         avoid clash with Solaris 11 <sys/bitset.h>.
717         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
718         with Solaris 11 <xorg/gc.h>.
720 2019-01-04  Bruno Haible  <bruno@clisp.org>
722         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
723         Reported by Andy Fiddaman <andy@omniosce.org>.
724         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
726 2019-01-03  Eric Blake  <eblake@redhat.com>
728         maintainer-makefile: fix typo in previous patch
729         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
730         of Roman's work.
732 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
734         maintainer-makefile: prefer $(GREP) over grep
735         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
736         defined.
737         * top/maint.mk: Use it everywhere.
739         maintainer-makefile: split long argument lines
740         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
741         it would be too long for exec limits on BSD.
743 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
745         mkfifo: bring back HAVE_MKFIFO macro
746         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
747         Problem reported by Andrew Janke in:
748         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
750 2018-12-21  Bruno Haible  <bruno@clisp.org>
752         Assume Autoconf >= 2.63.
753         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
754         versions < 2.60.
756 2018-12-21  Bruno Haible  <bruno@clisp.org>
758         memcmp: Mention the clang bug.
759         * tests/test-memcmp.c: Add comment about a known test failure.
760         * doc/posix-functions/memcmp.texi: Mention the clang bug.
762 2018-12-20  Jim Meyering  <meyering@fb.com>
764         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
765         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
766           echo '123-x'|LC_ALL=C grep -E '.\bx'
767         The goal is to revert the first, but reverting it requires to restore
768         the function deleted in the second. I ran this to restore the deleted
769         function:
770           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
771             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
772             | patch -R -p1
773         * lib/dfa.c (charclass_context): Restore deleted function.
774         Reverting the primary commit removes this change:
775         dfa: Simplify a building state
776         * lib/dfa.c (build_state): Simplify a building state.
778 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
780         version-etc: allow zero authors
781         * lib/version-etc.c (version_etc_arn): If no authors are given,
782         omit authorship info instead of dumping core.
784 2018-12-19  Bruno Haible  <bruno@clisp.org>
786         lchown tests: Be more permissive regarding errno values.
787         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
788         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
789         alternative to ENOSYS.
790         * modules/lchown-tests (Depends-on): Add 'errno'.
791         * modules/fchownat-tests (Depends-on): Likewise.
793 2018-12-18  Bruno Haible  <bruno@clisp.org>
795         duplocale: Avoid test failure on AIX 7.
796         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
797         (configure.ac): Invoke gt_FUNC_USELOCALE.
798         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
799         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
800         works.
802 2018-12-18  Bruno Haible  <bruno@clisp.org>
804         localename: Fix test failure on AIX 7.
805         Reported by Assaf Gordon in
806         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
807         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
808         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
809         instead of ac_cv_func_uselocale.
810         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
811         HAVE_USELOCALE.
812         * lib/localename-table.h: Likewise.
813         * lib/localename-table.c: Likewise.
814         * tests/test-localename.c: Likewise.
815         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
817 2018-12-18  Bruno Haible  <bruno@clisp.org>
819         localename: Update comments regarding Cygwin.
820         * lib/localename.c: Update comment.
821         * doc/posix-functions/uselocale.texi: Update platforms list.
822         * doc/posix-functions/newlocale.texi: Likewise.
823         * doc/posix-functions/duplocale.texi: Likewise.
824         * doc/posix-functions/freelocale.texi: Likewise.
826 2018-12-16  Bruno Haible  <bruno@clisp.org>
828         c-stack: Fix for Linux/sparc.
829         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
830         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
832 2018-12-16  Bruno Haible  <bruno@clisp.org>
834         localename: Avoid test failure on some glibc systems.
835         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
836         Unset environment variables that might disturb the first setlocale call,
837         and verify that this setlocale call succeeds.
839 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
841         random: Fix build error on native Windows (regression from 2018-06-21).
842         * lib/random.c (__srandom, __initstate, __setstate, __random,
843         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
844         to the symbols without '__' prefix.
846 2018-12-16  Bruno Haible  <bruno@clisp.org>
848         obstack, libc-config: Support HP-UX cc in C99 mode.
849         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
850         compiler, even when in C99 mode.
851         * lib/cdefs.h (__flexarr): Likewise.
852         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
854 2018-12-16  Bruno Haible  <bruno@clisp.org>
856         localename: Fix test failure on OpenBSD >= 6.2.
857         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
858         locale system. Define HAVE_FAKE_LOCALES in this case.
859         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
860         HAVE_USELOCALE.
861         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
862         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
863         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
864         platforms list.
865         * doc/posix-functions/newlocale.texi: Likewise.
866         * doc/posix-functions/duplocale.texi: Update platforms list.
867         * doc/posix-functions/freelocale.texi: Likewise.
869 2018-12-16  Bruno Haible  <bruno@clisp.org>
871         duplocale tests: Re-enable the test on platforms without <monetary.h>.
872         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
873         of the test, on platforms without <monetary.h>.
875 2018-12-16  Bruno Haible  <bruno@clisp.org>
877         localename: Update comments.
878         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
880 2018-12-15  Jim Meyering  <meyering@fb.com>
882         regex: fix indentation
883         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
885 2018-12-15  Bruno Haible  <bruno@clisp.org>
887         openat-safer tests: Avoid test failure on NetBSD 8.
888         * tests/test-openat-safer.c (main): Execute a Linux specific test only
889         on Linux.
891 2018-12-15  Jim Meyering  <meyering@fb.com>
893         regex: work around a bug in glibc-2.27 and prior
894         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
895         assertion for /0|()0|\1|0/.
896         * tests/test-regex.c (main): Add the same test here.
898 2018-12-15  Bruno Haible  <bruno@clisp.org>
900         localename: Fix use of uninitialized shell variable.
901         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
902         gt_cv_locale_solaris114 always before use. Remove assignment without
903         effect.
905 2018-12-15  Bruno Haible  <bruno@clisp.org>
907         dfa tests: Avoid test failure on Alpine Linux.
908         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
909         command found on Alpine Linux.
911 2018-12-15  Jim Meyering  <meyering@fb.com>
913         dfa: avoid new warnings from gcc
914         These would prevent building with -Werror and a Dec snapshot of gcc.
915         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
916         Rename each inner instance to "p".
917         (charclass_context): Remove unused static function.
919 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
921         mkdir-p: improve diagnostic for FUSE mounts
922         Problem reported by Niklas Hambüchen in:
923         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
924         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
925         errno to mkdir errno if the stat errno is likely more interesting.
927 2018-12-14  Bruno Haible  <bruno@clisp.org>
929         hash-map: Add tests.
930         * tests/test-hash_map.c: New file.
931         * modules/hash-map-tests: New file.
933         linkedhash-map: Add tests.
934         * tests/test-linkedhash_map.c: New file.
935         * modules/linkedhash-map-tests: New file.
937         array-map: Add tests.
938         * tests/test-array_map.c: New file.
939         * modules/array-map-tests: New file.
941         xmap: New module.
942         * lib/gl_xmap.h: New file.
943         * lib/gl_xmap.c: New file.
944         * modules/xmap: New file.
946         hash-map: New module.
947         * lib/gl_hash_map.h: New file.
948         * lib/gl_hash_map.c: New file.
949         * modules/hash-map: New file.
951         linkedhash-map: New module.
952         * lib/gl_linkedhash_map.h: New file.
953         * lib/gl_linkedhash_map.c: New file.
954         * lib/gl_anyhash1.h: Update comments.
955         * lib/gl_anyhash2.h: Likewise.
956         * modules/linkedhash-map: New file.
958         array-map: New module.
959         * lib/gl_array_map.h: New file.
960         * lib/gl_array_map.c: New file.
961         * modules/array-map: New file.
963         map: New module.
964         * lib/gl_map.h: New file.
965         * lib/gl_map.c: New file.
966         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
967         conflict with gl_map.h.
968         * modules/map: New file.
970 2018-12-13  Bruno Haible  <bruno@clisp.org>
972         select tests: Avoid test failure on Cygwin.
973         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
975 2018-12-13  Bruno Haible  <bruno@clisp.org>
977         localtime-buffer: Avoid endless recursion in localtime and gmtime.
978         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
980 2018-12-13  Bruno Haible  <bruno@clisp.org>
982         localeconv tests: Avoid test failure on Cygwin.
983         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
984         'mon_grouping' tests.
986 2018-12-11  Bruno Haible  <bruno@clisp.org>
988         omap: Don't dispose the old value when the function returns it.
989         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
990         here.
991         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
992         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
993         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
994         here.
996         array-omap, avltree-omap, rbtree-omap: Tweak style.
997         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
998         false.
999         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
1001         rbtree-omap: Add tests.
1002         * tests/test-rbtree_omap.c: New file.
1003         * modules/rbtree-omap-tests: New file.
1005         avltree-omap: Add tests.
1006         * tests/test-avltree_omap.c: New file.
1007         * modules/avltree-omap-tests: New file.
1009         array-omap: Add tests.
1010         * tests/test-array_omap.c: New file.
1011         * modules/array-omap-tests: New file.
1013         xomap: New module.
1014         * lib/gl_xomap.h: New file.
1015         * lib/gl_xomap.c: New file.
1016         * modules/xomap: New file.
1018         rbtree-omap: New module.
1019         * lib/gl_rbtree_omap.h: New file.
1020         * lib/gl_rbtree_omap.c: New file.
1021         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
1022         Parameterize.
1023         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
1024         * modules/rbtree-omap: New file.
1025         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
1026         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
1028         avltree-omap: New module.
1029         * lib/gl_avltree_omap.h: New file.
1030         * lib/gl_avltree_omap.c: New file.
1031         * lib/gl_avltree_ordered.h: Code moved to here from
1032         lib/gl_avltree_oset.c. Parameterize.
1033         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
1034         * lib/gl_anytree_omap.h: New file.
1035         * modules/avltree-omap: New file.
1036         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
1037         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
1039         array-omap: New module.
1040         * lib/gl_array_omap.h: New file.
1041         * lib/gl_array_omap.c: New file.
1042         * modules/array-omap: New file.
1044         omap: New module.
1045         * lib/gl_omap.h: New file.
1046         * lib/gl_omap.c: New file.
1047         * modules/omap: New file.
1049 2018-12-11  Bruno Haible  <bruno@clisp.org>
1051         hash-set, linkedhash-set: Reduce code duplication.
1052         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
1053         lib/gl_anyhash_set1.h.
1054         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
1055         lib/gl_anyhash_set2.h. Parameterize.
1056         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
1057         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
1058         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
1059         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
1060         * lib/gl_rbtreehash_list.c: Likewise.
1061         * lib/gl_linkedhash_list.c: Likewise.
1062         (hash_resize_after_add): Remove function.
1063         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
1064         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
1065         * gl_hash_set.c: Likewise.
1066         * modules/avltreehash-list (Files, Makefile.am): Update file list.
1067         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
1068         * modules/linkedhash-list (Files, Makefile.am): Likewise.
1069         * modules/linkedhash-set (Files, Makefile.am): Likewise.
1070         * modules/hash-set (Files, Makefile.am): Likewise.
1072 2018-12-11  Bruno Haible  <bruno@clisp.org>
1074         array-set: Optimize.
1075         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
1076         outside the loop, not inside the loop.
1078 2018-12-11  Bruno Haible  <bruno@clisp.org>
1080         times: Fix tests.
1081         * tests/test-times.c (doublecmp): Implement a total order.
1083 2018-12-11  Bruno Haible  <bruno@clisp.org>
1085         array-set, linkedhash-set, hash-set: Fix tests.
1086         * tests/test-array_set.c (cmp_objects_in_array): New function.
1087         (check_equals): Use it.
1088         * tests/test-hash_set.c: Likewise.
1089         * tests/test-linkedhash_set.c: Likewise.
1091 2018-12-08  Bruno Haible  <bruno@clisp.org>
1093         Fix comments.
1094         * lib/gl_list.h (gl_list_free): Clarify what it does.
1095         * lib/gl_oset.h (gl_oset_free): Likewise.
1096         * lib/gl_set.h (gl_set_free): Likewise.
1097         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
1098         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
1099         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
1100         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
1102 2018-12-03  Bruno Haible  <bruno@clisp.org>
1104         hash-set: Add tests.
1105         * tests/test-hash_set.c: New file.
1106         * modules/hash-set-tests: New file.
1108         linkedhash-set: Add tests.
1109         * tests/test-linkedhash_set.c: New file.
1110         * modules/linkedhash-set-tests: New file.
1112         array-set: Add tests.
1113         * tests/test-array_set.c: New file.
1114         * modules/array-set-tests: New file.
1116         xset: New module.
1117         * lib/gl_xset.h: New file.
1118         * lib/gl_xset.c: New file.
1119         * modules/xset: New file.
1121         hash-set: New module.
1122         * lib/gl_hash_set.h: New file.
1123         * lib/gl_hash_set.c: New file.
1124         * modules/hash-set: New file.
1126         linkedhash-set: New module.
1127         * lib/gl_linkedhash_set.h: New file.
1128         * lib/gl_linkedhash_set.c: New file.
1129         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
1130         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
1131         * lib/gl_anyhash_primes.h: New file, extracted from
1132         lib/gl_anyhash_list2.h.
1133         * lib/gl_anyhash_list2.h: Include it.
1134         (primes, next_prime): Remove definitions.
1135         * modules/linkedhash-set: New file.
1136         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
1137         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1138         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
1139         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1140         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
1141         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
1143         array-set: New module.
1144         * lib/gl_array_set.h: New file.
1145         * lib/gl_array_set.c: New file.
1146         * modules/array-set: New file.
1148         set: New module.
1149         * lib/gl_set.h: New file.
1150         * lib/gl_set.c: New file.
1151         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
1152         gl_set.h.
1153         * modules/set: New file.
1155 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
1157         bison: don't force the Yacc mode
1158         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
1159         errors when Bison features are used in the grammar file.  Some of
1160         these features (such as %expect) were flagged non-yacc recently.  Most
1161         of the time, -y is actually used to please Automake's ylwrap which
1162         expects the output to be y.tab.c.
1163         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
1165 2018-12-01  Bruno Haible  <bruno@clisp.org>
1167         gnupload: Document short options.
1168         * build-aux/gnupload (usage): Document the short options.
1170 2018-11-28  Ben Elliston  <bje@gnu.org>
1172         gnupload: Support option -h as alias of --help.
1173         * build-aux/gnupload: Support -h.
1175 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1177         memrchr: port better to clang
1178         * lib/memrchr.c (__memrchr): Cast to void * instead of to
1179         longword *, to pacify clang -Wcast-align (Bug#33544).
1181 2018-11-29  Eric Blake  <eblake@redhat.com>
1183         docs: mention printf %m considerations
1184         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
1185         is not portable, and is easy enough to work around.
1186         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
1187         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
1188         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
1189         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
1190         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
1191         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
1192         * doc/posix-functions/printf.texi (printf): Likewise.
1193         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
1194         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
1195         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
1196         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
1197         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
1198         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
1199         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
1200         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
1201         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
1202         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
1203         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
1204         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
1206 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
1208         bitset: rename ebitset/expandable.* as tbitset/table.*
1209         See
1210         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
1211         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
1212         * lib/bitset/table.h, lib/bitset/table.c: these.
1213         Rename all the ebitset* symbols as tbitset*.
1214         Adjust dependencies.
1216 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1218         bitset: check the operations
1219         * tests/test-bitset.c (bitset_random): New.
1220         Use it.
1221         * lib/bitset/expandable.c (ebitset_not): Fix typo.
1223 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1225         bitset: properly use false/true instead of 0/1 for Booleans
1226         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
1227         0/1, as Booleans.
1229 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
1231         bitset: rename BITSET_VARRAY as BITSET_VECTOR
1232         For consistency with the name of the file.
1233         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
1234         * lib/bitset/stats.c, lib/bitset/vector.c
1235         (BITSET_VARRAY): Rename as...
1236         (BITSET_VECTOR): this.
1238 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
1240         strerror_r-posix: memmove, not memcpy
1241         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
1242         since the source and destination might overlap in the call
1243         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
1244         Simplify.
1246 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1248         bitsetv: new module
1249         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
1251 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1253         bitset: add tests and doc
1254         First stabs at providing a documentation and test for the bitset
1255         module.
1256         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
1258 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
1260         bitset: new module
1261         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
1262         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
1263         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
1264         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
1265         * lib/bitset/vector.h, modules/bitset:
1266         New.
1268 2018-11-23  Bruno Haible  <bruno@clisp.org>
1270         localename: Fix gettext test failures on mingw.
1271         * lib/localename.c (gl_locale_name_posix): Convert the result of
1272         gl_locale_name_environ to XPG syntax.
1274 2018-11-23  Karl Berry  <karl@freefriends.org>
1276         * config/srclistvars.txt,
1277         * config/srclist.txt: remove all gettext references;
1278         the gettext maintainers will sync as needed.
1280 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
1282         mktime: add libc-config dependency
1283         I missed this when we synced from glibc.
1284         * modules/mktime (Depends-on): Add libc-config.
1286 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
1288         longlong: fix comment typo
1289         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
1291 2018-11-11  Bruno Haible  <bruno@clisp.org>
1293         havelib: Remove the need to include asm-underscore.m4.
1294         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
1295         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
1296         gl_HOST_CPU_C_ABI.
1297         * modules/havelib (Files): Add host-cpu-c-abi.m4.
1298         (Depends-on): Remove host-cpu-c-abi.
1300 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
1302         parse-datetime: simplify test for mktime failure
1303         * lib/parse-datetime.y (mktime_ok): Simplify.
1304         Remove args TZ and T; no longer needed.  Callers changed.
1306         posixtm: simplify test for mktime failure
1307         * lib/posixtm.c (posixtime): Simplify.
1309         nstrftime: simplify test for mktime failure
1310         * lib/nstrftime.c (__strftime_internal): Simplify.
1312 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
1314         gnulib-common.m4: port _Noreturn to C++
1315         Problem reported by Akim Demaille in:
1316         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
1317         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
1318         Merge adjustments from _Noreturn.h and from glibc into the non-C++
1319         version.
1320         * lib/_Noreturn.h: Match gnulib-common.
1322 2018-10-30  Bruno Haible  <bruno@clisp.org>
1324         gnu-make: Fix for NetBSD 8 'make'.
1325         Reported by Reuben Thomas in
1326         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
1327         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
1328         output, ignoring exit codes.
1330 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
1332         maintainer-makefile: fix syntax-check rule for "same.h"
1333         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
1334         for 'same_nameat', too.
1336 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
1338         havelib: fix nested ‘configure’ chatter
1339         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
1340         AC_CACHE_CHECK calls, which resulted in confusing output like
1341         “checking for the common suffixes of directories in the library
1342         search path... checking for 64-bit host... no lib,lib”.
1344         backupfile: tweak for better code
1345         * lib/backupfile.c: Sort include directives, and remove
1346         unnecessary <limits.h> include.
1347         (FALLTHROUGH): New macro, copied from other modules.
1348         (backupfile_internal): Use it to avoid code duplication.
1349         This lets GCC 8.2.1 generate better code by inlining the
1350         call to check_extension.
1352 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1354         backupfile: new dir_fd args
1355         New module opendirat with code taken from fts.
1356         Use this module to let backupfile use a directory file descriptor.
1357         * NEWS: Document the incompatible change.
1358         * lib/backup-find.c (find_backup_file_name):
1359         * lib/backup-rename.c (backup_file_rename):
1360         New arg DIR_FD.
1361         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
1362         (SIZE_MAX): Remove.
1363         Include opendirat.h rather than dirent--.h.
1364         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
1365         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
1366         (backupfile_internal): New arg DIR_FD.  All callers changed.
1367         * lib/fts.c: Include opendirat.h.
1368         (opendirat): Move to opendirat.c.
1369         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
1370         * modules/backupfile (Depends-on): Remove dirfd, opendir.
1371         Add opendirat.
1372         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
1373         Add opendirat.
1375 2018-10-23  Bruno Haible  <bruno@clisp.org>
1377         localename: Simplify support for per-thread locales on Solaris 11.4.
1378         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
1379         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
1380         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
1381         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
1382         specific code.
1383         * lib/localename-table.h: Update comments.
1384         * lib/localename-table.c: Update comments.
1385         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
1386         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
1387         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
1388         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
1389         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
1390         HAVE_NAMELESS_LOCALES here.
1391         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
1392         m4/intlsolaris.m4.
1393         * modules/gettext (Files): Likewise.
1395 2018-10-22  Bruno Haible  <bruno@clisp.org>
1397         std-gnu11: Support Autoconf versions < 2.64.
1398         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
1399         when _AC_DO_LIMIT does not exist.
1401 2018-10-22  Bruno Haible  <bruno@clisp.org>
1403         Assume Autoconf >= 2.63.
1404         * DEPENDENCIES: Mention the requirement.
1406         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
1407         (func_get_filelist): Don't list m4/onceonly.m4 any more.
1408         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
1409         * m4/onceonly.m4: Remove file.
1411         * m4/openmp.m4: Remove file.
1412         * modules/openmp (Files): Remove m4/openmp.m4.
1414         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
1415         htmldir, dvidir, pdfdir, psdir, localedir.
1416         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
1418         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
1419         Autoconf < 2.60.
1420         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
1421         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
1423         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
1424         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
1425         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
1427         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
1428         exists.
1429         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
1431         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
1432         Autoconf < 2.61.
1434         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
1435         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
1436         Autoconf >= 2.52.
1438         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
1439         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
1440         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
1442 2018-10-22  Bruno Haible  <bruno@clisp.org>
1444         Assume Automake >= 1.11.
1445         * m4/configmake.m4: Update comments.
1446         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
1447         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
1448         of 'eval'.
1449         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
1450         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
1451         requires Automake >= 1.11.
1453 2018-10-22  Bruno Haible  <bruno@clisp.org>
1455         localename: Fix typo in comment.
1456         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
1458 2018-10-22  Bruno Haible  <bruno@clisp.org>
1460         Fix failure of 'gnulib-tool --create-testdir' with all modules.
1461         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
1463 2018-10-21  Bruno Haible  <bruno@clisp.org>
1465         locale: Ease integration with GNU libintl.
1466         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
1467         GNULIB_defined_freelocale): New macros.
1469 2018-10-21  Bruno Haible  <bruno@clisp.org>
1471         localename: Fine-tune support for per-thread locales on Solaris 11.4.
1472         * lib/localename-table.h: New file, extracted from lib/localename.c.
1473         * lib/localename-table.c: Likewise.
1474         * lib/localename.c: Include localename-table.h.
1475         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
1476         locale_hash_function instead of pointer_hash.
1477         * modules/localename (Files): Add lib/localename-table.h,
1478         lib/localename-table.c.
1479         (lib_SOURCES): Add localename-table.c.
1480         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
1481         for Solaris 11.4 locale system only on Solaris. Test for it
1482         independently whether getlocalename_l exists.
1483         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
1484         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
1485         HAVE_NAMELESS_LOCALES.
1486         * modules/gettext (Files): Add m4/intlsolaris.m4.
1488 2018-10-21  Bruno Haible  <bruno@clisp.org>
1490         Small update from gettext.
1491         * m4/intl.m4: Update from gettext:
1492         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
1493         mode on AIX.
1494         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
1495         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
1497 2018-10-16  Bruno Haible  <bruno@clisp.org>
1499         mountlist: Remove support for Cray with UNICOS 9.
1500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1501         MOUNTED_LISTMNTENT.
1502         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
1504 2018-10-16  Bruno Haible  <bruno@clisp.org>
1506         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
1507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
1508         STAT_STATFS2_FS_DATA.
1509         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
1510         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1511         MOUNTED_GETMNT.
1512         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
1513         * lib/getloadavg.c (decstation): Remove definition and case.
1514         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
1515         * lib/getgroups.c: Likewise.
1516         * doc/posix-functions/getgroups.texi: Likewise.
1517         * lib/time.in.h: Update comments.
1519 2018-10-16  Bruno Haible  <bruno@clisp.org>
1521         getloadavg: Remove support for ConvexOS.
1522         * lib/getloadavg.c: Remove convex case.
1524 2018-10-16  Bruno Haible  <bruno@clisp.org>
1526         getloadavg: Remove support for Sony NEWS.
1527         * lib/getloadavg.c: Remove sony_news case.
1529 2018-10-16  Bruno Haible  <bruno@clisp.org>
1531         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
1532         * lib/fsusage.c: Remove _SEQUENT_ case.
1533         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1534         * lib/mountlist.c: Don't test for MNTTABNAME.
1535         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
1536         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
1537         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
1538         * lib/stat-size.h: Don't mention the Sequent bug.
1539         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
1541 2018-10-16  Bruno Haible  <bruno@clisp.org>
1543         fsusage: Remove support for AIX 3.
1544         * lib/fsusage.c: Remove code for AIX 3.
1545         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
1547 2018-10-16  Bruno Haible  <bruno@clisp.org>
1549         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
1550         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
1551         * lib/fsusage.c: Remove code for AIX PS/2.
1552         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
1553         * lib/getloadavg.c: Likewise.
1555 2018-10-16  Bruno Haible  <bruno@clisp.org>
1557         getloadavg: Remove support for HP-UX on m68k.
1558         * lib/getloadavg.c: Remove hp9000s300 case.
1560 2018-10-16  Bruno Haible  <bruno@clisp.org>
1562         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
1563         * lib/fsusage.c: Remove DOLPHIN case.
1564         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
1565         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
1567 2018-10-16  Bruno Haible  <bruno@clisp.org>
1569         getloadavg: Remove support for Alliant FX/2800.
1570         * lib/getloadavg.c: Remove alliant case.
1572 2018-10-16  Bruno Haible  <bruno@clisp.org>
1574         getloadavg: Remove support for tek4300.
1575         * lib/getloadavg.c: Remove tek4300 case.
1577 2018-10-16  Bruno Haible  <bruno@clisp.org>
1579         getloadavg: Remove support for Ardent.
1580         * lib/getloadavg.c: Remove ardent case.
1582 2018-10-16  Bruno Haible  <bruno@clisp.org>
1584         mountlist: Remove support for SVR2.
1585         Reported by Andrew Borodin <aborodin@vmail.ru> in
1586         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
1587         * lib/mountlist.c: Remove MOUNTED_FREAD case.
1588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
1589         MOUNTED_FREAD.
1591 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1593         libc-config: merge from glibc
1594         * lib/cdefs.h (__glibc_has_attribute): New macro.
1596         regex: depend on libc-config
1597         * modules/regex (Depends-on): Add libc-config.
1598         This is needed after the recent autoupdate from glibc.
1600 2018-10-14  Bruno Haible  <bruno@clisp.org>
1602         localename: Add support for per-thread locales on Solaris 11.4.
1603         * lib/locale.in.h (newlocale, freelocale): New declarations.
1604         (duplocale): Declare also when the 'localename' module requests it.
1605         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
1606         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
1607         (struniq): Update.
1608         (struct locale_categories_names, struct locale_hash_node): New types.
1609         (LOCALE_HASH_TABLE_SIZE): New constant.
1610         (locale_hash_table, locale_lock): New variables.
1611         (pointer_hash, get_locale_t_name): New functions.
1612         (newlocale, duplocale, freelocale): New overridden functions.
1613         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
1614         * m4/intlsolaris.m4: New file.
1615         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
1616         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
1617         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
1618         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
1619         declared.
1620         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
1621         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1622         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
1623         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
1624         * modules/localename (Files): Add intlsolaris.m4.
1625         (Depends-on): Add 'locale'.
1626         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
1627         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
1628         the signatures.
1630 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
1632         timevar: use gethrxtime to get wall clock time
1633         clock_gettime is not portable.  gethrxtime takes the best available
1634         option to get the wall clock time, including clock_gettime (monotonic
1635         clock), and gettime (non monotonic).
1636         Also, using xtime_t instead of float preserves the precision.
1637         Suggested by Bruno Haible.
1638         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
1639         * modules/timevar (Depends-on): We need gethrxtime.
1640         We no longer use times().
1641         (Link): Update.
1642         * lib/timevar.h (timevar_time_def): Use xtime_t.
1643         * lib/timevar.c (set_to_current_time): Use gethrxtime.
1644         (timevar_print): Instead of checking whether the timings themselves
1645         are large enough for the timevar to be printed, check the percentages.
1647 2018-10-14  Bruno Haible  <bruno@clisp.org>
1649         wcsnrtombs: Work around Solaris 11.4 bug.
1650         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
1651         macro.
1652         (gl_FUNC_WCSNRTOMBS): Invoke it.
1653         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
1655 2018-10-14  Bruno Haible  <bruno@clisp.org>
1657         mbsnrtowcs: Work around Solaris 11.4 bug.
1658         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
1659         macro.
1660         (gl_FUNC_MBSNRTOWCS): Invoke it.
1661         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
1663 2018-10-14  Bruno Haible  <bruno@clisp.org>
1665         doc: Update for Solaris 11.4.
1666         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
1667         mention Solaris 11.4.
1668         * m4/printf.m4: Update comments about Solaris.
1669         * m4/log.m4: Likewise.
1670         * m4/log10.m4: Likewise.
1671         * m4/logb.m4: Likewise.
1672         * m4/logbf.m4: Likewise.
1673         * m4/logbl.m4: Likewise.
1674         * m4/rename.m4: Likewise.
1675         * m4/wcrtomb.m4: Likewise.
1676         * m4/hostent.m4: Likewise.
1677         * m4/servent.m4: Likewise.
1679 2018-10-14  Bruno Haible  <bruno@clisp.org>
1681         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
1682         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
1683         pointer.
1684         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
1685         pointer.
1686         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
1687         pointer.
1688         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
1689         pointer.
1690         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
1691         pointer.
1693 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1695         bootstrap: fix wget command for po files.
1696         * build-aux/bootstrap (po_download_command_format): Fix comment,
1697         and adjust callers.
1699 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1701         timevar: improve the output format
1702         Suggested by Bruno Haible.
1703         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
1704         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
1705         wall, since its resolution is much higher.
1707 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
1709         timevar: expect that getrusage is available.
1710         Don't keep both times and getrusage as backend: both are guaranteed by
1711         gnulib, a single one suffices.  Using getrusage is open to possibly
1712         tracking other types of resources in the future.
1713         * modules/timevar (Depends-on): Add getrusage.
1714         (configure.ac): Remove gl_TIMEVAR.
1715         (Files): Remove m4/timevar.m4.
1716         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
1717         * lib/timevar.h (timevar_enabled): Clarify documentation.
1718         * lib/timevar.c: Remove all the code about times.
1719         Remove all the CPP guards about getrusage: expect it to be present
1720         (courtesy of gnulib).
1722 2018-10-12  Bruno Haible  <bruno@clisp.org>
1724         mountlist: Improve support for Solaris in 64-bit mode.
1725         Reported by David Wood <David.Wood@deshaw.com> in
1726         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
1727         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
1728         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
1729         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
1731 2018-10-12  Bruno Haible  <bruno@clisp.org>
1733         mountlist: Add support for Minix.
1734         Reported by Assaf Gordon in
1735         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
1736         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
1737         AC_CHECK_FUNCS to check for 'getmntinfo'.
1738         * lib/mountlist.c: Update comments.
1740 2018-10-12  Bruno Haible  <bruno@clisp.org>
1742         Make better use of Autoconf.
1743         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
1744         * m4/manywarnings.m4: Likewise.
1745         * m4/manywarnings-c++.m4: Likewise.
1746         * m4/socklen.m4: Likewise.
1747         * m4/sockpfaf.m4: Likewise.
1748         * m4/stdarg.m4: Likewise.
1749         * m4/visibility.m4: Likewise.
1750         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
1751         indentation.
1752         * m4/ls-mntd-fs.m4: Likewise.
1754 2018-10-11  Bruno Haible  <bruno@clisp.org>
1756         mountlist: Modernize platform lists.
1757         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
1758         platforms, deemphasizing the obsolete ones.
1759         * lib/mountlist.c: Likewise.
1761 2018-10-11  Bruno Haible  <bruno@clisp.org>
1763         getprogname: Add support for 32-bit programs on HP-UX.
1764         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
1765         try the similar functions 32-bit programs on 64-bit HP-UX.
1767 2018-10-11  Bruno Haible  <bruno@clisp.org>
1769         getprogname: Work around program name truncation when possible.
1770         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
1771         possibly use pst_cmd instead.
1773 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
1775         fts: cleanup after FTS_NOATIME removal
1776         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
1777         (FTS_STOP): Shrink to minimal values.  We don’t need to
1778         worry about binary compatibility in Gnulib, and the old way
1779         of doing things had a hole in the user options that caused
1780         FTS_OPTIONMASK to not work as desired.
1782 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
1784         fts: remove FTS_NOATIME
1785         This reverts commit da4d6974013c822af1498941e32db774b2031765.
1786         We cannot guarantee that O_NOATIME works: e.g. openat fails
1787         with EPERM if the effective user ID of the caller does not match
1788         the owner of the file and the caller is not privileged.
1789         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
1790         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
1791         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
1792         (FTS_OPTIONMASK): Adjust.
1793         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
1794         (fd_ring_check): Likewise.
1796 2018-10-08  Bruno Haible  <bruno@clisp.org>
1798         csharpcomp*, csharpexec*: Remove support for pnet.
1799         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
1800         HAVE_CSCC.
1801         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
1802         Don't test HAVE_CSCC.
1803         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
1804         (compile_csharp_class): Don't invoke it.
1805         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
1806         HAVE_ILRUN.
1807         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
1808         Don't test HAVE_ILRUN.
1809         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
1810         (execute_csharp_program): Don't invoke it.
1811         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
1812         any more.
1814 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
1816         renameatu: prefer renameat2 to syscall
1817         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
1818         Use renameat2 instead of syscall (Bug#32796).
1819         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
1821 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1823         bootstrap, gnulib-tool: use https instead of insecure rsync
1824         * build-aux/bootstrap (download_po_files, po_download_command_format):
1825         Don't try using rsync; always use wget over https to fetch PO files.
1826         * gnulib-tool (func_import): Likewise.
1827         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1829 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
1831         bootstrap, gnulib-tool: correct the translations wget command
1832         * build-aux/bootstrap (po_download_command_format2): Restrict
1833         recursion to a single level.
1834         * gnulib-tool (func_import): Likewise.
1835         * pygnulib/GLImport.py (GLImport.execute): Likewise.
1837 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1839         doc: the gnulib snapshots are not maintained
1840         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
1842 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
1844         timevar: add to lib_SOURCES
1845         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
1847 2018-10-07  Bruno Haible  <bruno@clisp.org>
1849         dirent: Update documentation.
1850         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
1852 2018-10-05  Bruno Haible  <bruno@clisp.org>
1854         strpbrk: Make it possible to namespace the defined symbol.
1855         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
1857 2018-10-05  Bruno Haible  <bruno@clisp.org>
1859         strcspn: Make it possible to namespace the defined symbol.
1860         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
1862 2018-10-05  Bruno Haible  <bruno@clisp.org>
1864         raise: Make it possible to namespace the defined symbol.
1865         * lib/raise.c (raise): Undefine only after the replacement function has
1866         been defined.
1867         (raise): Renamed from rpl_raise.
1868         (raise_nothrow): Move to the end of the compilation unit.
1870 2018-10-05  Bruno Haible  <bruno@clisp.org>
1872         memcmp: Make it possible to namespace the defined symbol.
1873         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
1875 2018-10-05  Bruno Haible  <bruno@clisp.org>
1877         explicit_bzero: Make it possible to namespace the defined symbol.
1878         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
1879         glibc.
1881 2018-10-05  Bruno Haible  <bruno@clisp.org>
1883         mkdir-p: Depend on 'mkdir'.
1884         * modules/mkdir-p (Depends-on): Add 'mkdir'.
1886 2018-10-05  Bruno Haible  <bruno@clisp.org>
1888         tempname: Depend on 'mkdir'.
1889         Reported by Maarten Bosmans <mkbosmans@gmail.com>
1890         at <https://savannah.gnu.org/bugs/?33379>.
1891         * modules/tempname (Depends-on): Add 'mkdir'.
1893 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
1895         timevar: rely on gnulib modules for time portability.
1896         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
1897         * m4/timevar.m4: Don't check for clock_t and struct tms,
1898         guaranteed by gnulib.
1899         * lib/timevar.h: Use extern "C" protection.
1900         Include <stdio.h> for FILE.
1901         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
1902         they are guaranteed by gnulib.
1903         Remove uses of clock as (now useless) fallback.
1905 2018-10-04  Bruno Haible  <bruno@clisp.org>
1907         sh-filename: New module.
1908         * m4/sh-filename.m4: New file.
1909         * modules/sh-filename: New file.
1910         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
1911         "/bin/sh".
1912         * tests/test-posix_spawn1.c (main): Likewise.
1913         * tests/test-posix_spawn2.c (main): Likewise.
1914         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
1915         is_envjavac_gcj43): Likewise.
1916         * lib/javaexec.c (execute_java_class): Likewise.
1917         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
1918         * modules/posix_spawnp-tests (Depends-on): Likewise.
1919         * modules/javacomp (Depends-on): Likewise.
1920         * modules/javaexec (Depends-on): Likewise.
1922 2018-10-04  Bruno Haible  <bruno@clisp.org>
1924         spawn-pipe tests: Avoid test failure on native Windows.
1925         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
1926         that fd 2 is closed.
1928 2018-10-04  Bruno Haible  <bruno@clisp.org>
1930         fcntl: Make it possible to namespace the defined symbol.
1931         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
1932         been defined.
1933         (fcntl): Renamed from rpl_fcntl.
1934         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
1935         from fcntl.
1936         (klibc_fcntl): Move to the end of the compilation unit.
1938 2018-10-02  Bruno Haible  <bruno@clisp.org>
1940         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
1941         * tests/test-vasnprintf.c (test_function): Change the test added on
1942         2018-09-23 to check only the 18 most significant digits.
1944         vasnprintf tests: Avoid test failure on Cygwin.
1945         * tests/test-vasnprintf.c (test_function): Change the test added on
1946         2018-09-23 to check only the 42 most significant digits.
1948 2018-10-01  Bruno Haible  <bruno@clisp.org>
1950         mkostemp, mkostemps: Update documentation.
1951         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
1952         * doc/glibc-functions/mkostemps.texi: Likewise.
1954 2018-10-01  Tom Tromey  <tom@tromey.com>
1956         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
1957         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
1958         on OS X.
1960 2018-09-30  Pádraig Brady  <P@draigBrady.com>
1962         hmac-*: refactor to remove repetitive code
1963         * lib/hmac.c: A new parameterized single implementation.
1964         * lib/hmac-md5.c: Define parameters and include implementation.
1965         * lib/hmac-sha1.c: Likewise.
1966         * lib/hmac-sha256.c: Likewise.
1967         * lib/hmac-sha512.c: Likewise.
1968         * modules/crypto/hmac-md5: Reference the new implementation file.
1969         * modules/crypto/hmac-sha1: Likewise.
1970         * modules/crypto/hmac-sha256: Likewise.
1971         * modules/crypto/hmac-sha512: Likewise.
1972         * tests/test-hmac-md5.c: Refactor common code to a single function.
1973         * tests/test-hmac-sha1.c: Likewise.
1974         * tests/test-hmac-sha256.c: Likewise.
1975         * tests/test-hmac-sha512.c: Likewise.
1977 2018-09-30  Zhang Qing  <zhangqingl@126.com>
1979         hmac-sha512: fix hash for keys > blocksize (128 bytes)
1980         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
1981         key length to that output by sha512, not the blocksize.
1982         Otherwise uninitialized data from the stack
1983         is used when computing the hash.
1984         * tests/test-hmac-sha512.c: Add a shortened key test case.
1985         Reported at https://github.com/coreutils/gnulib/pull/5
1987 2018-09-30  Bruno Haible  <bruno@clisp.org>
1989         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
1990         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
1991         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
1992         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
1993         'unsigned int' before comparison with an unsigned value.
1995 2018-09-30  Bruno Haible  <bruno@clisp.org>
1997         grantpt: Remove unnecessary dependency.
1998         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
2000 2018-09-30  Bruno Haible  <bruno@clisp.org>
2002         timevar: Small tweaks.
2003         * lib/timevar.h: Fix comments. Add parameter names to function
2004         declarations.
2005         * lib/timevar.c: Include timevar.h immediately after config.h.
2006         * lib/timevar.def: Fix comments.
2007         * modules/timevar (Maintainer): List Akim Demaille.
2009 2018-09-30  Bruno Haible  <bruno@clisp.org>
2011         timevar: Include documentation in gnulib manual.
2012         * doc/timevar.texi: Change node and section name to 'Profiling of
2013         program phases'.
2014         In the code snippets, tweak the #includes and use GNU coding style.
2015         * doc/gnulib.texi: Include timevar.texi.
2017 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
2019         timevar: import from Bison.
2020         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
2021         New files.
2022         * lib/timevar.def: New file.
2023         * doc/timevar.texi: New file.
2025 2018-09-26  Bruno Haible  <bruno@clisp.org>
2027         javacomp-script, javacomp: Add preliminary support for Java 12..17.
2028         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
2029         * lib/javacomp.c (default_target_version): Likewise.
2031 2018-09-26  Bruno Haible  <bruno@clisp.org>
2033         javacomp-script, javacomp: Add support for Java 11.
2034         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
2035         target-version 11.
2036         * lib/javaversion.h: Update comments.
2037         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
2038         source_version_index, get_goodcode_snippet, get_failcode_snippet,
2039         TARGET_VERSION_BOUND, target_version_index,
2040         corresponding_classfile_version): Accept source_version 11 and
2041         target_version 11.
2042         * lib/javacomp.h: Update comments accordingly.
2044 2018-09-23  Bruno Haible  <bruno@clisp.org>
2046         vasnprintf: Fix heap memory overrun bug.
2047         Reported by Ben Pfaff <blp@cs.stanford.edu> in
2048         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
2049         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
2050         memory.
2051         * tests/test-vasnprintf.c (test_function): Add another test.
2053 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
2055         maint: mktime.c now shared with glibc
2056         * config/srclist.txt: intprops.h, timegm.c and mktime.c
2057         are now the same in Gnulib and glibc.
2059         mktime: fix _LIBC typo
2060         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
2062 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2064         dfa: optimization for state merge
2065         * lib/dfa.c (merge2): New function.
2066         (merge_nfa_state): Use it.
2068 2018-09-18  Jim Meyering  <meyering@fb.com>
2070         dfa: trivial comment fix: s/is/if/
2071         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
2073 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2075         dfa: use more-informative function name
2076         * lib/dfa.c (maybe_disable_superset_dfa):
2077         Rename from dfautf8noss.  Use change.
2079         dfa: tweak allocation performance
2080         * lib/dfa.c (merge_nfa_state, dfaoptimize):
2081         Prefer ptrdiff_t for indexes some more.
2082         Use char for flags, as it’s wide enough.
2083         Allocate queue and flags together, with one malloc call.
2084         No need to use xnmalloc since the multiplication and
2085         addition cannot overflow (it’s already been checked by
2086         earlier allocation).  Prefer memset to open-coding.
2088         dfa: prune states as we go
2089         * lib/dfa.c (prune): Remove.
2090         dfa: reorder enum for efficiency
2091         (merge_nfa_state): Prune as we go instead of at the end.
2092         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
2094         * lib/dfa.c (END): Now -1 again.  Reorder other elements
2095         of the enumeration to make it easier for GCC to generate
2096         efficient code by using fewer comparisons to check for
2097         ranges of values.
2098         (atom): Take advantage of the reordering.
2100 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2102         dfa: optimize alternation in NFA
2103         Even when similar states exist in alternation, the DFA treats them
2104         as separate items, which may complicate the transition in NFA and
2105         cause slowdown.  This change assembles the states into one.  For
2106         example, ab|ac is changed into a(b|c).  This change speeds-up
2107         matching for many branched patterns.  For example, grep speeds up
2108         more than 30× in:
2110           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
2111           time -p env LC_ALL=C grep -vf in in
2113         * lib/dfa.c (prune): New function.
2114         (merge_nfa_state): New function.  It merges similar NFA states.
2115         (dfaoptimize): New function.  It seeks merged and removed nodes.
2116         (dfaanalyze): Call new function.
2117         (dfautf8noss): Change name from dfaoptimize because of addition of new
2118         function.
2119         (dfacomp): Update caller.
2121         dfa: simplify initial state
2122         Simplifying the initial state enables easier optimization of the NFA.
2123         * lib/dfa.c (enum token): Add new element BEG.
2124         (prtok): Adjust due to adding element BEG.
2125         (dfaparse): Put BEG at a head of tokens.
2126         (state_index): Adjust due to adding element BEG.
2127         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
2128         build initial state.
2129         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
2131 2018-09-18  Bruno Haible  <bruno@clisp.org>
2133         file-has-acl: Fix test failure on Cygwin 2.9.
2134         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
2135         * lib/acl-internal.h: Likewise.
2136         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
2137         * lib/acl-internal.c: Update comments regarding Cygwin.
2138         * lib/acl_entries.c: Likewise.
2139         * lib/file-has-acl.c: Likewise.
2140         (file_has_acl): For Cygwin, use a different way to determine whether
2141         the "default" ACL of a directory is nontrivial.
2142         * lib/get-permissions.c: Update comments regarding Cygwin.
2143         * lib/set-permissions.c: Likewise.
2145 2018-09-18  Bruno Haible  <bruno@clisp.org>
2147         stat-time tests: Fix test failure on Cygwin.
2148         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
2150 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
2152         doc: OS X 10.11 lacked ns time functions
2153         According to <https://github.com/zeromq/libzmq/issues/2175>,
2154         nanosecond-resolution timestamp functions were introduced
2155         in macOS 10.12, so document the last version (OS X 10.11)
2156         where they were absent.
2158         gettime: nanotime never existed
2159         Problem reported by Bruno Haible in:
2160         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
2161         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
2162         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
2164 2018-09-18  Bruno Haible  <bruno@clisp.org>
2166         doc: Update statement about target platforms.
2167         Reported by Simon Sobisch.
2168         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
2169         restrictions on MSVC versions.
2171 2018-09-18  Bruno Haible  <bruno@clisp.org>
2173         posix_spawn tests: Fix link error on 64-bit Cygwin.
2174         * tests/test-posix_spawn1.c (environ): Remove declaration.
2175         * tests/test-posix_spawn2.c (environ): Likewise.
2176         * tests/test-posix_spawn3.c (environ): Likewise.
2177         * tests/test-posix_spawn4.c (environ): Likewise.
2178         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
2179         * modules/posix_spawnp-tests (Depends-on): Likewise.
2181 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
2183         timespec: new function current_timespec
2184         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
2185         and don’t worry about it failing on a CLOCK_REALTIME arg.
2186         POSIX requires it to succeed and I don’t know of any
2187         counterexamples where the fallbacks would work.
2188         (current_timespec): New function, taken from Emacs.  It is more
2189         convenient than gettime, and can help register allocation.
2190         * lib/timespec.h: Include arg-nonnull.h.
2191         (current_timespec): New declaration.
2192         (gettime, settime): Declare args to be nonnull.
2193         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
2195 2018-09-16  Bruno Haible  <bruno@clisp.org>
2197         setlocale: Improve locale handling on macOS 10.12 or newer.
2198         * lib/setlocale.c: Include header files for CoreFoundation. Declare
2199         gl_locale_name_canonicalize.
2200         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
2201         and LC_MESSAGES.
2202         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
2204 2018-09-16  Bruno Haible  <bruno@clisp.org>
2206         Update list of locale names with scripts on macOS.
2207         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
2208         match Mac OS X 10.13 and recent glibc.
2210 2018-09-16  Bruno Haible  <bruno@clisp.org>
2212         gettext: Use newer macOS APIs when possible.
2213         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
2214         CFLocaleCopyPreferredLanguages.
2216 2018-09-16  Bruno Haible  <bruno@clisp.org>
2218         localename: Revisit macOS specific code.
2219         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
2220         Fix comments about Mac OS X versions.
2222 2018-09-15  Bruno Haible  <bruno@clisp.org>
2224         setlocale: Improve support for locales not supported by libc.
2225         Reported by Dapeng Gao <peter@dpgao.cc> at
2226         <https://savannah.gnu.org/bugs/?54479>.
2227         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
2228         (libintl_setlocale): Use a more error-tolerant strategy when the locale
2229         to be set is not supported by libc: Emit warnings instead of failing.
2231 2018-09-15  Bruno Haible  <bruno@clisp.org>
2233         strstr, strcasestr: Add workaround against glibc-2.28 bug.
2234         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
2235         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
2236         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
2237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
2238         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
2239         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
2240         * doc/glibc-functions/strcasestr.texi: Likewise.
2242 2018-09-14  Bruno Haible  <bruno@clisp.org>
2244         doc: Fix bottom of top-level page.
2245         Reported by Akim Demaille <akim.demaille@gmail.com> in
2246         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
2247         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
2248         mode.
2249         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
2250         accordingly.
2252 2018-09-12  Bruno Haible  <bruno@clisp.org>
2254         Add test case from a recent glibc bug.
2255         * tests/test-strstr.c (main): Add test of long needle.
2256         * tests/test-strcasestr.c (main): Likewise.
2257         * tests/test-c-strstr.c (main): Likewise.
2258         * tests/test-c-strcasestr.c (main): Likewise.
2259         * tests/test-memmem.c (main): Likewise.
2261 2018-09-12  Bruno Haible  <bruno@clisp.org>
2263         Apply Eric Blake's improvements from 2011-02-25 to more tests.
2264         * tests/test-c-strstr.c (main): Add the same tests here as well.
2266 2018-09-12  Bruno Haible  <bruno@clisp.org>
2268         Apply Jim Meyering's fix from 2015-01-11 to more tests.
2269         * tests/test-memmem.c (main): Free haystack.
2270         * tests/test-strcasestr.c (main): Likewise.
2271         * tests/test-c-strcasestr.c (main): Likewise.
2273 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
2275         xstrtol: fix missing-TYPE_SIGNED typo
2276         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
2278 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2280         timespec: fix resolution confusion
2281         In normal usage, clock resolution is given in seconds, but the
2282         code was mistakenly using inverse seconds and calling it
2283         “resolution”.  Fix this, partly by renaming two identifiers.
2284         The old names will be kept for a bit, to ease transition.
2285         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
2286         New constants, replacing TIMESPEC_RESOLUTION and
2287         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
2288         All uses changed.
2290 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
2292         mktime: simplify in prep for glibc merge
2293         * lib/mktime.c, lib/timegm.c [_LIBC]:
2294         Include mktime-internal.h (a small file just for glibc)
2295         instead of using a typedef.
2297 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
2299         intprops: minor clarification of code
2300         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
2301         Use _GL_INT_CONVERT rather than reinventing it.
2303 2018-09-07  Bruno Haible  <bruno@clisp.org>
2305         Fix a comment.
2306         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
2308 2018-09-07  Bruno Haible  <bruno@clisp.org>
2310         posix_spawn_file_actions_addchdir: Add tests.
2311         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
2312         * tests/test-posix_spawn4.c: New file.
2313         * modules/posix_spawn_file_actions_addchdir-tests: New file.
2315 2018-09-07  Bruno Haible  <bruno@clisp.org>
2317         posix_spawn_file_actions_addchdir: New module.
2318         Suggested by Eric Blake in
2319         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
2320         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
2321         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
2322         union member 'chdir_action'.
2323         * lib/spawn_faction_addchdir.c: New file.
2324         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
2325         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
2326         HAVE_WORKING_POSIX_SPAWN.
2327         * lib/spawn_faction_adddup2.c: Likewise.
2328         * lib/spawn_faction_addopen.c: Likewise.
2329         * m4/posix_spawn_faction_addchdir.m4: New file.
2330         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
2331         'posix_spawn_file_actions_addchdir' is present and whether
2332         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
2333         instead of HAVE_WORKING_POSIX_SPAWN.
2334         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
2335         posix_spawn_file_actions_addchdir is declared.
2336         (gl_SPAWN_H_DEFAULTS): Initialize
2337         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2338         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2339         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2340         * modules/spawn (Makefile.am): Substitute
2341         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2342         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
2343         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
2344         * modules/posix_spawn_file_actions_addchdir: New file.
2345         * modules/posix_spawn_file_actions_addclose (Depends-on,
2346         configure.ac): Test also REPLACE_POSIX_SPAWN.
2347         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
2348         configure.ac): Likewise.
2349         * modules/posix_spawn_file_actions_addopen (Depends-on,
2350         configure.ac): Likewise.
2351         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
2352         signature.
2353         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2354         * doc/posix-functions/posix_spawnp.texi: Likewise.
2356 2018-09-06  Bruno Haible  <bruno@clisp.org>
2358         stddef: Override max_align_t on NetBSD 8.0/x86.
2359         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
2360         the value of __alignof__ (max_align_t).
2361         * doc/posix-headers/stddef.texi: Mention the issue.
2363 2018-09-06  Bruno Haible  <bruno@clisp.org>
2365         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
2366         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
2367         system fcntl.
2368         * doc/posix-functions/fcntl.texi: Document the issue.
2370 2018-09-06  Bruno Haible  <bruno@clisp.org>
2372         count-trailing-zeros tests: Rely on limits-h module.
2373         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
2374         definition.
2375         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
2377 2018-09-06  Bruno Haible  <bruno@clisp.org>
2379         count-leading-zeros tests: Rely on limits-h module.
2380         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
2381         definition.
2382         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
2384 2018-09-06  Bruno Haible  <bruno@clisp.org>
2386         count-one-bits tests: Rely on limits-h module.
2387         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
2388         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
2390 2018-09-06  Bruno Haible  <bruno@clisp.org>
2392         xstrtoll: Rely on limits-h module.
2393         * lib/xstrtol.c: Don't include intprops.h.
2394         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2395         * modules/xstrtol (Depends-on): Remove 'intprops'.
2396         * modules/xstrtoll (Depends-on): Add 'limits-h'.
2398 2018-09-06  Bruno Haible  <bruno@clisp.org>
2400         strtoll, strtoull: Rely on limits-h module.
2401         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
2402         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
2403         * modules/strtoll (Depends-on): Add limits-h.
2404         * modules/strtoull (Depends-on): Likewise.
2406 2018-09-06  Bruno Haible  <bruno@clisp.org>
2408         intprops tests: Fix compilation error with pre-C99 compiler.
2409         * tests/test-intprops.c (verify_stmt): New macro.
2410         (VERIFY, main): Use it.
2412 2018-09-06  Bruno Haible  <bruno@clisp.org>
2414         limits-h: Provide numerical limits macros.
2415         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
2416         IRIX and for GCC.
2417         (WORD_BIT, LONG_BIT): Define.
2418         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
2419         <limits.h> does not define LLONG_MAX or WORD_BIT.
2420         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
2421         TYPE_MAXIMUM): New macros, from intprops.h.
2422         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
2423         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
2424         provides.
2426 2018-09-05  Bruno Haible  <bruno@clisp.org>
2428         fcntl: Don't access nonexistent optional argument.
2429         Reported by Frank Busse <f.busse@imperial.ac.uk> in
2430         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
2431         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
2432         don't consume an argument. For actions that take an 'int' argument,
2433         consume an 'int' argument.
2435 2018-09-05  Eric Blake  <eblake@redhat.com>
2437         doc: mention environ pitfall
2438         * doc/posix-functions/environ.texi (environ): Assigning NULL to
2439         environ is a glibc extension.
2441 2018-09-03  Bruno Haible  <bruno@clisp.org>
2443         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
2444         Reported by Antoine Luong <antoine.luong@c-s.fr> in
2445         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
2446         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
2447         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
2448         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
2450 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
2452         mktime: fix unlikely race+overflow bug
2453         Problem reported by Alexandre Oliva in:
2454         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
2455         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
2456         to avoid an unlikely race if the compiler delays a load and
2457         if this cascades into a signed integer overflow.
2459 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
2461         mktime, timegm: simplify glibc time64_t
2462         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
2463         Now long int, not time_t, since long int is the longstanding type
2464         for this in glibc and there is no need to change it even if time_t
2465         becomes 64 bits - even int would do, though this would be a change
2466         to the glibc generated code.  When this change is merged into
2467         glibc, it should simplify the time_t vs time64_t situation.
2469         mktime, timegm: simplify merge to glibc
2470         Move code around to make a merge to glibc easier to audit.
2471         This should not change behavior.
2472         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
2473         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
2474         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
2475         simplify later conditionals; default the others to zero.  In uses
2476         of these conditionals, explicitly spell out how _LIBC affects
2477         things, so it’s easier to review from a glibc viewpoint.
2478         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
2479         compartmentalize tzset issues.  Move system-dependent tzsettish
2480         code here from mktime.
2481         (mktime): Move tzsettish code to my_tzset, and move
2482         localtime_offset to within mktime so that it doesn’t
2483         need a separate ifdef.
2485 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
2487         intprops: avoid evaluation of some expressions
2488         This makes EXPR_SIGNED (e) easier to use, as it no longer
2489         evaluates the expression E.  Formerly, E was required to be free
2490         of side effects.
2491         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
2492         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
2493         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
2495 2018-08-23  Bruno Haible  <bruno@clisp.org>
2497         getcwd: Add cross-compilation guesses.
2498         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
2499         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
2500         Based on a patch by Paul Eggert.
2501         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
2502         guesses for all GNU systems.
2504 2018-08-19  Bruno Haible  <bruno@clisp.org>
2506         glob-h: Formalize side effects from other modules.
2507         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
2508         * m4/glob.m4 (gl_GLOB): Invoke it.
2510         fnmatch-h: Formalize side effects from other modules.
2511         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
2512         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
2514         limits-h: Formalize side effects from other modules.
2515         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
2516         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
2518 2018-08-19  Bruno Haible  <bruno@clisp.org>
2520         getpass: Move declaration to <unistd.h>.
2521         * lib/unistd.in.h (getpass): New declaration.
2522         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
2523         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
2524         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
2525         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
2526         On glibc systems, don't set REPLACE_GETPASS to 1.
2527         * modules/getpass (Depends-on): Add 'unistd'.
2528         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
2529         (Include): Specify <unistd.h> instead of "getpass.h".
2530         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
2531         (configure.ac): Sync with the configure.ac section of modules/getpass.
2532         (Include): Specify <unistd.h> instead of "getpass.h".
2533         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
2534         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
2535         REPLACE_GETPASS.
2536         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
2537         REPLACE_GETPASS.
2538         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
2539         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
2540         and musl.
2541         * NEWS: Mention the change.
2543 2018-08-19  Bruno Haible  <bruno@clisp.org>
2545         glob: Fix over-optimization due to attribute __nonnull__.
2546         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
2548 2018-08-19  Bruno Haible  <bruno@clisp.org>
2550         glob: Fix another compilation error when glob.h is not replaced.
2551         Reported by Reuben Thomas <rrt@sc3d.org> in
2552         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
2553         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
2554         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
2556 2018-08-18  Bruno Haible  <bruno@clisp.org>
2558         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
2559         Reported by Reuben Thomas <rrt@sc3d.org> in
2560         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
2561         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
2562         in config.h.
2564 2018-08-18  Bruno Haible  <bruno@clisp.org>
2566         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
2567         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
2568         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
2569         Solution proposed by Eli Zaretskii.
2570         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
2571         * lib/gettimeofday.c (GetProcAddress): Likewise.
2572         * lib/link.c (GetProcAddress): Likewise.
2573         * lib/physmem.c (GetProcAddress): Likewise.
2574         * lib/poll.c (GetProcAddress): Likewise.
2575         * lib/select.c (GetProcAddress): Likewise.
2576         * lib/stat-w32.c (GetProcAddress): Likewise.
2578 2018-08-18  Bruno Haible  <bruno@clisp.org>
2580         glob: Fix another compilation error when glob.h is not replaced.
2581         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
2582         * lib/globfree.c: Include <libc-config.h>.
2584 2018-08-18  Bruno Haible  <bruno@clisp.org>
2586         glob: Fix compilation error when glob.h is not replaced.
2587         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
2588         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
2589         * lib/glob_pattern_p.c: Include <libc-config.h>.
2590         * modules/glob (Depends-on): Add libc-config.
2592 2018-08-18  Bruno Haible  <bruno@clisp.org>
2594         scratch_buffer: Add tests.
2595         * tests/test-scratch-buffer.c: New file.
2596         * modules/scratch_buffer-tests: New file.
2598 2018-08-18  Bruno Haible  <bruno@clisp.org>
2600         scratch_buffer: Fix include file.
2601         Reported by Reuben Thomas <rrt@sc3d.org> in
2602         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
2603         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
2604         double-inclusion guard.
2606 2018-08-18  Bruno Haible  <bruno@clisp.org>
2608         glob-h: Revert Paul Eggert's revert.
2609         * m4/glob_h.m4: Revert to previous state.
2610         * modules/glob-h: Likewise.
2612 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
2614         glob-h: always build glob.h
2615         This works around a problem reported by Reuben Thomas in:
2616         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
2617         This workaround always builds glob.h, even on platforms that
2618         do not need it; perhaps this could be improved someday.
2619         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
2620         is always created now.
2621         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
2623 2018-08-13  Bruno Haible  <bruno@clisp.org>
2625         monetary: Simplify m4 code.
2626         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
2627         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
2629 2018-08-13  Bruno Haible  <bruno@clisp.org>
2631         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
2632         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
2633         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
2634         and by Paul J. Lucas <paul@lucasmail.org> in
2635         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
2636         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
2638 2018-08-11  Bruno Haible  <bruno@clisp.org>
2640         setlocale: Trivial simplification.
2641         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
2643 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
2645         verify: port 'assume' to traditional tools
2646         * lib/verify.h (assume): Port better to Oracle Studio 12.6
2647         and other tools that use /*NOTREACHED*/ comments.
2649 2018-08-10  Bruno Haible  <bruno@clisp.org>
2651         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
2652         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
2653         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
2654         'fnmatch-gnu' is in use.
2656 2018-08-07  Bruno Haible  <bruno@clisp.org>
2658         glob-h: Add tests.
2659         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
2660         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
2661         tests/test-glob-h.c.
2662         * modules/glob-h-tests: New file.
2663         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
2664         conditions.
2665         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
2666         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
2668 2018-08-07  Bruno Haible  <bruno@clisp.org>
2670         glob-h: New module.
2671         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
2672         replacements.
2673         * lib/glob.c: Include <config.h>.
2674         * m4/glob_h.m4: New file.
2675         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
2676         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2677         REPLACE_GLOB_PATTERN_P as appropriate.
2678         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
2679         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
2680         * modules/glob-h: New file.
2681         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
2682         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
2683         lstat, sys_stat. Change conditions.
2684         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
2685         REPLACE_GLOB_PATTERN_P. Set module indicator.
2686         (Makefile.am): Remove code that is moved to glob-h.
2687         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
2688         * modules/posixcheck (Depends-on): Add glob-h.
2690 2018-08-06  Bruno Haible  <bruno@clisp.org>
2692         Force generation of substitute .h file when C++ support is enabled.
2693         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
2694         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
2695         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
2696         FNMATCH_H to non-empty.
2697         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
2698         ICONV_H to non-empty.
2699         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
2700         MONETARY_H to non-empty.
2701         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
2702         non-empty.
2704 2018-08-06  Bruno Haible  <bruno@clisp.org>
2706         fnmatch-h: Fix test compilation error on mingw (regression from today).
2707         * lib/fnmatch.in.h: Fix conditions.
2709 2018-08-06  Bruno Haible  <bruno@clisp.org>
2711         sys_resource: Relicense under LGPLv2+.
2712         John Malmberg's approval is in
2713         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
2714         * modules/sys_resource (License): Change to LGPLv2+.
2716 2018-08-06  Bruno Haible  <bruno@clisp.org>
2718         fnmatch-h: Add tests.
2719         * tests/test-fnmatch-h.c: New file.
2720         * modules/fnmatch-h-tests: New file.
2721         * tests/test-fnmatch-h-c++.cc: New file.
2722         * modules/fnmatch-h-c++-tests: New file.
2724 2018-08-06  Bruno Haible  <bruno@clisp.org>
2726         fnmatch-h: New module.
2727         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
2728         replacements.
2729         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
2730         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
2731         'posixcheck' warning.
2732         * m4/fnmatch_h.m4: New file.
2733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
2734         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
2735         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
2736         as appropriate.
2737         * modules/fnmatch-h: New file.
2738         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
2739         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
2740         conditions.
2741         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
2742         indicator.
2743         (Makefile.am): Remove code that is moved to fnmatch-h.
2744         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
2745         REPLACE_FNMATCH.
2746         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
2747         * modules/posixcheck (Depends-on): Add fnmatch-h.
2749 2018-08-06  Bruno Haible  <bruno@clisp.org>
2751         Enable more C++ tests.
2752         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
2753         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
2754         * modules/strings-tests (Depends-on): Add strings-c++-tests.
2755         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
2756         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
2758 2018-08-06  Bruno Haible  <bruno@clisp.org>
2760         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
2761         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
2762         getopt.h.
2763         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
2765 2018-08-05  Bruno Haible  <bruno@clisp.org>
2767         utime-h: Generate header file when module 'posixcheck' is in use.
2768         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
2769         UTIME_H to non-empty.
2771 2018-08-05  Bruno Haible  <bruno@clisp.org>
2773         monetary: Generate header file when module 'posixcheck' is in use.
2774         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
2775         use, set MONETARY_H to non-empty.
2777 2018-08-05  Bruno Haible  <bruno@clisp.org>
2779         iconv-h: Generate header file when module 'posixcheck' is in use.
2780         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
2781         set ICONV_H to non-empty.
2783 2018-08-05  Bruno Haible  <bruno@clisp.org>
2785         Optimize the "checking whether ... is declared without a macro" checks.
2786         Suggested by Paul Eggert in
2787         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
2788         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
2789         Gnulib module 'posixcheck' is not in use.
2791 2018-08-05  Bruno Haible  <bruno@clisp.org>
2793         iconv-h: Enable 'posixcheck' warnings.
2794         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
2795         iconv_open.
2796         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
2798 2018-08-05  Bruno Haible  <bruno@clisp.org>
2800         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
2801         * m4/extern-inline.m4: Add more comments.
2802         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
2803         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
2804         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
2806 2018-08-04  Bruno Haible  <bruno@clisp.org>
2808         New module 'posixcheck'.
2809         * modules/posixcheck: New file.
2810         * m4/posixcheck.m4: New file.
2811         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
2812         (Which modules?): Reference it.
2814 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
2816         dfa: fix memory leak
2817         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
2819 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2821         ieee754-h: new module
2822         It looks like Emacs can use this for some NaN processing.
2823         Emacs uses it only on double NaNs so it should be safe.
2824         * MODULES.html.sh (func_all_modules): Add ieee754-h.
2825         * config/srclist.txt: Mention ieee754.h in a comment.
2826         * doc/glibc-headers/ieee754.texi (ieee754.h):
2827         Gnulib now has a substitute that should work
2828         except for long double and for non-IEEE platforms.
2829         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
2830         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
2832 2018-07-27  Bruno Haible  <bruno@clisp.org>
2834         iswcntrl: Mention minor problem on macOS.
2835         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
2837 2018-07-26  Colin Watson  <cjwatson@debian.org>
2839         bootstrap, gnulib-tool: fix translations rsync
2840         Previously, we created files such as $pobase/Makefile.in.in and then the
2841         subsequent rsync would immediately delete them.
2842         * build-aux/bootstrap (po_download_command_format): Avoid deleting
2843         non-.po files in target directory when rsyncing translations.
2844         * gnulib-tool (func_import): Likewise.
2845         * pygnulib/GLImport.py (GLImport.execute): Likewise.
2847 2018-07-25  Jim Meyering  <meyering@fb.com>
2849         bootstrap: reinstate definition fo gnulib_mk.
2850         That variable is used at least by cppi.
2851         * build-aux/bootstrap (gnulib_mk): Restore definition.
2852         This reverts the deletion from v0.1-1844-gc66dba9ba.
2854 2018-07-23  Bruno Haible  <bruno@clisp.org>
2856         doc: For module names, use texinfo markup @code{} or @samp{}.
2857         * doc/alloca.texi: Mark gnulib module names with @code.
2858         * doc/alloca-opt.texi: Likewise.
2859         * doc/quote.texi: Likewise.
2860         * doc/posix-functions/freopen.texi: Likewise.
2861         * doc/posix-functions/open.texi: Likewise.
2862         * doc/posix-functions/readlink.texi: Likewise.
2863         * doc/posix-functions/readlinkat.texi: Likewise.
2864         * doc/posix-functions/stdout.texi: Likewise.
2865         * doc/posix-functions/stderr.texi: Likewise.
2866         * doc/posix-functions/unlink.texi: Likewise.
2867         * doc/posix-functions/unlinkat.texi: Likewise.
2868         * doc/posix-functions/utime.texi: Likewise.
2869         * doc/posix-functions/utimensat.texi: Likewise.
2870         * doc/posix-functions/utimes.texi: Likewise.
2871         * doc/posix-headers/stdint.texi: Likewise.
2872         * doc/glibc-functions/futimesat.texi: Likewise.
2873         * doc/glibc-functions/lutimes.texi: Likewise.
2874         * doc/glibc-functions/memmem.texi: Likewise.
2876 2018-07-23  Werner LEMBERG  <wl@gnu.org>
2878         doc: Avoid some overfull lines in the TeX output.
2879         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
2880         @example.
2881         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
2882         newline before the long URL.
2883         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
2884         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
2885         Add line breaks in code snippets.
2887 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
2889         hard-locale: simplify by removing hard-locale.m4
2890         * m4/hard-locale.m4: Remove.
2891         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
2892         (configure.ac): Do not call gl_HARD_LOCALE.
2894         gnulib-tool: limit line length for git send-email
2895         * gnulib-tool (func_import): Break actioncmd log line
2896         into multiple lines.
2898 2018-07-16  Bruno Haible  <bruno@clisp.org>
2900         ffs: Ensure declaration on mingw.
2901         Reported by Daniel P. Berrangé <berrange@redhat.com>
2902         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
2903         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
2904         also declared.
2906 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
2908         regex-tests: add dependency
2909         * modules/regex-tests (Depends-on): Add gettext-h.
2910         This is needed given the recent changes to regex,
2911         which no longer depends on gettext-h.
2913 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2915         regex: now in sync with glibc
2916         * config/srclist.txt: Gnulib and glibc regex code
2917         are synchronized again.
2919 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2921         renameatu: rename from renameat2
2922         It's looking like Glibc will add a renameat2 function
2923         that is incompatible with Gnulib renameat2; see:
2924         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
2925         To help avoid future confusion, rename renameat2 to something else.
2926         Use the name 'renameatu', as the Gnulib function is close to the
2927         Glibc function.  Perhaps someday there will also be a renameat2
2928         Gnulib module, which mimicks the future glibc renameat2, but that
2929         can wait as nobody seems to need such a module now.
2930         * NEWS: Mention this.
2931         * lib/renameatu.c: Rename from lib/renameat2.c.
2932         * lib/renameatu.h: Rename from lib/renameat2.h.
2933         * modules/renameatu: Rename from modules/renameat2.
2934         * modules/renameatu-tests: Rename from modules/renameat2-tests.
2935         All uses of "renameat2" in identifiers or file name
2936         changed to "renameatu", except for two instances in
2937         lib/renameatu.c that deal with the Linux kernel's
2938         renameat2 syscall.
2940 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2942         gnulib-tool: minor tweaks for --gnu-make
2943         * gnulib-tool: Do not allow --gnu-make in test modes,
2944         since they all require automake.
2945         (func_emit_lib_Makefile_am): Don’t emit automake comment
2946         if --gnu-make.
2948         regex: work around conditional-dependencies glitch
2949         * modules/regex (Depends-on): Add langinfo.
2950         Without this change, I had problems building an experimental
2951         version of GNU Emacs.  The symptom of the bug was a message
2952         ‘./configure: line 12726: test: =: unary operator expected’.
2953         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
2954         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
2955         was unset.  Although gl_FUNC_NL_LANGINFO has
2956         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
2957         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
2958         --conditional-dependencies sometimes arranges for the
2959         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
2960         code.  Since the regex code includes <langinfo.h> it should be
2961         depending on the langinfo module anyway, and this happens to work
2962         around the bug, so install that as a workaround for now.  To
2963         reproduce the original problem, run the following shell script on
2964         the version of Gnulib just before this patch was installed.
2965                 rm -fr foo
2966                 mkdir foo
2967                 cat >foo/configure.ac <<'EOF'
2968                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
2969                 gl_EARLY
2970                 gl_INIT
2971                 AC_OUTPUT
2972                 EOF
2973                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
2974                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
2975                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
2976                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
2977                 cd foo
2978                 aclocal -I m4
2979                 autoconf
2980                 ./configure --with-included-regex
2982 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
2984         wchar: fix bug when checking for ‘inline’
2985         I discovered this when looking into using the regex module
2986         with Emacs.
2987         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
2988         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
2989         conftest1.c and conftest2.c but these files were not created.
2990         As far as I can see, this check never worked and nobody reported
2991         it until now, which is a bit worrisome.
2993 2018-06-30  Jim Meyering  <meyering@fb.com>
2995         bootstrap: s/--option val/--option=val/
2996         * build-aux/bootstrap (gnulib_tool_options): Change the
2997         spelling of "--option val" pairs to "--option=val", for
2998         aesthetics, and also so that this file no longer triggers
2999         a common help2man syntax-check warning when copied into
3000         projects like grep, gzip, etc.
3002 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
3004         manywarnings: omit -Wswitch-default
3005         This should make things more consistent, as we already ignore
3006         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
3007         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
3008         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
3009         Add -Wswitch-default.
3010         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3011         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
3012         Remove -Wswitch-default.
3014         regex: revert most trimming
3015         Problems reported by Bruno Haible in:
3016         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
3017         * modules/regex (Depends-on): Add lock, memcmp, memmove,
3018         and wctype back in.  lock because regex users shouldn’t
3019         need to know that regex needs locking, and the rest because
3020         gnulib-tool should ordinarily ignore them anyway.
3022 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
3024         regex: trim module dependencies
3025         * modules/regex (Depends-on): Remove gettext-h and lock,
3026         since the regex code should work OK without these modules,
3027         and Emacs uses it that way.  Also remove memcmp, memmove,
3028         and wctype, as these modules are obsolete and should not be
3029         needed any more.
3031 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
3033         regex: glibc does not use intprops.h
3034         Maybe we can talk glibc into using intprops.h someday, but
3035         now doesn’t seem to be a good time.
3036         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
3037         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
3038         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
3040 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
3042         regex: port to recently proposed glibc regex merge
3043         This patch is inspired by Adhemerval Zanella's recent proposal
3044         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
3045         to merge glibc and Gnulib regex.  It aims to simplify the merge on
3046         the glibc side, without keeping Gnulib portable.
3047         * lib/regex.h: Fix a problem with glibc installed-header checking,
3048         as follows:
3049         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
3050         (_Restrict_arr_): Prefer __restrict_arr if defined,
3051         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
3052         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
3053         (build_wcs_upper_buffer, build_upper_buffer)
3054         (re_string_translate_buffer, re_string_context_at):
3055         Move decls here from lib/regex_internal.h, for glibc internal tests.
3056         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
3057         glibc BZ #18496.
3058         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
3059         -Wunused-value.
3060         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
3061         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
3062         (bitset_mask): Now static inline, and without any __attribute__
3063         ((unused)) decoration, for glibc internal tests.
3065 2018-06-25  Bruno Haible  <bruno@clisp.org>
3067         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
3068         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
3069         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
3070         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
3071         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
3072         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
3073         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
3074         / -lthread / -lpth does not get optimized away by a preceding
3075         --as-needed option.
3077 2018-06-25  Bruno Haible  <bruno@clisp.org>
3079         Continue to use spaces for indentation, not tabs.
3080         * MODULES.html.sh: Untabify.
3081         * doc/regex.texi: Likewise.
3082         * lib/acl-internal.c: Likewise.
3083         * lib/dfa.c: Likewise.
3084         * lib/exclude.c: Likewise.
3085         * lib/exclude.h: Likewise.
3086         * lib/get-permissions.c: Likewise.
3087         * lib/gettimeofday.c: Likewise.
3088         * lib/parse-datetime.y: Likewise.
3089         * lib/pselect.c: Likewise.
3090         * lib/set-permissions.c: Likewise.
3091         * lib/time.in.h: Likewise.
3092         * m4/canonicalize.m4: Likewise.
3093         * m4/gc.m4: Likewise.
3094         * m4/gnulib-common.m4: Likewise.
3095         * m4/pthread_sigmask.m4: Likewise.
3096         * m4/vararrays.m4: Likewise.
3097         * tests/test-digest.h: Likewise.
3098         * tests/test-fcntl-h.c: Likewise.
3099         * tests/test-timespec.c: Likewise.
3100         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
3102 2018-06-25  Bruno Haible  <bruno@clisp.org>
3104         manywarnings: Don't enable -Wjump-misses-init warnings by default.
3105         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
3106         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
3107         -Wjump-misses-init.
3109 2018-06-25  Jim Meyering  <meyering@fb.com>
3111         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
3112         * lib/acl-internal.h (free_permission_context): Remove that
3113         attribute directive.  Otherwise, it would provoke this from GCC 9:
3114         lib/acl-internal.h:300:3: error: 'const' attribute on function \
3115           returning 'void' [-Werror=attributes]
3117 2018-06-24  Jim Meyering  <meyering@fb.com>
3119         parse-datetime: accommodate gcc-4.8.5
3120         Bruno Haible reported the build failure in
3121         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
3122         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
3123         on declaration of new local.
3125 2018-06-24  Bruno Haible  <bruno@clisp.org>
3127         af_alg: Fail in continuable manner on Linux/powerpc64le.
3128         Reported by Assaf Gordon <assafgordon@gmail.com>
3129         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
3130         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
3131         byte send() as the first round.
3133 2018-06-24  Bruno Haible  <bruno@clisp.org>
3135         af_alg: Fix state of stream after sendfile() succeeds.
3136         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
3137         the stream is correctly positioned afterwards.
3138         * modules/crypto/af_alg (Depends-on): Add fflush.
3139         * tests/test-digest.h (test_digest_on_files): Verify that after the
3140         operation the stream is positioned at end of file.
3142 2018-06-24  Jim Meyering  <meyering@fb.com>
3144         canon-host: take GCC9's advice rather than ignoring warning
3145         Pádraig Brady suggested not to ignore this GCC9 advice.
3146         * lib/canon-host.c: Undo preceding change.
3147         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
3149         parse-datetime.y: avoid spurious GCC 9 warning
3150         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
3151         a function local prior to the first "goto fail".  The prior use would
3152         evoke this:
3153         parse-datetime.y: In function 'parse_datetime2':
3154         parse-datetime.y:1791:19: error: jump skips variable initialization \
3155           [-Werror=jump-misses-init]
3156         parse-datetime.y:2385:2: note: label 'fail' defined here
3157         parse-datetime.y:188:43: note: '({anonymous})' declared here
3158         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
3160         canon-host.c: avoid spurious GCC 9 warning
3161         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
3163         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
3164         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
3165         * m4/manywarnings.m4: Remove them.
3166         Otherwise, building coreutils, I would see this:
3167         cc1: error: deprecated command line option '-Wchkp' [-Werror]
3168         cc1: error: -Wabi won't warn about anything [-Werror=abi]
3169         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
3170           which is also used by default
3171         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
3173 2018-06-24  Bruno Haible  <bruno@clisp.org>
3175         af_alg tests: Add another test.
3176         * tests/test-digest.h (test_digest_on_files): Also check a large file
3177         with a skipped header.
3178         * tests/test-md5.c: Include macros.h.
3179         * tests/test-sha1.c: Likewise.
3180         * tests/test-sha256.c: Likewise.
3181         * tests/test-sha512.c: Likewise.
3182         * modules/crypto/md5-tests (Files): Add tests/macros.h.
3183         * modules/crypto/sha1-tests (Files): Likewise.
3184         * modules/crypto/sha256-tests (Files): Likewise.
3185         * modules/crypto/sha512-tests (Files): Likewise.
3187 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3189         maint: clarify comments about sticky EOF
3190         * lib/af_alg.c: Be more direct that we can't
3191         assume stickiness of EOF for portability reasons.
3192         * lib/md5.c: Clarify that this isn't just a glibc issue.
3193         * lib/sha1.c: Likewise.
3194         * lib/sha256.c: Likewise.
3195         * lib/sha512.c: Likewise.
3197 2018-06-24  Bruno Haible  <bruno@clisp.org>
3199         af_alg: Comment and style improvements.
3200         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
3201         (afalg_buffer, afalg_stream): Improve comments.
3203 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3205         af_alg: disable kernel hash functions by default
3206         All the kernel routines were seen to be significantly slower
3207         with these relatively recent components on an i3-2310M system:
3208           kernel-4.10.6-200.fc25.x86_64
3209           openssl-1.0.2m-1.fc25.x86_64
3210         sha1 was nearly twice as slow in the kernel for example.
3211         Further considerations why this should not be the default, at:
3212         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
3214         * m4/af_alg.m4: Require --with-linux-crypto to enable.
3215         * m4/gl-openssl.m4: Tweak accordingly.
3217 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3219         af_alg: avoid hangs when reading from streams
3220         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
3221         and thus avoid doing a fread() when feof() is set.
3222         * lib/md5.c: Ensure feof() is called before fread().
3223         * lib/sha1.c: Likewise.
3224         * lib/sha256.c: Likewise.
3225         * lib/sha512.c: Likewise.
3227 2018-06-24  Pádraig Brady  <P@draigBrady.com>
3229         af_alg: fix error handling when hash not returned
3230         * lib/af_alg.c (afalg_stream): Handle the case where we've
3231         successfully written data to the kernel in the read/write loop,
3232         but the kernel doesn't respond with the hash.
3234 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
3236         libc-config: merge from glibc
3237         * lib/cdefs.h (__inline, __restrict):
3238         Copy from current glibc.  This fixes glibc bug 17721,
3239         which Gnulib had already fixed in a different way.
3240         (__nonnull): Lessen the distance from glibc by using the
3241         glibc definition inside an ‘#ifndef __nonnull’.
3242         (__attribute_nonstring__): New macro, copied from
3243         current glibc.
3244         * lib/libc-config.h (__attribute_nonstring__): New undef.
3245         (__restrict): Remove; workaround no longer needed.
3246         Keep the __inline workaround, though, as it uses HAVE___INLINE to
3247         support more compilers than the glibc __inline can.
3249 2018-06-24  Bruno Haible  <bruno@clisp.org>
3251         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
3252         * lib/mbrtowc.c (enc_t): New enum type.
3253         (locale_enc, locale_enc_cached): New functions.
3254         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
3255         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
3256         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
3257         instead.
3258         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
3259         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
3260         * modules/wcwidth (configure.ac): Invoke it.
3262 2018-06-24  Bruno Haible  <bruno@clisp.org>
3264         wchar-single: Fix test failure in wcwidth tests.
3265         * tests/test-wcwidth.c (main): If the wchar-single module is present,
3266         skip the tests in the C locale.
3268 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3270         crypto: mention --without-linux-crypto in --with-openssl --help
3271         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
3272         routines take precedence in --with-openssl help output.
3274 2018-06-23  Pádraig Brady  <P@draigBrady.com>
3276         wchar-single: a new module to enable optimizations in wchar replacements
3277         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
3278         GNULIB_WCHAR_SINGLE is enabled.
3279         * lib/wcwidth.c (wcwidth): Likewise.
3281 2018-06-23  Bruno Haible  <bruno@clisp.org>
3283         libc-config: Fix conflict with FreeBSD include files.
3284         * lib/cdefs.h (__nonnull): Remove definition.
3285         * lib/libc-config.h (__nonnull): Remove undefinition.
3287 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3289         random_r: do not crash if state is unaligned
3290         Problem reported by Bruce Korb in:
3291         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
3292         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
3293         with 'cc -O2 -xmemalign=8s'.
3294         * lib/random_r.c: Include string.h, for memcpy.
3295         (get_int32, set_int32): New functions.
3296         (__srandom_r, __initstate_r, __setstate_r, __random_r):
3297         Use them to avoid assumption that state pointer is aligned.
3298         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
3299         * tests/test-random_r.c (test_failed): New function.
3300         (main): Use it, to test for alignment bugs.
3302         random_r: omit unnecessary include
3303         * lib/random_r.c: Do not include limits.h.
3305         random, random_r: merge from glibc
3306         * lib/random.c, lib/random_r.c:
3307         Include libc-config.h if !_LIBC, not config.h unilaterally.
3308         * lib/random.c:
3309         Do not include stdint.h or time.h; not needed.
3310         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
3311         (unsafe_state): Rename from generator.  All uses changed.
3312         Use C99-style initializers.
3313         (__random, __srandom, __initstate, __setstate): Rename from
3314         non-underscored version, but define it to non-underscored version
3315         on Gnulib.  Add a lock.
3316         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
3317         Likewise.
3318         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
3319         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
3320         (__srandom_r): Use int32_t instead of long int where int32_t will do.
3321         (__random_r): Use uint32 to fix glibc bug 17343.
3322         * modules/random, modules/random_r (Depends-on): Add libc-config.
3323         Depend on stdint only if $HAVE_RANDOM = 0.
3325 2018-06-19  Jim Meyering  <meyering@fb.com>
3327         README-release: also run any check-very-expensive tests
3328         * top/README-release: Adjust instructions so they run the
3329         check-very-expensive tests when there is such a target.
3331 2018-06-18  Bruno Haible  <bruno@clisp.org>
3333         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
3334         * m4/pthread_rwlock_rdlock.m4: Add comment.
3335         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
3336         are reader-preferring in glibc.
3337         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
3338         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
3340 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3342         crypto: use byteswap
3343         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3344         * lib/sm3.c: Include <byteswap.h>.
3345         (SWAP): Use its macros rather than reinventing the wheel.
3346         * modules/crypto/md4, modules/crypto/md5-buffer:
3347         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
3348         * modules/crypto/sha512-buffer, modules/crypto/sm3:
3349         (Depends-on): Add byteswap.
3351 2018-06-17  Pádraig Brady  <P@draigBrady.com>
3353         gendocs.sh: fix support for legacy --texi2html
3354         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
3355         to the default makeinfo invocation.
3356         Reported by Bruce Korb
3358 2018-06-17  Bruno Haible  <bruno@clisp.org>
3360         gettext po infrastructure: Update from current gettext git.
3361         Reported by Akim Demaille <akim@lrde.epita.fr>.
3362         * build-aux/po/Makefile.in.in: Update from current gettext git.
3363         * build-aux/po/remove-potcdate.sin: Likewise.
3364         * config/srclist.txt: Temporarily disable sync for these files.
3366 2018-06-17  Bruno Haible  <bruno@clisp.org>
3368         getloadavg: Return 0 on Windows without Cygwin.
3369         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
3371 2018-06-17  Paul Smith  <psmith@gnu.org>
3373         getloadavg: Allow building on Windows without Cygwin
3374         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
3375         * m4/getloadavg.m4: Check for unistd.h.
3377 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
3379         Port crypto/af_alg to GCC 4.8.4
3380         Problem reported by Peter Simons in:
3381         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
3382         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
3384 2018-05-27  Colin Watson  <cjwatson@debian.org>
3386         bootstrap: document source fetching in --help
3387         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
3389 2018-04-09  Colin Watson  <cjwatson@debian.org>
3391         bootstrap: allow non-submodule control of gnulib
3392         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
3393         bootstrap.conf when fetching gnulib using "git clone" or via
3394         GNULIB_SRCDIR.
3396 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
3398         crypto: omit stream ops Emacs doesn’t need
3399         * lib/md5.c (md5_stream):
3400         * lib/sha1.c (sha1_stream):
3401         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
3402         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3403         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
3404         defined.  Emacs needs this, as it does not use the stream
3405         operations and doesn’t need all the af_alg stuff we’ve recently
3406         added.  Perhaps a similar change is needed to the other crypto
3407         modules, but this patch changes only those needed for Emacs.
3408         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
3409         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
3410         New modules, used by Emacs.
3411         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3412         * modules/crypto/sha512: Rewrite to depend on the new modules.
3414 2018-05-20  Pádraig Brady  <P@draigBrady.com>
3416         fts: avoid a memory leak edge case
3417         * lib/fts.c (fts_open): Set an appropriate fts_level
3418         so that an immediate fts_close() will free the allocation.
3419         * tests/test-fts.c (fts_dealloc): Add a test case which
3420         will trigger under valgrind or address sanitizer.
3421         Fixes https://bugs.gnu.org/31439
3423 2018-05-20  Bruno Haible  <bruno@clisp.org>
3425         wcwidth tests: Fix link error.
3426         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
3427         $(LIBUNISTRING).
3429 2018-05-20  Bruno Haible  <bruno@clisp.org>
3431         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
3432         * modules/regex (Files): Add m4/glibc21.m4.
3434 2018-05-20  Bruno Haible  <bruno@clisp.org>
3436         localcharset: Optimize.
3437         * lib/localcharset.c (alias_table): Comment out no-op mappings for
3438         platforms where these don't matter. This reduces the table size,
3439         which in turn reduces the lookup time.
3441 2018-05-19  Bruno Haible  <bruno@clisp.org>
3443         localcharset: Map the locale encodings found in newer OSes.
3444         * lib/localcharset.c (alias_table): Add mapping for locale encodings
3445         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
3446         IRIX 6.5, Minix 3.3.
3447         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
3449 2018-05-19  Bruno Haible  <bruno@clisp.org>
3451         localcharset: Move mapping tables into the code. Use a binary search.
3452         * lib/localcharset.h: Document the GNU canonical names for character
3453         encodings here.
3454         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
3455         relocatable.h, configmake.h.
3456         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
3457         macros.
3458         (charset_aliases): Remove variable.
3459         (get_charset_aliases): Remove function.
3460         (struct table_entry): New type.
3461         (alias_table, locale_table): New constants.
3462         (locale_charset): Use the alias_table or locale_table to get the
3463         canonicalized encoding name.
3464         * lib/config.charset: Remove file.
3465         * lib/ref-add.sin: Remove file.
3466         * lib/ref-del.sin: Remove file.
3467         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
3468         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
3469         * modules/localcharset (Notice): Remove.
3470         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
3471         glibc21.m4.
3472         (Depends-on): Remove configmake.
3473         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
3474         (Makefile.am): Simplify.
3475         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
3477 2018-05-19  Bruno Haible  <bruno@clisp.org>
3479         localcharset: Add a manual test.
3480         * tests/test-localcharset.c: New file.
3481         * modules/localcharset-tests: New file.
3483 2018-05-19  Bruno Haible  <bruno@clisp.org>
3485         localcharset: Remove support for obsolete platforms.
3486         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
3487         Mac OS X 10.2. Comment out dubious entry for Solaris.
3489 2018-05-19  Jim Meyering  <meyering@fb.com>
3491         gnupload: adjust comment
3492         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
3493         more likely we'll remove the just-added code in a year or two.
3495 2018-05-19  Bruno Haible  <bruno@clisp.org>
3497         gnupload: Fix "gpg-agent is not available in this session" error.
3498         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
3500 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
3502         crypto/af_alg: fix --help
3503         * m4/af_alg.m4: Avoid spurious newline in --help output.
3505 2018-05-13  Bruno Haible  <bruno@clisp.org>
3507         nl_langinfo: Fix compilation error on Android.
3508         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
3509         INT_CURR_SYMBOL, etc. only if these items are defined.
3511 2018-05-13  Bruno Haible  <bruno@clisp.org>
3513         truncate: Fix compilation error on Android.
3514         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
3515         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
3516         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
3517         HAVE_TRUNCATE.
3518         * modules/truncate: Likewise.
3519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
3520         not HAVE_TRUNCATE.
3521         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
3522         HAVE_TRUNCATE.
3523         * doc/posix-functions/truncate.texi: Mention the issue.
3525 2018-05-13  Bruno Haible  <bruno@clisp.org>
3527         pthread: Fix compilation error on Android.
3528         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
3529         recursive inclusion of this file.
3531 2018-05-13  Bruno Haible  <bruno@clisp.org>
3533         posix_spawn: Fix compilation error on Android.
3534         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
3535         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
3536         (posix_spawn_file_actions_t): Consider also the case
3537         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
3539 2018-05-13  Bruno Haible  <bruno@clisp.org>
3541         tsearch: Move from K&R C to ANSI C.
3542         * lib/tsearch.c (tfind): Convert definition to ANSI C.
3544 2018-05-13  Bruno Haible  <bruno@clisp.org>
3546         tsearch: Fix compilation error on Android.
3547         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
3548         is 0.
3549         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
3550         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
3551         GNULIB_defined_tsearch is true.
3552         (twalk): Define only if GNULIB_defined_twalk is true.
3553         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
3554         is 0.
3555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
3556         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
3557         * modules/search (Makefile.am): Substitute HAVE_TWALK.
3559 2018-05-13  Bruno Haible  <bruno@clisp.org>
3561         imaxdiv: Fix compilation error on Android.
3562         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
3563         is not defined.
3564         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
3565         HAVE_DECL_IMAXDIV, is 0.
3566         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
3567         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
3569 2018-05-13  Bruno Haible  <bruno@clisp.org>
3571         Support selective inclusion mechanism of recent mingw.org header files.
3572         Reported by Eli Zaretskii <eliz@gnu.org>.
3573         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
3574         __need_ssize_t, or __need_time_t is defined, just include the system's
3575         <sys/types.h>.
3576         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
3577         include the system's <locale.h>.
3579 2018-05-13  Bruno Haible  <bruno@clisp.org>
3581         Avoid compilation error due to 'mmap' on Android.
3582         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
3583         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
3584         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
3585         Undefine on Android.
3587 2018-05-13  Bruno Haible  <bruno@clisp.org>
3589         Add cross-compilation guesses for Linux systems without glibc.
3590         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
3591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
3592         * m4/link.m4 (gl_FUNC_LINK): Likewise.
3593         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3594         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
3595         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
3596         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3597         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3598         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
3599         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
3600         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
3601         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
3602         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
3603         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3604         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3605         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
3606         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3607         * m4/utimens.m4 (gl_UTIMENS): Likewise.
3609 2018-05-13  Bruno Haible  <bruno@clisp.org>
3611         getpagesize: Fix compilation error on Android.
3612         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
3613         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
3614         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
3615         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
3616         HAVE_GETPAGESIZE accordingly.
3617         * modules/getcwd (Files): Add m4/getpagesize.m4.
3619 2018-05-13  Bruno Haible  <bruno@clisp.org>
3621         tcgetsid: Fix compilation error on Android.
3622         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
3623         AC_CHECK_FUNC.
3625 2018-05-13  Bruno Haible  <bruno@clisp.org>
3627         getpass: Fix configure test for Android.
3628         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
3629         AC_CHECK_FUNC.
3631 2018-05-13  Bruno Haible  <bruno@clisp.org>
3633         ffs: Fix compilation error on Android.
3634         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
3636 2018-05-13  Bruno Haible  <bruno@clisp.org>
3638         mkfifo: Fix compilation error on Android.
3639         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
3640         AC_CHECK_FUNC.
3642 2018-05-13  Bruno Haible  <bruno@clisp.org>
3644         c-strtod: Fix configure test for Android.
3645         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
3646         AC_CHECK_FUNC.
3648 2018-05-13  Bruno Haible  <bruno@clisp.org>
3650         random: Fix compilation error on Android.
3651         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
3652         AC_CHECK_FUNC.
3654 2018-05-13  Bruno Haible  <bruno@clisp.org>
3656         grantpt: Fix compilation error on Android.
3657         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
3658         AC_CHECK_FUNC.
3660 2018-05-13  Bruno Haible  <bruno@clisp.org>
3662         stdioext: Fix compilation errors with newer Android headers.
3663         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
3664         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
3665         fallbacks for Android.
3666         * lib/fpending.c: Update comments.
3667         * lib/fpurge.c: Likewise.
3668         * lib/freadable.h: Likewise.
3669         * lib/freadable.c: Likewise.
3670         * lib/freadahead.c: Likewise.
3671         * lib/freading.h: Likewise.
3672         * lib/freadptr.c: Likewise.
3673         * lib/fseterr.c: Likewise.
3674         * lib/fwritable.h: Likewise.
3675         * lib/fwritable.c: Likewise.
3676         * lib/fwriting.h: Likewise.
3677         * lib/fwriting.c: Likewise.
3679 2018-05-13  Bruno Haible  <bruno@clisp.org>
3681         doc: Add info about Android versions 2.0 to 8.1.
3682         * doc/**/*.texi: Add info about functions in all released versions of
3683         Bionic.
3685 2018-05-12  Bruno Haible  <bruno@clisp.org>
3687         fseeko: On mingw, don't use the hidden function _fseeki64.
3688         Reported by Eli Zaretskii <eliz@gnu.org>.
3689         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
3690         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
3692 2018-05-12  Bruno Haible  <bruno@clisp.org>
3694         glob: Choose 'dirent_type' in a way that works better on mingw.
3695         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
3696         * lib/glob.c (dirent_type): Define as uint_fast32_t.
3698 2018-05-12  Bruno Haible  <bruno@clisp.org>
3700         execute, spawn-pipe: Avoid warning about redefining 'close'.
3701         Reported by Eli Zaretskii <eliz@gnu.org>.
3702         * lib/execute.c: Undefine 'close' before redefining it.
3703         * lib/spawn-pipe.c: Likewise.
3705 2018-05-12  Bruno Haible  <bruno@clisp.org>
3707         nanosleep: Avoid test failure on mingw when it has nanosleep.
3708         Reported by Eli Zaretskii <eliz@gnu.org>.
3709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
3710         If it does not exist, use a simpler test program that does not call
3711         alarm().
3713 2018-05-10  Bruno Haible  <bruno@clisp.org>
3715         lock, cond, thread, tls: Use a different symbol as libpthread witness.
3716         Reported by Devin Hussey <husseydevin@gmail.com>.
3717         Based on a patch by Paul Eggert.
3718         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
3719         as witness of libpthread.
3720         * lib/glthread/cond.h (pthread_in_use): Likewise.
3721         * lib/glthread/thread.h (pthread_in_use): Likewise.
3722         * lib/glthread/tls.h (pthread_in_use): Likewise.
3724 2018-05-10  Bruno Haible  <bruno@clisp.org>
3726         cond tests: Fix compilation error on Solaris.
3727         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
3728         macro.
3730 2018-05-10  Bruno Haible  <bruno@clisp.org>
3732         doc: Add partial info about Android 4.3.
3733         * doc/*-functions/*.texi: Add info about functions that were added
3734         to Bionic between Android 4.3 and Android 9.0.
3736 2018-05-10  Bruno Haible  <bruno@clisp.org>
3738         doc: Add info about Android 9.0.
3739         * doc/**/*.texi: Add info about functions and headers in Bionic from
3740         Android 9.0.
3742 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
3744         af_alg: fix my typo in afalg_buffer
3745         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
3746         (afalg_stream): Simplify and avoid the need for a runtime test
3747         at the end.
3749         af_alg: recover better from crypto failures
3750         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
3751         input stream is seekable, by repositioning the stream back to
3752         where it was, possibly by just calling sendfile with an offset
3753         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
3754         cases, which lets our callers try again with user-mode code.
3755         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
3756         instead of on fflush and lseek.
3758         af_alg: distiguish I/O errors better
3759         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
3760         not -EIO, if it’s OK for the caller to try again with user-mode code.
3761         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
3762         some other error number) if fflush fails, as the caller should not
3763         try again that case.
3765         af_alg: avoid gotos
3766         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
3767         gotos, as they were a source of unreliability and made the code a
3768         bit harder to follow.
3770         af_alg: don’t leak file descriptors into children
3771         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
3772         This code should be compiled only on recent GNU/Linux platforms
3773         so we shouldn’t have to also depend on the accept4 module.
3775         af_alg: coalesce socket creation
3776         * lib/af_alg.c (alg_socket): New function.
3777         (afalg_buffer, afalg_stream): Use it.  This avoids some
3778         code duplication and gotos.
3780         af_alg: fix file descriptor leak
3781         * lib/af_alg.c (afalg_stream): Close leak.
3783         af_alg: Pacify --enable-gcc-warnings on GCC 8
3784         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
3785         and checking to pacify gcc -Wjump-misses-init on GCC 8.
3787 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3789         af_alg: Pacify --enable-gcc-warnings
3790         Problem reported by Assaf Gordon in:
3791         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
3792         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
3793         gcc -Wjump-misses-init.
3794         * lib/sha512.c (shaxxx_stream): Now static.
3796 2018-05-06  Bruno Haible  <bruno@clisp.org>
3798         af_alg: Add ability to use Linux kernel crypto API on data in memory.
3799         * lib/af_alg.h (afalg_buffer): New declaration.
3800         * lib/af_alg.c (afalg_buffer): New function.
3802 2018-05-06  Bruno Haible  <bruno@clisp.org>
3804         af_alg: Avoid warnings.
3805         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
3806         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
3808 2018-05-06  Bruno Haible  <bruno@clisp.org>
3810         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
3811         * tests/bench-digest.h: New file.
3812         * tests/bench-md5.c: New file.
3813         * tests/bench-sha1.c: New file.
3814         * tests/bench-sha224.c: New file.
3815         * tests/bench-sha256.c: New file.
3816         * tests/bench-sha384.c: New file.
3817         * tests/bench-sha512.c: New file.
3818         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
3819         tests/bench-digest.h.
3820         (Depends-on): Add getrusage, gettimeofday.
3821         (Makefile.am): Add variables to build bench-md5.
3822         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
3823         tests/bench-digest.h.
3824         (Depends-on): Add getrusage, gettimeofday.
3825         (Makefile.am): Add variables to build bench-sha1.
3826         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
3827         tests/bench-sha256.c, tests/bench-digest.h.
3828         (Depends-on): Add getrusage, gettimeofday.
3829         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
3830         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
3831         tests/bench-sha512.c, tests/bench-digest.h.
3832         (Depends-on): Add getrusage, gettimeofday.
3833         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
3835 2018-05-06  Bruno Haible  <bruno@clisp.org>
3837         af_alg: Fix a resource leak.
3838         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
3839         New local variable 'result'.
3841 2018-05-06  Bruno Haible  <bruno@clisp.org>
3843         af_alg: Fix bug with streams that are not at position 0.
3844         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
3845         assume that the stream is positioned at position 0.
3846         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
3847         of the stream.
3848         * lib/md5.h (md5_stream): Likewise.
3849         * lib/sha1.h (sha1_stream): Likewise.
3850         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
3851         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
3852         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
3854         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
3855         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
3856         stream that is not positioned at the beginning.
3858 2018-05-06  Bruno Haible  <bruno@clisp.org>
3860         af_alg: Add configure option to enable/disable use of Linux crypto API.
3861         Suggested by Assaf Gordon <assafgordon@gmail.com>.
3862         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
3863         USE_LINUX_CRYPTO_API.
3864         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
3865         * lib/af_alg.c: Likewise.
3867 2018-05-06  Bruno Haible  <bruno@clisp.org>
3869         Followup to 'af_alg: New module.'.
3870         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
3871         * modules/crypto/sha1 (Depends-on): Likewise.
3872         * modules/crypto/sha256 (Depends-on): Likewise.
3873         * modules/crypto/sha512 (Depends-on): Likewise.
3875 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3877         crypto/{md5,sha1,sha256,sha512}: simplify
3878         * lib/md5.c (md5_stream):
3879         * lib/sha1.c (sha1_stream):
3880         * lib/sha256.c (shaxxx_stream):
3881         Simplify, partly by assuming C99.
3882         * lib/sha256.c (shaxxx_stream):
3883         New function, which implements both sha256 and sha224.
3884         Simplify, partly by assuming C99.
3885         (sha256_stream, sha224_stream):
3886         Use it to avoid code duplication, removing a FIXME.
3887         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
3888         Likewise.
3890         af_alg: Improve comments.
3891         * lib/af_alg.h: Use imperatives and tighten up wording.
3893 2018-05-05  Bruno Haible  <bruno@clisp.org>
3895         af_alg: Improve comments.
3896         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
3898 2018-05-05  Bruno Haible  <bruno@clisp.org>
3900         af_alg: New module.
3901         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
3902         * lib/af_alg.c: Include "af_alg.h" before the other header files.
3903         * lib/md5.c: Include "af_alg.h" unconditionally.
3904         (md5_stream): Invoke afalg_stream unconditionally.
3905         * lib/sha1.c: Include "af_alg.h" unconditionally.
3906         (sha1_stream): Invoke afalg_stream unconditionally.
3907         * lib/sha256.c: Include "af_alg.h" unconditionally.
3908         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
3909         * lib/sha512.c: Include "af_alg.h" unconditionally.
3910         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
3911         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
3912         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
3913         * modules/crypto/af_alg: New file.
3914         * modules/crypto/md5 (Files): Remove files that are now in the
3915         'crypto/af_alg' module.
3916         (Depends-on): Add crypto/af_alg.
3917         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3918         (Makefile.am): Don't mention af_alg.c here.
3919         * modules/crypto/sha1 (Files): Remove files that are now in the
3920         'crypto/af_alg' module.
3921         (Depends-on): Add crypto/af_alg.
3922         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3923         (Makefile.am): Don't mention af_alg.c here.
3924         * modules/crypto/sha256 (Files): Remove files that are now in the
3925         'crypto/af_alg' module.
3926         (Depends-on): Add crypto/af_alg.
3927         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3928         (Makefile.am): Don't mention af_alg.c here.
3929         * modules/crypto/sha512 (Files): Remove files that are now in the
3930         'crypto/af_alg' module.
3931         (Depends-on): Add crypto/af_alg.
3932         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
3933         (Makefile.am): Don't mention af_alg.c here.
3935 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3937         crypto tests: pacify GCC
3938         * tests/test-digest.h (test_digest_on_files):
3939         Don’t assume digest size fits in int (!).
3941         af_alg: minor style improvements
3942         * lib/af_alg.c (afalg_stream): Prefer C99 style
3943         decl-after-statement, since we’re already assuming C99.  Clarify
3944         by strengthening the bind test and omit unnecessary assignment.
3946 2018-05-05  Bruno Haible  <bruno@clisp.org>
3948         af_alg: Fix bug on empty files.
3949         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
3950         stream is empty.
3952 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3954         sys-limits.h: new file for crypto and safe I/O
3955         * lib/af_alg.c: Include sys-limits.h.
3956         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
3957         (afalg_stream): Also reject negative sizes for sendfile; they
3958         should not happen and the code is a bit cleaner and faster this way.
3959         * lib/safe-read.c: Include sys-limits.h.
3960         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
3961         * lib/sys-limits.h: New file, with values and commentary derived
3962         from the old safe-read.c and from GNU Emacs sysdep.c.
3963         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3964         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
3965         Add lib/sys-limits.h to Files section.
3967 2018-05-05  Bruno Haible  <bruno@clisp.org>
3969         af_alg: Improve function signature.
3970         * lib/af_alg.h (afalg_stream): Swap second and third argument.
3971         * lib/af_alg.c (afalg_stream): Likewise.
3972         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
3974 2018-05-05  Bruno Haible  <bruno@clisp.org>
3976         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
3977         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
3978         * modules/crypto/sha1 (Depends-on): Likewise.
3979         * modules/crypto/sha256 (Depends-on): Likewise.
3980         * modules/crypto/sha512 (Depends-on): Likewise.
3982 2018-05-05  Bruno Haible  <bruno@clisp.org>
3984         crypto/{md5,sha1,sha256,sha512}: Fix module description.
3985         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
3986         * modules/crypto/sha1 (Depends-on): Likewise.
3987         * modules/crypto/sha256 (Depends-on): Likewise.
3988         * modules/crypto/sha512 (Depends-on): Likewise.
3990 2018-05-05  Bruno Haible  <bruno@clisp.org>
3992         af_alg: Add documentation.
3993         * lib/af_alg.h: Add comments.
3995 2018-05-05  Bruno Haible  <bruno@clisp.org>
3997         sha512: Add tests.
3998         * tests/test-sha512.c: New file.
3999         * modules/crypto/sha512-tests: New file.
4001 2018-05-05  Bruno Haible  <bruno@clisp.org>
4003         sha256: Add tests.
4004         * tests/test-sha256.c: New file.
4005         * modules/crypto/sha256-tests: New file.
4007 2018-05-05  Bruno Haible  <bruno@clisp.org>
4009         sha1 tests: Add test for sha1_stream.
4010         * tests/test-sha1.c: Include test-digest.h.
4011         (main): Invoke test_digest_on_files on 'sha1_stream'.
4012         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
4014 2018-05-05  Bruno Haible  <bruno@clisp.org>
4016         md5 tests: Add test for md5_stream.
4017         * tests/test-digest.h: New file.
4018         * tests/test-md5.c: Include test-digest.h.
4019         (main): Invoke test_digest_on_files on 'md5_stream'.
4020         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
4022 2018-04-28  Matteo Croce  <mcroce@redhat.com>
4024         md5sum: Use AF_ALG when available.
4025         * lib/md5.c: Include af_alg.h.
4026         (md5_stream): Use afalg_stream when available.
4027         * modules/crypto/md5 (Files): Add the af_alg files.
4028         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
4029         (Makefile.am): Add af_alg.c.
4031 2018-04-28  Matteo Croce  <mcroce@redhat.com>
4033         sha512sum: Use AF_ALG when available.
4034         * lib/sha512.c: Include af_alg.h.
4035         (sha512_stream, sha384_stream): Use afalg_stream when available.
4036         * modules/crypto/sha512 (Files): Add the af_alg files.
4037         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
4038         (Makefile.am): Add af_alg.c.
4040 2018-04-28  Matteo Croce  <mcroce@redhat.com>
4042         sha256sum: Use AF_ALG when available.
4043         * lib/sha256.c: Include af_alg.h.
4044         (sha256_stream, sha224_stream): Use afalg_stream when available.
4045         * modules/crypto/sha256 (Files): Add the af_alg files.
4046         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
4047         (Makefile.am): Add af_alg.c.
4049 2018-04-28  Matteo Croce  <mcroce@redhat.com>
4051         sha1sum: Use AF_ALG when available.
4052         * lib/af_alg.h: New file.
4053         * lib/af_alg.c: New file.
4054         * lib/sha1.c: Include af_alg.h.
4055         (sha1_stream): Use afalg_stream when available.
4056         * m4/linux-if-alg.m4: New file.
4057         * modules/crypto/sha1 (Files): Add the new files.
4058         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
4059         (Makefile.am): Add af_alg.c.
4061 2018-05-05  Bruno Haible  <bruno@clisp.org>
4063         all: Replace more http URLs by https URLs.
4064         * lib/localename.c: Use https: URL.
4065         * lib/timespec.h: Likewise.
4067 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
4069         maint: port more modules to GCC 8
4070         * lib/dirname.h (base_name):
4071         * lib/exclude.h (new_exclude):
4072         * lib/xstrndup.h (xstrndup):
4073         Add malloc attribute.
4074         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
4075         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
4076         This pacifies GCC 8.
4077         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4078         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
4080 2018-05-03  Bruno Haible  <bruno@clisp.org>
4082         Simplify code. Drop support for Borland C++ on Windows.
4083         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
4084         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
4085         'defined _WIN32'.
4086         * lib/canonicalize-lgpl.c: Likewise.
4087         * lib/classpath.c: Likewise.
4088         * lib/clean-temp.c: Likewise.
4089         * lib/csharpexec.c: Likewise.
4090         * lib/ctime.c: Likewise.
4091         * lib/dosname.h: Likewise.
4092         * lib/dup2.c: Likewise.
4093         * lib/errno.in.h: Likewise.
4094         * lib/error.c: Likewise.
4095         * lib/euidaccess.c: Likewise.
4096         * lib/execute.c: Likewise.
4097         * lib/fcntl.in.h: Likewise.
4098         * lib/fcntl.c: Likewise.
4099         * lib/filename.h: Likewise.
4100         * lib/findprog.c: Likewise.
4101         * lib/flock.c: Likewise.
4102         * lib/fopen.c: Likewise.
4103         * lib/freopen.c: Likewise.
4104         * lib/fstat.c: Likewise.
4105         * lib/fsync.c: Likewise.
4106         * lib/gc-gnulib.c: Likewise.
4107         * lib/get-rusage-data.c: Likewise.
4108         * lib/getaddrinfo.c: Likewise.
4109         * lib/getdelim.c: Likewise.
4110         * lib/getdtablesize.c: Likewise.
4111         * lib/gethostname.c: Likewise.
4112         * lib/getlogin.c: Likewise.
4113         * lib/getlogin_r.c: Likewise.
4114         * lib/getopt.c: Likewise.
4115         * lib/getpagesize.c: Likewise.
4116         * lib/getpass.c: Likewise.
4117         * lib/getrusage.c: Likewise.
4118         * lib/gettimeofday.c: Likewise.
4119         * lib/glob.c: Likewise.
4120         * lib/inttypes.in.h: Likewise.
4121         * lib/isapipe.c: Likewise.
4122         * lib/javaexec.c: Likewise.
4123         * lib/link.c: Likewise.
4124         * lib/localcharset.c: Likewise.
4125         * lib/localename.h: Likewise.
4126         * lib/localename.c: Likewise.
4127         * lib/localtime.c: Likewise.
4128         * lib/lseek.c: Likewise.
4129         * lib/mbsinit.c: Likewise.
4130         * lib/mkdir.c: Likewise.
4131         * lib/msvc-nothrow.h: Likewise.
4132         * lib/nanosleep.c: Likewise.
4133         * lib/nl_langinfo.c: Likewise.
4134         * lib/nonblocking.c: Likewise.
4135         * lib/nproc.c: Likewise.
4136         * lib/open.c: Likewise.
4137         * lib/openpty.c: Likewise.
4138         * lib/pathmax.h: Likewise.
4139         * lib/pipe-filter-aux.c: Likewise.
4140         * lib/pipe-filter-gi.c: Likewise.
4141         * lib/pipe-filter-ii.c: Likewise.
4142         * lib/pipe.c: Likewise.
4143         * lib/pipe2.c: Likewise.
4144         * lib/poll.c: Likewise.
4145         * lib/popen.c: Likewise.
4146         * lib/posix_openpt.c: Likewise.
4147         * lib/printf-parse.c: Likewise.
4148         * lib/progreloc.c: Likewise.
4149         * lib/putenv.c: Likewise.
4150         * lib/read.c: Likewise.
4151         * lib/relocatable.c: Likewise.
4152         * lib/rename.c: Likewise.
4153         * lib/same-inode.h: Likewise.
4154         * lib/secure_getenv.c: Likewise.
4155         * lib/select.c: Likewise.
4156         * lib/sethostname.c: Likewise.
4157         * lib/setlocale.c: Likewise.
4158         * lib/sigaction.c: Likewise.
4159         * lib/sigprocmask.c: Likewise.
4160         * lib/sleep.c: Likewise.
4161         * lib/spawn-pipe.h: Likewise.
4162         * lib/spawn-pipe.c: Likewise.
4163         * lib/spawni.c: Likewise.
4164         * lib/stat-time.h: Likewise.
4165         * lib/stat-w32.c: Likewise.
4166         * lib/stat.c: Likewise.
4167         * lib/stdio.in.h: Likewise.
4168         * lib/stdio-impl.h: Likewise.
4169         * lib/stdio-read.c: Likewise.
4170         * lib/stdio-write.c: Likewise.
4171         * lib/stdlib.in.h: Likewise.
4172         * lib/strerror_r.c: Likewise.
4173         * lib/strftime-fixes.c: Likewise.
4174         * lib/sys_stat.in.h: Likewise.
4175         * lib/sys_types.in.h: Likewise.
4176         * lib/sys_wait.in.h : Likewise.
4177         * lib/system-quote.h: Likewise.
4178         * lib/system-quote.c: Likewise.
4179         * lib/tmpdir.c: Likewise.
4180         * lib/tzset.c: Likewise.
4181         * lib/uname.c: Likewise.
4182         * lib/unistd.in.h: Likewise.
4183         * lib/utime.in.h: Likewise.
4184         * lib/utime.c: Likewise.
4185         * lib/utimecmp.c: Likewise.
4186         * lib/utimens.c: Likewise.
4187         * lib/vasnprintf.c: Likewise.
4188         * lib/vma-iter.h: Likewise.
4189         * lib/vma-iter.c: Likewise.
4190         * lib/wait-process.c: Likewise.
4191         * lib/wcsftime.c: Likewise.
4192         * lib/wctype.in.h: Likewise.
4193         * lib/write.c: Likewise.
4194         * tests/nap.h: Likewise.
4195         * tests/test-cloexec.c: Likewise.
4196         * tests/test-dup-safer.c: Likewise.
4197         * tests/test-dup2.c: Likewise.
4198         * tests/test-dup3.c: Likewise.
4199         * tests/test-fcntl.c: Likewise.
4200         * tests/test-get-rusage-data.c: Likewise.
4201         * tests/test-getaddrinfo.c: Likewise.
4202         * tests/test-getlogin.h: Likewise.
4203         * tests/test-isatty.c: Likewise.
4204         * tests/test-localename.c: Likewise.
4205         * tests/test-mbrtowc-w32.c: Likewise.
4206         * tests/test-nonblocking.c: Likewise.
4207         * tests/test-nonblocking-pipe-main.c: Likewise.
4208         * tests/test-nonblocking-socket-main.c: Likewise.
4209         * tests/test-nonblocking-socket.h: Likewise.
4210         * tests/test-pipe.c: Likewise.
4211         * tests/test-pipe2.c: Likewise.
4212         * tests/test-poll.c: Likewise.
4213         * tests/test-pthread_sigmask1.c: Likewise.
4214         * tests/test-select.h: Likewise.
4215         * tests/test-sethostname2.c: Likewise.
4216         * tests/test-sigprocmask.c: Likewise.
4217         * tests/test-spawn-pipe-child.c: Likewise.
4218         * tests/test-stat-time.c: Likewise.
4219         * tests/test-system-quote-main.c: Likewise.
4220         * tests/test-utimens-common.h: Likewise.
4221         * tests/test-wcrtomb-w32.c: Likewise.
4222         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
4223         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
4224         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
4225         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
4226         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
4227         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4228         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4229         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4230         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4231         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
4232         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
4233         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
4234         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4235         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
4236         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
4237         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
4239 2018-05-02  Bruno Haible  <bruno@clisp.org>
4241         localename: Fix test failures on mingw.
4242         * lib/localename.c (gl_locale_name_thread): Remove code specific to
4243         native Windows.
4244         (gl_locale_name_posix): Move code specific to native Windows here.
4245         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
4246         Accept result without charset suffix, as it appears on mingw.
4248 2018-04-28  Paul Smith  <psmith@gnu.org>
4250         bootstrap: Avoid gnulib operations if not needed
4251         * build-aux/bootstrap: Remove unused variable gnulib_mk.
4252         Set $gnulib_extra_files early so it can be overridden in .conf.
4253         Remove redundant --import flag from $gnulib_tool_options.
4254         Set $use_gnulib to false if no gnulib modules or files are needed.
4255         If $use_gnulib is false, don't do anything related to gnulib.
4256         A lot of this is just whitespace (indentation) changes.
4258 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
4260         manywarnings: port to GCC 8.0
4261         * build-aux/gcc-warning.spec: Add -Wcatch-value,
4262         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
4263         fact that the GCC help message now mentions operands for
4264         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
4265         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
4266         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
4267         and -Wunused-const-variable.
4268         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
4269         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
4270         -Wmissing-attributes, -Wmultistatement-macros,
4271         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
4272         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
4274 2018-04-24  Bruno Haible  <bruno@clisp.org>
4276         sys_socket: Make SO_REUSEPORT available across platforms.
4277         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4278         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
4279         * doc/posix-headers/sys_socket.texi: Mention the issue.
4280         * tests/test-poll.c (SO_REUSEPORT): Remove.
4281         * tests/test-select.h: Include <sys/socket.h>.
4282         (SO_REUSEPORT): Remove.
4283         * modules/select-tests (Depends-on): Add 'sys_socket'.
4285 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
4287         localcharset: short-circuit the search for an alias on a Mac
4288         * lib/localcharset.c (get_charset_aliases): Add a tautological
4289         UTF-8 entry to speed up the search for this case.
4290         Most machines default to a UTF-8 locale nowadays, so begin the
4291         list of aliases with a dummy UTF-8 entry so it will be found
4292         immediately and a time-consuming search through the rest of
4293         the list is avoided.
4295 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
4297         fts: add comment
4298         * lib/fts.c (fts_build): Explain why ==, not >.
4299         See remark by Bernhard Voelker in:
4300         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
4302         fts: fix bug in find across filesystems
4303         This fixes a bug I introduced last summer.
4304         Problem reported by Kamil Dudka in:
4305         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
4306         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
4307         (leaf_optimization):
4308         New arg for file descriptor.  All callers changed.
4309         (fts_build): Check for whether inodes should be sorted
4310         before closing the directory.
4312 2018-04-07  Bruno Haible  <bruno@clisp.org>
4314         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
4315         Reported by Genki Sky <sky@genki.is>.
4316         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
4317         version 0.9.10 or newer.
4318         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
4319         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
4320         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
4321         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
4322         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
4324 2018-04-07  Bruno Haible  <bruno@clisp.org>
4326         execute: Update comment.
4327         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
4329 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
4331         fts: treat CIFS like NFS
4332         Problem reported by Kamil Dudka in:
4333         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
4334         * lib/fts.c (S_MAGIC_CIFS): New macro.
4335         (dirent_inode_sort_may_be_useful, leaf_optimization):
4336         Treat CIFS like NFS.
4338 2018-03-28  Bruno Haible  <bruno@clisp.org>
4340         c-stack: Fix possible build failure on some platforms.
4341         * lib/c-stack.c (die): Define whenever this function is referenced.
4343 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
4345         time_rz: fix workaround for Mac OS X 10.6 infloop
4346         Problems reported by Charles A. Roelli (Bug#27736#117).
4347         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
4348         Also, discard output, which clutters the 'configure' log.
4350 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
4352         havelib: port to Solaris 10 /bin/sh
4353         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
4354         instead of '! test EXPR'.
4356 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
4358         time_rz: work around Mac OS X 10.6 infloop
4359         * doc/posix-functions/localtime.texi:
4360         * doc/posix-functions/localtime_r.texi: Mention the bug.
4361         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
4362         better to fix localtime and localtime_r instead, but that would be
4363         more work and is not needed to fix the Emacs problem.
4364         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
4366 2018-03-24  Jim Meyering  <meyering@fb.com>
4368         test-version-etc.sh: don't use diff directly: use init.sh's compare
4369         We'd rather not sacrifice readable "diff -u" output even for
4370         "diff -c" output (not supported by busybox) or for even less
4371         readable ed-style "diff" output.  So use init.sh's compare function
4372         * tests/test-version-etc.sh: Source init.sh and add "." to path.
4373         Remove "./" from invocation of test-version-etc, so we use path.
4374         And s/diff/compare/.
4375         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
4376         to get init.sh.
4377         Prompted by Eric Blake's comments in
4378         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
4380 2018-03-24  Bruno Haible  <bruno@clisp.org>
4382         javacomp-script, javacomp: Add support for Java 10.
4383         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
4384         target-version 10.
4385         * lib/javaversion.h: Update comments.
4386         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4387         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4388         TARGET_VERSION_BOUND, target_version_index,
4389         corresponding_classfile_version): Accept source_version 10 and
4390         target_version 10.
4391         * lib/javacomp.h: Update comments accordingly.
4393 2018-03-24  Bruno Haible  <bruno@clisp.org>
4395         javacomp-script, javacomp: Update comments.
4396         * m4/javacomp.m4: Update comments regarding gcj.
4397         * lib/javacomp.h: Likewise.
4399 2018-03-24  Bruno Haible  <bruno@clisp.org>
4401         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
4402         * lib/javaversion.h: Update comments.
4403         * lib/javacomp.h: Likewise.
4404         * lib/javacomp.c (default_target_version, source_version_index,
4405         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
4406         "1.9".
4407         (TARGET_VERSION_BOUND): Bump to 9.
4408         (target_version_index, corresponding_classfile_version): Recognize "9"
4409         instead of "1.9".
4410         (get_source_version_for_javac): New function.
4411         (is_envjavac_nongcj_usable, is_javac_usable): Add
4412         source_version_for_javac argument.
4413         (compile_java_class): Determine and pass source_version_for_javac.
4414         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
4415         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
4416         appropriate.
4418 2018-03-23  Jim Meyering  <meyering@fb.com>
4420         test-version-etc.sh: port to diff without -c
4421         * tests/test-version-etc.sh: Don't use diff's -c option.
4422         This caused spurious test failure on Alpine Linux, which
4423         uses busybox's diff. Reported by Assaf Gordon in
4424         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
4426 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
4428         c-stack: port to recent GCC build
4429         Problem reported by The Fireplace (Bug#30913).
4430         * lib/c-stack.c (die): Define only if used.
4432 2018-03-20  Bruno Haible  <bruno@clisp.org>
4434         euidaccess: Port to native Windows.
4435         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
4436         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
4438 2018-03-19  Bruno Haible  <bruno@clisp.org>
4440         javacomp: Add support for Java 7, 8, 9.
4441         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
4442         source_version_index, get_goodcode_snippet, get_failcode_snippet,
4443         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
4444         and target_version 1,7, 1.8, 1.9.
4445         * lib/javacomp.h: Update comments accordingly.
4447 2018-03-19  Bruno Haible  <bruno@clisp.org>
4449         javacomp-script: Add support for Java 9.
4450         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
4451         target-version 1.9.
4453 2018-03-16  Bruno Haible  <bruno@clisp.org>
4455         glob: Don't compile replacements on recent glibc systems.
4456         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
4457         REPLACE_GLOB is 0, include the system's <glob.h> and use
4458         _GL_CXXALIAS_SYS.
4459         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
4460         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
4461         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
4462         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
4463         Remove snippet/warn-on-use.
4464         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
4465         (Makefile.am): Create glob.h always. Update list of substitutions in
4466         glob.h. Don't depend on $(WARN_ON_USE_H).
4468 2018-03-16  Bruno Haible  <bruno@clisp.org>
4470         glob: Fix link error on native Windows.
4471         * modules/glob (Depends-on): Add 'lstat'.
4473 2018-03-15  Bruno Haible  <bruno@clisp.org>
4475         glob: Fix compilation error in C++ mode.
4476         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
4478 2018-03-15  Bruno Haible  <bruno@clisp.org>
4480         host-cpu-c-abi: Support for RISC-V CPU.
4481         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
4482         riscv32 and riscv64 ABIs.
4483         References:
4484         https://github.com/riscv/riscv-toolchain-conventions
4485         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
4486         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
4488 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4490         fflush: be more paranoid about libio.h change
4491         Suggested by Eli Zaretskii in:
4492         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
4493         * lib/fbufmode.c (fbufmode):
4494         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4495         (disable_seek_optimization, rpl_fflush):
4496         * lib/fpending.c (__fpending):
4497         * lib/fpurge.c (fpurge):
4498         * lib/freadable.c (freadable):
4499         * lib/freadahead.c (freadahead):
4500         * lib/freading.c (freading):
4501         * lib/freadptr.c (freadptr):
4502         * lib/freadseek.c (freadptrinc):
4503         * lib/fseeko.c (fseeko):
4504         * lib/fseterr.c (fseterr):
4505         * lib/fwritable.c (fwritable):
4506         * lib/fwriting.c (fwriting):
4507         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
4509 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
4511         maint: write-file-hooks -> before-save-hook
4512         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
4513         it's time to use the recommended replacement.
4514         Problem reported by Glenn Morris in:
4515         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
4516         * build-aux/announce-gen, build-aux/bootstrap:
4517         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
4518         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
4519         * build-aux/gnu-web-doc-update, build-aux/gnupload:
4520         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
4521         * build-aux/update-copyright, build-aux/useless-if-before-free:
4522         * build-aux/vc-list-files:
4523         Update hook usage for files where Gnulib is the canonical source.
4525 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
4527         binary-io: pacify gcc -Wunused-parameter
4528         Problem reported by Reuben Thomas in:
4529         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
4530         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
4531         Use _GL_UNUSED where appropriate.
4533         fflush: adjust to glibc 2.28 libio.h removal
4534         Problem reported by Daniel P. Berrangé in:
4535         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
4536         * lib/fbufmode.c (fbufmode):
4537         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
4538         (disable_seek_optimization, rpl_fflush):
4539         * lib/fpending.c (__fpending):
4540         * lib/fpurge.c (fpurge):
4541         * lib/freadable.c (freadable):
4542         * lib/freadahead.c (freadahead):
4543         * lib/freading.c (freading):
4544         * lib/freadptr.c (freadptr):
4545         * lib/freadseek.c (freadptrinc):
4546         * lib/fseeko.c (fseeko):
4547         * lib/fseterr.c (fseterr):
4548         * lib/fwritable.c (fwritable):
4549         * lib/fwriting.c (fwriting):
4550         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
4551         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
4552         Define if not already defined.
4554 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
4556         environ: fix link error on 32-bit Cygwin
4557         Problem reported for GNU Emacs by Ken Brown in:
4558         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
4559         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
4561 2018-02-24  Bruno Haible  <bruno@clisp.org>
4563         mbrtowc tests: Fix regression on glibc.
4564         Reported by Bernhard Voelker.
4565         * tests/test-mbrtowc.c (main): Fix expected value of wc.
4567 2018-02-24  Bruno Haible  <bruno@clisp.org>
4569         striconveha, uniconv/*: Avoid test failures on musl libc.
4570         * tests/iconvsupport.c: New file.
4571         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
4572         does not support the ISO-2022-JP-2 encoding.
4573         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
4574         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
4575         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
4576         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
4577         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
4578         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
4579         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
4580         (Makefile.am): Link test-striconveha with iconvsupport.o.
4581         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
4582         tests/iconvsupport.c.
4583         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
4584         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
4585         tests/iconvsupport.c.
4586         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
4587         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
4588         tests/iconvsupport.c.
4589         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
4590         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
4591         tests/iconvsupport.c.
4592         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
4593         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
4594         tests/iconvsupport.c.
4595         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
4596         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
4597         tests/iconvsupport.c.
4598         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
4600 2018-02-24  Bruno Haible  <bruno@clisp.org>
4602         localename: Add support for musl libc.
4603         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
4604         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
4605         on Linux platforms which define NL_LOCALE_NAME.
4607 2018-02-24  Bruno Haible  <bruno@clisp.org>
4609         mbrtowc tests: Don't make assumptions about the charset the C locale.
4610         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
4611         particular mapping in the C locale.
4613 2018-02-24  Bruno Haible  <bruno@clisp.org>
4615         ptsname_r: Don't expect that this function sets errno.
4616         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
4617         from ptsname_r().
4618         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
4620 2018-02-23  Bruno Haible  <bruno@clisp.org>
4622         xmalloca: pacify gcc -Wbad-function-cast
4623         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
4625 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
4627         nl_langinfo: pacify gcc -Wunused-function
4628         * lib/nl_langinfo.c (ctype_codeset): Do not define if
4629         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
4630         this case.  Without this change, I got a diagnostic when building
4631         coreutils on Fedora 27 with gcc 7.3.1 20180130.
4633         same: pacify gcc -Wunused-variable
4634         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
4635         Omit unused variable.
4637         malloca: pacify gcc -Wbad-function-cast
4638         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
4639         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
4640         To pacify GCC, I had to cast alloca’s result to some type other
4641         than void * before casting that to uintptr_t.
4643 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
4645         utimecmp: new function utimecmpat
4646         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
4647         Do not include utimens.h.
4648         (utimecmpat): New function, generalizing utimecmp.
4649         (utimecmp): Now a thin layer around utimecmpat.
4650         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
4651         utimensat instead of on lstat and utimens.
4653         same: new function same_nameat
4654         * lib/same.c: Include fcntl.h.
4655         * lib/same.c (same_nameat): New function, generalizing same_name.
4656         (same_name): Now a thin layer around same_nameat.
4657         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
4658         * modules/same (Depends-on): Depend on fstatat, openat.
4660 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
4662         warnings: Add support for Objective C.
4663         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
4664         macro.
4666 2018-02-17  Bruno Haible  <bruno@clisp.org>
4668         lock: Fix test-once1 crash on FreeBSD11.
4669         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
4670         'pthread_create', not 'pthread_cancel'.
4672 2018-02-17  Bruno Haible  <bruno@clisp.org>
4674         lock: Add test of gl_once.
4675         * tests/test-once.c: New file.
4676         * modules/lock-tests (Files): Add it.
4677         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
4679 2018-02-17  Bruno Haible  <bruno@clisp.org>
4681         thread: Fix compilation error on IRIX.
4682         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
4683         needed; include it outside the C++ extern "C" {} block.
4684         * doc/posix-headers/pthread.texi: Mention the problem with
4685         pthread_atfork on IRIX.
4687 2018-02-04  Bruno Haible  <bruno@clisp.org>
4689         nl_langinfo: Override the system's nl_langinfo() when needed.
4690         Reported by Jim Meyering.
4691         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
4692         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
4694 2018-02-04  Bruno Haible  <bruno@clisp.org>
4696         signal-h, monetary, strings: Fix build failure in some cases.
4697         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4698         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
4699         as delimiter in sed command, not '|'.
4700         * modules/monetary (Makefile.am): Likewise.
4701         * modules/strings (Makefile.am): Likewise.
4703 2018-02-03  Jim Meyering  <meyering@fb.com>
4705         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
4706         * top/maint.mk (sc_file_system): Don't complain about
4707         "/proc/filesystems".
4709 2018-02-03  Bruno Haible  <bruno@clisp.org>
4711         stdlib: Fix compilation error on OpenIndiana.
4712         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
4713         <sys/time.h>.
4714         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
4715         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
4717 2018-02-03  Bruno Haible  <bruno@clisp.org>
4719         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
4720         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
4721         and use $EGREP instead of 'grep -E'.
4722         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
4723         'grep -E'.
4725 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4727         malloca: Add a compile-time verification.
4728         * lib/malloca.c (small_t): Verify that it is wide enough.
4729         * modules/malloca (Depends-on): Add verify.
4731 2018-02-02  Bruno Haible  <bruno@clisp.org>
4733         malloca: Add an argument check.
4734         Suggested by Paul Eggert.
4735         * lib/malloca.c (freea): Check against an invalid argument.
4737 2018-02-02  Bruno Haible  <bruno@clisp.org>
4739         localename: Add support for OpenIndiana.
4740         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
4741         Solaris 11 variants with uselocale() but without getlocalename_l().
4743 2018-02-02  Bruno Haible  <bruno@clisp.org>
4745         malloca, xmalloca: Make multithread-safe.
4746         Reported by Florian Weimer <fweimer@redhat.com>.
4747         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
4748         * lib/malloca.h (malloca): In the stack allocation case, return a
4749         pointer that is a multiple of 2 * sa_alignment_max.
4750         (sa_increment): Remove enum item.
4751         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
4752         a pointer that is a multiple of 2 * sa_alignment_max.
4753         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
4754         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
4755         HASH_TABLE_SIZE, mmalloca_results): Remove.
4756         (small_t): New type.
4757         (mmalloca, free): Rewritten.
4758         * lib/malloca.valgrind: Remove file.
4759         * modules/malloca (Files): Remove it.
4760         (Depends-on): Remove verify.
4762 2018-01-31  Bruno Haible  <bruno@clisp.org>
4764         environ: Fix link error on 64-bit Cygwin.
4765         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
4766         __declspec(dllimport) attribute.
4767         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
4769 2018-01-30  Bruno Haible  <bruno@clisp.org>
4771         get-rusage-data: Add support for Minix 3.
4772         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
4774 2018-01-30  Bruno Haible  <bruno@clisp.org>
4776         vma-iter: Add support for Minix 3.
4777         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
4778         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
4780 2018-01-27  Bruno Haible  <bruno@clisp.org>
4782         Fix malfunction of socket functions on HP-UX in 64-bit mode.
4783         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
4784         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
4785         _HPUX_ALT_XOPEN_SOCKET_API.
4786         * modules/accept (Depends-on): Add 'extensions'.
4787         * modules/getpeername (Depends-on): Likewise.
4788         * modules/getsockname (Depends-on): Likewise.
4789         * modules/getsockopt (Depends-on): Likewise.
4790         * modules/recvfrom (Depends-on): Likewise.
4791         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
4792         * doc/posix-functions/getpeername.texi: Likewise.
4793         * doc/posix-functions/getsockname.texi: Likewise.
4794         * doc/posix-functions/getsockopt.texi: Likewise.
4795         * doc/posix-functions/recvfrom.texi: Likewise.
4797 2018-01-27  Bruno Haible  <bruno@clisp.org>
4799         getsockname tests: More tests.
4800         * tests/test-getsockname.c (open_server_socket): New function, mostly
4801         copied from test-poll.c.
4802         (main): Check that getsockname fills in addr.
4803         * modules/getsockname-tests (Depends-on): Add the necessary
4804         dependencies.
4805         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
4807 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4809         manywarnings: fix maintainer comment
4810         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
4811         it does not mistakenly think that ‘-1)’ is an option.
4813 2018-01-26  Bruno Haible  <bruno@clisp.org>
4815         langinfo: Fix last commit.
4816         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4817         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
4819 2018-01-24  Bruno Haible  <bruno@clisp.org>
4821         langinfo, nl_langinfo: Add support for alternative month names.
4822         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
4823         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
4824         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
4825         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
4826         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
4827         * doc/posix-functions/nl_langinfo.texi: Likewise.
4829 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4831         Merge strftime.c changes from glibc
4832         This incorporates:
4833         2017-11-14 [BZ #10871] Implement alternative month names
4834         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
4835         2017-06-20 Use locale_t, not __locale_t, throughout glibc
4836         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
4837         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
4838         Use locale_t, not __locale_t.
4839         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
4840         (__strftime_internal): Add support for alternate months.
4842 2018-01-23  Bruno Haible  <bruno@clisp.org>
4844         doc: Mention another prerequisite for using Gnulib.
4845         Reported at <https://stackoverflow.com/questions/48378214/>.
4846         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
4847         AC_CONFIG_HEADERS.
4849 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
4851         build: GuixSD doesn't have /bin/bash
4852         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
4854 2018-01-21  Bruno Haible  <bruno@clisp.org>
4856         Avoid test failures on Microsoft Windows Subsystem for Linux.
4857         * tests/test-fcntl.c (main): Allow a different errno.
4858         * tests/test-rename.h (test_rename): Likewise.
4859         * tests/test-renameat.c (main): Likewise.
4860         * tests/test-renameat2.c (main): Likewise.
4862 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
4864         filenamecat: make base a suffix of result
4865         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
4866         (mfile_name_concat): Always make BASE a suffix of the result, as
4867         cp expects this.  To implement this, separate with '.' instead of
4868         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
4869         * tests/test-filenamecat.c (main): Adjust tests to match
4870         current behavior.  Check that BASE_IN_RESULT points to
4871         a copy of BASE and is a suffix of the resultk, and that DIR
4872         is a prefix of the result that is no longer than the prefix
4873         indicated by BASE_IN_RESULT.
4875 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
4877         update-copyright: Handle use of ©
4878         * build-aux/update-copyright ($circle_c_re): Update regex to
4879         handle use of © in headers.
4881 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
4883         Fix -Wundef warning in user-included header lib/cdefs.h.
4884         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
4886 2018-01-04  Bruno Haible  <bruno@clisp.org>
4888         pthread_sigmask: Avoid compilation error on mingw.
4889         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
4890         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
4891         macro.
4893 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
4895         test-framework-sh: ‘ps -ef’, not ‘ps ef’
4896         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
4897         Suggested by Bob Proulx (Bug#29968).
4898         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
4900 2018-01-02  Eric Blake  <eblake@redhat.com>
4902         stat-time: silence -Wunused-parameter regression
4903         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
4904         Prefer attribute over cast-to-void.
4905         (stat_time_normalize): Mark st as potentially unused.
4907 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
4909         test-framework-sh: avoid netstat
4910         Problem reported by Kristýna Streitová (Bug#29947).
4911         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
4912         deprecated on SuSE and it's not that important anyway.
4914 2018-01-01  Jim Meyering  <meyering@fb.com>
4916         update-copyright: add code to handle more special cases
4917         After running "make update-copyright" this year, five files
4918         required additional manual changes.  Automate those adjustments
4919         for next year.
4920         * Makefile (_year_and_prev): Define.
4921         (update-copyright): Add perl commands to induce this year's post-
4922         update-copyright adjustments.
4924 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
4926         version-etc: new year
4927         * build-aux/gendocs.sh (version):
4928         * doc/gendocs_template:
4929         * doc/gendocs_template_min:
4930         * doc/gnulib.texi:
4931         * lib/version-etc.c (COPYRIGHT_YEAR):
4932         Update copyright dates by hand in templates and the like.
4934         maint: fix 'make update-copyright'
4935         * Makefile (update-copyright): Adjust to 2016-11-23 change
4936         to config/srclist-update, which changed the format of srclist.txt.
4938 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
4940         chdir-safer: remove this module
4941         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
4942         * NEWS: Document removal.
4943         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
4944         * modules/chdir-safer: Remove these files.
4946 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
4948         Add cross-compilation results for GNU/Hurd.
4949         * m4/calloc.m4: Add GNU/Hurd guess.
4950         * m4/cbrtl.m4: Likewise.
4951         * m4/ceil.m4: Likewise.
4952         * m4/ceilf.m4: Likewise.
4953         * m4/ceill.m4: Likewise.
4954         * m4/chown.m4: Likewise.
4955         * m4/duplocale.m4: Likewise.
4956         * m4/exp2l.m4: Likewise.
4957         * m4/expm1.m4: Likewise.
4958         * m4/fchdir.m4: Likewise.
4959         * m4/floor.m4: Likewise.
4960         * m4/floorf.m4: Likewise.
4961         * m4/fmod.m4: Likewise.
4962         * m4/fmodf.m4: Likewise.
4963         * m4/fmodl.m4: Likewise.
4964         * m4/getcwd.m4: Likewise.
4965         * m4/getgroups.m4: Likewise.
4966         * m4/gettimeofday.m4: Likewise.
4967         * m4/hypot.m4: Likewise.
4968         * m4/hypotf.m4: Likewise.
4969         * m4/hypotl.m4: Likewise.
4970         * m4/link-follow.m4: Likewise.
4971         * m4/link.m4: Likewise.
4972         * m4/linkat.m4: Likewise.
4973         * m4/log.m4: Likewise.
4974         * m4/log10.m4: Likewise.
4975         * m4/log10f.m4: Likewise.
4976         * m4/log1p.m4: Likewise.
4977         * m4/log1pf.m4: Likewise.
4978         * m4/log1pl.m4: Likewise.
4979         * m4/log2.m4: Likewise.
4980         * m4/log2f.m4: Likewise.
4981         * m4/logf.m4: Likewise.
4982         * m4/lstat.m4: Likewise.
4983         * m4/malloc.m4: Likewise.
4984         * m4/mbrlen.m4: Likewise.
4985         * m4/mbrtowc.m4: Likewise.
4986         * m4/mkdir.m4: Likewise.
4987         * m4/mkfifo.m4: Likewise.
4988         * m4/mknod.m4: Likewise.
4989         * m4/mkstemp.m4: Likewise.
4990         * m4/modf.m4: Likewise.
4991         * m4/modff.m4: Likewise.
4992         * m4/modfl.m4: Likewise.
4993         * m4/printf.m4: Likewise.
4994         * m4/pselect.m4: Likewise.
4995         * m4/ptsname.m4: Likewise.
4996         * m4/putenv.m4: Likewise.
4997         * m4/readlink.m4: Likewise.
4998         * m4/realloc.m4: Likewise.
4999         * m4/remainder.m4: Likewise.
5000         * m4/remainderf.m4: Likewise.
5001         * m4/remainderl.m4: Likewise.
5002         * m4/rmdir.m4: Likewise.
5003         * m4/round.m4: Likewise.
5004         * m4/roundf.m4: Likewise.
5005         * m4/roundl.m4: Likewise.
5006         * m4/select.m4: Likewise.
5007         * m4/setenv.m4: Likewise.
5008         * m4/signbit.m4: Likewise.
5009         * m4/sleep.m4: Likewise.
5010         * m4/stat.m4: Likewise.
5011         * m4/strerror.m4: Likewise.
5012         * m4/strtok_r.m4: Likewise.
5013         * m4/symlink.m4: Likewise.
5014         * m4/symlinkat.m4: Likewise.
5015         * m4/trunc.m4: Likewise.
5016         * m4/truncf.m4: Likewise.
5017         * m4/truncl.m4: Likewise.
5018         * m4/tzset.m4: Likewise.
5019         * m4/ungetc.m4: Likewise.
5020         * m4/usleep.m4: Likewise.
5021         * m4/wcwidth.m4: Likewise.
5023 2017-12-28  Bruno Haible  <bruno@clisp.org>
5025         gnulib-tool: Make --conditional-dependencies work better.
5026         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
5027         * gnulib-tool (Options): Don't reject the combination of
5028         --conditional-dependencies with --with-tests.
5029         (func_emit_autoconf_snippets): Add argument referenceable_modules.
5030         Don't reference $modules.
5031         (func_import, func_create_testdir): Pass it.
5033 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
5035         regex: use re_malloc etc. consistently
5036         Problem and original patch reported by Arnold Robbins in:
5037         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
5038         * lib/regcomp.c (re_comp):
5039         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
5040         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
5042 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
5043             Paul Eggert  <eggert@cs.ucla.edu>
5045         glob: Silence warning about void pointer arithmetic.
5046         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
5047         arithmetic.
5049 2017-12-15  Bruno Haible  <bruno@clisp.org>
5051         spawn-pipe: Silence a clang warning.
5052         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
5053         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
5054         in this file.
5056 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
5058         explicit_bzero: port to macOS + Clang 9.0.0
5059         Problem reported by Marcus Johnson (Bug#29658).
5060         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
5061         Don’t use asm.
5063 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
5065         doc: Improve explanation of supporting relocatable libraries.
5066         * doc/relocatable-maint.texi (Supporting Relocation): Explain
5067         properly how to build the relocatable module for
5068         libraries. (Method and example code from Bruno Haible.)
5070 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
5072         doc: Use better texinfo tags in a few cases.
5073         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
5074         instead of @samp in a few places.
5076 2017-12-11  Bruno Haible  <bruno@clisp.org>
5078         unistr/base: Update comment.
5079         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
5081 2017-12-10  Pádraig Brady  <P@draigBrady.com>
5083         test-faccessat.c: unlink temp file to avoid subsequent test failure
5084         * tests/test-faccessat.c: Remove the file to avoid failure
5085         to open the file on subsequent runs due to being created
5086         with no permissions.
5088 2017-12-10  Bruno Haible  <bruno@clisp.org>
5090         doc: New sect. "Modifying the build rules of a Gnulib import directory".
5091         * doc/gnulib-tool.texi (Modified build rules): New node.
5093 2017-12-10  Bruno Haible  <bruno@clisp.org>
5095         doc: Tweak wording.
5096         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
5097         "binaries".
5099 2017-12-05  Sam Steingold  <sds@gnu.org>
5100             Bruno Haible  <bruno@clisp.org>
5102         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
5103         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
5104         AC_EGREP_CPP pattern.
5106 2017-12-03  Bruno Haible  <bruno@clisp.org>
5108         all: Replace more http URLs by https URLs.
5109         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
5110         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
5111         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
5112         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
5114 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
5116         Port better to CentOS 5
5117         Problems reported by Tom G. Christensen in:
5118         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
5119         * doc/glibc-functions/strverscmp.texi (strverscmp):
5120         Document strverscmp bug with glibc 2.9 and earlier.
5121         * doc/posix-functions/tzset.texi (tzset):
5122         Document that TZ with angle brackets is POSIX-2001 and later.
5123         * tests/test-nstrftime.c: Include unistd.h.
5124         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
5125         (TZ): Use it to skip tests with angle brackets in TZ,
5126         for older systems.
5128         stat: add missing module dependencies
5129         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
5130         Add stat-time.
5132 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
5134         stat: fix compilation failure on macOS Sierra
5135         Reported by Marius Schamschula <mschamschula@gmail.com> in:
5136         https://savannah.gnu.org/bugs/?52546
5137         * lib/stat.c: Add missing include of stat-time.h.
5139 2017-11-28  Jim Meyering  <meyering@fb.com>
5141         test-faccessat.c: correct BASE definition to avoid parallel test failure
5142         * tests/test-faccessat.c (BASE): Define using this file's name, not
5143         that of test-lstat.c.  Using the latter caused this test to fail
5144         sometimes when run concurrently with test-lstat.
5146 2017-11-27  Daiki Ueno  <ueno@gnu.org>
5148         unicase: fix VPATH build
5149         * modules/unicase/special-casing (Makefile.am): Ensure that the
5150         base directory is created when generating
5151         unicase/special-casing.h.
5153 2017-11-27  Daiki Ueno  <ueno@gnu.org>
5155         libunistring: update to Unicode 9.0.0
5156         * lib/gen-uni-tables.c (fill_properties): Recognize
5157         Sentence_Terminal and Prepended_Concatenation_Mark.
5158         (is_property_default_ignorable_code_point): Exclude U+08E2.
5159         (fill_arabicshaping): Allow missing whitespace when parsing;
5160         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
5161         (output_blocks): Increase the element size of the level1 table to
5162         accommodate more blocks.
5163         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
5164         Update each class according to the standard.
5165         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
5166         E_Base_GAZ characters.
5167         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
5168         Glue_After_Zwj, and E_Base_GAZ characters.
5169         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
5170         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
5171         enum value.
5172         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
5173         value.
5174         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
5175         LBP_ZWJ, LBP_EB, and LBP_EM.
5176         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
5177         enum value.
5178         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
5179         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
5180         declaration.
5181         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
5182         (uniwbrk_table): Implement WB14.
5183         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
5184         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
5185         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
5186         uc-is-grapheme-break.
5187         * modules/unigbrk/uc-grapheme-breaks: New module.
5188         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
5189         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
5190         enum value.
5191         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
5192         * lib/unigbrk/u-grapheme-breaks.h: New file.
5193         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
5194         u-grapheme-breaks.h instead of uc_is_grapheme_break.
5195         * lib/unigbrk/uc-grapheme-breaks.c: New file.
5196         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
5197         29.
5198         * tests/unigbrk/test-uc-gbrk-prop.c
5199         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
5200         GBP_GAZ, and GBP_EBG.
5201         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
5202         * tests/unigbrk/test-uc-is-grapheme-break.c
5203         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
5204         GBP_GAZ, and GBP_EBG.
5205         (main): Skip unsupported rules involving 3 or more characters,
5206         namely GB10, GB12, and GB13.
5207         * lib/uniwidth/width.c (nonspacing_table_data): Update.
5208         * all generated files under lib/uni* and tests/uni*: Regenerate.
5209         * all the affected modules: Bump version.
5211 2017-11-26  Bruno Haible  <bruno@clisp.org>
5213         strfmon_l: Fix compilation error with glibc 2.5.
5214         Reported by Tom G. Christensen <tgc@jupiterrise.com>
5215         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
5216         * lib/monetary.in.h: Include also <locale.h>.
5218 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
5220         posixtm: remove PDS_LEADING_YEAR
5221         This changes the API slightly, in a hopefully-innocuous way.
5222         Without this change the code had undefined behavior when a
5223         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
5224         Problem reported by Pádraig Brady in:
5225         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
5226         * NEWS: Mention this.
5227         * lib/posixtm.c (posix_time_parse): Treat the absence of
5228         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
5229         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
5230         present, but define it as zero, for compatibility with existing
5231         source code).  All other PDS_* values moved up.
5232         * tests/test-posixtm.c (LY): New macro.
5233         (T): Use it.  Do not expect a particular numeric encoding
5234         for PDS_CENTURY etc.
5236 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
5238         stat: work around Solaris bug with tv_nsec < 0
5239         * doc/posix-functions/fstat.texi (fstat):
5240         * doc/posix-functions/fstatat.texi (fstatat):
5241         * doc/posix-functions/lstat.texi (lstat):
5242         * doc/posix-functions/stat.texi (stat):
5243         Mention Solaris 11 bug.
5244         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
5245         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
5246         * lib/lstat.c (rpl_lstat):
5247         * lib/stat.c (rpl_stat):
5248         Normalize resulting timestamps.
5249         * lib/fstatat.c (normal_fstatat): New function.
5250         (rpl_fstatat): Use it.
5251         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
5252         (stat_time_normalize): New function.
5253         * m4/fstat.m4 (gl_FUNC_FSTAT):
5254         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
5255         * m4/lstat.m4 (gl_FUNC_LSTAT):
5256         * m4/stat.m4 (gl_FUNC_STAT):
5257         Replace on Solaris.
5258         * modules/fstat (Depends-on):
5259         * modules/fstatat (Depends-on):
5260         Add stat-time.
5261         * modules/stat-time (Depends-on): Add errno, intprops.
5263 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
5265         regex: merge from glibc
5266         * lib/regcomp.c (init_word_char): Add comments.
5268 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
5270         regex: merge from glibc
5271         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
5272         * lib/regex_internal.h (internal_function): Remove.
5273         All uses removed.
5275 2017-11-20  Bruno Haible  <bruno@clisp.org>
5277         crypto/gc-sm3: Fix buffer overrun.
5278         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
5279         Reported by Coverity.
5281 2017-11-12  Jim Meyering  <meyering@fb.com>
5283         maint: shorten https://lists.gnu.org/archive/html/... links
5284         Each /archive/html/ part can be replace with /r/.
5285         Run this to induce the change:
5286         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
5287         * ChangeLog: Perform that substitution.
5288         * Makefile: Likewise.
5289         * STATUS-libposix: Likewise.
5290         * build-aux/bootstrap: Likewise.
5291         * doc/maintain.texi: Likewise.
5292         * gnulib-tool: Likewise.
5293         * lib/allocator.h: Likewise.
5294         * lib/argp-ba.c: Likewise.
5295         * lib/argp-pv.c: Likewise.
5296         * lib/canon-host.c: Likewise.
5297         * lib/canonicalize-lgpl.c: Likewise.
5298         * lib/float.in.h: Likewise.
5299         * lib/fstat.c: Likewise.
5300         * lib/getdelim.c: Likewise.
5301         * lib/getprogname.c: Likewise.
5302         * lib/glthread/thread.h: Likewise.
5303         * lib/intprops.h: Likewise.
5304         * lib/mbsrtowcs-state.c: Likewise.
5305         * lib/safe-read.c: Likewise.
5306         * lib/signal.in.h: Likewise.
5307         * lib/stat.c: Likewise.
5308         * lib/stdbool.in.h: Likewise.
5309         * lib/stdio-impl.h: Likewise.
5310         * lib/stdio.in.h: Likewise.
5311         * lib/sysexits.in.h: Likewise.
5312         * lib/timespec.h: Likewise.
5313         * lib/wcsrtombs-state.c: Likewise.
5314         * m4/alloca.m4: Likewise.
5315         * m4/extern-inline.m4: Likewise.
5316         * m4/fstatat.m4: Likewise.
5317         * m4/gnulib-common.m4: Likewise.
5318         * m4/lib-ignore.m4: Likewise.
5319         * m4/printf.m4: Likewise.
5320         * m4/regex.m4: Likewise.
5321         * m4/stat-size.m4: Likewise.
5322         * m4/std-gnu11.m4: Likewise.
5323         * m4/stdbool.m4: Likewise.
5324         * m4/sys_types_h.m4: Likewise.
5325         * m4/threadlib.m4: Likewise.
5326         * m4/vararrays.m4: Likewise.
5327         * pygnulib/GLImport.py: Likewise.
5328         * tests/test-exp.h: Likewise.
5329         * tests/test-exp2.h: Likewise.
5330         * tests/test-expm1.h: Likewise.
5331         * tests/test-fflush2.c: Likewise.
5332         * tests/test-getopt_long.h: Likewise.
5333         * tests/test-intprops.c: Likewise.
5334         * tests/test-log.h: Likewise.
5335         * tests/test-log10.h: Likewise.
5336         * tests/test-log1p.h: Likewise.
5337         * tests/test-log2.h: Likewise.
5338         * tests/test-printf-posix.h: Likewise.
5339         * tests/test-regex.c: Likewise.
5340         * tests/test-snprintf-posix.h: Likewise.
5341         * tests/test-sprintf-posix.h: Likewise.
5342         * tests/test-stdalign.c: Likewise.
5343         * tests/test-stdbool.c: Likewise.
5344         * tests/test-vasnprintf-posix.c: Likewise.
5345         * tests/test-vasprintf-posix.c: Likewise.
5346         * top/maint.mk: Likewise.
5348 2017-11-12  Bruno Haible  <bruno@clisp.org>
5350         faccessat: Make the last change more robust.
5351         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
5352         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
5354 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
5356         faccessat: port to macOS (Bug#29231)
5357         macOS faccessat has the same bug that lstat does: if the file
5358         name ends in '/' it ignores the trailing slash.
5359         Problem reported for Emacs by Vincent Zhang.
5360         * doc/posix-functions/faccessat.texi (faccessat): Document this.
5361         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
5362         around the initial includes.  Include errno.h, string.h, sys/stat.h.
5363         (orig_faccessat) [HAVE_FACCESSAT]: New function.
5364         Include "unistd.h" after defining it.
5365         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
5366         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
5367         Handle in the usual way.
5368         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
5369         lstat dereferences symlinks, since faccessat is likely to
5370         have the same problem.
5371         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
5372         * modules/faccessat (Depends-on): Add fstatat.
5373         Depend if REPLACE_FACCESSAT is 1, too.
5374         (configure.ac): Link if REPLACE_FACCESSAT is 1.
5375         * modules/faccessat-tests (Depends-on): Add symlink.
5376         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
5377         * tests/test-faccessat.c (main): Test for the bug.
5379 2017-11-11  Bruno Haible  <bruno@clisp.org>
5381         getprogname: Fix compilation error on IRIX.
5382         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
5383         'namesize'.
5385 2017-11-11  Bruno Haible  <bruno@clisp.org>
5387         year2038: Tweak last patch.
5388         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
5390 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5392         year2038: be more insistent about 64-bit time_t
5393         Applications requiring access to arbitrary files should not be
5394         built with 32-bit time_t on hosts that have 64-bit timestamps,
5395         as this can lead to real trouble at runtime.
5396         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
5397         Check on all systems, not just MinGW.  Use a heuristic involving
5398         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
5399         output a failure or just a warning, to make it more likely that
5400         builders will select 64-bit time_t.
5402 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
5404         havelib: fix typo in previous change
5405         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
5407         Don’t use AC_EGREP_CPP if affected by CFLAGS
5408         * m4/float_h.m4 (gl_FLOAT_H):
5409         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
5410         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
5411         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
5412         * m4/year2038.m4 (gl_YEAR2038):
5413         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
5414         likely to be affected by the choice of CFLAGS, since CFLAGS are
5415         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
5416         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
5418         fstatat: pacify GCC on unusual platform
5419         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
5420         Omit, as it’s unused in this case.
5422 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
5424         timespec: prefer ‘assume’ to ‘assure’
5425         This avoids some runtime tests.  The rest of the module makes
5426         similar assumptions and there is little point to testing here.
5427         * lib/timespec.h: Include verify.h instead of assure.h.
5428         (timespec_cmp): Use ‘assume’, not ‘assure’.
5429         Also, remove an unnecessary cast to ‘int’, as lots of other
5430         code in this module now causes -Wconversion to complain, and
5431         this is a problem with -Wconversion not with the code.
5433         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
5435         Port recent gnulib-tool change to Dash
5436         * gnulib-tool (func_create_testdir): Don't assume that the shell
5437         retokenizes after expanding "$@" inside the call to
5438         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
5440 2017-10-27  Jim Meyering  <meyering@fb.com>
5442         timespec.h: use "assure" to avoid a spurious warning
5443         * lib/timespec.h: Include "assure.h" and use it to help
5444         gcc7's -Wstrict-overflow avoid a false positive warning
5445         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
5446         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
5447         * modules/timespec (Depends-on): Add assure.
5449 2017-10-29  Bruno Haible  <bruno@clisp.org>
5451         Avoid several test failures with traditional locales on Haiku.
5452         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
5453         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
5454         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
5455         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
5456         LOCALE_ZH_CN=none.
5458 2017-10-29  Bruno Haible  <bruno@clisp.org>
5460         strerror_r-posix: Fix behaviour and test failure on Haiku.
5461         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
5462         are positive. Work around return value 0 instead of ERANGE on Haiku.
5463         For unknown error numbers, use a format string consistent with perror().
5464         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
5465         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
5466         are positive.
5468 2017-10-29  Bruno Haible  <bruno@clisp.org>
5470         get-rusage-data: Avoid crash on Haiku.
5471         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
5473 2017-10-29  Bruno Haible  <bruno@clisp.org>
5475         get-rusage-as: Avoid crash on Haiku.
5476         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
5478 2017-10-29  Bruno Haible  <bruno@clisp.org>
5480         ilogbl: Ensure replacement on Haiku.
5481         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
5482         REPLACE_ILOGBL if ilogbl does not work.
5483         (gl_FUNC_ILOGBL_WORKS): New macro.
5484         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
5485         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
5486         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
5487         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
5488         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
5490 2017-10-29  Bruno Haible  <bruno@clisp.org>
5492         expl: Ensure replacement on Haiku.
5493         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
5494         zero.
5495         * doc/posix-functions/expl.texi: Mention the Haiku problem.
5497 2017-10-29  Bruno Haible  <bruno@clisp.org>
5499         math: Fix test failure on Haiku.
5500         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
5501         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
5502         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
5503         * doc/posix-headers/math.texi: Mention the Haiku problem.
5505 2017-10-29  Bruno Haible  <bruno@clisp.org>
5507         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
5508         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
5509         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
5511 2017-10-29  Bruno Haible  <bruno@clisp.org>
5513         crypto/*: Verify that the header file is self-contained.
5514         * tests/test-gc-*.c: Include the module's header file immediately after
5515         <config.h>.
5516         * tests/test-hmac-*.c: Likewise.
5517         * tests/test-arcfour.c: Likewise.
5518         * tests/test-arctwo.c: Likewise.
5519         * tests/test-des.c: Likewise.
5520         * tests/test-md2.c: Likewise.
5521         * tests/test-md4.c: Likewise.
5522         * tests/test-md5.c: Likewise.
5523         * tests/test-rijndael.c: Likewise.
5524         * tests/test-sha1.c: Likewise.
5525         * tests/test-sm3.c: Likewise.
5527 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5528             Bruno Haible  <bruno@clisp.org>
5530         crypto/gc: fix build failure with -Werror=suggest-attribute=const
5531         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
5533 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5535         New module: crypto/gc-sm3
5536         * lib/gc.h: Declare SM3-related stuffs.
5537         * lib/gc-gnulib.c: Support sm3 in internal functions.
5538         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
5539         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
5540         * modules/crypto/gc-sm3: Define gc-sm3 module.
5541         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
5542         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
5543         * MODULES.html.sh: List gc-sm3 module.
5545 2017-10-29  Bruno Haible  <bruno@clisp.org>
5547         random, random_r: Mention different prototypes on Haiku.
5548         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
5549         * doc/glibc-functions/random_r.texi: Likewise.
5550         * doc/glibc-functions/initstate_r.texi: Likewise.
5551         * doc/glibc-functions/setstate_r.texi: Likewise.
5553 2017-10-28  Bruno Haible  <bruno@clisp.org>
5555         posix_spawn: Avoid spurious message in configure output.
5556         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
5557         'cmp' command.
5559 2017-10-28  Bruno Haible  <bruno@clisp.org>
5561         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
5562         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
5563         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5565 2017-10-28  Bruno Haible  <bruno@clisp.org>
5567         ioctl: Override non-POSIX declaration on Haiku.
5568         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
5569         * lib/sys_ioctl.in.h: Add comment about Haiku.
5570         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
5571         * doc/glibc-headers/sys_ioctl.texi: Likewise.
5573 2017-10-28  Bruno Haible  <bruno@clisp.org>
5575         crypto/sm3: Add overview documentation to the .h file.
5576         * lib/sm3.h: Add comments.
5578 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5580         New module: crypto/sm3
5581         This new module can be used to compute SM3 message digest of files or
5582         memory blocks according to the specification GM/T 004-2012
5583         Cryptographic Hash Algorithm SM3, published by State Cryptography
5584         Administration, China.
5585         The official SM3 cryptographic hash algorithm specification is
5586         available at
5587         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
5588         * lib/sm3.h: Declare the APIs of sm3 module.
5589         * lib/sm3.c: Implement SM3 hash algorithm.
5590         * m4/sm3.m4: m4 file for sm3 module.
5591         * modules/crypto/sm3: Define sm3 module.
5592         * tests/test-sm3.c: Implement SM3 test case.
5593         * modules/crypto/sm3-tests: Define sm3 test module.
5594         * MODULES.html.sh: List sm3 module.
5596 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5598         gc-libgcrypt: fix undefined enum type in switch statement
5599         Resolve the following build failure:
5600         lib/gc-libgcrypt.c: In function 'gc_hash_open':
5601         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
5602         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
5603              case 0:
5604              ^~~~
5605         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
5606         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
5608 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
5610         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
5611         Resolve the following build failure:
5612         lib/gc-libgcrypt.c: In function 'gc_hash_read':
5613         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
5614         in signedness [-Werror=pointer-sign]
5615             digest = gcry_md_read (ctx->gch, 0);
5616                    ^
5617         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
5619 2017-10-26  Bruno Haible  <bruno@clisp.org>
5621         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
5622         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
5623         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
5625 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
5627         glob: fix another heap buffer overflow
5628         Problem reported by Tim Rühsen in:
5629         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
5630         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
5632 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
5634         quotearg: pacify compiler re unsigned
5635         * lib/quotearg.c (quotearg_n_options):
5636         Rewrite to avoid diagnostic from overly-picky compiler.
5637         Problem reported by Sami Kerola in:
5638         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
5640         glob: fix heap buffer overflow
5641         * lib/glob.c (glob): Fix off-by-one error introduced into
5642         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
5643         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
5644         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
5645         Fix suggested by Bruno Haible.
5647 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
5649         glob: pacify fuzzer for mempcpy
5650         Problem reported by Tim Rühsen in:
5651         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
5652         * lib/glob.c (glob): Do not pass NULL to mempcpy.
5654 2017-10-12  Bruno Haible  <bruno@clisp.org>
5656         doc: Fix syntax error (regression from 2017-10-03).
5657         * doc/posix-functions/strncpy.texi: Fix syntax error.
5659 2017-10-12  Bruno Haible  <bruno@clisp.org>
5661         doc: Update for Solaris 11.3.
5662         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
5663         mention Solaris 11.3.
5664         * m4/log2.m4: Fix comments.
5665         * m4/log2f.m4: Likewise.
5666         * m4/printf.m4: Update comments.
5667         * m4/rename.m4: Likewise.
5668         * m4/strncat.m4: Likewise.
5670         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
5672 2017-10-10  Bruno Haible  <bruno@clisp.org>
5674         doc: Improve doc about ioctl.
5675         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
5676         prototype.
5678 2017-10-09  Bruno Haible  <bruno@clisp.org>
5680         wcwidth: Don't use obsolete syntax of 'test'.
5681         Reported by Eric Blake.
5682         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
5683         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
5685 2017-10-09  Bruno Haible  <bruno@clisp.org>
5687         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
5688         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
5689         and Daniel P. Berrange <berrange@redhat.com>.
5690         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
5691         on glibc systems. The getopt-pfx-core.h file declares exactly what
5692         unistd.h needs, nothing more.
5694 2017-10-08  Bruno Haible  <bruno@clisp.org>
5696         vma-iter: Improve support for FreeBSD.
5697         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
5698         vma_iterate.
5699         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
5701 2017-10-08  Bruno Haible  <bruno@clisp.org>
5703         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
5704         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
5706 2017-10-07  KO Myung-Hun  <komh@chollian.net>
5708         test-framework-sh: Fix 'invalid path dir' error.
5709         On OS/2, a path separator is ';' not ':'. And ':' is used as a
5710         separator between a drive letter and directory parts.
5711         As a result, an absolute path such as x:/path/to/dir on OS/2 is
5712         treated as an invalid path dir.
5713         * tests/init.sh (PATH_SEPARATOR): Set at startup.
5714         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
5715         instead of hard coded ':'.
5717 2017-10-07  Bruno Haible  <bruno@clisp.org>
5719         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
5720         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
5721         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
5722         (rof_open): On Linux, do multiple read() calls and make sure
5723         MIN_LEFTOVER bytes are left when read() returns.
5725 2017-10-07  Bruno Haible  <bruno@clisp.org>
5727         vma-iter: Improve support for GNU/Hurd.
5728         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
5729         API, not the /proc file system.
5731 2017-10-07  Bruno Haible  <bruno@clisp.org>
5733         test-framework-sh: Don't require bash on Windows and OS/2.
5734         Reported by KO Myung-Hun.
5735         * tests/test-init.sh: Use 'shopt' only when running in bash.
5737 2017-10-06  KO Myung-Hun  <komh@chollian.net>
5739         wcwidth: check a macro version of wcwidth () as well
5740         * lib/wchar.in.h: Revert commit from 2016-01-14.
5741         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
5743 2017-10-06  Bruno Haible  <bruno@clisp.org>
5745         getopt-posix: Clarify copyright header.
5746         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
5747         * lib/getopt-pfx-core.h: Likewise.
5748         * lib/getopt-pfx-ext.h: Likewise.
5749         * lib/getopt-cdefs.in.h: Likewise.
5751 2017-10-03  Bruno Haible  <bruno@clisp.org>
5753         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
5754         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
5755         gl_HOST_CPU_C_ABI.
5757 2017-10-03  Bruno Haible  <bruno@clisp.org>
5759         doc: warn about misuse of strncpy and wcsncpy.
5760         * doc/posix-functions/strcpy.texi: Describe requirements on prior
5761         memory allocation.
5762         * doc/posix-functions/wcscpy.texi: Likewise.
5763         * doc/posix-functions/strncpy.texi: Describe what this function is not
5764         useful for.
5765         * doc/posix-functions/wcsncpy.texi: Likewise.
5767 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
5769         fsuage: fix typo in previous change
5770         * lib/fsusage.c: Remove stray include of full-read.h.
5771         Problem reported by Sam Steingold for macOS (Bug#28669).
5773 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
5775         fsusage: remove SVR2 support
5776         SVR2 was obsolete by 1986 and is no longer supported by anybody,
5777         and its code was getting in the way of use of this module by
5778         Emacs, which has its own ‘read’ function anyway.
5779         * lib/fsusage.c: Do not include sys/filsys.h.
5780         (get_fs_usage): Remove SVR2-specific code.
5781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
5782         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
5783         * modules/fsusage (Depends-on): Do not depend on full-read.
5785         Simplify autoupdate of licenses
5786         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
5787         place.
5789 2017-10-01  Bruno Haible  <bruno@clisp.org>
5791         vma-iter: Add support for GNU/Hurd.
5792         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
5793         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5795 2017-09-30  Bruno Haible  <bruno@clisp.org>
5797         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
5798         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
5799         fail when module 'largefile' is in use.
5800         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
5801         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
5802         Don't test HAVE_SYS_PROCFS_H.
5804 2017-09-30  Bruno Haible  <bruno@clisp.org>
5806         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
5807         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
5808         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
5809         * modules/havelib (Depends-on): Add host-cpu-c-abi.
5811 2017-09-30  Bruno Haible  <bruno@clisp.org>
5813         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
5814         * lib/uniname/uniname.c (unicode_name_character): Add braces around
5815         scope of local variables.
5817 2017-09-28  Bruno Haible  <bruno@clisp.org>
5819         string: code style
5820         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
5821         substitutable variables.
5822         * modules/string (Makefile.am): Likewise.
5824 2017-09-26  Bruno Haible  <bruno@clisp.org>
5826         uniname/uniname-tests: Tighten code.
5827         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
5828         local variables into one.
5830 2017-09-26  Bruno Haible  <bruno@clisp.org>
5832         vma-iter: Improvements for Linux and BSD platforms.
5833         - Add support for DragonFly BSD.
5834         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
5835         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
5836         Read the entire file into memory in a single system call.
5837         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
5838         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
5840 2017-09-26  Bruno Haible  <bruno@clisp.org>
5842         vma-iter: Provide the protection flags on FreeBSD.
5843         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
5844         skip three fields between the addresses and the protection flags.
5846 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
5848         glob: remove bogus extern decl
5849         * lib/glob.c (__glob_pattern_type): Remove now-spurious
5850         extern declaration.  Problem reported by Adhemerval Zanella in:
5851         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
5853 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
5855         uniname/uniname-tests: integer overflow fix
5856         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
5857         Check for integer overflow.
5859         duplocale-tests: fix unlikely crash
5860         * tests/test-duplocale.c (get_locale_dependent_values):
5861         Don’t crash with absurdly long month names.
5863         maint: fix overflow checking in nap.h
5864         * modules/chown-tests:
5865         * modules/fchownat-tests, modules/fdutimensat-tests:
5866         * modules/futimens-tests, modules/lchown-tests:
5867         * modules/stat-time-tests, modules/utime-tests:
5868         * modules/utimens-tests, modules/utimensat-tests:
5869         Depend on intprops.
5870         * tests/nap.h: Include intprops.h.
5871         (diff_timespec): Handle overflow properly.
5873         sys_types: update URL
5874         * m4/sys_types_h.m4: Use https: URL.
5876         parse-datetime: fix dependency
5877         * modules/parse-datetime (Depends-on): Depend
5878         on nstrftime, not strftime.
5880         parse-datetime, posixtm: avoid uninit access
5881         * lib/parse-datetime.y (parse_datetime2):
5882         * lib/posixtm.c (posixtime):
5883         Do not access uninitialized storage, even though the resulting
5884         value is never used.
5886 2017-09-25  Bruno Haible  <bruno@clisp.org>
5888         vma-iter: Improvements for BSD platforms.
5889         - Add support for GNU/kFreeBSD.
5890         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
5891         - Speed up on OpenBSD.
5892         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
5893         (vma_iterate_bsd): New function.
5894         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
5895         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
5896         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
5897         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
5899 2017-09-23  Bruno Haible  <bruno@clisp.org>
5901         strfmon_l: New module.
5902         * modules/strfmon_l: New file.
5903         * lib/strfmon_l.c: New file.
5904         * m4/strfmon_l.m4: New file.
5905         * doc/posix-functions/strfmon_l.texi: Mention the new module.
5906         * modules/strfmon_l-tests: New file.
5907         * tests/test-strfmon_l.c: New file.
5909         monetary: New module.
5910         * modules/monetary: New file.
5911         * lib/monetary.in.h: New file.
5912         * m4/monetary_h.m4: New file.
5913         * doc/posix-headers/monetary.texi: Mention the new module.
5914         * modules/monetary-tests: New file.
5915         * tests/test-monetary.c: New file.
5916         * modules/monetary-c++-tests: New file.
5917         * tests/test-monetary-c++.cc: New file.
5918         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
5920 2017-09-23  Bruno Haible  <bruno@clisp.org>
5922         duplocale tests: Fix test crash on Linux/x86.
5923         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
5924         locale from the current thread before freeing it.
5926 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
5928         mktime: port to OpenVMS
5929         Problem reported by John E. Malmberg in:
5930         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
5931         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
5933 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
5935         manywarnings: port to GCC on 64-bit MS-Windows
5936         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
5937         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
5938         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
5940 2017-09-13  Bruno Haible  <bruno@clisp.org>
5942         all: Replace many more http URLs by https URLs. Update stale URLs.
5943         * users.txt: Remove mention of 'newts'.
5944         * lib/localename.c: Update comment about LANG_SOTHO.
5946 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
5948         all: Replace many http URLs by https URLs.
5950 2017-09-12  Bruno Haible  <bruno@clisp.org>
5952         doc: Prefer https URLs where possible.
5953         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
5954         * doc/ld-output-def.texi: Remove unavailable URL.
5956 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
5958         maintainer-makefile: FTP -> HTTPS
5959         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
5960         of FTP, which is planned to be decommissioned on 2017-11-01.
5962 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
5964         libc-config: Fix __GNUC_PREREQ macro.
5965         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
5966         __GNUC_MINOR.
5968 2017-09-09  Bruno Haible  <bruno@clisp.org>
5970         gnulib-tool: Simplify commit from 2015-08-20.
5971         * gnulib-tool (func_add_or_update): Remove local variable
5972         is_binary_file.
5974 2017-09-08  Bruno Haible  <bruno@clisp.org>
5976         stddef: Avoid conflict with system-defined max_align_t.
5977         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
5978         Reported by Werner Lemberg <wl@gnu.org> in
5979         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
5980         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
5981         (max_align_t): Define as a macro.
5982         (GNULIB_defined_max_align_t): New macro. Guards against multiple
5983         definitions of rpl_max_align_t in different copies of gnulib-generated
5984         <stddef.h>.
5986 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
5988         libc-config: port to MSVC
5989         Problems reported by Gisle Vanem in:
5990         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
5991         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
5992         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
5993         * m4/__inline.m4: New file.
5994         * modules/libc-config (Files): Add it.
5995         (Depends-on): Use it.
5997         glob: Use enum for __glob_pattern_type result
5998         From a patch proposed by Adhemerval Zanella in:
5999         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
6000         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
6001         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
6002         * lib/glob_internal.h (__glob_pattern_type):
6003         * lib/glob.c (glob):
6004         * lib/glob_pattern_p.c (__glob_pattern_p):
6005         Use them.
6007         glob: fix for use in glibc
6008         Problem reported by Adhemerval Zanella in:
6009         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
6010         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
6011         Do not redefine if _LIBC.
6013 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6015         glob: fix bugs with long login names
6016         Problem reported by Adhemerval Zanella in:
6017         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
6018         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
6019         (glob): Use the same scratch buffer for both getlogin_r and
6020         getpwnam_r.  Don’t require preallocation of the login name.  This
6021         simplifies storage allocation, and corrects the handling of
6022         long login names.
6024 2017-09-02  Bruno Haible  <bruno@clisp.org>
6026         dirent: Update doc.
6027         * doc/posix-headers/dirent.texi: More concrete list of platforms.
6029 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6031         glob: fix getpwnam_r errno typo
6032         * lib/glob.c (glob): Fix longstanding misuse of errno after
6033         getpwnam_r, which returns an error number rather than setting
6034         errno.
6036         glob: fix typo in recent change
6037         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
6038         Fix recently-introduced typo.
6040 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
6042         glob: don't save and restore errno unnecessarily
6043         * lib/glob.c (glob): Don't save and restore errno
6044         merely because we have getpwnam_r.
6046         glob: don't assume getpwnam_r
6047         * lib/glob.c (glob): Port recent patches to platforms
6048         lacking getpwnam_r.
6050         scratch_buffer: don’t use private glibc API
6051         Suggested by Florian Weimer in:
6052         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
6053         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
6054         * lib/scratch_buffer_grow.c: Rename to
6055         lib/malloc/scratch_buffer_grow.c.
6056         * lib/scratch_buffer_grow_preserve.c: Rename to
6057         lib/malloc/scratch_buffer_grow_preserve.c.
6058         * lib/scratch_buffer_set_array_size.c: Rename to
6059         lib/malloc/scratch_buffer_set_array_size.c.
6060         * lib/scratch_buffer.h: New file.
6061         * modules/scratch_buffer (Files, Makefile.am):
6062         Adjust to source-file renaming.
6064 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6066         glob: use scratch_buffer instead of extend_alloca
6067         Much of the lib/glob.c part of this patch comes from a glibc patch
6068         proposed by Adhemerval Zanella in:
6069         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
6070         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
6071         included via glob.h, does this for us now.
6072         (__set_errno): Remove, as libc-config does this for us now.
6073         Include <scratch_buffer.h>.
6074         (GETPW_R_SIZE_MAX): Remove.
6075         (glob): Use struct scratch_buffer instead of extend_alloca.
6076         * lib/glob.in.h: Include libc-config.h rather than
6077         including <sys/cdefs.h> conditionally.
6078         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
6079         (__glibc_unlikely, __restrict, weak_alias):
6080         Remove, as libc-config does this for us now.
6081         * m4/glob.m4 (gl_PREREQ_GLOB):
6082         Remove sys/cdefs.h tests; no longer needed.
6083         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
6084         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
6086         scratch_buffer: new module
6087         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
6088         * lib/scratch_buffer_grow_preserve.c:
6089         * lib/scratch_buffer_set_array_size.c:
6090         New files, copied from glibc with very minor changes that can be
6091         copied back.
6092         * modules/scratch_buffer: New file.
6094         libc-config: new module
6095         * MODULES.html.sh: Add libc-config.
6096         * lib/cdefs.h: New file, copied from the GNU C Library with very
6097         minor changes that can be copied back.
6098         * lib/libc-config.h, modules/libc-config: New files.
6100 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
6102         glob: match dangling symlinks
6103         This fixes a bug I inadvertently introduced to Gnulib when I
6104         merged glibc glob back into gnulib on 2007-10-16.  This fix is
6105         inspired by a patch proposed for glibc by Adhemerval Zanella in:
6106         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
6107         * doc/posix-functions/glob.texi: Update list of affected platforms.
6108         * lib/glob.c (__lstat64): New macro.
6109         (is_dir): New function.
6110         (glob, glob_in_dir): Match symlinks even if they are dangling.
6111         (link_stat, link_exists_p): Remove.  All uses removed.
6112         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
6113         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
6114         * modules/glob-tests (Depends-on): Add symlink.
6115         * tests/test-glob.c: Include errno.h, unistd.h.
6116         (BASE): New macro.
6117         (main): Test dangling symlinks, if symlinks are supported.
6119         glob, backupfile: inode 0 is a valid inode number
6120         * doc/posix-functions/readdir.texi (readdir):
6121         * doc/posix-headers/dirent.texi (dirent.h):
6122         Document more readdir portability issues.
6123         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
6124         (numbered_backup): Don’t treat inode 0 any differently from
6125         other inode values.
6126         * lib/glob.c (struct readdir_result): Remove skip_entry member.
6127         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
6128         All uses removed.
6129         * modules/glob (Depends-on): Remove d-ino.
6131         glob: simplify symlink detection
6132         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
6133         uint8_t, as C99 does not require uint8_t.
6134         (struct readdir_result): Use it.  Do not define skip_entry unless
6135         it is needed; this saves a byte on platforms lacking d_ino.
6136         (readdir_result_type, readdir_result_skip_entry):
6137         New functions, replacing ...
6138         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
6139         ... these functions, which were removed.  This makes the callers
6140         easier to read.  All callers changed.
6141         (D_INO_TO_RESULT): Now empty if there is no d_ino.
6143 2017-08-30  Pádraig Brady  <P@draigBrady.com>
6145         fts-tests: tag as a longrunning-test so not included by default
6146         * modules/fts-tests: This test takes about 20s on current systems,
6147         and uses about 285M of space on ext4.
6149 2017-08-30  Pádraig Brady  <P@draigBrady.com>
6151         renameat2: fix compilation on alpine linux
6152         * m4/renameat.m4: Check for <linux/fs.h> presence.
6153         * lib/renameat2.h: Only include <linux/fs.h> if present.
6154         Reported by Assaf Gordon on Alpine Linux.
6156 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6158         glob: try to port recent changes to MS-Windows
6159         Problem reported by Bruno Haible in:
6160         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
6161         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
6162         * lib/glob.in.h (__glob_pattern_p): ... to here.
6164 2017-08-24  Eric Blake  <eblake@redhat.com>
6166         warnings: fix compilation with old autoconf
6167         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
6168         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
6169         AC_DEFUN.
6170         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
6171         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
6173 2017-08-24  Bruno Haible  <bruno@clisp.org>
6175         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
6176         * modules/glob (Depends-on): Add c99.
6178 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
6180         glob: fix typo that broke platforms lacking d_ino
6181         This typo also hurt performance on GNU/Linux and similar hosts.
6182         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
6183         in previous change.
6185 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
6187         glob: merge from glibc with Zanella glob changes
6188         Merge glob from glibc, with changes for glob proposed
6189         by Adhemerval Zanella in the thread starting here:
6190         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
6191         plus some fixes for this merge.
6192         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
6193         New files, ported from glibc.
6194         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
6195         with __restrict.
6196         (__size_t): Remove.  All uses replaced by size_t.
6197         (size_t): Define by defining __need_size_t and including <stddef.h>.
6198         This should work even in non-glibc platforms, where any name
6199         pollution is OK.
6200         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
6201         (struct stat64): Don’t worry about __GLOB_GNULIB.
6202         (glob, globfree, glob_pattern_p): Remove macros for
6203         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
6204         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
6205         but set errno.
6206         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
6207         removed since the glibc behavior works on null pointers.
6208         Do not include stdio.h; old SunOS is irrelevant now.
6209         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
6210         Include glob_internal.h.
6211         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
6212         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
6213         worked only coincidentally.
6214         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
6215         Remove macros; now done in glob.in.h.
6216         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
6217         (glob): Properly initialize glob structure with
6218         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
6219         Remove old code using SHELL since Bash no longer
6220         uses this.
6221         (glob, prefix_array): Separate MS code better.
6222         (glob, glob_in_dir): Use C99 decls before statements when glibc
6223         does.
6224         (glob_in_dir): Remove old Amiga and VMS code.
6225         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
6226         separate files.
6227         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
6228         (__glibc_unlikely):
6229         Move here from glob.c.
6230         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
6231         (weak_alias): New macro.
6232         (__size_t): Remove.  All uses replaced by size_t.
6233         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
6234         * modules/glob (Files): Add +lib/glob_internal.h,
6235         lib/glob_pattern_p.c, lib/globfree.c.
6236         (Depends-on): Remove snippet/arg-nonnull.
6238 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
6240         glob: port to clang's Undefined Sanitizer
6241         Problem reported by Tim Rühsen in:
6242         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
6243         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
6244         (glob_in_dir): Do not rely on undefined behavior in accessing
6245         struct members beyond their bounds.  Use a flexible array member
6246         instead.
6248 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
6250         vc-list-files: port to Solaris 10
6251         * build-aux/vc-list-files: Don't assume test -e works.
6253 2017-08-21  Karl Berry  <karl@freefriends.org>
6255         * doc/posix-functions/srandom.texi (srandom): typo }.
6257 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
6259         git-version-gen: port to Solaris 10
6260         Problem reported by Dagobert Michelsen in:
6261         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
6262         * build-aux/git-version-gen (v_from_git):
6263         Use expr instead of shell substitution.
6265 2017-08-19  Bruno Haible  <bruno@clisp.org>
6267         host-cpu-c-abi: Improve detection of MIPS ABI.
6268         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
6269         _MIPS_SIM.
6271 2017-08-17  Bruno Haible  <bruno@clisp.org>
6273         hypot tests: Fix test failure on FreeBSD 11.0/x86.
6274         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
6276 2017-08-17  Bruno Haible  <bruno@clisp.org>
6278         float: Fix LDBL_MIN value on FreeBSD/x86.
6279         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
6281 2017-08-17  Bruno Haible  <bruno@clisp.org>
6283         random: Fix test compilation failure on Cygwin 1.5.25.
6284         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
6285         HAVE_DECL_SETSTATE.
6286         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
6287         declared.
6288         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
6289         HAVE_DECL_SETSTATE.
6290         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
6291         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
6292         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
6293         * doc/posix-functions/random.texi: Likewise.
6294         * doc/posix-functions/setstate.texi: Likewise.
6295         * doc/posix-functions/srandom.texi: Likewise.
6297 2017-08-16  Bruno Haible  <bruno@clisp.org>
6299         stdnoreturn: Fix test compilation failure on Cygwin.
6300         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
6301         <stdnoreturn.h> replacement.
6302         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
6303         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
6305 2017-08-16  Bruno Haible  <bruno@clisp.org>
6307         thread: Fix conflict with pthread_sigmask module.
6308         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
6309         it's defined as a macro.
6310         * modules/thread (Depends-on): Add pthread_sigmask.
6312 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
6314         rename: port better to NetBSD
6315         * doc/posix-functions/rename.texi (rename): NetBSD 7
6316         does not have the link-count bug.
6317         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
6318         broken merely because rename ("a", "b") removes "a" when the two
6319         names are hard links to the same file.
6321 2017-08-16  Bruno Haible  <bruno@clisp.org>
6323         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
6324         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
6325         the target file names with '$(srcdir)/'.
6326         * modules/unicase/locale-language (Makefile.am): Likewise.
6327         * modules/unicase/special-casing (Makefile.am): Likewise.
6328         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
6329         * modules/unictype/category-byname (Makefile.am): Likewise.
6330         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
6331         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
6332         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
6333         * modules/unictype/property-byname (Makefile.am): Likewise.
6334         * modules/unictype/scripts (Makefile.am): Likewise.
6335         * modules/uninorm/composition (Makefile.am): Likewise.
6337 2017-08-16  Bruno Haible  <bruno@clisp.org>
6339         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
6340         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
6341         value for OpenBSD.
6343 2017-08-16  Bruno Haible  <bruno@clisp.org>
6345         rename, renameat: Update doc regarding NetBSD.
6346         * doc/posix-functions/rename.texi: Clarify that when using
6347         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
6348         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
6349         version.
6351 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
6353         renameat2: port better to macOS
6354         * lib/renameat2.c (renameat2): Use renameatx_np if available.
6356         futimens: don’t assume struct timespec layout
6357         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
6358         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
6359         * tests/test-fdutimensat.c (main):
6360         * tests/test-futimens.h (test_futimens):
6361         * tests/test-lutimens.h (test_lutimens):
6362         * tests/test-utimens.h (test_utimens):
6363         * tests/test-utimensat.c (main):
6364         Don’t assume that struct timespec is a two-member structure in
6365         tv_sec, tv_nsec order.  Although this is true on all platforms we
6366         know about, POSIX does not guarantee it.
6368         rename: document+test NetBSD rename
6369         Test failure reported by Bruno Haible in:
6370         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
6371         This is an area where NetBSD is better-behaved than POSIX,
6372         so allow the NetBSD behavior in tests.
6373         * doc/posix-functions/rename.texi:
6374         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
6375         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
6377 2017-08-15  Bruno Haible  <bruno@clisp.org>
6379         renameat: Ensure declaration in <stdio.h> on NetBSD.
6380         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
6381         * doc/posix-functions/renameat.texi: Mention this problem.
6383 2017-08-15  Bruno Haible  <bruno@clisp.org>
6385         duplocale: Work around NetBSD 7.0 bug.
6386         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
6387         * lib/duplocale.c: Add comment about NetBSD problem.
6388         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
6390 2017-08-15  Bruno Haible  <bruno@clisp.org>
6392         duplocale tests: Verify use with *_l functions.
6393         * modules/duplocale-tests (configure.ac): Test for uselocale and
6394         some *_l functions.
6395         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
6396         from main.
6397         (get_locale_dependent_values_from, test_with_locale_parameter): New
6398         functions.
6399         (main): Test both test_with_uselocale and test_with_locale_parameter.
6401 2017-08-15  Bruno Haible  <bruno@clisp.org>
6403         extensions: Enable NetBSD specific extensions.
6404         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
6406 2017-08-14  Bruno Haible  <bruno@clisp.org>
6408         open, openat: Update doc about O_CLOEXEC.
6409         * doc/posix-functions/open.texi: More concrete list of platforms.
6410         * doc/posix-functions/openat.texi: Likewise.
6412 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
6414         open: support O_CLOEXEC
6415         * NEWS, doc/posix-functions/open.texi:
6416         * doc/posix-functions/openat.texi: Document this.
6417         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
6418         (GNULIB_defined_O_CLOEXEC): New symbol.
6419         * lib/open.c: Include cloexec.h.
6420         (open): Support O_CLOEXEC.
6421         * lib/openat.c: Include cloexec.h.
6422         (rpl_openat): Support O_CLOEXEC.
6423         * lib/popen-safer.c: Do not include cloexec.h.
6424         (open_noinherit): Remove.
6425         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
6426         * lib/save-cwd.c: Do not include cloexec.h.
6427         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
6428         * m4/open-cloexec.m4: New file.
6429         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
6430         Replace 'open' if O_CLOEXEC is not present.
6431         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
6432         Replace 'openat' if O_CLOEXEC is not present.
6433         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
6434         * modules/open (Files): Add m4/open-cloexec.m4.
6435         (Depends-on): Depend on cloexec if replacing 'open'.
6436         * modules/openat (Files): Add m4/open-cloexec.m4.
6437         (Depends-on): Depend on cloexec if replacing openat.
6438         * modules/popen-safer (Depends-on): Remove cloexec.
6439         * modules/save-cwd (Depends-on): Remove cloexec, and add
6440         fd-safer-flag and 'open'.
6442 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
6444         reallocarray: minor fixes
6445         * doc/glibc-functions/reallocarray.texi: Update version numbers.
6446         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
6447         * modules/reallocarray (License): Change from GPL to LGPL.
6448         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
6449         Indent properly and don't use tabs.
6451 2017-08-13  Darshit Shah  <darnir@gnu.org>
6453         reallocarray: New module
6454         reallocarray is a new function in glibc 2.26 to safely allocate an array
6455         of memory locations with integer overflow protection.
6456         * MODULES.html.sh: Add reallocarray.
6457         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
6458         * lib/reallocarray.c: New file to implement module reallocarray.
6459         * lib/stdlib.in.h: Add function declarations for reallocarray.
6460         * m4/reallocarray.m4: New file.
6461         * m4/stdlib_h.m4: Declare reallocarray.
6462         * modules/reallocarray: New file.
6463         * modules/reallocarray-test: New file.
6464         * modules/stdlib: Coerce stdlib.h to export reallocarray.
6465         * tests/test-reallocarray.c: New test.
6467 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6469         dirent-safer: fix cloexec race
6470         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
6471         (opendir_safer): Use F_DUPFD_CLOEXEC.
6472         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
6473         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
6474         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
6475         instead of dup_safer.
6477         fts: fix cloexec races
6478         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
6479         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
6480         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
6481         (fd_ring_check): Set cloexec flag on new file descriptors.
6482         (fts_build, fd_ring_check): While we’re at it, make sure the
6483         resulting file descriptor is not 0, 1, or 2, since that is easy.
6485 2017-08-11  Bruno Haible  <bruno@clisp.org>
6487         fts tests: Fix link error.
6488         Reported by Tom G. Christensen in
6489         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
6490         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
6492 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
6494         fts: port recent changes to CentOS 6
6495         Problem reported by Tom G. Christensen in:
6496         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
6497         * lib/fts.c (fsword): New type.
6498         (struct dev_type, filesystem_type): Use it.
6499         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
6500         Also, check for f_type only if fstatfs and sys/vfs.h work.
6502 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
6504         tempname: do not depend on secure_getenv
6505         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
6506         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
6507         * modules/tempname (Depends-on): Remove secure_getenv.
6509 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
6511         extensions: add _OPENBSD_SOURCE
6512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
6514 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
6515             Bruno Haible  <bruno@clisp.org>
6517         manywarnings: Add support for C++.
6518         * build-aux/g++-warning.spec: New file.
6519         * m4/manywarnings-c++.m4: New file.
6520         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
6521         redirects to manywarnings-c++.m4.
6522         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
6524 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
6526         git-version-gen: another fix for tags with "-"
6527         * build-aux/git-version-gen: Improve fix for tags containing "-".
6528         Suggested by Markus Armbruster in:
6529         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
6531 2017-08-06  Bruno Haible  <bruno@clisp.org>
6533         warnings, manywarnings: Add support for multiple languages, not just C.
6534         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
6535         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
6536         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
6537         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
6538         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
6539         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
6540         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
6541         of the current language. If C++ is the current language, modify
6542         WARN_CXXFLAGS instead of WARN_CFLAGS.
6543         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
6544         gl_MANYWARN_ALL_GCC.
6545         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
6547 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
6549         git-version-gen: Fix for tags containing '-'
6551         Really old versions of git-describe (before v1.5.0, Feb 2007)
6552         don't have the number of commits in their long format output,
6553         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
6554         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
6555         recognizes both patterns, and normalizes the old format to the new one.
6557         Unfortunately, this normalization code gets confused when the tag
6558         contains '-'.  Reproducer:
6560             $ git-tag -m test v0.2-rc1
6561             $ build-aux/git-version-gen .tarball-version; echo
6562             build-aux/git-version-gen: WARNING: git rev-list failed
6563             UNKNOWN
6565         We take exact tag "v0.2-rc1" for the old format, extract the presumed
6566         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
6567         commits since tha tag.  Fails, because tag "v0.2" does not exist.
6569         * git-version-gen: We could perhaps drop support for versions from
6570         more than a decade ago.  But tightening the pattern match is easy
6571         enough, so do that.  Still breaks when you use version tags ending in
6572         something matching -g????, but you arguably get what you deserve then.
6574 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
6576         valgrind-tests: use ls, and cache
6577         * m4/valgrind-tests.m4: Test ls, not bash.
6578         Problem reported by Reuben Thomas.
6579         Also, cache the result so that it can be overridden.
6581 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
6583         manywarnings: port to 64-bit GCC builds of Emacs
6584         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
6585         object size rather than hardwiring 2147483647.  This is needed to
6586         build GNU Emacs, which has one conditional (and used
6587         only-in-theory) call to malloc with a literal greater than
6588         2147483647.
6590 2017-08-04  Bruno Haible  <bruno@clisp.org>
6592         Relax the license of some modules with no runtime code.
6593         * modules/std-gnu11 (License): Set to 'unlimited'.
6594         * modules/c99 (License): Likewise.
6595         Reported by Reuben Thomas <rrt@sc3d.org>.
6596         * modules/d-ino (License): Set to 'LGPL'.
6597         * modules/host-os (License): Likewise.
6598         * modules/longlong (License): Likewise.
6600 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
6602         renameat2: port to RHEL 7 + NFS
6603         * lib/renameat2.c (renameat2) [SYS_renameat2]:
6604         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
6605         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
6607 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
6609         renameat2: port to non-renameat platforms
6610         Problem reported for MSVC-2015 by Gisle Vanem in:
6611         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
6612         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
6613         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
6615 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
6617         manywarnings: port to 32-bit GCC bug
6618         Problem reported by Pino Toscano in:
6619         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
6620         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
6621         not 2**63 - 1, to work around the following GCC bug:
6622         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
6624 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
6626         backupfile: new function to validate backup suffix
6627         * lib/backupfile.c (set_simple_backup_suffix): New function.
6628         (backupfile_internal): Use it.
6630         canonicalize: fix EOVERFLOW commentary
6631         Problem reported by Bruno Haible in:
6632         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
6633         * lib/canonicalize.c (canonicalize_filename_mode):
6634         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
6636         Don't interpret EOVERFLOW to mean nonexistence
6637         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
6638         may be EOVERFLOW; this is likely more useful than reporting the
6639         stat errno.
6640         * lib/glob.c (link_stat): Rename from link_exists2_p and
6641         return -1/0 instead of 0/1.  Caller changed.
6642         * lib/glob.c (link_exists_p):
6643         * lib/renameat2.c (rename_noreplace, renameat2):
6644         * lib/tempname.c (try_nocreate):
6645         If errno == EOVERFLOW then the directory entry exists, so do not
6646         act as if it does not exist.
6648         backup-rename: new module
6649         It is like backupfile, except it avoids some race conditions,
6650         and it does not output to stderr or exit.
6651         * MODULES.html.sh: Add backup-rename.
6652         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
6653         * modules/backup-rename: New files.
6654         * lib/backupfile.c: Turn this into an internals file, which
6655         contains code common to backupfile and backup_rename.  Include
6656         backupfile-internal.h instead of backupfile.h.  Do not include
6657         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
6658         renameat2.h and fcntl.h.
6659         (BACKUP_NOMEM): New constant.
6660         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
6661         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
6662         (backupfile_internal): Rename from find_backup_file_name.
6663         Support new arg RENAME.
6664         (backup_args, backup_types, get_version, xget_version):
6665         Move to lib/backup-find.c.
6666         * lib/backupfile.h (backup_file_rename): New decl.
6667         * modules/backupfile (Files): Add lib/backup-internal.h,
6668         lib/backup-find.c.
6669         (Depends-on): Add dirfd, fcntl, renameat2.
6670         (lib_SOURCES): Add backup-find.c.
6672         renameat2: port better to older Solaris
6673         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
6674         Add goto to use a label, to silence picky compilers.
6676         fts-tests: port to gcc -Wwrite-strings
6677         * tests/test-fts.c (base, base_d): New static vars.
6678         (argv, remove_tree, main): Use them.
6680 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6682         relocatable-lib{,-lgpl}: improve documentation
6683         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
6684         Various other updates.
6686 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
6687             Bruno Haible  <bruno@clisp.org>
6689         relocatable-lib{,-lgpl}: add Valgrind suppressions
6690         * lib/relocatable.valgrind: New file.
6691         * modules/relocatable-lib (Files): Add relocatable.valgrind.
6692         * modules/relocatable-lib-lgpl: Likewise.
6694 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
6696         relocatable: Make the license on the sources the GPL.
6697         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
6698         LGPL, which was a special case so that the relocatable source files
6699         could be used without gnulib-tool, to GPL. They can still be used under
6700         the LGPL, using the --lgpl option to gnulib-tool.
6702 2017-07-30  Bruno Haible  <bruno@clisp.org>
6704         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
6705         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
6706         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
6707         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
6708         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
6710 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
6712         faccessat: document AT_SYMLINK_NOFOLLOW issue
6713         * doc/posix-functions/faccessat.texi: Modernize platform list.
6714         Document AT_SYMLINK_NOFOLLOW limitation.
6716         renameat2: port to Solaris 10
6717         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
6718         with AT_SYMLINK_NOFOLLOW (which is not portable).
6719         (renameat): Undef before using, to avoid endless recursion when
6720         the replacement renameat calls renameat2 which calls the
6721         replacement renameat.
6722         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
6723         * modules/renameat2 (Depends-on): Remove faccessat.
6724         * modules/renameat-tests (test_renameat_LDADD):
6725         * modules/renameat2-tests (test_renameat2_LDADD):
6726         Remove $(LIB_EACCESS).
6728         renameat2: new module
6729         Although the Linux syscall renameat2 is not in glibc (yet?), it is
6730         useful to have access to its RENAME_NOREPLACE flag.
6731         * MODULES.html.sh (func_all_modules): Add renameat2.
6732         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
6733         * modules/renameat2-tests, tests/test-renameat2.c: New files.
6734         * lib/renameat.c (renameat): Move most of the implementation
6735         to renameat2, and just call renameat2.
6736         * modules/renameat (Files): Remove lib/at-func2.c.
6737         (Depends-on): Depend only on renameat2.
6738         (Include): Remove <fcntl.h>.
6739         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
6740         since renameat (via renameat2) might use faccessat.
6742 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
6744         vc-list-files: Adjust the script to support git worktrees
6745         * build-aux/vc-list-files: Require existence, not directory.
6747 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6749         doc: bring MODULES.html.sh up to date
6750         Somehow a few months ago we stopped updating MODULES.html.sh.
6751         I don’t recall explicitly deciding this, so I updated it now.
6752         Alternatively I suppose we could remove it.
6753         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
6754         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
6755         truncate, utime, utime-h, windows-stat-inodes,
6756         windows-stat-override, windows-stat-timespec, year2038.  Sort.
6758 2017-07-26  Jim Meyering  <meyering@fb.com>
6760         fprintftime: fix build-break caused by recent renaming
6761         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
6762         "strftime.c".
6763         * modules/fprintftime: Depend directly on nstrftime.
6765 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
6767         regex: work with GCC7's -Werror=implicit-fallthrough=
6768         * lib/regex_internal.h (FALLTHROUGH): New macro.
6769         * lib/regcomp.c (peek_token_bracket, parse_expression):
6770         * lib/regexec.c (check_node_accept): Use it.
6772 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
6774         fts: simplify fts_build
6775         * lib/fts.c (fts_build): Simplify, and be lazier about
6776         calling leaf_optimization.
6778         fts: three levels of leaf optimization
6779         * lib/fts.c (enum leaf_optimization): New type with three values.
6780         (S_MAGIC_AFS): New macro.  Sort them.
6781         (leaf_optimization): Rename from leaf_optimization_applies, and
6782         return enum leaf_optimization instead of bool.  All uses changed.
6783         Add cases for unknown type and for AFS.
6784         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
6786         fts: cache dirent_inode_sort_may_be_useful too
6787         * lib/fts.c (struct dev_type): New struct.
6788         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
6789         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
6790         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
6791         Now takes FTSENT const *, not int.  All uses changed.  Use
6792         filesystem_type to cache.
6793         (link_count_optimize_ok): Remove.  Caller changed to use
6794         leaf_optimization_applies, which now uses shared cache.
6796         fts: introduce MIN_DIR_NLINK
6797         * lib/fts.c (MIN_DIR_NLINK): New constant.
6798         Use it instead of 2, whenever we are talking about link counts.
6800         fts: nlink_t signedness fixups
6801         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
6802         so that root need not be a special case later.
6803         (fts_read): Remove now-redundant test for fts_level.
6804         Do not assume that nlink_t is signed.
6805         (fts_build): Remove useless decrement of nlinks.
6806         (fts_stat): Avoid unlikely signed integer overflow later, if
6807         nlink_t is signed.
6809         fts-tests: new module
6810         * modules/fts-tests, tests/test-fts.c: New files.
6812 2017-07-23  Bruno Haible  <bruno@clisp.org>
6814         Rename module 'strftime' to 'nstrftime'.
6815         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
6816         * lib/nstrftime.c: Renamed from lib/strftime.c.
6817         * modules/nstrftime: Renamed from modules/strftime.
6818         (Files, Makefile.am): Update.
6819         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
6820         Fix comment.
6821         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
6822         (Files, Makefile.am): Update.
6823         * modules/strftime: New file, an obsolete indirection.
6824         * doc/posix-functions/strftime.texi: Update reference.
6825         * config/srclist.txt: Update info.
6826         * NEWS: Mention the change.
6828 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
6830         malloca: Silence a warning from clang's memory sanitizer.
6831         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
6832         (freea): Use it.
6834 2017-07-18  Bruno Haible  <bruno@clisp.org>
6836         host-cpu-c-abi: Fix detection of MIPS ABI.
6837         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
6838         ABI, not the CPU instruction set.
6840 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
6842         explicit_bzero: new module
6843         The explicit_bzero function has been added to glibc.
6844         This module is intended to supports its use in GNU programs.
6845         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
6846         * m4/explicit_bzero.m4, modules/explicit_bzero:
6847         New files.
6848         * doc/gnulib.texi (Glibc string.h): Link to new doc.
6849         * lib/string.in.h (explicit_bzero): Declare.
6850         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
6851         * modules/string (string.h): Substitute its vars.
6853 2017-07-16  Bruno Haible  <bruno@clisp.org>
6855         threadlib: Support static linking.
6856         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
6857         set gl_cv_have_weak to 'no'.
6859 2017-07-16  Bruno Haible  <bruno@clisp.org>
6861         unicase/locale-language: Fix link dependencies.
6862         * modules/unicase/locale-language (Link): New section.
6863         * modules/unicase/locale-language-tests (Makefile.am): Link
6864         test-locale-language program with $(LIBTHREAD).
6866 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6868         sys_socket: Add support for OpenVMS.
6869         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
6870         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
6872 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6874         sys_resource: Add support for OpenVMS.
6875         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
6876         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
6878 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
6879             Bruno Haible  <bruno@clisp.org>
6881         math: Add support for OpenVMS.
6882         * lib/math.in.h [__VMS]: Include <fp.h>.
6883         * doc/posix-headers/math.texi: Mention OpenVMS issues.
6885 2017-07-15  Bruno Haible  <bruno@clisp.org>
6887         getdtablesize: Add minimal support for OpenVMS.
6888         Reported by John E. Malmberg <wb8tyw@qsl.net>.
6889         * modules/getdtablesize (Description): Fix.
6890         * lib/getdtablesize.c: Fix comment.
6891         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
6892         getdtablesize() function, even though the test fails.
6893         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
6894         limitation on OpenVMS.
6896 2017-07-13  Bruno Haible  <bruno@clisp.org>
6898         Revisit cross-compilation guesses.
6899         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
6901 2017-07-13  Bruno Haible  <bruno@clisp.org>
6903         Improve cross-compilation guesses for native Windows.
6904         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
6905         Windows.
6906         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
6907         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
6908         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
6909         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
6910         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
6911         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
6912         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6913         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6914         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
6915         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
6916         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6917         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
6918         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
6919         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
6920         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
6921         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
6922         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
6923         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
6924         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
6925         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
6926         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
6927         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6928         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
6929         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
6930         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
6931         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
6932         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
6933         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6934         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
6935         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
6936         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
6937         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
6938         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
6939         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
6940         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
6941         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
6942         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
6943         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
6944         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
6945         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
6946         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
6947         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
6948         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
6949         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
6950         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
6951         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
6952         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
6953         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
6954         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
6955         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
6956         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
6957         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
6958         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
6959         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
6960         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
6961         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
6962         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
6963         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
6964         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
6965         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
6966         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
6967         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
6968         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
6969         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
6970         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6971         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
6972         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
6973         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
6974         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
6975         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
6976         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
6977         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
6978         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6979         * m4/regex.m4 (gl_REGEX): Likewise.
6980         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6981         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
6982         gl_FUNC_REMAINDERF_WORKS): Likewise.
6983         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
6984         gl_FUNC_REMAINDERL_WORKS): Likewise.
6985         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6986         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6987         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
6988         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6989         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6990         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6991         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6992         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6993         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
6994         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6995         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
6996         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
6997         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
6998         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
6999         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
7000         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
7001         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7002         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7003         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
7004         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7005         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7006         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7007         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
7008         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
7009         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
7010         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
7011         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
7012         Likewise.
7013         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
7014         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
7015         Windows. Enable also on Autoconf 2.70.
7016         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
7017         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
7018         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
7019         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
7020         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
7021         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
7022         for native Windows.
7023         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
7024         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
7026 2017-07-13  Bruno Haible  <bruno@clisp.org>
7028         Improve cross-compilation guesses for native Windows.
7029         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
7030         Windows.
7031         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
7032         memchr.m4.
7033         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
7035 2017-07-13  Bruno Haible  <bruno@clisp.org>
7037         Improve cross-compilation guesses for native Windows.
7038         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
7039         native Windows.
7040         (gl_FUNC_FFLUSH): Update accordingly.
7041         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
7042         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7044 2017-07-11  Bruno Haible  <bruno@clisp.org>
7046         More systematic m4 quoting and indentation.
7047         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
7048         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
7049         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
7050         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7051         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7052         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
7053         gl_WINSIZE_IN_PTEM): Likewise.
7054         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
7055         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
7056         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
7057         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
7058         Correct indentation.
7059         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7060         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7061         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
7062         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7063         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
7064         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
7066 2017-07-10  Bruno Haible  <bruno@clisp.org>
7068         round, roundf: Avoid compiler warning in configure test.
7069         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
7070         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
7072 2017-07-10  Bruno Haible  <bruno@clisp.org>
7074         getlogin tests: Avoid #ifdefs when sharing code between modules.
7075         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
7076         * modules/getlogin-tests (Files): Likewise. Remove
7077         tests/test-getlogin_r.c.
7078         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
7079         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
7080         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
7081         getlogin().
7083 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
7085         getlogin: don’t assume one name per uid
7086         Problem reported by Wolfgang F. Muthmann (Bug#27640).
7087         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
7088         (ttyname): Remove test.
7089         * modules/getlogin_r-tests (ttyname): Remove test.
7090         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
7091         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
7092         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
7093         getlogin rather than getlogin_r.  This avoids code duplication.
7094         (main): Use isatty and fstat rather than ttyname and stat.
7095         Use getpwnam instead of getpwuid, to be portable to test platforms
7096         that have multiple login names for the same uid.
7098 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
7099             Bruno Haible  <bruno@clisp.org>
7101         glob: Fix more memory leaks.
7102         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
7103         returning.
7104         Reported by Tim Rühsen.
7106 2017-07-10  Bruno Haible  <bruno@clisp.org>
7108         Make sure $host and $host_os are defined when used.
7109         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
7110         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
7111         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
7112         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
7113         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
7114         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
7115         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
7116         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
7117         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
7118         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
7119         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
7120         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
7121         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
7122         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
7123         m4_ifdef block.
7125 2017-07-09  Bruno Haible  <bruno@clisp.org>
7127         *printf: Fix cross-compilation guess for Solaris.
7128         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
7129         2010-12-21.
7131 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
7132             Bruno Haible  <bruno@clisp.org>
7134         vasnprintf: port to macOS 10.13
7135         Problem reported by comex in:
7136         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
7137         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
7139 2017-07-06  Bruno Haible  <bruno@clisp.org>
7141         imaxdiv tests: Fix logic.
7142         * tests/test-imaxdiv.c (main): Use == instead of =.
7143         Reported by Coverity.
7145 2017-07-06  Bruno Haible  <bruno@clisp.org>
7147         uninorm/filter: Fix use-after-free bug.
7148         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
7149         sortbuf == filter->sortbuf invariant.
7150         Reported by Coverity.
7152 2017-07-06  Bruno Haible  <bruno@clisp.org>
7154         glob: Fix more memory leaks.
7155         * lib/glob.c (glob): Free dirname before returning.
7156         Reported by Coverity and Tim Rühsen.
7158 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
7160         parse-datetime: fix uninit var bug
7161         Reported by Bruno Haible in:
7162         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
7163         * lib/parse-datetime.y (parse_datetime2): Do not use
7164         uninitialized.
7166 2017-07-05  Bruno Haible  <bruno@clisp.org>
7168         doc: Update for MSVC 14.
7169         * doc/posix-headers/*.texi: Add info about MSVC 14.
7170         * doc/posix-functions/*.texi: Likewise.
7171         * doc/pastposix-functions/*.texi: Likewise.
7172         * doc/glibc-headers/*.texi: Likewise.
7173         * doc/glibc-functions/*.texi: Likewise.
7175 2017-07-05  Bruno Haible  <bruno@clisp.org>
7177         sched: Fix build failure on native Windows (regression from 2017-06-19).
7178         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
7180 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
7182         stdioext: Port to OpenVMS.
7183         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
7184         * lib/fpending.c (fpending): Remove non-working VMS specific code.
7185         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
7186         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
7187         * lib/fpurge.c (fpurge): Likewise.
7188         * lib/freadable.c (freadable): Likewise.
7189         * lib/freadahead.c (freadahead): Likewise.
7190         * lib/freading.c (freading): Likewise.
7191         * lib/freadptr.c (freadptr): Likewise.
7192         * lib/freadseek.c (freadseek): Likewise.
7193         * lib/fseeko.c (fseeko): Likewise.
7194         * lib/fseterr.c (fseterr): Likewise.
7195         * lib/fwritable.c (fwriteable): Likewise.
7196         * lib/fwriting.c (fwriting): Likewise.
7198 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
7200         glob: Declare variables at the very start of their scope.
7201         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
7202         its separate scope, so the functions will compile on Haiku.
7204 2017-07-01  Bruno Haible  <bruno@clisp.org>
7206         logbl: Work around a glibc bug on PowerPC64LE.
7207         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
7208         numbers.
7209         * doc/posix-functions/logbl.texi: Update.
7211 2017-06-29  Bruno Haible  <bruno@clisp.org>
7213         stat, fstat: Compile stat-w32.c only on platforms that need it.
7214         Suggested by Paul Eggert.
7215         * modules/stat (configure.ac): Request stat-w32.o only on native
7216         Windows.
7217         * modules/fstat (configure.ac): Likewise.
7219 2017-06-25  Bruno Haible  <bruno@clisp.org>
7221         stat: Improve last change.
7222         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
7224 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
7226         stat: port to xlc 12.01
7227         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
7228         12.01 complains "Compilation unit is empty."
7230 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
7232         xalloc-oversized: port to icc
7233         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
7234         __builtin_mul_overflow if ICC is defined, as this results in
7235         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
7236         20170213.
7238 2017-06-19  Bruno Haible  <bruno@clisp.org>
7240         classpath: Avoid including config.h twice, as it produces warnings.
7241         Reported by John E. Malmberg <wb8tyw@gmail.com>.
7242         * lib/classpath.h: Conditionalize the include of config.h.
7244 2017-06-19  Bruno Haible  <bruno@clisp.org>
7245             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
7247         sched: Fix compilation failure on OpenVMS.
7248         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
7249         test whether <pthread.h> exists and defines struct sched_param.
7250         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
7252 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
7254         diffseq: port to GCC 7 with --enable-gcc-warnings
7255         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
7256         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
7257         not complain about big_snake being defined but not used.
7259 2017-06-15  Bruno Haible  <bruno@clisp.org>
7261         gettext-h: Update theoretical condition for use of variable size arrays.
7262         Reported by Paul Eggert.
7263         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
7264         to include the theoretical condition for availability of variable size
7265         arrays, if we could trust the value of __STDC_VERSION__.
7267 2017-06-12  Bruno Haible  <bruno@clisp.org>
7269         Relicense some modules under LGPLv2+.
7270         Daiki Ueno's approval is in
7271         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
7272         * modules/uniwidth/base (License): Change to LGPLv2+.
7273         * modules/uniwidth/width (License): Likewise.
7275 2017-06-11  Bruno Haible  <bruno@clisp.org>
7277         localename: Fix test failure on DragonFly BSD.
7278         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
7279         like FreeBSD.
7281 2017-06-11  Bruno Haible  <bruno@clisp.org>
7283         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
7284         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
7285         * lib/float.in.h: Likewise.
7286         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
7288 2017-06-11  Bruno Haible  <bruno@clisp.org>
7290         gnulib-tool: Clean up after autotools.
7291         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
7292         useless directory left over by the Autotools.
7294 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
7296         getopt-posix: port to glibc 2.25.90
7297         Problem reported by Daniel P. Berrange in:
7298         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
7299         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
7300         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
7301         #undef if __GETOPT_PREFIX is defined.
7303 2017-06-11  Bruno Haible  <bruno@clisp.org>
7305         strtod-obsolete: Fix license.
7306         * modules/strtod-obsolete (License): Change to LGPL.
7308 2017-06-10  Jim Meyering  <meyering@fb.com>
7310         maint: update to work with GCC7's -Werror=implicit-fallthrough=
7311         * lib/savewd.c (FALLTHROUGH): Define.
7312         (savewd_save, savewd_restore): Use this, rather than a comment,
7313         whenever one switch case falls through into the next.
7315 2017-06-08  Bruno Haible  <bruno@clisp.org>
7317         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
7318         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
7319         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
7320         case.
7322 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
7324         doc: remove robots, add prereqs
7325         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
7326         builds.  Simon's robot site does not seem to be up, so remove
7327         mentions of it for now.
7329 2017-06-08  Bruno Haible  <bruno@clisp.org>
7331         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
7332         * gnulib-tool (func_symlink_target): New function, extracted from
7333         func_symlink.
7334         (func_symlink, func_symlink_if_changed): Use it.
7336 2017-06-08  Bruno Haible  <bruno@clisp.org>
7338         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
7339         * gnulib-tool (func_ln_s): Determine cp_src correctly.
7341 2017-06-07  Bruno Haible  <bruno@clisp.org>
7343         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
7344         Reported by John E. Malmberg <wb8tyw@gmail.com> in
7345         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
7346         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
7347         override, pass 2 arguments to getcwd, not 3.
7349 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
7351         same-inode: port better to VMS 8.2 and later
7352         Problem reported by John E. Malmberg in:
7353         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
7354         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
7355         Use the usual POSIX definition.
7356         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
7358 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
7360         error: fix POSIX violation for va_end
7361         Problem reported by Bruno Haible in:
7362         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
7363         * lib/error.c (error_tail): Do not call va_end here.
7364         (error, error_at_line): Call it here instead.
7366 2017-05-28  Bruno Haible  <bruno@clisp.org>
7368         c-strtod: Make it usable in C++ mode.
7369         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
7371 2017-05-25  Jim Meyering  <meyering@fb.com>
7373         quotearg: fix compilation failure due to FALLTHROUGH misuse
7374         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
7375         macro back to /* fall through */ comment.  The macro can apply only
7376         to a following case statement.  Reported by Assaf Gordon.
7378 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7380         intprops: port to recent icc
7381         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
7382         but does not support __builtin_add_overflow etc.
7383         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
7384         Define to 0.
7386 2017-05-23  Karl Berry  <karl@freefriends.org>
7388         * config/srclist.txt (iconv.m4): sync broken, comment out
7389         until (hopefully) the next gettext release.
7391 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
7393         Remove repeated words in comments.
7395 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
7397         fallthrough: reinstate a FALLTHROUGH instance in quotearg
7398         quotearg.c: Reinstate this instance which is significant
7399         when the if branch is not taken.
7401 2017-05-21  Bruno Haible  <bruno@clisp.org>
7403         gnulib-tool: Add options to create hard links.
7404         * gnulib-tool (func_usage): Document options --hardlink,
7405         --local-hardlink, --more-hardlinks.
7406         (func_symlink): Renamed from func_ln.
7407         (func_symlink_if_changed): Renamed from func_ln_if_changed.
7408         (func_hardlink): New function.
7409         (copymode, lcopymode): New variables.
7410         (symbolic, lsymbolic): Remove variables.
7411         (Options): Implement options --hardlink, --local-hardlink,
7412         --more-hardlinks.
7413         (func_should_link): Renamed from func_should_symlink. Set copyaction.
7414         (func_add_file, func_update_file): Update invocation of
7415         func_should_link. Invoke func_hardlink when appropriate.
7416         (func_import): Update comments.
7417         (func_create_testdir): Update invocation of func_should_link. Invoke
7418         func_hardlink when appropriate.
7419         Finally, invoke 'git update-index --refresh' to mitigate the effects of
7420         the hard links on git.
7422 2017-05-20  Bruno Haible  <bruno@clisp.org>
7424         argp: Simplify bit manipulation.
7425         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
7426         on a signed integer type.
7428 2017-05-20  Bruno Haible  <bruno@clisp.org>
7430         Avoid wrong configure results with gcc -fsanitize=address.
7431         This completes the work done on 2016-02-06 on this topic.
7432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
7433         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
7434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
7435         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
7436         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
7437         returning.
7438         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
7439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
7440         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
7441         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
7442         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
7443         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
7444         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
7445         free allocated memory before returning.
7446         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
7447         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
7448         objects before returning.
7449         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
7450         returning.
7452 2017-05-20  Bruno Haible  <bruno@clisp.org>
7454         gnulib-tool: Don't create hard links between gnulib and its testdirs.
7455         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
7457 2017-05-20  Bruno Haible  <bruno@clisp.org>
7459         argp, tsearch tests: Fix file list.
7460         * modules/argp-tests (Files): Add tests/macros.h.
7461         * modules/tsearch-tests (Files): Likewise.
7463 2017-05-20  Bruno Haible  <bruno@clisp.org>
7465         getopt-posix tests: Remove redundant include.
7466         * tests/test-getopt.h: Don't include "macros.h". It's already included
7467         by tests/test-getopt-main.h.
7469 2017-05-19  Jim Meyering  <meyering@fb.com>
7471         dfa: two small simplifications
7472         * lib/dfa.c (build_state): Avoid repeating longer expressions.
7474 2017-05-18  Jim Meyering  <meyering@fb.com>
7476         fallthrough: update for GCC 7/8
7477         * lib/quotearg.c (FALLTHROUGH): New macro.
7478         Use it whenever one switch case falls through into the next,
7479         replacing "/* Fall through */" comments.  This exposed one
7480         instance of an unwarranted "fall through" comment: unwarranted
7481         because it preceded a "goto" label not a case statement.
7482         * lib/freopen-safer.c (freopen_safer): Likewise.
7483         * lib/fts.c (leaf_optimization_applies): Likewise.
7484         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
7485         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
7486         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
7487         tests/macros.h for the definition.
7488         * tests/test-argp.c (group1_parser): Likewise.
7489         * tests/test-getopt.h (getopt_loop): Likewise.
7491 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7493         argp: fix shift bug
7494         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
7495         behavior on shift overflow, caught by gcc -fsanitize=undefined.
7497         argp: fix pointer-subtraction bug
7498         * lib/argp-help.c (hol_append): Don’t subtract pointers to
7499         different arrays, as this can run afoul of -fcheck-pointer-bounds.
7500         See the thread containing Bruno Haible’s report in:
7501         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
7503 2017-05-19  Bruno Haible  <bruno@clisp.org>
7505         printf-posix tests: Avoid test failure with "gcc --coverage".
7506         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7507         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
7508         than 5000000.
7509         * tests/test-fprintf-posix2.c (main): Likewise.
7511 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7513         closeout: don’t close stderr when sanitizing
7514         * NEWS: Document this.
7515         * lib/closeout.c (__has_feature): New macro, if not already defined.
7516         (SANITIZE_ADDRESS): New constant.
7517         (close_stdout): Don’t close stderr if sanitizing addresses.
7519 2017-05-19  Bruno Haible  <bruno@clisp.org>
7521         get-rusage-data tests: Avoid failure on Linux/glibc.
7522         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
7523         on glibc systems.
7525 2017-05-18  Bruno Haible  <bruno@clisp.org>
7527         localename: Include necessary header files on Cygwin.
7528         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
7529         where NL_LOCALE_NAME is defined.
7531 2017-05-18  Bruno Haible  <bruno@clisp.org>
7533         gettext: Update macros from gettext git.
7534         * m4/intldir.m4: Require Autoconf >= 2.60.
7535         * m4/progtest.m4: Fix typos in copyright notice.
7537 2017-05-18  Bruno Haible  <bruno@clisp.org>
7539         copy-file tests: Fix link error (regression from 2017-05-01).
7540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7541         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
7542         $(LIB_CLOCK_GETTIME).
7544 2017-05-18  Bruno Haible  <bruno@clisp.org>
7546         unicase/special-casing: Fix incompatibility with gperf-3.0.4
7547         (regression from 2017-02-13).
7548         * lib/unicase/special-casing.in.h: Renamed from
7549         lib/unicase/special-casing.h.
7550         * modules/unicase/special-casing (Files): Add
7551         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
7552         (Makefile.am): Add rule for generating unicase/special-casing.h.
7553         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
7554         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
7555         not "special-casing.h".
7556         * lib/unicase/u*.c: Likewise.
7558 2017-05-17  Bruno Haible  <bruno@clisp.org>
7560         README: Don't ask people to read a TeXinfo file.
7561         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
7562         * README: Tell people how to read the HTML formatted manual.
7564 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
7566         parse-datetime: Fix memleak
7567         * lib/parse-datetime.y (parse_datetime2): Cleanup on
7568         localtime_rz() failure.
7570 2017-05-16  Bruno Haible  <bruno@clisp.org>
7572         javacomp: Fix handle leak.
7573         Found by Coverity.
7574         * lib/javacomp.c (get_classfile_version): Close fd before returning.
7576 2017-05-16  Bruno Haible  <bruno@clisp.org>
7578         relocate: Make it easier to reclaim allocated memory.
7579         * lib/relocatable.h (relocate2): New declaration/macro.
7580         * lib/relocatable.c (relocate2): New function.
7581         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
7582         relocate2 function.
7583         * lib/localcharset.c (relocate2): Define fallback.
7584         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
7585         allocated memory.
7586         * lib/javaversion.c (relocate2): Define fallback.
7587         (javaexec_version): Invoke relocate2 instead of relocate. Free the
7588         allocated memory.
7590 2017-05-16  Bruno Haible  <bruno@clisp.org>
7592         relocate: Simplify EMX specific code.
7593         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
7594         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
7596 2017-05-16  Bruno Haible  <bruno@clisp.org>
7598         sigpipe tests: Fix file list.
7599         * modules/sigpipe-tests (Files): Add tests/macros.h.
7601 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7603         manywarnings: update for GCC 7
7604         * build-aux/gcc-warning.spec:
7605         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
7606         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
7607         requires a non-comment fallthrough attribute.  This is a bit
7608         cleaner than the comment versions.
7609         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
7610         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
7611         Use it whenever one switch case falls through into the next.
7612         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
7613         Use FALLTHROUGH macro.
7615 2017-05-15  Bruno Haible  <bruno@clisp.org>
7617         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
7618         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
7619         @ALLOCA@, not @LTALLOCA@.
7621 2017-05-15  Bruno Haible  <bruno@clisp.org>
7623         sys_select: Avoid "was expanded before it was required" warning.
7624         * modules/sys_select (configure.ac): Require, not invoke,
7625         gl_HEADER_SYS_SELECT.
7627 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
7629         gnulib-tool: improve GNU Make debugging
7630         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
7631         Report autoconf diagnostics when it fails, in the output makefile.
7633 2017-05-14  Bruno Haible  <bruno@clisp.org>
7635         stat-time tests: Improve comment.
7636         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
7638 2017-05-14  Bruno Haible  <bruno@clisp.org>
7640         same-inode: Adapt for windows-stat-inodes.
7641         * lib/same-inode.h: Include <sys/types.h>.
7642         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
7643         * modules/same-inode (Depends-on): Add sys_types.
7645 2017-05-14  Bruno Haible  <bruno@clisp.org>
7647         windows-stat-inodes: New module.
7648         * m4/windows-stat-inodes.m4: New file.
7649         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
7650         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
7651         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
7652         (_GL_WINDOWS_STAT_INODES): New macro.
7653         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
7654         (GetFileInformationByHandleExFunc): New variable.
7655         (initialize): Initialize it.
7656         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
7657         st_ino appropriately.
7658         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
7659         a fallback, because it does not provide st_dev and st_ino values.
7660         * modules/fstat (Depends-on): Add 'verify'.
7661         * modules/windows-stat-inodes: New file.
7662         * doc/windows-stat-inodes.texi: New file.
7663         * doc/gnulib.texi: Include it.
7664         * doc/posix-headers/sys_stat.texi: Mention the new module.
7666 2017-05-14  Bruno Haible  <bruno@clisp.org>
7668         stat-time tests: Workaround for native Windows.
7669         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
7670         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
7671         New variables.
7672         (initialize_filenames): New function.
7673         (main): Invoke it.
7674         (cleanup, prepare_test): Update.
7676 2017-05-14  Bruno Haible  <bruno@clisp.org>
7678         stat-time: Adapt for windows-stat-timespec.
7679         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
7680         entire st_ctim field.
7682 2017-05-13  Jim Meyering  <meyering@fb.com>
7684         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
7685         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
7686         file that uses the assume macro, claiming that verify.h is unused.
7688 2017-05-13  Bruno Haible  <bruno@clisp.org>
7690         Use symbolic values for _WIN32_WINNT.
7691         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
7692         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7694 2017-05-13  Bruno Haible  <bruno@clisp.org>
7696         year2038: New module.
7697         * m4/year2038.m4: New file.
7698         * modules/year2038: New file.
7699         * doc/year2038.texi: New file.
7700         * doc/gnulib.texi: Include it.
7702 2017-05-13  Bruno Haible  <bruno@clisp.org>
7704         largefile: Simplify.
7705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
7706         of _GL_WINDOWS_64_BIT_ST_SIZE.
7708 2017-05-13  Bruno Haible  <bruno@clisp.org>
7710         largefile: Improve and document.
7711         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
7712         the mingw headers already define 'stat' appropriately.
7713         * modules/largefile (Description): Clarify.
7714         * doc/largefile.texi: New file.
7715         * doc/gnulib.texi: Include it.
7716         * doc/posix-headers/sys_types.texi: Update.
7718 2017-05-13  Bruno Haible  <bruno@clisp.org>
7720         truncate: New module.
7721         * lib/unistd.in.h (truncate): New declaration.
7722         * lib/truncate.c: New file.
7723         * m4/truncate.m4: New file.
7724         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
7725         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
7726         REPLACE_TRUNCATE.
7727         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
7728         HAVE_TRUNCATE, REPLACE_TRUNCATE.
7729         * modules/truncate: New file.
7730         * tests/test-unistd-c++.cc (truncate): Test signature.
7731         * doc/posix-functions/truncate.texi: Mention the new module.
7733         * tests/test-truncate.c: New file.
7734         * modules/truncate-tests: New file.
7736 2017-05-13  Bruno Haible  <bruno@clisp.org>
7738         windows-stat-timespec: New module.
7739         * modules/windows-stat-timespec: New file.
7740         * m4/windows-stat-timespec.m4: New file.
7741         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
7742         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
7743         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
7744         fields st_atim, st_mtim, st_ctim.
7745         (st_atime, st_mtime, st_ctime): Define as macros.
7746         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
7747         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
7748         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
7749         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
7750         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
7751         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
7752         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7753         FILETIME to 'struct timespec', not 'time_t'.
7754         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
7755         FILETIME to 'struct timespec', not 'time_t'.
7756         * lib/stat-time.h (STAT_TIMESPEC): Define also if
7757         _GL_WINDOWS_STAT_TIMESPEC.
7758         * doc/windows-stat-timespec.texi: New file.
7759         * doc/gnulib.texi: Include it.
7761 2017-05-13  Bruno Haible  <bruno@clisp.org>
7763         windows-stat-override: New module.
7764         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
7765         definition. Define GNULIB_defined_struct_stat.
7766         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
7767         link error if this symbol is used and the corresponding module is not
7768         in use.
7769         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
7770         GNULIB_OVERRIDES_STRUCT_STAT.
7771         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
7772         GNULIB_OVERRIDES_STRUCT_STAT.
7773         * modules/sys_stat (Makefile.am): Substitute
7774         GNULIB_OVERRIDES_STRUCT_STAT.
7775         * modules/windows-stat-override: New file.
7777 2017-05-13  Bruno Haible  <bruno@clisp.org>
7779         fstat: Fix module dependency conditions.
7780         * modules/fstat (Depends-on): Fix typo.
7782 2017-05-13  Bruno Haible  <bruno@clisp.org>
7784         stat, fstat: Complete removal of old native Windows code.
7785         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
7786         * lib/fstat.c: Likewise.
7787         * lib/stat-w32.c: Likewise.
7789 2017-05-13  Bruno Haible  <bruno@clisp.org>
7791         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
7792         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
7794 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7796         getopt-posix: port to mingw
7797         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
7798         Problem reported by Daniel P. Berrage in:
7799         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
7801 2017-05-11  Bruno Haible  <bruno@clisp.org>
7803         gettimeofday: Increase precision on mingw.
7804         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
7805         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
7806         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
7807         GetSystemTimePreciseAsFileTime based implementation always.
7808         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
7809         mingw.
7811 2017-05-11  Bruno Haible  <bruno@clisp.org>
7813         poll: Fix confusion between SOCKETs and FDs on native Windows.
7814         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
7815         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
7817 2017-05-11  Bruno Haible  <bruno@clisp.org>
7819         doc: Clarify doc about socket functions on native Windows.
7820         This reworks doc that was added on 2008-09-29.
7821         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
7822         clearer wording.
7823         * doc/posix-functions/accept.texi: Use clearer wording.
7824         * doc/posix-functions/bind.texi: Likewise.
7825         * doc/posix-functions/connect.texi: Likewise.
7826         * doc/posix-functions/getpeername.texi: Likewise.
7827         * doc/posix-functions/getsockname.texi: Likewise.
7828         * doc/posix-functions/getsockopt.texi: Likewise.
7829         * doc/posix-functions/ioctl.texi: Likewise.
7830         * doc/posix-functions/listen.texi: Likewise.
7831         * doc/posix-functions/recv.texi: Likewise.
7832         * doc/posix-functions/recvfrom.texi: Likewise.
7833         * doc/posix-functions/send.texi: Likewise.
7834         * doc/posix-functions/sendto.texi: Likewise.
7835         * doc/posix-functions/setsockopt.texi: Likewise.
7836         * doc/posix-functions/shutdown.texi: Likewise.
7837         * doc/posix-functions/socket.texi: Likewise.
7839 2017-05-10  Bruno Haible  <bruno@clisp.org>
7841         poll: Fix link error on native Windows.
7842         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
7844 2017-05-10  Bruno Haible  <bruno@clisp.org>
7846         time: Fix missing initialization of HAVE_TIMEZONE_T.
7847         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
7848         here...
7849         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
7850         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
7851         gl_HEADER_SYS_TIME_H_DEFAULTS.
7852         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
7853         (configure.ac): Remove useless quoting.
7855 2017-05-10  Bruno Haible  <bruno@clisp.org>
7857         Implement a way to opt out from MSVC support, part 2.
7858         * modules/msvc-inval (Include): Document recommended idiom.
7859         * modules/msvc-nothrow (Include): Likewise.
7861         Implement a way to opt out from MSVC support.
7862         This is useful for Emacs.
7863         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
7864         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
7865         * lib/error.c: Likewise.
7866         * lib/fcntl.c: Likewise.
7867         * lib/flock.c: Likewise.
7868         * lib/fstat.c: Likewise.
7869         * lib/fsync.c: Likewise.
7870         * lib/ioctl.c: Likewise.
7871         * lib/isapipe.c: Likewise.
7872         * lib/lseek.c: Likewise.
7873         * lib/nonblocking.c: Likewise.
7874         * lib/poll.c: Likewise.
7875         * lib/select.c: Likewise.
7876         * lib/sockets.h: Likewise.
7877         * lib/sockets.c: Likewise.
7878         * lib/stdio-read.c: Likewise.
7879         * lib/stdio-write.c: Likewise.
7880         * lib/utimens.c: Likewise.
7881         * lib/w32sock.h: Likewise.
7882         * lib/w32spawn.h: Likewise.
7883         * tests/test-cloexec.c: Likewise.
7884         * tests/test-dup-safer.c: Likewise.
7885         * tests/test-dup2.c: Likewise.
7886         * tests/test-dup3.c: Likewise.
7887         * tests/test-fcntl.c: Likewise.
7888         * tests/test-pipe.c: Likewise.
7889         * tests/test-pipe2.c: Likewise.
7890         * lib/ftruncate.c: Likewise.
7891         (chsize_nothrow): Renamed from chsize.
7892         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
7893         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7894         * lib/close.c: Likewise.
7895         * lib/dup.c: Likewise.
7896         * lib/fclose.c: Likewise.
7897         * lib/raise.c: Likewise.
7898         * tests/test-fgetc.c: Likewise.
7899         * tests/test-fputc.c: Likewise.
7900         * tests/test-fread.c: Likewise.
7901         * tests/test-fwrite.c: Likewise.
7902         * lib/getdtablesize.c: Likewise.
7903         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
7904         * lib/isatty.c: Don't include msvc-inval.h if
7905         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
7906         Include <io.h> as an alternative to msvc-nothrow.h.
7907         * lib/read.c: Likewise.
7908         * lib/write.c: Likewise.
7909         * lib/dup2.c: Likewise.
7910         (dup2_nothrow): New function.
7911         (ms_windows_dup2): Use it.
7912         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
7913         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
7914         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
7915         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
7916         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
7917         * m4/read.m4 (gl_FUNC_READ): Likewise.
7918         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
7919         * doc/windows-without-msvc.texi: New file.
7920         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
7921         section.
7923 2017-05-10  Bruno Haible  <bruno@clisp.org>
7925         wait-process: Adjust native Windows support.
7926         * lib/wait-process.c: Use the usual condition for recognizing a native
7927         Windows platform.
7929 2017-05-10  Bruno Haible  <bruno@clisp.org>
7931         doc: New chapter "Native Windows Support".
7932         * doc/gnulib.texi (Native Windows Support): New chapter.
7933         * doc/windows-libtool.texi: Small wording changes.
7934         * doc/windows-sockets.texi: Small wording and formatting changes.
7936 2017-05-10  Bruno Haible  <bruno@clisp.org>
7938         doc: Move section "Library version handling".
7939         * doc/gnulib.texi: Move section "Library version handling"
7940         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
7942 2017-05-10  Bruno Haible  <bruno@clisp.org>
7944         doc: Move section "Running self-tests under valgrind".
7945         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
7946         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
7948 2017-05-10  Bruno Haible  <bruno@clisp.org>
7950         doc: New chapter "Build Infrastructure Modules".
7951         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
7953 2017-05-10  Bruno Haible  <bruno@clisp.org>
7955         Prepare for reordering sections in the manual.
7956         * doc/gnulib.texi: Move several sections to separate files. Include
7957         these files.
7958         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
7959         * doc/obsolete.texi: Likewise.
7960         * doc/extra-tests.texi: Likewise.
7961         * doc/transversal.texi: Likewise.
7962         * doc/namespace.texi: Likewise.
7963         * doc/check-version.texi: Likewise.
7964         * doc/windows-sockets.texi: Likewise.
7965         * doc/windows-libtool.texi: Likewise.
7966         * doc/licenses-texi.texi: Likewise.
7967         * doc/build-automation.texi: Likewise.
7968         * doc/c-locale.texi: Likewise.
7970 2017-05-10  Bruno Haible  <bruno@clisp.org>
7972         Fix instructions how to update manual on www.gnu.org.
7973         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
7975 2017-05-09  Bruno Haible  <bruno@clisp.org>
7977         tzset: Expand comment about TZ problem on native Windows.
7978         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
7979         Paul Eggert.
7980         * lib/ctime.c (rpl_ctime): Likewise.
7981         * lib/localtime.c (rpl_localtime): Likewise.
7982         * lib/mktime.c (mktime): Likewise.
7983         * lib/strftime-fixes.c (rpl_strftime): Likewise.
7984         * lib/wcsftime.c (rpl_wcsftime): Likewise.
7986 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7988         intprops: don’t depend on ‘verify’
7989         Problem reported by Ævar Arnfjörð Bjarmason in:
7990         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
7991         * lib/intprops.h: Do not include verify.h, and move compile-time
7992         checks from here ...
7993         * tests/test-intprops.c (main): ... to here, if they’re not here
7994         already.  Check widths of other standard integer types.
7995         * modules/intprops (Depends-on): Remove ‘verify’.
7997 2017-05-07  Bruno Haible  <bruno@clisp.org>
7999         utimens: On native Windows, support 100ns resolution also if fd < 0.
8000         * lib/utime.in.h: Include <time.h>.
8001         (_gl_utimens_windows): New declaration.
8002         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
8003         (utime): Invoke it.
8004         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
8005         instead of utime.
8006         * modules/utime (Depends-on): Add 'time'.
8008 2017-05-07  Bruno Haible  <bruno@clisp.org>
8010         utimens: Improve error code on native Windows.
8011         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
8012         error code EACCES, not EINVAL.
8014 2017-05-07  Bruno Haible  <bruno@clisp.org>
8016         utime: Handle more Windows error codes.
8017         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
8018         Based on explanations by Billy O'Neal.
8020 2017-05-05  Bruno Haible  <bruno@clisp.org>
8022         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
8023         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
8024         union.
8025         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
8026         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
8027         value of cipher->IV.
8029 2017-05-05  Bruno Haible  <bruno@clisp.org>
8031         wctype-h-c++-tests: Update.
8032         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
8034 2017-05-05  Bruno Haible  <bruno@clisp.org>
8036         wchar-c++-tests: Update.
8037         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
8039 2017-05-05  Bruno Haible  <bruno@clisp.org>
8041         utime-h-c++-tests: New module.
8042         * tests/test-utime-h-c++.cc: New file.
8043         (utime): Declare, missing since 2017-04-30.
8044         * modules/utime-h-c++-tests: New file.
8046 2017-05-05  Bruno Haible  <bruno@clisp.org>
8048         unistd-c++-tests: Update.
8049         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
8050         (read): Declare, missing since 2011-04-15.
8051         (sethostname): Declare, missing since 2011-12-03.
8053 2017-05-05  Bruno Haible  <bruno@clisp.org>
8055         time-c++-tests: Update.
8056         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
8057         (localtime, gmtime): Declare, missing since 2017-04-30.
8058         (ctime): Declare, missing since 2017-04-30.
8059         (strftime): Declare, missing since 2017-04-30.
8060         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
8061         2015-07-24.
8063 2017-05-05  Bruno Haible  <bruno@clisp.org>
8065         sys_resource-c++-tests: New module.
8066         * tests/test-sys_resource-c++.cc: New file.
8067         (getrusage): Declare, missing since 2012-04-13.
8068         * modules/sys_resource-c++-tests: New file.
8070 2017-05-05  Bruno Haible  <bruno@clisp.org>
8072         strings-c++-tests: New module.
8073         * tests/test-strings-c++.cc: New file.
8074         (ffs): Declare, missing since 2011-07-12.
8075         * modules/strings-c++-tests: New file.
8077 2017-05-05  Bruno Haible  <bruno@clisp.org>
8079         string-c++-tests: Update.
8080         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
8081         (ffsll): Declare, missing since 2011-07-15.
8083 2017-05-05  Bruno Haible  <bruno@clisp.org>
8085         stdlib-c++-tests: Update.
8086         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
8087         2011-10-18.
8088         (ptsname_r): Declare, missing since 2011-11-07.
8089         (qsort_r): Declare, missing since 2014-08-29.
8090         (random, srandom, initstate, setstate): Declare, missing since
8091         2012-01-14.
8092         (secure_getenv): Declare, missing since 2013-02-05.
8094 2017-05-05  Bruno Haible  <bruno@clisp.org>
8096         stdio-c++-tests: Update.
8097         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
8099 2017-05-05  Bruno Haible  <bruno@clisp.org>
8101         signal-h-c++-tests: Update.
8102         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
8104 2017-05-05  Bruno Haible  <bruno@clisp.org>
8106         math-c++-tests: Update.
8107         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
8108         (fma): Declare, missing since 2011-10-17.
8109         (fmal): Declare, missing since 2011-10-17.
8111 2017-05-05  Bruno Haible  <bruno@clisp.org>
8113         locale-c++-tests: Update.
8114         * tests/test-locale-c++.cc (localeconv): Declare, missing since
8115         2012-03-25.
8117 2017-05-05  Bruno Haible  <bruno@clisp.org>
8119         inttypes-c++-tests: New module.
8120         * tests/test-inttypes-c++.cc: New file.
8121         (strtoimax): Declare, missing since 2012-01-05.
8122         (strtoumax): Declare, missing since 2012-01-05.
8123         * modules/inttypes-c++-tests: New file.
8125 2017-05-05  Bruno Haible  <bruno@clisp.org>
8127         dirent-c++-tests: Update.
8128         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
8129         (rewinddir): Declare, missing since 2011-09-13.
8130         (dirfd): Declare, missing since 2010-03-08.
8132 2017-05-04  Bruno Haible  <bruno@clisp.org>
8134         argp: Fix mistake in 2017-04-23 commit.
8135         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
8136         assume that strerror_r returns 'int', not 'char *'.
8138 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
8140         argp: Fix typo.
8141         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
8143 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
8145         utimens: port to Emacs + MS-Windows
8146         Skip the new MS-Windows-specific code if Emacs.
8147         * lib/utimens.c [EMACS_CONFIGUATION]:
8148         Avoid new MS-Windows-specific code.
8149         (USE_SETFILETIME): New macro.
8150         (fdutimens): Use it.
8152 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
8154         tzset: update doc for TZ problems on MS-Windows
8155         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
8156         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
8157         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
8158         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
8159         * doc/posix-functions/wcsftime.texi:
8160         Mention some issues with TZ under MS-Windows.
8162 2017-05-01  Bruno Haible  <bruno@clisp.org>
8164         copy-file: Fix build error on mingw.
8165         * modules/copy-file (Depends-on): Add 'close'.
8167 2017-05-01  Bruno Haible  <bruno@clisp.org>
8169         tzset: Work around TZ problem on native Windows.
8170         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
8171         Windows, set REPLACE_TZSET to 1.
8172         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
8173         invoke '_tzset' instead of 'tzset'.
8174         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
8176         * modules/time_rz (Depends-on): Add tzset.
8177         * lib/time_rz.c (tzset): Remove fallback definition.
8178         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
8180 2017-05-01  Bruno Haible  <bruno@clisp.org>
8182         mktime: Fix dependencies.
8183         * modules/mktime (Depends-on): Add 'time'.
8185 2017-05-01  Bruno Haible  <bruno@clisp.org>
8187         New module 'localtime-buffer', split off from module 'gettimeofday'.
8188         * lib/localtime-buffer.h: New file.
8189         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
8190         * lib/time.in.h (tzset): New declaration.
8191         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
8192         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
8193         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
8194         moved to lib/localtime-buffer.c or lib/tzset.c.
8195         * m4/localtime-buffer.m4: New file.
8196         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
8197         HAVE_TZSET, REPLACE_TZSET.
8198         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
8199         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
8200         gl_LOCALTIME_BUFFER_NEEDED.
8201         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
8202         since 2007-01-18.
8203         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
8204         tzset.
8205         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
8206         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
8207         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
8208         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
8209         * modules/localtime-buffer: New file.
8210         * modules/time (Depends-on): Remove 'gettimeofday'.
8211         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
8212         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
8213         * modules/tzset (Description): Enable hyperlink to POSIX spec.
8214         (Files): Add lib/tzset.c.
8215         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
8216         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
8217         gl_TIME_MODULE_INDICATOR.
8218         * modules/gettimeofday (Depends-on): Add localtime-buffer.
8220 2017-05-01  Bruno Haible  <bruno@clisp.org>
8222         copy-file: Preserve sub-second time stamps.
8223         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
8224         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
8225         transport the time stamps from the original file to the destination
8226         file.
8227         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
8228         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
8229         utime-h.
8231 2017-05-01  Bruno Haible  <bruno@clisp.org>
8233         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
8234         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
8235         also on MSVC.
8236         Reported by Eli Zaretskii <eliz@gnu.org>.
8238 2017-05-01  Bruno Haible  <bruno@clisp.org>
8240         wchar: Fix compilation error with the original mingw.org mingw.
8241         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8242         <stddef.h> instead.
8243         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
8244         gl_WCTYPE_H.
8245         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
8246         gl_TYPE_WINT_T_PREREQ instead.
8247         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
8248         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
8249         Reported by Eli Zaretskii <eliz@gnu.org>.
8251 2017-04-30  Bruno Haible  <bruno@clisp.org>
8253         utimecmp: Add support for native Windows.
8254         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
8256 2017-04-30  Bruno Haible  <bruno@clisp.org>
8258         utimens: Add support for native Windows.
8259         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
8260         (fdutimens): Provide a native Windows implementation, like utime.c with
8261         added tv_nsec support.
8262         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
8263         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
8265 2017-04-30  Bruno Haible  <bruno@clisp.org>
8267         wcsftime: New module.
8268         * lib/wchar.in.h (wcsftime): New declaration.
8269         * lib/wcsftime.c: New file.
8270         * m4/wcsftime.m4: New file.
8271         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
8272         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
8273         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8274         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
8275         HAVE_WCSFTIME, REPLACE_WCSFTIME.
8276         * modules/wcsftime: New file.
8277         * doc/posix-functions/wcsftime.texi: Mention the new module.
8279 2017-04-30  Bruno Haible  <bruno@clisp.org>
8281         strftime-fixes: New module.
8282         * lib/time.in.h (strftime): New declaration.
8283         * lib/strftime-fixes.c: New file.
8284         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
8285         (gl_FUNC_STRFTIME): Remove macro.
8286         * m4/strftime-fixes.m4: New file.
8287         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
8288         REPLACE_STRFTIME.
8289         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
8290         REPLACE_STRFTIME.
8291         * modules/strftime-fixes: New file.
8292         * doc/posix-functions/strftime.texi: Mention the new module.
8294 2017-04-30  Bruno Haible  <bruno@clisp.org>
8296         mktime: Work around TZ problem on native Windows.
8297         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
8298         from the native Windows workaround.
8299         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
8300         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
8301         'guessing no'.
8302         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
8303         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
8304         NEED_MKTIME_WINDOWS.
8305         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
8306         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
8307         NEED_MKTIME_INTERNAL.
8308         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
8309         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
8310         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
8311         not REPLACE_MKTIME.
8312         * doc/posix-functions/mktime.texi: Mention the native Windows
8313         workaround.
8315 2017-04-30  Bruno Haible  <bruno@clisp.org>
8317         localtime: New module.
8318         * lib/time.in.h (localtime): Declare also if requested by module
8319         'localtime'.
8320         * lib/localtime.c: New file.
8321         * m4/localtime.m4: New file.
8322         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
8323         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
8324         * modules/localtime: New file.
8325         * doc/posix-functions/localtime.texi: Mention the new module.
8327 2017-04-30  Bruno Haible  <bruno@clisp.org>
8329         ctime: New module.
8330         * lib/time.in.h (ctime): New declaration.
8331         * lib/ctime.c: New file.
8332         * m4/ctime.m4: New file.
8333         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
8334         REPLACE_CTIME.
8335         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
8336         * modules/ctime: New file.
8337         * doc/posix-functions/ctime.texi: Mention the new module.
8339 2017-04-30  Bruno Haible  <bruno@clisp.org>
8341         gettimeofday: Provide higher resolution on native Windows.
8342         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
8343         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
8344         (initialize): Initialize it.
8345         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
8346         'struct timeval'. Don't use _ftime().
8347         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
8348         <sys/timeb.h> and _ftime.
8350 2017-04-30  Bruno Haible  <bruno@clisp.org>
8352         Document the problem with the Cygwin environment variable TZ.
8353         * doc/posix-functions/tzset.texi: Add note about TZ.
8354         * doc/posix-functions/ctime.texi: Likewise.
8355         * doc/posix-functions/localtime.texi: Likewise.
8356         * doc/posix-functions/mktime.texi: Likewise.
8357         * doc/posix-functions/strftime.texi: Likewise.
8358         * doc/posix-functions/wcsftime.texi: Likewise.
8359         * doc/pastposix-functions/ftime.texi: Likewise.
8361 2017-04-30  Bruno Haible  <bruno@clisp.org>
8363         utime-tests: New module.
8364         * tests/test-utime.c: New file, based on tests/test-utimens.h.
8365         * tests/test-utimens-common.h: Include <sys/stat.h>.
8366         * modules/utime-tests: New file.
8368 2017-04-29  Bruno Haible  <bruno@clisp.org>
8370         utime: New module.
8371         * lib/utime.in.h: Add comment for snippets.
8372         (utime): New declaration.
8373         * lib/utime.c: New file.
8374         * m4/utime.m4: New file.
8375         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
8376         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
8377         REPLACE_UTIME.
8378         * modules/utime-h (Depends-on): Add snippets.
8379         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
8380         Insert snippets.
8381         * modules/utime: New file.
8382         * doc/posix-functions/utime.texi: Mention the new module.
8384 2017-04-29  Bruno Haible  <bruno@clisp.org>
8386         utime-h: Modernize handling of 'struct utimbuf'.
8387         * lib/utime.in.h: Include next <utime.h> if it exists.
8388         (utimbuf): Define to _utimbuf on native Windows.
8389         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
8390         Set UTIME_H on native Windows.
8391         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
8392         * modules/utime-h (Depends-on): Add include_next.
8393         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
8394         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
8396         * lib/utimens.c (utimbuf): Remove fallback definition.
8397         * m4/utimens.m4 (gl_UTIMENS): Don't require
8398         gl_CHECK_TYPE_STRUCT_UTIMBUF.
8399         * m4/utimbuf.m4: Remove file.
8400         * modules/utimens (Files): Remove m4/utimbuf.m4.
8402 2017-04-29  Bruno Haible  <bruno@clisp.org>
8404         Make use of module 'utime-h'.
8405         * modules/copy-file (Depends-on): Add utime-h.
8406         * lib/copy-file.c: Assume that <utime.h> exists.
8407         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
8409         * modules/utimens (Depends-on): Add utime-h.
8410         * lib/utimens.c: Assume that <utime.h> exists.
8412 2017-04-29  Bruno Haible  <bruno@clisp.org>
8414         utime-h: New module.
8415         * m4/utime_h.m4: New file.
8416         * lib/utime.in.h: New file.
8417         * modules/utime-h: New file.
8418         * doc/posix-headers/utime.texi: Mention the new module.
8420         * tests/test-utime-h.c: New file.
8421         * modules/utime-h-tests: New file.
8423 2017-04-30  Bruno Haible  <bruno@clisp.org>
8425         Fix a few typos.
8426         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
8427         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
8428         * doc/posix-functions/fstat.texi: Fix a plural typo.
8429         * doc/posix-functions/stat.texi: Likewise.
8430         * m4/include_next.m4: Update comments.
8432 2017-04-29  Bruno Haible  <bruno@clisp.org>
8434         error: Fix mistake in 2017-04-23 commit.
8435         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
8436         assume that strerror_r returns 'int', not 'char *'.
8438 2017-04-29  Bruno Haible  <bruno@clisp.org>
8440         stat: Fix time_t values and other problems on native Windows platforms.
8441         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
8442         implementations of stat().
8443         * lib/stat.c: Include filename.h instead of dosname.h. Include
8444         malloca.h, stat-w32.h.
8445         (is_unc_root): New function.
8446         (rpl_stat): New implementation for native Windows. Remove
8447         REPLACE_FUNC_STAT_DIR code.
8448         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
8449         Don't define REPLACE_FUNC_STAT_DIR.
8450         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
8451         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8452         (Depends-on): Remove dosname. Add filename, malloca.
8453         (configure.ac): Also compile lib/stat-w32.c.
8455 2017-04-29  Bruno Haible  <bruno@clisp.org>
8457         fstat: Fix time_t values on native Windows platforms.
8458         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
8459         * lib/stat-w32.h: New file.
8460         * lib/stat-w32.c: New file.
8461         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
8462         stat-w32.h instead.
8463         (fstat_nothrow): Remove function.
8464         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
8465         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
8466         always.
8467         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
8468         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
8469         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
8470         (configure.ac): Also compile lib/stat-w32.c.
8472 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
8474         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
8475         Problem reported by Assaf Gordon and Gavin Smith in:
8476         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
8477         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
8478         #define this, too.
8480 2017-04-29  Bruno Haible  <bruno@clisp.org>
8482         strerror_r-posix: Fixes for MSVC 14.
8483         * lib/strerror_r.c: Include <stdarg.h>.
8484         (strerror_r): Provide error messages for errno values 100...140.
8485         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
8487 2017-04-28  Bruno Haible  <bruno@clisp.org>
8489         noreturn: New module.
8490         * lib/noreturn.h: New file.
8491         * modules/noreturn: New file.
8492         * tests/test-noreturn.c: New file.
8493         * modules/noreturn-tests: New file.
8494         * tests/test-noreturn-c++.cc: New file.
8495         * modules/noreturn-c++-tests: New file.
8497 2017-04-27  Bruno Haible  <bruno@clisp.org>
8499         wctype-h: Fix compilation error with the original mingw.org mingw.
8500         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
8501         HAVE_CRTDEFS_H.
8502         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
8503         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
8504         <stddef.h> instead.
8505         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
8507 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8509         nap.h: Fix compilation on non windows platforms
8510         * tests/nap.h: Move misplaced endif.
8512 2017-04-26  Pádraig Brady  <P@draigBrady.com>
8513         and Paul Eggert  <eggert@cs.ucla.edu>
8515         time_rz: fix heap buffer overflow vulnerability
8516         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
8517         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
8518         whether there is enough buffer space available, thus avoiding
8519         the problematic promotion of signed to unsigned causing an invalid
8520         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
8521         the start of the buffer.
8522         * tests/test-parse-datetime.c (main): Add a test case written by
8523         Paul Eggert, which overwrites enough of the heap so that
8524         standard glibc will fail with "free(): invalid pointer"
8525         without the patch applied.
8527 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8529         xalloc: add missing integer overflow check
8530         * lib/xalloc.h (x2nrealloc): Also check for multiplication
8531         overflow when P is null.
8533 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8535         parse-datetime: make it standalone
8536         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
8537         (_GL_ATTRIBUTE_FORMAT): New macro.
8538         These are needed to get './gnulib-tool --test parse-datetime' to work.
8540 2017-04-23  Bruno Haible  <bruno@clisp.org>
8542         nap.h: Port to native Windows.
8543         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
8544         use nap_fd instead. On native Windows, close and reopen nap_fd.
8545         (nap_works): Don't compare the ctimes, because on native Windows, these
8546         are the creation times.
8547         (nap): Update.
8549 2017-04-23  Bruno Haible  <bruno@clisp.org>
8551         nap.h: Fix logic.
8552         * tests/nap.h (nap): Avoid signed integer overflow in loop.
8554 2017-04-23  Bruno Haible  <bruno@clisp.org>
8556         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
8557         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
8558         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
8559         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
8560         * lib/argp-help.c (__argp_failure): Likewise.
8562 2017-04-23  Bruno Haible  <bruno@clisp.org>
8564         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
8565         * m4/strerror_r.m4: Revert changes since 2016-10-16.
8566         * lib/strerror_r.c: Likewise.
8568 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
8570         Target a C99 subset, not a C89 subset
8571         For many years Gnulib has targeted C89 and has resisted using C99
8572         features, as some Gnulib-using programs still wanted to target
8573         C89.  As this no longer seems to be the case, relax the porting
8574         requirements to allow some C99 features.  This is merely a change
8575         to the documentation, to give other Gnulib developers a chance to
8576         weigh in on the topic.
8577         * doc/extern-inline.texi (extern inline):
8578         * doc/gnulib-readme.texi (Portability guidelines):
8579         * doc/gnulib-tool.texi (Initial import):
8580         * doc/gnulib.texi (Header files):
8581         Modernize to talk about C99 and C11 instead of C89 and C99.
8582         * doc/gnulib-readme.texi (Portability guidelines):
8583         Now a section, not merely a subsection, so that it
8584         can be split up.  Modernize a bit.
8585         (C language versions, C99 features assumed)
8586         (C99 features avoided):
8587         New sections.
8589 2017-04-23  Bruno Haible  <bruno@clisp.org>
8591         doc: New section "Modules that modify the way other modules work".
8592         * doc/gnulib.texi (Modules that modify the way other modules work): New
8593         section.
8595 2017-04-23  Bruno Haible  <bruno@clisp.org>
8597         stat-time: Update comments.
8598         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
8599         * tests/test-utimens-common.h: Add reference regarding st_ctime on
8600         Windows.
8602 2017-04-01  Bruno Haible  <bruno@clisp.org>
8604         glob: Fix more memory leaks.
8605         * lib/glob.c (glob): Free allocated memory before returning.
8606         Reported by Coverity via Tim Rühsen.
8608 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8610         poll: improve fast check for out-of-range NFD
8611         * lib/poll.c: Do not include intprops.h.
8612         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
8613         * modules/poll (Depends-on): Remove intprops.
8615         ftoastr: cite a newer paper
8616         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
8617         instead of Loitsch 2010.
8619 2017-04-22  Bruno Haible  <bruno@clisp.org>
8621         poll: Enable argument check also in the Windows implementation.
8622         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
8623         Reported by Paul Eggert.
8625 2017-04-22  Bruno Haible  <bruno@clisp.org>
8627         getlogin_r: Work around bug in Mac OS X 10.12.
8628         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
8629         bug.
8630         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
8631         given size minus 1, call getlogin_r a second time, on a larger buffer.
8632         * modules/getlogin_r (Depends-on): Add malloca.
8633         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
8635 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8637         parse-datetime: fix %z and prefer signed int
8638         %z problem reported by Pádraig Brady in:
8639         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
8640         While fixing it, I decided to prefer signed ints to size_t, as
8641         they are less error-prone (e.g., ubsan catches overflow).
8642         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
8643         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
8644         counts, since signed integers make for better debugging.
8645         (date): Don’t assume %z works in printf formats.
8646         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
8647         sizes of buffers known to be small, e.g., because we’re using snprintf.
8648         (parse_datetime2): Simplify call to debug_mktime_not_ok.
8650 2017-04-22  Bruno Haible  <bruno@clisp.org>
8652         *printf: Work around rounding bug on Mac OS X.
8653         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
8654         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
8655         Mac OS X and FreeBSD.
8656         * doc/glibc-functions/*printf.texi: Likewise.
8658 2017-04-22  Bruno Haible  <bruno@clisp.org>
8660         vasnprintf tests: Avoid warnings.
8661         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
8662         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
8663         test.
8665 2017-04-22  Bruno Haible  <bruno@clisp.org>
8667         sys_file tests: Avoid warning.
8668         * tests/test-sys_file.c (main): Add a default clause to the switch
8669         statement.
8671 2017-04-22  Bruno Haible  <bruno@clisp.org>
8673         sethostname: Update doc.
8674         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
8675         Mac OS X.
8677 2017-04-22  Bruno Haible  <bruno@clisp.org>
8679         quotearg tests: Avoid warnings.
8680         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
8681         false.
8683 2017-04-22  Bruno Haible  <bruno@clisp.org>
8685         poll: Enable argument check.
8686         * lib/poll.c: Include intprops.h.
8687         (poll): Check value of nfd correctly.
8688         * modules/poll (Depends-on): Add intprops.
8690 2017-04-22  Bruno Haible  <bruno@clisp.org>
8692         get-rusage-data: Avoid warnings on Mac OS X.
8693         * lib/get-rusage-data.c: On Mac OS X, don't define
8694         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
8695         (get_rusage_data) [Mac OS X]: Just return 0.
8697 2017-04-22  Bruno Haible  <bruno@clisp.org>
8699         xbinary-io: Fix build error.
8700         * modules/xbinary-io (Depends-on): Add gettext-h.
8701         * lib/xbinary-io.c: Include gettext.h and define _().
8702         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
8703         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
8705 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8707         parse-datetime: overflow and debug cleanups
8708         This long patch was triggered by this bug report from Ruediger Meier:
8709         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
8710         I fixed the bug he noted, then found some others nearby, and then
8711         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
8712         up some of the code to follow GNU standards while I was at it.
8713         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
8714         use c_isdigit.
8715         (EPOCH_YEAR): Remove; unused.
8716         (TM_YEAR_BASE): Now an enum rather than a macro.
8717         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
8718         time zone offset, since timezones now are in terms of seconds and
8719         not minutes.
8720         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
8721         appropriate.  Verify that intmax_t is wide enough.
8722         (time_overflow, time_zone_str): New functions, used to deal
8723         more reliably with overflow.
8724         (dbg_printf): Add printf attribute, to help catch integer width errors.
8725         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
8726         (%union, to_hour, yylex, parse_datetime2):
8727         Use intmax_t instead of long int and/or long_time_t.
8728         All uses changed.
8729         (DBGBUFSIZE): Move earlier.
8730         (relative_time, set_hhmmss, parser_control):
8731         Just use int for nanoseconds and for time zones; that’s wide enough.
8732         (parser_control): Use bool for members like year_seen that can
8733         be booleans instead of counters.  All uses changed.
8734         Remove debug_default_input_timezone; no longer needed.
8735         All uses removed.
8736         (apply_relative_time): Return a bool overflow flag.
8737         All uses changed to check for overflow.
8738         (apply_relative_time, zone, date, relunit, relunit_snumber)
8739         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
8740         Check for integer overflow portably.
8741         (str_days): Use just int for N, as it’s wide enough.
8742         Prefer 2D char arrays to arrays of char * when it looks like
8743         2D is a win on typical platforms.
8744         Prefer snprintf to strncpy/strncat, for simplicity;
8745         all buffers are smaller than INT_MAX so this is safe.
8746         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
8747         (debug_print_current_time): Don’t assume tv_nsec is of type long,
8748         as this is not true on x32.  Output "." before any nanoseconds.
8749         (debug_print_current_time, parse_datetime2):
8750         Output local zones using a more-consistent format.
8751         (debug_print_current_time, date, parse_datetime2):
8752         (main) [TEST]:
8753         Don’t assume time_t is the same width as long.
8754         (print_rel_part): New function, replacing ...
8755         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
8756         (debug_print_relative_time): Use bool for boolean.
8757         (local_zone): dsts_seen now counts only tDST instances.
8758         (date): Fix printf of size_t to use %z.  Do not assume numeric
8759         tokens have negative values merely because the context suggests
8760         a syntax with "-" separating tokens.
8761         (time_zone_hhmm): Return bool success indicator, which checks for
8762         overflow.  Store result into PC->time_zone instead.  All callers
8763         changed.
8764         (tm_year_str): New function.  Return a bool success indicator and
8765         store the result into a buffer.  All callers changed.  Output the
8766         numerically correct string even if adding 1900 to the year would
8767         overflow.
8768         (to_tm_year): New function, replacing the old to_year.  All
8769         callers changed.
8770         (tm_diff): Sync with glibc.
8771         (lookup_word): Use to_uchar instead of doing it by hand.
8772         (TZBUFSIZE): Now local to the only function that needs it.
8773         (debug_strfdatetime): Simplify now that time zones are int seconds.
8774         (debug_strfdate): Work even if tm_year + 1900 would overflow.
8775         (get_effective_timezone): Remove.  All uses removed.
8776         (parse_datetime2): Use fprintf in pieces instead of snprintfing
8777         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
8778         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
8779         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
8780         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
8781         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
8782         * modules/parse-datetime (Depends-on): Add inttypes.
8784 2017-04-21  Bruno Haible  <bruno@clisp.org>
8786         gettext-h: Avoid -Wundef warning.
8787         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
8788         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8789         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
8791 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
8793         error: Avoid "function declaration isn't a prototype" warning.
8794         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
8796 2017-04-21  Bruno Haible  <bruno@clisp.org>
8798         vasnprintf: Fix for MSVC 14.
8799         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
8800         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
8801         of !HAVE_SNPRINTF_RETVAL_C99.
8803 2017-04-21  Bruno Haible  <bruno@clisp.org>
8805         mbrtowc tests: Fix test failures on MSVC 14.
8806         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
8807         behaviour for invalid input.
8809 2017-04-21  Bruno Haible  <bruno@clisp.org>
8811         mbsinit: Fix for MSVC 14.
8812         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
8813         implementation that is in sync with mbrtowc.c. On other platforms, use
8814         an adequate ad-hoc implementation.
8816 2017-04-21  Bruno Haible  <bruno@clisp.org>
8818         Fix test-mbrtowc5.sh failure on native Windows.
8819         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
8820         "C".
8822 2017-04-21  Bruno Haible  <bruno@clisp.org>
8824         Avoid accidental use of native Windows APIs on Cygwin.
8825         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
8826         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
8827         * lib/localename.c (WINDOWS_NATIVE): Likewise.
8829 2017-04-20  Bruno Haible  <bruno@clisp.org>
8831         Remove red warnings from the generated MODULES.html.
8832         * modules/fcntl (Description): Disambiguate function references.
8833         * modules/getcwd-lgpl (Description): Likewise.
8834         * modules/hostent (Description): Likewise.
8835         * modules/servent (Description): Likewise.
8836         * modules/tempname (Description): Likewise.
8838 2017-04-20  Bruno Haible  <bruno@clisp.org>
8840         verify tests: Fix spurious failure with parallel make.
8841         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
8842         EXTRA_PROGRAMS.
8843         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
8844         * tests/test-verify-try.c: New file.
8845         * modules/verify-tests (Files): Add it.
8846         (EXTRA_PROGRAMS): Add test-verify-try.
8847         (MOSTLYCLEANFILES): Update accordingly.
8848         Reported by Adam James Stewart <ajstewart@anl.gov>.
8850 2017-04-18  Bruno Haible  <bruno@clisp.org>
8852         vma-iter: Fix compilation error on Solaris 7.
8853         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
8854         like on IRIX, OSF/1.
8855         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8857 2017-04-18  Bruno Haible  <bruno@clisp.org>
8859         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
8860         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
8861         included.
8862         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
8863         <sys/procfs.h>.
8864         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
8865         <sys/procfs.h> cannot be included.
8866         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8868 2017-04-18  Bruno Haible  <bruno@clisp.org>
8870         getopt-gnu: Add comments.
8871         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
8872         * modules/getopt-gnu (configure.ac): Likewise.
8874 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
8876         regex: port better to Solaris 10
8877         Solaris 10 <locale.h> includes <libintl.h>, which #defines
8878         gettext, and this causes a double #define.
8879         Problem reported by Gavin Smith in:
8880         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
8881         * lib/regex_internal.h (gettext): #undef before #defining.
8883 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8885         intprops: improve comments
8886         * lib/intprops.h: Improve and shorten commentary.
8887         For the record, if we ever run into a pedantic compiler that
8888         behaves differently from GCC when converting an out-of-range value
8889         to a signed integer, we can work around the problem with something
8890         like the following code, where UCT is the signed counterpart of T
8891         (UCT is sometimes narrower than UT) and all callers are changed
8892         accordingly:
8893         #if __SUNPRO_C <= 0x5120
8894         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8895            ((t) ((ut) (a) op (ut) (b)))
8896         #else
8897         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
8898            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
8899             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
8900                + TYPE_MINIMUM (t)) \
8901             : (t) (uct) ((ut) (a) op (ut) (b)))
8902         #endif
8904 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
8906         intprops: try to avoid tickling similar bugs
8907         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
8908         needs to be the same width as T; it can be wider.
8909         Change callers so that UT is at least as wide as unsigned int,
8910         as I suspect that this is less likely to run into compiler bugs.
8912         intprops: port to Oracle Studio 12.3 x86
8913         Problem reported by Gavin Smith in:
8914         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
8915         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
8916         Convert unsigned to signed via the usual rather than the standard way,
8917         to avoid a compiler bug in Oracle Studio 12.3 x86.
8919 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8921         getopt: prefer - to _ in new file names
8922         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
8923         * lib/getopt-core.h: Rename from lib/getopt_core.h.
8924         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
8925         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
8926         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
8927         All uses changed.
8929         getopt: port recent getopt changes to macOS
8930         Problem reported by Harald Maier (Bug#26398).
8931         The macOS C compiler uses __nonnull for its own purposes and that
8932         clashes with glibc's __nonnull.
8933         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
8934         * lib/getopt_cdefs.in.h (__nonnull): Remove.
8935         * lib/getopt_core.h (getopt):
8936         * lib/getopt_ext.h (getopt_long, getopt_long_only):
8937         Use _GL_ARG_NONNULL, not __nonnull.
8938         * lib/unistd.in.h: Move snippet hooks to before where the getopt
8939         .h files are included, so that _GL_ARG_NONNULL is defined in time.
8940         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
8941         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
8943 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8945         getopt-gnu: omit some duplicate code
8946         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
8947         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
8948         gnulib-tool already does this.
8949         * modules/getopt-gnu (configure.ac): Omit code duplicated from
8950         getopt-posix, which we depend on.
8952         getopt-posix: use angle-bracket include
8953         * lib/getopt1.c: Include <config.h>, not "config.h".
8955 2017-04-06  Zack Weinberg  <zackw@panix.com>
8957         getopt: annotate files with relationship to glibc
8959         As the final act in this patchset, adjust the message at the top of
8960         each file to indicate which files are synced with glibc.  (This has
8961         already been done for most of the headers.)
8963         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
8964         Mention in top-of-file boilerplate that these files are shared
8965         between glibc and gnulib.
8968         getopt: split up getopt.in.h and eliminate __need_getopt
8970         Over in glibc, all of the __need macros are being phased out in favor
8971         of small headers that declare only the necessary components, as this
8972         is much simpler and less prone to bugs.  As getopt is shared with
8973         glibc, gnulib needs to do the same for __need_getopt.
8975         __need_getopt is misnamed; what it really means is "we want only the
8976         getopt features specified in POSIX, not the GNU extensions".  glibc
8977         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
8978         these files can be shared verbatim with gnulib.  The portability
8979         wrapper, on the other hand, they have renounced altogether; glibc's
8980         getopt.h will no longer be shared with gnulib at all.  In exchange,
8981         certain glibc-specific quirks (having to do with __posix_getopt) no
8982         longer need appear in gnulib's headers at all.
8984         This patch merges getopt_core.h and getopt_ext.h from glibc, and
8985         splits up the current gnulib-side portability wrapper into three
8986         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
8987         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
8988         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
8989         unistd.in.h just use them.  All new files are clearly marked with
8990         whether they are shared with glibc.
8992         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
8993         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
8994         with glibc, and ...
8995         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
8996         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
8997         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
8998         instead of defining __need_getopt and including the full getopt.h.
9000         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
9001         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
9002         * modules/getopt-posix (Files): Add new headers and sort list.
9003         (Depends-on): No longer need snippet/arg-nonnull.
9004         (Makefile.am): Generate getopt_cdefs.h.
9007         getopt: better handling of ambiguous options
9009         glibc's getopt uses alloca to construct a linked list of possibilities
9010         for an "ambiguous" long option.  In gnulib, malloc should be used
9011         instead.  Providing for both cases complicates things a fair bit.
9013         This patch rewrites ambiguous-option handling to use a boolean vector
9014         instead of a linked list.  There is then only one allocation that
9015         might need freeing; in glibc it can honor __libc_use_alloca as usual,
9016         and in gnulib we define __libc_use_alloca to always be false, so we
9017         don't need ifdefs in the middle of the function.  This should also be
9018         slightly more efficient in the normal case of long options being fully
9019         spelled out -- I think most people aren't even aware they _can_
9020         sometimes abbreviate long options.
9022         One interesting consequence is that the list of possibilities is now
9023         printed in exactly the order they appear in the list of long options,
9024         instead of the first possibility being shuffled to the end.
9026         (The patch looks bigger than it really is because there's a fair bit
9027         of reindentation and code rearrangement.)
9029         * lib/getopt.c: When used standalone, define __libc_use_alloca
9030         as always false and alloca to abort if called.
9031         (process_long_option): Rewrite handling of ambiguous long options
9032         to use a single boolean vector, not a linked list; use
9033         __libc_use_alloca to decide whether to allocate this using alloca.
9036         getopt: refactor long-option handling
9038         There were two copies of the bulk of the code to handle long options.
9039         Now there is only one.
9041         This change temporarily removes the logic to avoid using alloca when
9042         standalone; the next patch in the series will restore it.
9044         * lib/getopt.c (process_long_option): New function split out
9045         from _getopt_internal_r.
9046         (_getopt_internal_r): Replace both copies of the long-option
9047         processing code with calls to process_long_option.
9050         getopt: tidy up _getopt_initialize a bit
9052         _getopt_data.__posixly_correct is completely redundant to
9053         _getopt_data.__ordering, and some work that logically belongs in
9054         _getopt_initialize was being done by _getopt_internal_r, making the
9055         code harder to understand.
9057         As a side effect, getenv will no longer be called if the first
9058         character of the options string is '+' or '-', which is probably a
9059         Good Thing.  (Perhaps we should have a flag character that
9060         specifically asks for the permutation behavior?)
9062         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
9063         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
9064         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
9067         getopt: merge from glibc: repetition reduction
9069         The definitions of the entry point functions 'getopt' and
9070         '__posix_getopt' can be made substantially less repetitive with a
9071         helper macro.
9073         While I was merging the const-correctness changes from gnulib into
9074         glibc I noticed there are still some unnecessary casts in
9075         _getopt_internal_r.
9077         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
9078         a macro.  Consistently cast 'argv' to 'char **' when calling
9079         _getopt_internal.
9080         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
9083         getopt: clean up error reporting
9085         getopt can print a whole bunch of error messages, and when used
9086         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
9087         cancellation point and getopt isn't, and also applying fprintf to a
9088         stream in wide-character mode is not allowed.  So every single error
9089         reporting case has an #ifdef _LIBC block in which it calls internal
9090         libc functions instead.  The counterpart patch series in glibc makes
9091         it possible to simplify all of that down to a set of #defines at the
9092         top of the file; core code is written as if it is safe to just call
9093         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
9094         call any *other* stdio functions.)
9096         * lib/getopt.c: When _LIBC is defined, define fprintf to
9097         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
9098         to _IO_funlockfile.  When neither _LIBC nor
9099         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
9100         funlockfile as no-ops.
9101         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
9102         standalone error-printing code can now be used for libc as well.
9103         Add an flockfile/funlockfile pair around one case where the error
9104         message is printed in several chunks.  Don't use fputc.
9107         getopt: fix fencepost error in ambiguous-W-option handling
9109         getopt_long contains an undocumented (AFAICT) feature in which, if you
9110         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
9111         treated as equivalent to '--foo'.  This is implemented with a partial
9112         second copy of the code for handling long options, and that code
9113         increments optind one too many times when recovering from an ambiguous
9114         abbreviated option, which can cause the main loop to walk past the end
9115         of argv and crash.
9117         I discovered this while writing a test case that tries to exercise all
9118         of getopt's error reporting paths; I wouldn't be surprised to learn
9119         that this feature is never used by real applications.
9121         * lib/getopt.c (_getopt_internal_r): Don't increment
9122         d->optind a second time when reporting ambiguous -W options.
9125         getopt: clean up getopt.c and getopt1.c file headers
9127         In getopt.c, there is no need to include wchar.h at all, and it is
9128         safe nowadays to assume that stdlib.h does declare getenv (several
9129         other gnulib modules make this assumption).
9131         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
9132         by using "" inclusions consistently, and there is no actual need to
9133         include stdlib.h (except in the #ifdef TEST block, where it should be
9134         unconditional), nor to provide a backup definition of NULL at all.
9136         * lib/getopt1.c: Simplify #ifdeffage at top of file.
9137         Move inclusion of stdlib.h to #ifdef TEST block and make
9138         unconditional.  Do not define NULL.
9139         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
9140         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
9141         * modules/getopt-gnu, modules/getopt-posix: Don't call
9142         gl_PREREQ_GETENV.
9145         getopt: harmonize comments with glibc
9147         The comments explaining how the behavior of 'getopt' varies depending
9148         on whether it's the standalone version and whether there are special
9149         characters at the beginning of the options string were inconsistent
9150         between gnulib and glibc, and also out of sync with the code.
9152         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
9155         getopt: remove USE_NONOPTION_FLAGS
9157         getopt includes code to parse an environment variable named
9158         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
9159         in decimal); but all of it has been #ifdefed out since 2001, with no
9160         official way to turn it back on.
9162         According to commentary in glibc's config.h.in, bash version 2.0
9163         set this environment variable to indicate argv elements that were
9164         the result of glob expansion and therefore should not be treated
9165         as options, but the feature was "disabled later" because "it
9166         caused problems".  According to bash's CHANGES file, "later" was
9167         release 2.01; it gives no more detail about what the problems
9168         were.
9170         Version 2.0 of bash was released on the last day of 1996, and version
9171         2.01 in June of 1997.  Twenty years later, I think it is safe to
9172         assume that this environment variable isn't coming back.
9174         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
9175         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
9176         __libc_argc and __libc_argv externs, which were only used by
9177         #ifdef USE_NONOPTION_FLAGS blocks.
9180         getopt: tabify, in preparation for merge with glibc
9182         glibc sticks to the GNU default of indenting with a mix of
9183         8-column tabs and spaces; make the gnulib copy match.
9185         getopt.h is not included because it is *not* going to be merged in its
9186         present form.
9188         * getopt.c, getopt1.c, getopt_int.h: Tabify.
9190 2017-04-02  Bruno Haible  <bruno@clisp.org>
9192         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
9193         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
9194         like it was done in modules/relocatable-lib on 2011-05-21 and in
9195         modules/relocatable-prog on 2011-08-15.
9196         Reported by Reuben Thomas <rrt@sc3d.org>.
9198 2017-03-31  Bruno Haible  <bruno@clisp.org>
9200         glob: Fix invalid free() call.
9201         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
9202         static storage to home_dir.
9203         Reported by Coverity via Tim Rühsen.
9205 2017-03-31  Bruno Haible  <bruno@clisp.org>
9207         glob: Fix memory leaks.
9208         * lib/glob.c (glob): Free allocated memory before returning.
9209         Reported by Coverity via Tim Rühsen.
9211 2017-03-31  Bruno Haible  <bruno@clisp.org>
9213         md5, sha1, sha256, sha512: Add comments regarding correctness.
9214         * lib/md5.h (buflen): Add comments regarding range.
9215         * lib/sha1.h (buflen): Likewise.
9216         * lib/sha256.h (buflen): Likewise.
9217         * lib/sha512.h (buflen): Likewise.
9218         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
9219         * lib/sha1.c (sha1_process_bytes): Likewise.
9220         * lib/sha256.c (sha256_process_bytes): Likewise.
9221         * lib/sha512.c (sha512_process_bytes): Likewise.
9222         Reported by Coverity via Tim Rühsen.
9224 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
9226         getopt: merge from glibc
9227         This does not change anything substantial; it merely simplifies
9228         hypothetical merges back to glibc.
9229         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
9230         Change copyright notice to match what is in glibc.
9231         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
9232         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
9233         __open_memstream rather than open_memstream and __glibc_likely
9234         instead of __builtin_expect.
9235         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
9237 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
9239         dfa: make [0-9] faster in non-C locales
9240         Problem reported by John P. Linderman (Bug#26193).
9241         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
9242         If both ends of the range are ASCII digits, do not worry about
9243         multi-character collating sequences and the like.  Be consistent
9244         about using isalpha as a precondition for setbit_case_fold_c.
9246 2017-03-19  Bruno Haible  <bruno@clisp.org>
9248         lock: Fix compilation error with HP-UX IA64 cc.
9249         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
9250         weak on non-glibc platforms.
9252 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9254         stdalign: tweak version# and test for HP-UX IA64
9255         Problems reported by Bruno Haible in:
9256         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
9257         * lib/stdalign.in.h (_Alignas):
9258         * m4/stdalign.m4 (gl_STDALIGN_H):
9259         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
9260         used octal (as that is how they document it), but it is decimal in
9261         practice now and the ancient implementations no longer matter.
9262         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
9264 2017-03-19  Bruno Haible  <bruno@clisp.org>
9266         vma-iter: Add support for Solaris.
9267         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
9268         approach.
9269         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
9270         * lib/get-rusage-as.c: Update comment about Solaris.
9271         * lib/get-rusage-data.c: Likewise.
9273 2017-03-19  Bruno Haible  <bruno@clisp.org>
9275         vma-iter: Prefer HP-UX specific API on HP-UX.
9276         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
9277         * lib/vma-iter.h: Update.
9278         Just in case HP-UX ever implements mquery().
9280 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
9282         stdalign: restore previous behavior for HP-UX IA64
9283         See Bruno Haible's email in:
9284         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9285         which cites p 150 of a manual saying that 'aligned' works on Itanium.
9286         * lib/stdalign.in.h (_Alignas):
9287         Assume the '061200' applies to Itanium, not to PA-RISC.
9288         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
9290 2017-03-17  Bruno Haible  <bruno@clisp.org>
9292         stat-time, timespec: Support use of the header files in C++ mode.
9293         * lib/stat-time.h: Add "C" linkage declaration.
9294         * lib/timespec.h: Likewise.
9296 2017-03-17  Bruno Haible  <bruno@clisp.org>
9298         stdalign: Make it work with HP-UX cc.
9299         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
9300         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
9301         for HP-UX cc.
9303 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
9305         flexmember: try to detect HP-UX 11.31 cc bug
9306         Problem reported by Bruno Haible in:
9307         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
9308         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
9309         Attempt to detect bug in HP-UX 11.31 cc.
9311 2017-03-16  Bruno Haible  <bruno@clisp.org>
9313         stdint: Fix test compilation failure with HP-UX 11 cc.
9314         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
9315         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
9316         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
9317         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
9319 2017-03-14  Bruno Haible  <bruno@clisp.org>
9321         gnulib-tool: Don't produce a tests directory with only snippet .h files.
9322         * gnulib-tool (func_modules_transitive_closure_separately): If
9323         testsrelated_modules ends up with no "real" modules, aside from
9324         modules with applicability 'all', set it to empty.
9326 2017-03-14  Bruno Haible  <bruno@clisp.org>
9328         vma-iter: Add support for HP-UX.
9329         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
9330         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
9331         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
9332         * lib/get-rusage-as.c: Update comment about HP-UX.
9333         * lib/get-rusage-data.c: Likewise.
9334         (get_rusage_data): Use get_rusage_data_via_setrlimit.
9336 2017-03-14  Bruno Haible  <bruno@clisp.org>
9338         limits-h: Make it work with HP-UX cc.
9339         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
9340         defined.
9342 2017-03-14  Bruno Haible  <bruno@clisp.org>
9344         Fix test failures on DragonFlyBSD.
9345         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
9346         * tests/test-select.h (test_bad_fd): Likewise.
9347         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
9349 2017-03-14  Bruno Haible  <bruno@clisp.org>
9351         freadahead: Silence warning on DragonFlyBSD.
9352         * lib/freadahead.c (__sreadahead): Declare ourselves.
9354 2017-03-14  Bruno Haible  <bruno@clisp.org>
9356         vma-iter: Add comment about AIX.
9357         * lib/vma-iter.c: Add comment about why this module is not implemented
9358         on AIX.
9360 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9362         snippets: move unadjusted snippet sources to lib
9363         Problem reported by Michal Privoznik in:
9364         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
9365         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
9366         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
9367         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
9368         * lib/unused-parameter.h: Rename from
9369         build-aux/snippet/unused-parameter.h.
9370         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
9371         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
9372         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
9373         * modules/snippet/c++defs (Files:, CXXDEFS_H):
9374         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
9375         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
9376         Adjust to file renamings.
9378 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
9380         gnulib-tool: don't automatically distribute files from top/
9381         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
9382         not distribute top/README-release by default, don't distribute files
9383         from top/ unconditionally.
9384         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
9385         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
9387 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
9389         gnulib-tool: fix typo in comment output
9390         * gnulib-tool (func_import): Fix typo with previous change.
9392         snippets: work around GNU Make 3.82 VPATH
9393         When using 'gnulib-tool --gnu-make' on Emacs, and building
9394         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
9395         an out-of-source (VPATH) build failed because the sans-copyright
9396         snippet file was not built before the file that used it.
9397         Presumably this is some sort of VPATH thing.  Work around the
9398         problem by using the original snippet, i.e., don’t bother to
9399         remove its copyright notice.
9400         * modules/snippet/_Noreturn, modules/snippet/link-warning:
9401         Don’t assume Automake in comments.  Omit long-incorrect comment.
9402         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
9403         (MOSTLYCLEANFILES):
9404         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
9405         (MOSTLYCLEANFILES):
9406         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
9407         (MOSTLYCLEANFILES):
9408         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
9409         (MOSTLYCLEANFILES):
9410         Remove.
9411         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
9412         * modules/snippet/c++defs (CXXDEFS_H):
9413         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
9414         * modules/snippet/warn-on-use (WARN_ON_USE_H):
9415         Don’t bother to remove the copyright notice; just use the
9416         original snippet as-is.
9418 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
9420         gnulib-tool: minor --gnu-make fixups
9421         * gnulib-tool (func_emit_lib_Makefile_am):
9422         Remove useless code that was a blind alley during implementation.
9423         Problem reported by Thien-Thi Nguyen in:
9424         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
9425         (func_import): Note the "--gnu-make" option in the output comment.
9427 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
9429         gnulib-tool: new option --gnu-make
9430         This is for applications like GNU Emacs that use GNU Make
9431         features instead of Automake.
9432         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
9433         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
9434         Do not assume Automake.
9435         * gnulib-tool (func_determine_path_separator)
9436         (func_modules_transitive_closure, func_update_file)
9437         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
9438         (func_import): Add support for --gnu-make.
9440 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
9442         gnulib-common.m4: avoid aclocal.m4 bloat
9443         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
9444         Hide AM_PROG_AR from aclocal, so that aclocal does not
9445         install irrelevant macro definitions into aclocal.m4.
9447 2017-03-10  Bruno Haible  <bruno@clisp.org>
9449         vma-iter: Let callers know about error.
9450         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
9451         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
9453 2017-03-05  Bruno Haible  <bruno@clisp.org>
9455         Fix value of LD for 64-bit compilers on AIX.
9456         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
9457         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
9459 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
9461         dtotimespec: simplify
9462         * lib/dtotimespec.c (dtotimespec): Simplify.
9464 2017-03-04  Bruno Haible  <bruno@clisp.org>
9466         test-calloc-gnu: Reenable test also for GCC 7.
9467         * tests/test-calloc-gnu.c (eight): New function.
9468         (main): Don't skip test; use eight() instead.
9470 2017-03-04  Jim Meyering  <meyering@fb.com>
9472         test-calloc-gnu: port to GCC7
9473         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
9474         that attempts to calloc more than SIZE_MAX bytes, because GCC7
9475         and newer would detect that at compilation time.
9477 2017-03-04  Bruno Haible  <bruno@clisp.org>
9479         tests: Avoid compiler warning about uses of null_ptr.
9480         * tests/null-ptr.h: New file.
9481         * tests/test-canonicalize.c: Include null-ptr.h.
9482         (null_ptr): Remove function.
9483         * tests/test-canonicalize-lgpl.c: Likewise.
9484         * tests/test-memmem.c: Likewise.
9485         * tests/test-ptsname_r.c: Likewise.
9486         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
9487         * modules/canonicalize-lgpl-tests: Likewise.
9488         * modules/memmem-tests: Likewise.
9489         * modules/ptsname_r-tests: Likewise.
9490         Reported by Jim Meyering.
9492 2017-03-03  Bruno Haible  <bruno@clisp.org>
9494         doc: Mention Mac OS X deficiencies regarding semaphores.
9495         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
9496         * doc/posix-functions/sem_destroy.texi: Likewise.
9497         * doc/posix-functions/sem_getvalue.texi: Likewise.
9499 2017-03-03  Bruno Haible  <bruno@clisp.org>
9501         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
9502         Reported by Assaf Gordon <assafgordon@gmail.com> via
9503         Pádraig Brady <P@draigBrady.com>.
9504         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
9505         semaphores.
9506         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
9507         (atomic_int_semaphore): New macro.
9509 2017-02-28  Bruno Haible  <bruno@clisp.org>
9511         perror tests: Tweak for z/OS.
9512         Reported by Daniel Richard G. <skunk@iskunk.org>.
9513         * tests/test-perror.sh: Don't fail z/OS style perror output.
9515 2017-02-26  Bruno Haible  <bruno@clisp.org>
9517         nproc: Refactor large function.
9518         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
9519         from num_processors.
9520         (num_processors): In this function, only deal with OMP.
9522 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9524         nproc: adjust handling of OpenMP environment variables
9525         to match the return value from omp_get_num_threads(), i.e.:
9526          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
9527          - Treat 0 as an invalid value and ignore
9528         Also remove the call to omp_get_num_threads() because
9529         it's ineffective without the omp pragmas in place.
9530         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
9531         so that it can be ignored.
9532         (num_processors): Honor OMP_THREAD_LIMIT even without
9533         OMP_NUM_THREADS being set.  Also fix a typo in the environment
9534         variable being checked, from the previous recent commit.
9536 2017-02-26  Pádraig Brady  <P@draigBrady.com>
9538         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
9539         * lib/nproc.c (parse_omp_threads): A new function refactored
9540         from num_processors() to support parsing both of the
9541         above environment variables.
9542         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
9543         to accurately reflect the current OpenMP nesting level.
9544         Also support the OMP_THREAD_LIMIT environment variable
9545         to limit the max value determined from OMP_NUM_THREADS.
9546         * modules/nproc: Depend on minmax header.
9547         Suggested by Oliver Heimlich.
9549 2017-02-25  Bruno Haible  <bruno@clisp.org>
9551         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
9552         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
9554 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9556         ftoastr: port to -Wdouble-promotion
9557         Work around -Wdouble-promotion false alarm in recent GCCs.
9558         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
9559         (ftoastr_snprintf, FTOASTR): Use it.
9561 2017-02-21  Bruno Haible  <bruno@clisp.org>
9563         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
9564         Reported by Rene Saavedra <rennes@openmailbox.org> in
9565         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
9566         * lib/glthread/lock.h: On glibc systems without
9567         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
9568         implementation of rwlocks.
9569         * lib/glthread/lock.c: Likewise.
9571 2017-02-20  Bruno Haible  <bruno@clisp.org>
9573         lock tests: Fix build failure on z/OS.
9574         Reported by Daniel Richard G. <skunk@iskunk.org>.
9575         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
9576         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
9577         exist.
9579 2017-02-19  Bruno Haible  <bruno@clisp.org>
9581         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
9582         This helps when CC=clang.
9583         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
9584         of /usr/bin/gcc.
9586         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
9587         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
9589 2017-02-19  Bruno Haible  <bruno@clisp.org>
9591         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
9592         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
9593         --with-tests --single-configure is specified.
9595 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
9597         users.txt: Update links, use HTTPS where possible
9598         * users.txt: Updated to HTTPS where possible,
9599         fixed some links to new locations.
9601 2017-02-16  Bruno Haible  <bruno@clisp.org>
9603         xbinary-io: Fix inlining.
9604         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
9606 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9608         xbinary-io: rename from xsetmode
9609         This patch is taken from suggestions by Bruno Haible in:
9610         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
9611         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
9612         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
9613         not ENOTTY, when it is an inappropriate device.
9614         * lib/binary-io.h (SET_BINARY): Resurrect.
9615         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
9616         (xset_binary_mode_error): Rename from xsetmode_error.
9617         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
9618         (xset_binary_mode): Rename from xsetmode.
9619         All uses changed.
9620         * modules/xbinary-io: Rename from modules/xsetmode.
9621         Update file names.
9622         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
9623         * NEWS: Update to match revised behavior.
9625 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9627         tests: Adjust to recent SET_BINARY change
9628         * tests/test-binary-io.c (main):
9629         * tests/test-binary-io.sh: Remove test for SET_BINARY.
9630         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
9631         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
9632         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
9634         xsetmode: new module
9635         This is to fix a problem noted by Eric Blake.
9636         Code was using xfreopen to change files to binary mode, but this
9637         fails for stdout when in append mode.  Such code should use
9638         xsetmode instead.
9639         * NEWS: Document incompatible changes to binary-io module.
9640         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
9641         New function.
9642         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
9643         (set_binary_mode): New function, which also checks for tty.
9644         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
9646 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
9648         headers: fix begin-end typos
9649         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
9650         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
9652         selinux-h: port to PGI 16.10
9653         * lib/se-selinux.in.h: Don't assume that include_next skips over
9654         duplicate -I DIR options.
9656         argp: port to PGI 16.10
9657         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
9659 2017-02-13  Darshit Shah  <darnir@gnu.org>
9661         unicase: Update function protoype to match definition.
9662         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
9663         uses 'size_t' as the datatype for the 'len' parameter in the functions
9664         it generates. Update the prototype specified here to match the newly
9665         generated function.
9667 2017-02-12  Bruno Haible  <bruno@clisp.org>
9669         times test: Avoid gcc warnings on Linux/x32.
9670         * tests/test-times.c (main): Really cast printf arguments from clock_t
9671         to 'long int'.
9673 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9675         glob: port better to emscripten
9676         Problem reported by Bruno Haible in:
9677         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
9678         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
9680 2017-02-11  Bruno Haible  <bruno@clisp.org>
9682         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
9683         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
9684         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
9685         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
9686         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
9687         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
9688         Distinguish hppa64 from hppa.
9690 2017-02-10  Bruno Haible  <bruno@clisp.org>
9692         search: Don't assume that tsearch() exists if 'VISIT' is defined.
9693         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
9694         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
9695         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
9697 2017-02-09  Bruno Haible  <bruno@clisp.org>
9699         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
9700         * doc/gnulib.texi (Libtool and Windows): Recommend
9701         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
9702         Reported by Reuben Thomas <rrt@sc3d.org>.
9704 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
9706         stddef-tests: port to SIZE_MAX <= INT_MAX
9707         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
9708         Do not assume that INT_MAX < SIZE_MAX.
9710 2017-02-01  Bruno Haible  <bruno@clisp.org>
9712         lock tests: Fix link error.
9713         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
9714         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9716 2017-01-31  Bruno Haible  <bruno@clisp.org>
9718         lock: Fix link error (regression from 2017-01-05).
9719         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
9720         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
9721         pthread_rwlockattr_destroy weak.
9722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9724 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
9726         Port to PGI 16.10 x86-64
9727         This patch fixes one real bug in gl_anylinked_list2.h, along with
9728         some minor glitches that are not bugs.  It does not silence PGI’s
9729         thousands of bogus warnings when compiling test-intprops.c.
9730         Fortunately, the warnings do not cause a failure.
9731         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
9732         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
9733         My goodness, PGI goes back a long ways - this predates C89!
9734         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
9735         For example, ASYNCSAFE (const void *) should expand to
9736         ‘const void *volatile’, not to ‘volatile const void *’.
9737         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
9738         * lib/verify.h (verify) [!__GNUC__]:
9739         Use shorter albeit meaningless string to bypass silly compiler limits.
9740         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
9741         * tests/nan.h (NaNf, NaNd, NaNl):
9742         Use static functions to avoid misguided compiler diagnostics.
9743         Is there some reason we don’t use static functions on all platforms?
9745 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
9747         parse-datetime: handle timezones reentrantly
9748         This API change was prompted by a report by Pádraig Brady in:
9749         https://bug.debian.org/851934#10
9750         To help fix the bug, make parse_datetime2 more reentrant.
9751         * NEWS: Document this incompatible change.
9752         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
9753         Add two arguments, the timezone and the timezone name.
9754         All callers changed.  If TZ="..." is specified, use it for
9755         calculating defaults.
9756         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
9757         this code should be usable in a library.
9758         (mktime_ok, get_effective_timezone):
9759         Accept timezone arg too.  All callers changed.
9760         (get_tz): Remove.
9761         (get_effective_timezone): Check for failures.
9763 2017-01-20  Eric Blake  <eblake@redhat.com>
9765         localename: port to cygwin 2.6
9766         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
9767         Cygwin.
9768         * modules/localename (Depends-on): Add extensions, since
9769         NL_LOCALE_NAME() is not visible without it.
9771 2017-01-17  Pádraig Brady  <P@draigBrady.com>
9773         parse-datetime: fix dependence on AC_PROG_SED
9774         * modules/parse-datetime: Use `sed` directly like all other modules.
9775         Reported by J William Piggott
9777 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
9779         intprops: update doc URLs
9780         * doc/intprops.texi (Integer Range Overflow): Update URLs.
9782 2017-01-16  Bruno Haible  <bruno@clisp.org>
9784         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
9785         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
9786         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
9787         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
9788         distinguish s390 and s390x.
9789         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
9790         * NEWS: Mention the change regarding 'armel'.
9792 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
9794         localeinfo: case_folded_counterparts and WEOF
9795         * NEWS: Document this.
9796         * lib/localeinfo.c (case_folded_counterparts):
9797         First arg is now wint_t, not wchar_t.  This generalizes the
9798         function to also work on WEOF, where it returns 0.
9800         dfa: port to gcc -fsanitize=undefined
9801         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
9802         as this runs afoul of gcc -fsanitize=undefined.
9804 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
9806         strftime: %z is -00 if unknown
9807         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
9808         the caller's responsibility to set 'negative_number'.  All uses changed.
9809         (__strftime_internal): Put '-' before a zero UTC offset if the time
9810         zone abbreviation starts with "-", which is the recently-introduced
9811         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
9812         * tests/test-strftime.c: Test for this.
9814 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9816         dfa: port to older GCC
9817         Problem reported by Assaf Gordon in:
9818         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
9819         * modules/c99: New module.  This merely attempts to use the latest
9820         C version, which should be enough to solve this particular problem.
9821         The idea is to document which Gnulib modules assume C99 or later.
9822         * modules/dfa (Depends-on): Add it.
9824 2017-01-10  Bruno Haible  <bruno@clisp.org>
9826         Update DEPENDENCIES.
9827         * DEPENDENCIES: List only https URLs. Update recommended version for
9828         autoconf, automake, gperf.
9830 2017-01-10  Jim Meyering  <meyering@fb.com>
9832         maint.mk: enforce spelling of "timestamp" (i.e., no space)
9833         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
9834         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
9836 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
9838         dfa: minor simplification with emptyset
9839         * lib/dfa.c (build_state): Simplify by using emptyset.
9841 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
9843         dfa: shrink constraints from 4 bits to 3
9844         * lib/dfa.c (newline_constraint, letter_constraint)
9845         (other_constraint, prev_newline_dependent)
9846         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
9847         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
9848         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
9849         Constraints need only 3 bits, not 4.  Using smaller integers
9850         shrinks the code a bit and makes grep a tad faster on x86-64.
9852         dfa: omit unnecessary ptrdiff_t check
9853         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
9854         overflow, since xnmalloc does that now.
9856         dfa: omit unnecessary allocation
9857         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
9858         an all-zero follow set works just fine.
9860         dfa: omit unused local
9861         * lib/dfa.c (build_state): Fix up recent change.
9863         maint: remove stray .texi files
9864         Although these were superseded by other files like
9865         doc/posix-functions/ctime.texi, the old files were not removed.
9866         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
9868 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
9870         getprogname: fix port to IRIX
9871         * lib/getprogname.c (getprogname) [__sgi]:
9872         Don't dump core if malloc returns NULL.
9874         dfa: fix reallocation bug when matching newlines
9875         Problem reported for sed by S. Gilles (Bug#25390).
9876         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
9877         (dfastate): Reallocate before moving any newline transition ...
9878         (build_state): ... instead of reallocating here, where it is too late.
9880 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9882         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
9883         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
9885 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
9887         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
9888         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
9890 2017-01-07  Bruno Haible  <bruno@clisp.org>
9892         stdioext: Port to Minix 3.2 and newer.
9893         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
9894         * lib/fseeko.c (fseeko): Likewise.
9895         Reported by Nelson Beebe via Paul Eggert.
9897 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
9899         getprogname: port to IRIX
9900         * lib/getprogname.c (getprogname): Port to IRIX.
9901         Based on an idea by Bastien Roucariès at:
9902         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
9903         via code from Bruno Haible at:
9904         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
9906         localename-tests: port to NetBSD 7
9907         Problem reported by Nelson H. F. Beebe.
9908         * tests/test-localename.c:
9909         Test newlocale and uselocale only if both exist.
9911         glob, intprops, xalloc: work around Clang bug
9912         Work around LLVM bug 16404, which is still not fixed.
9913         https://llvm.org/bugs/show_bug.cgi?id=16404
9914         Problem reported by Nelson H. F. Beebe.
9915         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
9916         Remove.
9917         * lib/glob.c (size_add_wrapv):
9918         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
9919         * lib/xalloc-oversized.h (xalloc_oversized):
9920         Do not use overflow builtins if Clang.
9922         dfa: fix 'return' typo
9923         Problem reported by Nelson H. F. Beebe.
9924         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
9926 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9928         parse-datetime: fix generated paths for coverage files
9929         * modules/parse-datetime: Adjust the paths for parse-datetime.y
9930         within parse-datetime.c, so that gcc generates appropriate .gcno
9931         files, allowing lcov to proceed without error.  Previously it
9932         would error trying to find "lib/lib/parse-datetime.y".
9934 2017-01-05  Pádraig Brady  <P@draigBrady.com>
9936         maint.mk: support parallel execution of coverage
9937         * top/maint.mk (coverage): Run dependencies serially,
9938         thus supporting parallel processing of each one,
9939         particularly build-coverage, which builds and runs tests.
9941 2017-01-05  Bruno Haible  <bruno@clisp.org>
9943         lock tests: Prefer semaphore over mutex.
9944         * tests/test-lock.c (USE_SEMAPHORE): New constant.
9945         (struct atomic_int, init_atomic_int, get_atomic_int_value,
9946         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
9947         Suggested by Torvald Riegel <triegel@redhat.com>.
9949 2017-01-05  Bruno Haible  <bruno@clisp.org>
9951         lock: Provide guarantee to avoid writer starvation for rwlocks.
9952         The rationale is: 1) Read-preferring read-write locks are prone to
9953         writer starvation if the number of reader threads multiplied by the
9954         percentage of time they have the lock held is too high. 2) Write-
9955         preferring read-write locks are the only reliable way to avoid this.
9956         3) There have been reports of 'test-lock' hanging on glibc systems
9957         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
9958         and glibc indeed implements read-preferring rwlocks by default, see
9959         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
9960         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
9961         * m4/pthread_rwlock_rdlock.m4: New file.
9962         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9963         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
9964         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9965         of rwlock initialization on glibc systems without
9966         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
9967         of rwlocks altogether on non-glibc systems without
9968         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
9969         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
9970         * lib/glthread/lock.c [USE_POSIX_THREADS]
9971         (glthread_rwlock_init_for_glibc): New function.
9972         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
9973         comment.
9974         [USE_PTH_THREADS]: New implementation of rwlocks.
9975         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
9976         readers.
9977         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
9978         (Depends-on): Add 'extensions'.
9979         * tests/test-rwlock1.c: New file.
9980         * lock-tests (Files): Add it.
9981         (Depends-on): Add usleep.
9982         (Makefile.am): Add test-rwlock1 to the tests.
9984 2017-01-05  Bruno Haible  <bruno@clisp.org>
9986         thread: Fix pth port.
9987         * lib/glthread/thread.h (pth_init): Declare weak.
9988         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
9989         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
9990         function.
9992 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
9994         parse-datetime: fix debug message on lone year number
9995         Input dates such as
9996           date -d "Apr 11 22:59:00 2011"
9997         are parsed as date (Apr 11, with default year 2016), then time, then a
9998         number (2011). Based on the combination of previously seen tokens,
9999         'digits_to_date_time' determines 2011 to be a year value.
10000         This fixes the debug messages to correctly show the updated year.
10001         Before:
10002             $ date --debug -d 'Apr 11 22:59:00 2011'
10003             date: parsed date part: (Y-M-D) 2016-04-11
10004             date: parsed time part: 22:59:00
10005             date: parsed number part: today/this/now
10006         After:
10007             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
10008             date: parsed date part: (Y-M-D) 2016-04-11
10009             date: parsed time part: 22:59:00
10010             date: parsed number part: year: 2011
10011         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
10012         'debug_year_seen' member fields.
10013         (digits_to_date_time): Update 'year_seen' as needed.
10014         (debug_print_current_time): Inform about year updates.
10015         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
10017         parse-datetime: fix local timezone debug messages
10018         "Local timezones" are strings that affect only DST relative to the
10019         default timezone. The debug messages in parse-datetime.y printed
10020         wrong information when encountering local timezones.
10021         Examples:
10022         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
10023              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
10024              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
10025         When the default timezone relates to the zone strings, EET/EEST are
10026         parsed as local timezones (tLOCAL_ZONE), and only change the DST
10027         value (0/1, respectively):
10028              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
10029              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
10030         * lib/parse-datetime.y (debug_print_current_time): If local timezone
10031         was seen, inform about DST change, don't print actual timezone.
10032         (debug_strfdatetime): If local timezone was seen, use default timezone
10033         (and adjust as needed) instead of using incorrect timezone.
10034         (parse_datetime2): Use correct time-zone source string, and adjust
10035         default timezone as needed.
10037         parse-datetime: add debug warning about DST changes
10038         Incorrect date arithmetic due to daylight saving time (DST) are a
10039         common (false) bug report in coreutils.
10040         Detect two such cases and print a warning:
10041         1. year/month/day adjustments (performed on 'struct tm'),
10042            where 'mktime' returns a different isdst value.
10043         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
10044            where the result of 'localtime(3)' on the value will return a
10045            different isdst value.
10046         Note: DST changes could be harmless or unnoticeable.
10047         Examples (with 'TZ=America/New_York'):
10048         Unnoticeable: result is 2016-Dec-14
10049            $ date -d '2016-06-15 EDT + 6 months' +%b
10050            Dec
10051         Unnoticeable: result is 2016-Dec-15 11:00:00
10052            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
10053            2016-12-15
10054         This is unexpected:
10055            $ date -d '2016-06-01 EDT + 6 months' +%F
10056            2016-11-30
10057         The new debug warnings will show:
10058            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
10059            ...
10060            date: warning: daylight saving time changed after date adjustment
10061            ...
10062         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
10063         print an appropriate warning message.
10065         parse-datetime: add debug warning about date arithmetic
10066         Date arithmetic are done directly on the fields of 'struct tm',
10067         which can result in invalid dates. Normalization with 'mktime(3)'
10068         will then produce a different date - which might cause unexpected
10069         results.
10070         Examples:
10071           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
10072           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
10073         Note that date normalization is not inherently wrong and not rejected,
10074         as it has legitimate uses:
10075           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
10076         If the user asked to adjust months but 'mday' changed,
10077         or user asked to adjust years but 'month' changed - warn about it.
10078             $ ./src/date --debug -d '2016-10-31 - 1 month'
10079             ...
10080             date: warning: when adding relative months/years, \
10081                            it is recommended to specify the 15th of the month
10082             ...
10083             date: warning: month/year adjustment resulted in shifted dates:
10084             date:      adjusted Y M D: 2016 09 31
10085             date:    normalized Y M D: 2010 10 01
10086             ...
10087         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
10088         a warning message. Improve recommendation of when to use 15 of the
10089         month or noon for date arithmetic.
10091         parse-datetime: fix debug message of relative part after timezone
10092         Relative part (e.g '+8 days') after a timezone string was not
10093         reported (was only reported after a timezone number). Due to the
10094         parser's structure, timezone strings with numbers were handled
10095         separately.
10096         before:
10097              # Timezone number + relative part: OK
10098              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
10099              ...
10100              date: parsed relative part: -8 day(s)
10101              # Timezone string + relative part: missing
10102              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
10103              [ missing message ]
10104         After: messages are printed in both cases.
10105         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
10107         parse-datetime: fix incorrect debug message on lone number
10108         A lone number is an absolute value, not a relative time part.
10109         before:
10110            $ date --debug -d '20130101'
10111            date: parsed number part: today/this/now
10112         After:
10113            $ ./src/date --debug -d '20130101'
10114            date: parsed number part: (Y-M-D) 2013-01-01
10115         * lib/parse-datetime.y ('item'/'number' tokens): Call
10116         'debug_print_current_time' instead of 'debug_print_relative_time'.
10118 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
10120         doc: modernize for C11 etc.
10121         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
10122         for C11, MinGW, etc.  This responds to Paul Smith's question in:
10123         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
10125         dfa: prefer functions to FETCH_WC macro
10126         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
10127         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
10128         wint_t result into DFA->lex.wctok instead of to a separate arg.
10129         All callers changed.  Move more local decls closer to where
10130         they're used.
10132         dfa: narrow more local var scopes
10133         * lib/dfa.c: Move more local decls to be more local.
10135         dfa: remove duplicate assignment
10136         Problem reported by Bruno Haible in:
10137         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
10138         * lib/dfa.c (parse_bracket_exp): Simplify.
10140 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10142         dfa: simplify constraint-dependency checking
10143         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
10144         (prev_other_constraint): Remove.
10145         (prev_newline_dependent, prev_letter_dependent):
10146         Simplify, to avoid an unnecessary bitwise AND operation.
10148         dfa: prefer functions and constants to macros
10149         * lib/dfa.c: Prefer constants to macros where either will do.
10150         (streq, isasciidigit, newline_constraint)
10151         (letter_constraint, other_constraint, succeeds_in_context)
10152         (prev_newline_constraint, prev_letter_constraint)
10153         (prev_other_constraint, prev_newline_dependent)
10154         (prev_letter_dependent, accepting, accepts_in_context):
10155         Now static functions instead of function-like macros.
10156         Use lower-case names accordingly.  All uses changed.
10158         dfa: narrow more local var scopes
10159         * lib/dfa.c: Move some more local decls down to nearer where
10160         they're needed.
10162 2016-12-31  Jim Meyering  <meyering@fb.com>
10164         dfa: narrow the scope of many local variables
10165         * lib/dfa.c: Now that we are no longer constrained to c89, move
10166         declarations of many variables (often indices) "down" into the
10167         scope(s) where used or to the point of definition.  This is a
10168         no-semantic-change diff.
10170 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
10172         version-etc: new year
10173         * build-aux/gendocs.sh (version):
10174         * doc/gendocs_template:
10175         * doc/gendocs_template_min:
10176         * doc/gnulib.texi:
10177         * lib/version-etc.c (COPYRIGHT_YEAR):
10178         Update copyright dates by hand in templates and the like.
10179         * all files: Run 'make update-copyright'.
10181 2016-12-31  Eric Blake  <eblake@redhat.com>
10183         do-release-commit-and-tag: avoid shell syntax error
10184         * build-aux/do-release-commit-and-tag (curr_br): $branch can
10185         contain spaces when rebasing.
10187         maint.mk: hoist gnulib_dir definition earlier
10188         * top/maint.mk (gnulib_dir): Move near top of file.
10190 2016-12-31  Jim Meyering  <meyering@fb.com>
10192         maint.mk: do not always evaluate intprops-related shell
10193         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
10194         using gnulib_dir undefined (gnulib_dir is defined later in the
10195         file, which will be fixed separately), and besides, there is no
10196         need to incur the cost of this shell invocation for every single
10197         use of this .mk file.  Reported by Eric Blake in
10198         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
10200 2016-12-30  Jim Meyering  <meyering@fb.com>
10202         maint.mk: improve sc_prohibit_intprops_without_use
10203         * top/maint.mk (_intprops_names): Don't hard-code the list of
10204         symbol names.  Instead, derive it on the fly.
10206 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10208         dfa: shorten sbit, success
10209         * lib/dfa.c (struct regex_syntax.sbit):
10210         (struct dfa.success): Use char, not int, for array elements, since
10211         they are all in the range 0..7.
10213         dfa: simplify multibyte_prop etc.
10214         This follows up on a change made when dfa.c was in grep, namely grep
10215         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
10216         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
10217         That earlier simplification allows for some more simplification
10218         and trimming down here.
10219         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
10220         (struct lexer_state): New mamber brack.
10221         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
10222         since they must be in the range 0..3 now.
10223         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
10224         the brack member now supersedes them.
10225         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
10226         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
10227         (dfaparse): Remove unnecessary initializations of already-0 storage.
10228         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
10229         (dfassbuild): No need to clear sup->mbcsets.
10231         dfa: minor performance tweak
10232         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
10234         dfa: wrap charclass inside a struct
10235         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
10236         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
10237         about 5% faster, where list.txt is generated by 'aspell dump
10238         master | head -n 100000 >list.txt'.  See Bug#22239.
10239         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
10240         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
10241         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
10242         Adjust to this, e.g., by using charclass * rather than charclass.
10243         All callers changed as needed.
10244         (copyset): Remove.  All uses changed to simple assignment.
10245         (parse_bracket_exp): Use zeroset instead of memset.
10247 2016-12-30  Jim Meyering  <meyering@fb.com>
10249         maint.mk: update list of intprops.h symbol names
10250         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
10251         This avoids a false failure of the sc_prohibit_intprops_without_use
10252         rule in grep.
10254 2016-12-29  Eric Blake  <eblake@redhat.com>
10256         getopt: fix parallel test failure
10257         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
10258         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
10259         * tests/test-getopt-main.h (main): Use different file names
10260         in case test-getopt-gnu and test-getopt-posix run in parallel.
10262 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10264         xalloc: x2nrealloc check for ptrdiff_t overflow
10265         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
10266         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
10268 2016-12-24  Bruno Haible  <bruno@clisp.org>
10270         lock test: Fix performance problem on multi-core machines.
10271         * tests/test-lock.c (USE_VOLATILE): New macro.
10272         (struct atomic_int): New type.
10273         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
10274         functions.
10275         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
10276         as 'struct atomic_int'.
10277         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
10278         reclock_checker_thread, test_recursive_lock): Use the new functions.
10279         Reported by Eric Blake in
10280         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
10281         and by Pádraig Brady in
10282         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
10284 2016-12-19  Bruno Haible  <bruno@clisp.org>
10286         vma-iter: Fix endless loop on 64-bit Windows.
10287         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
10288         'unsigned long'.
10290 2016-12-19  Bruno Haible  <bruno@clisp.org>
10292         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
10293         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
10294         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
10295         Invoke gt_TYPE_WINT_T instead.
10296         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
10297         * modules/stdint (Files): Add m4/wint_t.m4.
10298         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10299         * modules/wctype-h (Makefile.am): Likewise.
10300         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
10301         not only on MSVC.
10302         * lib/wctype.in.h (wint_t): Likewise.
10304 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10306         getopt-posix-tests: fix Makefile typo
10307         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
10308         Fix typo: the last ‘_’ was missing in the name.
10309         I suspect that the typo explains this build failure:
10310         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
10311         although I can’t reproduce the problem on Solaris 10 sparc.
10313 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10315         dfa: improve worst-case 'replace' performance
10316         See my note in Bug#22357#71.
10317         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
10318         (merge_constrained): New function, which is like
10319         the old 'merge' function, except with a new argument C2.
10320         Simplify the body by avoiding the need for different sections
10321         of code depending on whether one input is exhausted.
10322         (merge): Use the new function.
10323         (delete): Return the constraint of the deleted position,
10324         not the entire position.  Caller changed.
10325         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
10327 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10329         dfa: performance improvement for removal of epsilon closure
10330         See Bug#22357#32.
10331         * lib/dfa.c (delete): Use binary search to find deleted index.
10332         (replace): New function.  It replaces a position with the followed set.
10333         (epsclosure): Replace it with a new algorithm.  Update caller.
10335 2016-12-18  Bruno Haible  <bruno@clisp.org>
10337         Split tests for getopt-posix and getopt-gnu.
10338         * tests/test-getopt-posix.c: New file.
10339         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
10340         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
10341         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
10342         GNULIB_TEST_GETOPT_GNU.
10343         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
10344         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
10345         (Makefile.am): Test test-getopt-posix instead of test-getopt.
10346         * modules/getopt-gnu-tests: New file.
10347         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
10349 2016-12-18  Bruno Haible  <bruno@clisp.org>
10351         posix-modules: Add options for specific platforms.
10352         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
10353         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
10354         Invoke func_tmpdir. Filter out the excludes.
10356 2016-12-18  Bruno Haible  <bruno@clisp.org>
10358         getopt: Fix link error for users of getopt() in <unistd.h>.
10359         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
10360         __need_getopt is defined. Undefine all macros before defining them.
10361         * modules/getopt (Include): Clarify that including <unistd.h> is also
10362         OK.
10363         * tests/test-getopt.c: Add comment.
10365 2016-12-17  Bruno Haible  <bruno@clisp.org>
10367         getaddrinfo tests: Avoid compilation error on MSVC.
10368         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
10369         getaddrinfo on native Windows.
10371 2016-12-17  Bruno Haible  <bruno@clisp.org>
10373         getlogin, getlogin_r: Fix link errors on MSVC.
10374         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
10375         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
10376         (Link): New section.
10377         * modules/getlogin_r (Files): Add m4/getlogin.m4.
10378         (configure.ac): Require gl_LIB_GETLOGIN.
10379         (Link): New section.
10380         * NEWS: Mention the new link requirements.
10381         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
10382         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
10384 2016-12-17  Bruno Haible  <bruno@clisp.org>
10386         Un-deprecate the 'progname' module.
10387         * NEWS: Describe the appropriate use-cases of 'progname' versus
10388         'getprogname'. Based on discussion summary at
10389         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
10391 2016-12-17  Bruno Haible  <bruno@clisp.org>
10393         Reorganize NEWS a bit.
10394         * NEWS: Move some not so important changes away from section
10395         "Important Notes".
10397 2016-12-17  Bruno Haible  <bruno@clisp.org>
10399         tanhf: Avoid redefinition error on MSVC.
10400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
10401         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
10402         may be defined as an inline function.
10403         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
10404         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
10406 2016-12-17  Bruno Haible  <bruno@clisp.org>
10408         tanf: Avoid redefinition error on MSVC.
10409         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
10410         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
10411         may be defined as an inline function.
10412         * modules/math (Makefile.am): Substitute REPLACE_TANF.
10413         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
10415 2016-12-17  Bruno Haible  <bruno@clisp.org>
10417         sqrtf: Avoid redefinition error on MSVC.
10418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
10419         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
10420         may be defined as an inline function.
10421         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
10422         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
10424 2016-12-17  Bruno Haible  <bruno@clisp.org>
10426         sinhf: Avoid redefinition error on MSVC.
10427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
10428         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
10429         may be defined as an inline function.
10430         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
10431         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
10433 2016-12-17  Bruno Haible  <bruno@clisp.org>
10435         sinf: Avoid redefinition error on MSVC.
10436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
10437         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
10438         may be defined as an inline function.
10439         * modules/math (Makefile.am): Substitute REPLACE_SINF.
10440         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
10442 2016-12-17  Bruno Haible  <bruno@clisp.org>
10444         logf: Avoid redefinition error on MSVC.
10445         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
10446         may be defined as an inline function.
10448 2016-12-17  Bruno Haible  <bruno@clisp.org>
10450         log10l: Avoid redefinition error on MSVC.
10451         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
10452         may be defined as an inline function.
10454 2016-12-17  Bruno Haible  <bruno@clisp.org>
10456         log10f: Avoid redefinition error on MSVC.
10457         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
10458         may be defined as an inline function.
10460 2016-12-17  Bruno Haible  <bruno@clisp.org>
10462         hypotl: Avoid redefinition error on MSVC.
10463         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
10464         may be defined as an inline function.
10466 2016-12-17  Bruno Haible  <bruno@clisp.org>
10468         hypotf: Avoid redefinition error on MSVC.
10469         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
10470         may be defined as an inline function.
10472 2016-12-17  Bruno Haible  <bruno@clisp.org>
10474         fmodl: Avoid redefinition error on MSVC.
10475         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
10476         may be defined as an inline function.
10478 2016-12-17  Bruno Haible  <bruno@clisp.org>
10480         fmodf: Avoid redefinition error on MSVC.
10481         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
10482         may be defined as an inline function.
10484 2016-12-17  Bruno Haible  <bruno@clisp.org>
10486         expf: Avoid redefinition error on MSVC.
10487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
10488         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
10489         may be defined as an inline function.
10490         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
10491         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
10493 2016-12-17  Bruno Haible  <bruno@clisp.org>
10495         coshf: Avoid redefinition error on MSVC.
10496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
10497         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
10498         may be defined as an inline function.
10499         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
10500         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
10502 2016-12-17  Bruno Haible  <bruno@clisp.org>
10504         cosf: Avoid redefinition error on MSVC.
10505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
10506         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
10507         may be defined as an inline function.
10508         * modules/math (Makefile.am): Substitute REPLACE_COSF.
10509         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
10511 2016-12-17  Bruno Haible  <bruno@clisp.org>
10513         atan2f: Avoid redefinition error on MSVC.
10514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
10515         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
10516         may be defined as an inline function.
10517         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
10518         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
10520 2016-12-17  Bruno Haible  <bruno@clisp.org>
10522         atanf: Avoid redefinition error on MSVC.
10523         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
10524         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
10525         may be defined as an inline function.
10526         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
10527         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
10529 2016-12-17  Bruno Haible  <bruno@clisp.org>
10531         asinf: Avoid redefinition error on MSVC.
10532         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
10533         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
10534         may be defined as an inline function.
10535         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
10536         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
10538 2016-12-17  Bruno Haible  <bruno@clisp.org>
10540         acosf: Avoid redefinition error on MSVC.
10541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
10542         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
10543         may be defined as an inline function.
10544         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
10545         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
10547 2016-12-17  Bruno Haible  <bruno@clisp.org>
10549         Avoid redefinition errors on MSVC.
10550         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
10551         the function may be defined as an inline function.
10552         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
10553         the function may be defined as an inline function.
10555 2016-12-17  Bruno Haible  <bruno@clisp.org>
10557         Avoid redefinition errors on MSVC.
10558         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
10559         * lib/unistd.in.h: Include <stdio.h> when necessary.
10561 2016-12-17  Bruno Haible  <bruno@clisp.org>
10563         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
10564         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
10565         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
10566         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
10567         WINT_MAX.
10569 2016-12-17  Bruno Haible  <bruno@clisp.org>
10571         Avoid autoconf warning.
10572         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
10573         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
10575 2016-12-17  Bruno Haible  <bruno@clisp.org>
10577         fpending: Revert workaround against Emacs bug.
10578         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
10579         The Emacs bug is fixed by Eli Zaretskii in
10580         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
10582 2016-12-17  Bruno Haible  <bruno@clisp.org>
10584         getlogin_r tests: Port to mingw.
10585         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
10586         regression introduced on 2014-05-19.
10588 2016-12-17  Bruno Haible  <bruno@clisp.org>
10590         getlogin: Port to newer mingw.
10591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
10592         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
10593         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
10594         HAVE_GETLOGIN.
10595         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
10596         HAVE_GETLOGIN.
10597         * doc/posix-functions/getlogin.texi: Mention the issue.
10598         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
10599         regression introduced on 2014-05-14.
10601 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10603         builtin-expect: improve port to IBM XL C
10604         Problem reported for z/OS by Daniel Richard G. in:
10605         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
10606         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10607         Test for <builtins.h> directly.
10609         builtin-expect: port to IBM XL C
10610         Problem reported for z/OS by Daniel Richard G. in:
10611         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
10612         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
10613         Also allow __builtin_expect defined via a standard include file.
10615         regex: fix dependency
10616         Problem reported by Bruno Haible in:
10617         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
10618         * modules/regex: Depend on builtin-expect.
10620         builtin-expect: new module
10621         Fix fnmatch to use it.
10622         Problem reported for z/OS by Daniel Richard G.
10623         * lib/fnmatch.c (__builtin_expect):
10624         * lib/glob.c (__builtin_expect):
10625         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
10626         * lib/memmem.c (__builtin_expect) [!_LIBC]:
10627         * lib/scandir.c (__builtin_expect):
10628         * lib/strstr.c (__builtin_expect) [!_LIBC]:
10629         Remove macro; config.h now does this.
10630         * lib/gl_anytreehash_list1.h (add_to_bucket):
10631         * lib/regex_internal.h (BE):
10632         Assume __builtin_expect.
10633         * m4/builtin-expect.m4, modules/builtin-expect: New files.
10634         * modules/avltreehash-list, modules/fnmatch, modules/glob:
10635         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
10636         * modules/scandir, modules/strstr-simple:
10637         Depend on builtin-expect.
10639 2016-12-15  Bruno Haible  <bruno@clisp.org>
10641         init.sh: Add possibility to not delete temporary files.
10642         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
10643         to yes, don't erase the temporary directory.
10645 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10647         regex: fix integer-overflow bug in never-used code
10648         Problem reported by Clément Pit–Claudel in:
10649         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
10650         * lib/regex_internal.h: Include intprops.h.
10651         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
10652         behavior on integer overflow.
10653         * modules/regex (Depends-on): Add intprops.
10655         fpending: fix port to MinGW on Emacs
10656         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
10657         Problem reported by Eli Zaretskii in:
10658         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
10659         Is Plan 9 still a valid porting target, anyway?
10661 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
10663         safe-alloc: use xalloc-oversized
10664         * lib/safe-alloc.c: Include xalloc-oversized.h.
10665         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
10666         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
10668         xalloc: do not exceed PTRDIFF_MAX
10669         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
10670         xalloc_oversized check, since objects larger than PTRDIFF_MAX
10671         bytes have pointer-subtraction problems.
10673         malloca: do not exceed PTRDIFF_MAX
10674         * lib/malloca.h: Include xalloc-oversized.
10675         (nmalloca): Use xalloc_oversized instead of rolling our own.
10676         * modules/malloca (Depends-on):
10677         * modules/relocatable-prog-wrapper (Depends-on):
10678         Add xalloc-oversized.
10680         quotearg: pacify GCC better
10681         * modules/quotearg (Depends-on): Add minmax, stdint.
10682         * lib/quotearg.c: Include minmax.h, stdint.h.
10683         (nslots): Now int, as there seems little point to going to extra
10684         work merely to support the INT_MAX slot, which nobody ever uses.
10685         (quotearg_n_options): Redo size-overflow checks to pacify GCC
10686         and to catch (mostly-theoretical) ptrdiff_t problems too.
10687         This can be done via one comparison.
10689 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
10691         xalloc-oversized: check for PTRDIFF_MAX too
10692         This avoids undefined behavior when subtracting pointers to
10693         objects containing more than PTRDIFF_MAX bytes.
10694         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
10695         Also return 1 if the result would exceed PTRDIFF_MAX>
10696         * modules/xalloc-oversized (Depends-on):
10697         Add stdint.
10699         dfa: fix glitches in previous commit
10700         Sorry, I don't know how I managed to commit the wrong version.
10701         * lib/dfa.c (MIN): Move up.
10702         (xpalloc): Now static.
10704         dfa: fix some unlikely integer overflows
10705         I found these while reviewing the recent Coverity-related fix.
10706         This patch changes part of dfa.c to prefer ptrdiff_t instead of
10707         size_t for object counts.  Using ptrdiff_t is the style typically
10708         used in Emacs; although it wastes a sign bit as sizes can never be
10709         negative, it makes -fsanitize=undefined more likely to catch
10710         integer overflows in index calculation, and nowadays the upside is
10711         typically more important than the downside.  Although perhaps the
10712         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
10713         of dfa.c already does, since it uses state_num which is signed),
10714         that is a bigger change and is not needed to fix the bugs I found.
10715         * lib/dfa.c: Include stdint.h and intprops.h.
10716         (TOKEN_MAX): New macro.
10717         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
10718         (charclass_index, parse_bracket_exp, addtok, insert, merge)
10719         (realloc_trans_if_necessary, free_mbdata):
10720         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
10721         This is safe because xpalloc checks that the sizes do not exceed
10722         either SIZE_MAX or PTRDIFF_MAX.
10723         (xpalloc): New function, mostly taken from Emacs.
10724         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
10725         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
10726         (charclass_index): Check for integer overflow in computing
10727         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
10728         added to it later.
10729         (alloc_position_set): Check for integer overflow.  On typical
10730         platforms this check has zero overhead, since the constant
10731         expression is false.
10732         (realloc_trans_if_necessary):
10733         Remove assertion, which I hope Coverity no longer needs.
10735         * modules/dfa (Depends-on): Add intprops, stdint.
10737 2016-12-12  Jim Meyering  <meyering@fb.com>
10739         dfa: add an assertion to avoid coverity false positive
10740         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
10741         warned that "newalloc1 - 2" could overflow.
10743 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
10745         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
10746         * dfa.h (DFA_CASE_FOLD): Remove.
10747         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
10749 2016-12-13  John W. Eaton  <gnu@jweaton.org>
10751         link: fix test to declare use of rename()
10752         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
10753         -Werror=implicit-function-declaration
10755 2016-12-12  Bruno Haible  <bruno@clisp.org>
10757         fpending: Port to native Windows with MSVC.
10758         * lib/fpending.c: Include stdio-impl.h.
10759         (__fpending): Include all known implementations. Err out if it's not
10760         ported.
10761         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
10762         * modules/fpending (Files): Add lib/stdio-impl.h.
10763         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
10765 2016-12-12  Bruno Haible  <bruno@clisp.org>
10767         stdioext: Port to native Windows with MSVC.
10768         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
10769         (struct _gl_real_FILE): New type.
10770         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
10771         Windows.
10772         * lib/fbufmode.c (fbufmode): Add code for native Windows.
10773         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
10774         other SystemV derived implementations.
10775         * lib/fpurge.c (fpurge): Likewise.
10776         * lib/freadable.c (freadable): Likewise.
10777         * lib/freadahead.c (freadahead): Likewise.
10778         * lib/freading.c (freading): Likewise.
10779         * lib/freadptr.c (freadptr): Likewise.
10780         * lib/freadseek.c (freadptrinc): Likewise.
10781         * lib/fseeko.c (fseeko): Likewise.
10782         * lib/fseterr.c (fseterr): Likewise.
10783         * lib/fwritable.c (fwritable): Likewise.
10784         * lib/fwriting.c (fwriting): Likewise.
10785         Reported by Gisle Vanem <gvanem@yahoo.no>.
10787 2016-12-11  Jim Meyering  <meyering@fb.com>
10789         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
10790         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
10791         to work with most shells, but not with the one provided by many
10792         Solaris 10 systems, so running configure with such a /bin/sh evokes
10793         e.g., "./configure: syntax error at line 33602: `(' unexpected".
10794         Reported by Assaf Gordon in
10795         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
10797 2016-12-10  Bruno Haible  <bruno@clisp.org>
10799         threadlib: Optimize out runtime test on Solaris >= 10.
10800         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
10801         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
10802         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
10804 2016-12-10  Bruno Haible  <bruno@clisp.org>
10806         stdint: Update doc about Solaris 9.
10807         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
10809 2016-12-09  Bruno Haible  <bruno@clisp.org>
10811         c-ctype tests: Fix link error on Solaris 9.
10812         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
10813         Reported at <https://savannah.gnu.org/bugs/?46827>.
10815 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
10817         dfa: fix performance bug that recomputes trans
10818         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
10819         25 on-demand changes.  The bug caused build_state to reset all
10820         d->trans elements to -2 even when d->trans was already non-null.
10821         Use C99 style decls after statements in this function.
10823         same-inode: port to MinGW
10824         Here st_ino is always 0, so change the definition of SAME_INODE so
10825         that 1 means the two files are the same, 0 with st_ino != 0 means
10826         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
10827         reported by Bruno Haible (Bug#25146).
10828         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
10829         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
10831 2016-12-04  Bruno Haible  <bruno@clisp.org>
10833         javacomp-script: Support Java 7 and 8.
10834         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
10835         target-version 1.7, 1.8.
10837 2016-12-02  Daiki Ueno  <ueno@gnu.org>
10839         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
10840         GPLv2" rewriting.
10842 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
10844         * gnulib-tool (func_import): Adhere to the license guideline when
10845         rewriting the license text to "LGPLv3+ or GPLv2":
10846         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
10848 2016-12-02  Bruno Haible  <bruno@clisp.org>
10850         localcharset: Avoid theoretical buffer overrun.
10851         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
10852         return value from setlocale if it would lead to a buffer overrun.
10854 2016-12-01  Bruno Haible  <bruno@clisp.org>
10856         Relicense some modules under LGPLv2+.
10857         Kevin Cernekee's approval is in
10858         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
10859         * modules/fseterr (License): Change to LGPLv2+.
10860         * modules/mbchar (License): Likewise.
10861         * modules/mbiter (License): Likewise.
10862         * modules/mbsnlen (License): Likewise.
10863         * modules/wcwidth (License): Likewise.
10865 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10867         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
10868         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
10869         OS/2 kLIBC.
10871 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10873         alphasort, scandir: Port to OS/2 kLIBC
10874         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
10875         declaration.
10876         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
10878 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10880         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
10881         * lib/relocatable.c (relocate): Do not touch pathname if it is started
10882         with '/@unixroot'.
10884 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
10886         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
10887         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
10888         OS/2 kLIBC unless TCPV40HDRS is defined.
10890 2016-11-29  Jim Meyering  <meyering@fb.com>
10892         dfa: avoid new infinite loop
10893         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
10894         * lib/dfa.c (dfastate): When constructing a new state table, we could
10895         initially declare that we had found a match, and later find that
10896         constraints eliminate that possibility, yet continue to use the
10897         now stale "matched" indicator.  That would lead to an infinite loop.
10898         The solution is to update "matched" when necessary.
10899         Introduced by commit v0.1-983-g403adf1.
10901 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10903         dfa: avoid match middle in multibyte character
10904         * lib/dfa.c (transit_state): If fails in matching single byte characters
10905         on a state including period expression in non-UTF8 multibyte locales,
10906         skip trailing bytes.
10907         (dfa_supported): Revert previous change.
10909 2016-11-27  Jim Meyering  <meyering@fb.com>
10911         dfa: avoid false match in non-UTF8 multibyte locales
10912         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
10913         as "not supported" so that callers will resort to using regex-based
10914         matcher.  This will surely hurt performance, but correctness trumps
10915         performance here, and the affected locales are less and less relevant,
10916         these days.  See grep's bug report https://bugs.gnu.org/24975.
10918 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
10920         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
10921         * lib/ptsname_r.c: Include the appropriate headers.
10922         [__sun]: Delete sys/sysmacros.h include.
10923         [_AIX || __osf__]: Likewise.
10924         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
10926 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10928         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
10929         * lib/md4.c (md4_process_bytes): The existing define is made internal
10930         in recent versions of glibc, so also use this new public define.
10931         * lib/md5.c (md5_process_bytes): Likewise.
10932         * lib/sha1.c (sha1_process_bytes): Likewise.
10933         * lib/sha256.c (sha256_process_bytes): Likewise.
10934         * lib/sha512.c (sha512_process_bytes): Likewise.
10936 2016-11-27  Pádraig Brady  <P@draigBrady.com>
10938         maint: use a more standard return from mbrtowc test
10939         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
10940         from the test program as this often indicates an
10941         unhandled case in the test program.
10942         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
10943         (gl_MBRTOWC_SANITYCHECK): Likewise.
10944         (gl_MBRTOWC_NULL_ARG2): Likewise.
10945         (gl_MBRTOWC_NUL_RETVAL): Likewise.
10947 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
10949         freopen: work around glibc bug with closed fd
10950         Work around glibc bug#15589, where freopen mishandles the case
10951         where stdin etc. are already closed.
10952         * doc/posix-functions/freopen.texi (freopen): Document the bug.
10953         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
10954         instead of __need_FILE, as the latter does not work with glibc.
10955         Include <fcntl.h>, for open flags.
10956         (rpl_freopen): Work around glibc bug.
10957         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
10958         * modules/freopen (Depends-on): Add fcntl-h.
10959         * tests/test-freopen.c (main): Test for bug.
10961 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
10963         fnmatch: fix typo introduced on 2016-08-17
10964         This fixes the port to non-GCC compilers that lack __builtin_expect.
10965         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
10967         dfa: simplify with new function fillset
10968         * lib/dfa.c (fillset): New function.
10969         Use it for clarity when applicable.
10971         dfa: fix glitches with on-demand states
10972         Also, adjust commentary to better match new code.
10973         Some of these glitches predate the recent change.
10974         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
10975         only non-initial states.
10976         (dfastate): Rename locals to better match new roles.
10977         Move them into nested scopes if this is easy.
10978         Omit unnecessary calls to zeroset.
10979         Simplify test for whether to throw in the positions of state 0.
10980         Omit C99-ism (decl after statement) since Gawk still wants C89.
10981         (build_state): Omit unnecessary test and assignment.
10982         Fix some confusion that counted transition tables inaccurately
10983         and could cause a memory leak.
10984         (dfaexec_main): Redo to make it clearer to the compiler that
10985         -1 and -2 are the only negative state numbers here.
10987 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
10989         dfa: addition of new state on demand
10990         * src/dfa.c (dfastate): Add argument UC, the current input character.
10991         Fill only a group including the character in transition table.
10992         (realloc_trans_if_necessary): Add the dummy state which means that a
10993         transition table is assigned but the next state is not assigned.
10994         (build_state): Return the next state.  All callers updated.
10995         (transit_state_singlebyte): If we get the dummy state,
10996         fill the transition table.
10997         (dfaexec_main): Handle the dummy state.
10998         (free_mbdata, dfafree): Consider the dummy state.
11000 2016-11-24  Daiki Ueno  <ueno@gnu.org>
11002         srclist: sync with released gettext
11003         * config/srclist.txt: Set "release" option to the files under
11004         $GETTEXT.
11006 2016-11-24  Daiki Ueno  <ueno@gnu.org>
11008         srclist: add "release" option
11009         * config/srclist.txt: Change the format so that the first column
11010         of each line points to the top-level directory of the source
11011         archive.
11012         * config/srclist-update: Accept "release" option that checks files
11013         from the most recently tagged revision in the source archive.
11015 2016-11-21  Bruno Haible  <bruno@clisp.org>
11017         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
11018         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
11019         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
11020         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
11021         Inline and remove member function 'rpl ()' of the wrapper struct.
11023 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
11025         dfa: fix logic typo
11026         Problem reported by Stephane Chazelas (Bug#24973).
11027         * lib/dfa.c (using_simple_locale): Fix typo that caused some
11028         non-simple locales like fr_FR to be treated as simple.
11030 2016-11-20  Jim Meyering  <meyering@fb.com>
11032         fix test driver leaks: exclude, malloc, realloc
11033         * tests/test-exclude.c (main): Fix trivial leak.
11034         * tests/test-malloc-gnu.c (main): Likewise.
11035         * tests/test-realloc-gnu.c (main): Likewise.
11036         With these changes, grep's tests are now leak free.
11037         I.e., running them with ASAN elicits no failure:
11038           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
11039             AM_LDFLAGS='-fsanitize=address -static-libasan' check
11041 2016-11-11  Bruno Haible  <bruno@clisp.org>
11043         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
11044         * modules/libunistring: (License): Change from LGPL to
11045         "LGPLv3+ or GPLv2".
11046         * modules/libunistring-optional: Likewise.
11047         * modules/unicase/*: Likewise.
11048         * modules/uniconv/*: Likewise.
11049         * modules/unictype/*: Likewise.
11050         * modules/unigbrk/*: Likewise.
11051         * modules/unilbrk/*: Likewise.
11052         * modules/uniname/*: Likewise.
11053         * modules/uninorm/*: Likewise.
11054         * modules/unistdio/*: Likewise.
11055         * modules/unistr/*: Likewise.
11056         * modules/uniwbrk/*: Likewise.
11057         * modules/uniwidth/*: Likewise.
11059 2016-11-12  Bruno Haible  <bruno@clisp.org>
11061         Relicense some modules under LGPLv2+.
11062         Paul Eggert's approval is in
11063         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
11064         Eric Blake's approval is in
11065         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
11066         Ludovic Courtès's approval is in
11067         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
11068         * modules/isnand-nolibm (License): Change to LGPLv2+.
11069         * modules/isnanf-nolibm (License): Likewise.
11070         * modules/isnanl-nolibm (License): Likewise.
11072 2016-11-19  Bruno Haible  <bruno@clisp.org>
11074         Relicense some modules under LGPLv2+.
11075         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
11076         modules/vasnprintf.
11077         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
11078         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
11079         All other significant changes to the files in lib/ of these modules
11080         are from me.
11081         * modules/memcmp2 (License): Change to LGPLv2+.
11082         * modules/amemxfrm (License): Likewise.
11083         * modules/fpieee (License): Likewise.
11084         * modules/fpucw (License): Likewise.
11085         * modules/frexp-nolibm (License): Likewise.
11086         * modules/frexpl-nolibm (License): Likewise.
11087         * modules/printf-frexp (License): Likewise.
11088         * modules/printf-frexpl (License): Likewise.
11089         * modules/printf-safe (License): Likewise.
11090         * modules/signbit (License): Likewise.
11092 2016-11-17  Bruno Haible  <bruno@clisp.org>
11094         Enable Unicode decoder safety unconditionally.
11095         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
11096         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
11097         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
11098         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
11099         * lib/unistr/u8-prev.c (u8_prev): Likewise.
11100         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
11101         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
11102         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
11103         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
11104         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
11105         * lib/unistr/u16-prev.c (u16_prev): Likewise.
11106         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
11107         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
11108         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
11109         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
11110         * lib/unistr/u32-prev.c (u32_prev): Likewise.
11111         * lib/unistr/u32-next.c (u32_next): Likewise.
11112         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
11113         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
11114         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
11115         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
11116         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
11117         CONFIG_UNICODE_SAFETY tests unconditionally.
11118         * tests/unistr/test-u32-mblen.c (main): Likewise.
11119         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
11120         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
11121         * tests/unistr/test-u32-next.c (main): Likewise.
11122         * tests/unistr/test-u32-strmblen.c (main): Likewise.
11123         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
11124         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
11125         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
11126         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
11127         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
11128         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
11129         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
11130         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
11131         * lib/unistr/u16-check.c (u16_check): Update comment.
11132         * NEWS: Mention the changes that callers should be aware of.
11134 2016-11-19  Bruno Haible  <bruno@clisp.org>
11136         relocatable-prog-wrapper: Fix breakage on Cygwin.
11137         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
11138         (Depends-on): Remove intprops.
11139         * lib/relocwrapper.c: Update dependency tree.
11140         (strerror): Undefine.
11141         * build-aux/install-reloc (func_create_wrapper): Do not compile
11142         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
11144 2016-11-19  Bruno Haible  <bruno@clisp.org>
11146         strerror: Make it compile in C++ mode.
11147         * lib/strerror.c (strerror): Ignore the return value of memcpy().
11149 2016-11-15  Pedro Alves  <palves@redhat.com>
11151         sys_time: add gnulib::timeval for C++
11152         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
11153         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
11154         timeval macro.
11156 2016-11-14  Pedro Alves  <palves@redhat.com>
11158         snippet/c++defs: fix real-floating arg functions in C++ mode
11159         Also, define isfinite, isinf, isnan, signbit in the gnulib
11160         namespace instead of in the global namespace.
11161         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
11162         (_GL_END_NAMESPACE): New.
11163         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
11164         (isfinite, isinf, isnan, signbit) [__cplusplus &&
11165         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
11166         instead of in the global namespace.
11167         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
11168         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
11169         of in the global namespace.
11171 2016-11-13  Jim Meyering  <meyering@fb.com>
11173         strftime: don't use __THROW
11174         Each use of __THROW would provoke this from gcc-7-to-be:
11176           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
11177             on unit local functions [-Wattributes]
11178           static int iso_week_days (int, int) __THROW;
11179           ^~~~~~
11180         * lib/strftime.c (__THROW): Don't define.
11181         Remove each use of __THROW.
11182         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
11183         (tm_diff, iso_week_days, __strftime_internal): Likewise.
11185 2016-11-14  Paul Eggert  <eggert@union>
11187         obstack: port to gcc -fcheck-pointer-bounds
11188         Problem found by 'make check' failure on bleeding-edge coreutils
11189         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
11190         6.2.0-5ubuntu12), configured via "./configure
11191         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
11192         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
11193         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
11194         New macro, copied from fts_.h.
11195         (struct _obstack_chunk.contents): Use it.
11197 2016-11-14  Eric Blake  <eblake@redhat.com>
11199         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
11200         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
11201         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
11203 2016-11-14  Pádraig Brady  <P@draigBrady.com>
11205         strptime: fix compile error in recent change
11206         * lib/strptime.c (__strptime_internal): Fix ported code.
11208 2016-11-11  Bruno Haible  <bruno@clisp.org>
11210         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
11211         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
11212         (func_import): Extend determination of license_incompatibilities.
11213         (func_create_testdir): Extend table of license compatibility. Handle
11214         also the licenses GPLv3+, GPL, LGPLv3+.
11216 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
11218         strftime: tune %q
11219         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
11221         Merge strftime.c changes from glibc
11222         This incorporates:
11223         2007-10-16 [BZ #5184] Add tzset_called argument
11224         2008-06-13 [BZ #6612] pass reference to tzset_called around
11225         2009-10-30 Implement Burmese language locale for Myanmar
11226         2010-01-09 Add support for XPG7 testing
11227         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
11228         2015-10-20 Convert miscellaneous function definitions to prototype style
11229         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
11230         it anyway and this lessens the difference between gnulib and glibc.
11231         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
11232         (__THROW): Define if standard headers do not.
11233         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
11234         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
11235         Declare with __THROW.
11236         (__strftime_internal): Rename from strftime_case_. Add arg for
11237         whether tzset is called.  All uses changed.  Call tzset at most
11238         once.  Allow %OC, for Burmese.
11239         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
11240         Don't assume values are in range.
11242 2016-11-12  Eric Blake  <eblake@redhat.com>
11244         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
11245         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
11246         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
11247         different value.
11249 2006-11-12  Pedro Alves  <palves@redhat.com>
11251         Fix gnulib C++ namespace support and std::frexp
11252         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
11253         _GL_CXXALIASWARN.
11255 2006-11-12  Pedro Alves  <palves@redhat.com>
11257         GNULIB_NAMESPACE::func need not pull in rpl_func
11258         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
11259         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
11260         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
11261         struct instead of a function pointer.
11263 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
11265         manywarnings: fix -Wno-missing-field-initializers detection
11266         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
11267         to be independent of -Wunused-variable.  I.E. ensure the latter
11268         warning doesn't occur so that detection of the former is accurate.
11270 2016-11-05  Pádraig Brady  <pbrady@fb.com>
11272         strftime,strptime: support %q to represent the quarter
11273         * lib/strftime.c (strftime_case_): Add %q case.
11274         * lib/strptime.c (__strptime_internal): Likewise.
11275         * tests/test-strftime.c (quarter_test): A new test case.
11277 2016-11-03  Eric Blake  <eblake@redhat.com>
11279         bootstrap: Fix get_version() for AIX 5.3
11280         * build-aux/bootstrap (get_version): Factor out sed script, since
11281         indented comments choke AIX 5.3 sed.
11282         Reported-by: Michael Felt <aixtools@gmail.com>
11284 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
11286         intprops: port to older XL C
11287         Problem reported by Alexander Samoilov in:
11288         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
11289         http://savannah.nongnu.org/bugs/?49448
11290         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
11291         Define to 1 only for XL C 12.1 or later, since this bug
11292         occurs in XL C for AIX 6.0 but not in 12.1.
11294 2016-11-02  Pádraig Brady  <P@draigBrady.com>
11296         backupfile: initialize default suffix within the implementation
11297         * lib/backupfile.c (find_backup_file_name): Initialize the
11298         global variable here, to simplify usage, and to only call
11299         getenv() when needed.
11301 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
11303         futimens: remove FIXME for old Linux kernels
11304         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
11305         this in 2012" FIXME, like that for utimensat.
11307         utimensat: remove FIXME for old Linux kernels
11308         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
11309         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
11310         this in 2012" FIXME, by assuming the file system bug is absent
11311         unless demonstrated to be present.  We no longer need to worry
11312         about Linux kernel 2.6.32 when building with newer kernels.
11314 2016-10-16  Bruno Haible  <bruno@clisp.org>
11316         qsort_r: Fix macrology for platforms that lack the function.
11317         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
11318         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
11319         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
11320         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
11321         not exist.
11322         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
11323         the function exists.
11324         * modules/qsort_r: Add comments.
11326 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
11328         sys_types: fix Texinfo typos
11329         * doc/glibc-functions/gnu_dev_major.texi:
11330         * doc/glibc-functions/gnu_dev_makedev.texi:
11331         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
11333 2016-10-26  John David Anglin  <dave.anglin@bell.net>
11335         getprogname: port to HP-UX
11336         See Bug#24805.
11337         * lib/getprogname.c (getprogname) [__hpux]: Port.
11338         * tests/test-getprogname.c (STREQ) [__hpux]:
11339         Special-case for HP-UX limitations on program name length.
11341 2016-10-20  Bruno Haible  <bruno@clisp.org>
11343         Update doc about target platforms.
11344         * doc/gnulib-intro.texi (Target Platforms): Update list.
11346 2016-10-15  Bruno Haible  <bruno@clisp.org>
11348         opendir, readdir, closedir: Relicense under LGPLv2+.
11349         * modules/opendir (License): Change to LGPLv2+.
11350         * modules/readdir (License): Likewise.
11351         * modules/closedir (License): Likewise.
11353 2016-10-16  Bruno Haible  <bruno@clisp.org>
11355         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
11356         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
11357         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
11358         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
11359         HAVE_DECL_STRERROR_R.
11361 2016-10-16  Bruno Haible  <bruno@clisp.org>
11363         Make the 'argp' module work without the 'error' module.
11364         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
11366 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
11368         diffseq: restore TOO_EXPENSIVE heuristic
11369         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
11370         (Bug#24715).  The simplest solution is to restore the
11371         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
11372         using a higher threshold to avoid Bug#16848 on smaller files.
11373         * lib/diffseq.h (struct context): Restore member too_expensive.
11374         (struct partition): Restore members lo_minimal, hi_minimal.
11375         (diag, compareseq): Restore arg find_minimal.  All uses changed.
11376         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
11377         1993 to make 'diff' run faster (but not as well) on large inputs,
11378         but use a threshold of 4096 instead of the old 256.
11379         * lib/fstrcmp.c (strcmp_bounded):
11380         * lib/git-merge-changelog.c (compute_differences):
11381         Adjust to diffseq.h changes.
11383 2016-10-22  Bruno Haible  <bruno@clisp.org>
11385         iconv: Avoid compilation error when bootstrapping GNU libiconv.
11386         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
11387         declaration yet, define ICONV_CONST to empty.
11389 2016-10-15  Bruno Haible  <bruno@clisp.org>
11391         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
11392         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
11393         module.
11395 2016-10-16  Bruno Haible  <bruno@clisp.org>
11397         system-quote tests: Avoid compiler warning on AIX.
11398         * tests/test-system-quote-child.c (fopen): Redefine like the system's
11399         <stdio.h> does.
11401 2016-10-16  Bruno Haible  <bruno@clisp.org>
11403         Fix some "gcc -Wall" warnings.
11404         * tests/test-ffsl.c (main): Use variable x, not i.
11405         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
11406         freopen.
11407         * tests/test-sethostname1.c (main): Explicitly ignore the return value
11408         of sethostname.
11410 2016-10-16  Bruno Haible  <bruno@clisp.org>
11412         gnulib-tool: Make --create-testdir on all modules work again.
11413         * gnulib-tool (func_create_testdir): Don't include the
11414         non-recursive-gnulib-prefix-hack module.
11416 2016-10-21  Daiki Ueno  <ueno@gnu.org>
11418         libunistring: change the maintainer to 'all'
11419         * modules/gen-uni-tables, modules/libunistring:
11420         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
11421         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
11422         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
11423         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
11424         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
11425         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
11426         * modules/uniwidth/*: Change the maintainer to 'all'.
11428 2016-10-16  Bruno Haible  <bruno@clisp.org>
11430         Simplify "configure: checking ..." messages.
11431         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
11432         AC_MSG_NOTICE.
11433         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
11435 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
11437         quotearg-tests: pacify gcc -Wall
11438         Problem reported by Bruno Haible in:
11439         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
11440         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
11441         * tests/test-quotearg.h: ... from here.
11443 2016-10-20  Pádraig Brady  <P@draigBrady.com>
11445         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
11446         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
11447         Needed on Centos <= 4.
11449 2016-10-20  Jim Meyering  <meyering@fb.com>
11451         printf.m4: fix a bug in detecting printf %j support
11452         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
11453         uintmax_t is defined in neither stdint.h nor inttypes.h.
11454         Before, this macro might have mistakenly set
11455         gl_cv_func_printf_sizes_c99=yes on such a system.
11456         Spotted by Zev Weiss.
11458 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
11460         sched: substitute HAVE_SYS_CDEFS_H too
11461         Problem reported by Tom G. Christensen in:
11462         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
11463         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
11464         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
11466 2016-10-19  Pádraig Brady  <P@draigBrady.com>
11468         quotearg: never write beyond the returned length
11469         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
11470         scan of the string when we initially encounter a single quote when
11471         shell quoting, so that if we then switch to a more concise quoting method
11472         we will not have written beyond that returned length.
11473         This is significant for sh-quote, which has separate routines
11474         to determine the length and do the actual quoting.
11475         * tests/test-quotearg.h: Reinstate the buffer bounds checking
11476         now that we never write more than the returned length.
11478 2016-10-18  Bruno Haible  <bruno@clisp.org>
11480         getprogname tests: Avoid failure in packages that use libtool.
11481         * tests/test-getprogname.c (main): Strip "lt-" prefix.
11482         Based on a patch by Jim Meyering.
11484 2016-10-16  Bruno Haible  <bruno@clisp.org>
11486         getprogname: Fix test failure on Cygwin. Comments.
11487         * lib/getprogname.h: Add comments.
11488         * lib/getprogname.c: Add comments. Fix #elif indentation.
11489         * tests/test-getprogname.c (main): On Cygwin, expect a result without
11490         ".exe" suffix.
11492 2016-10-16  Bruno Haible  <bruno@clisp.org>
11494         Make sure the libunistring detection rejects older versions with a
11495         known bug.
11496         * modules/unistr/u8-strtok (configure.ac): Bump required version.
11497         * modules/unistr/u16-strtok (configure.ac): Likewise.
11498         * modules/unistr/u32-strtok (configure.ac): Likewise.
11500 2016-10-18  Bruno Haible  <bruno@clisp.org>
11502         sh-quote, system-quote: revert regression of unit test.
11503         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
11504         * tests/test-system-quote-main.c (check_one): Likewise.
11506 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11508         quotearg: fix stale tests
11509         * tests/test-quotearg.c [locale_results]: Add the missing str7
11510         entries to the expected results.
11511         * tests/test-system-quote-main.c (check_one): Don't enforce that we
11512         don't write beyond the returned length, since that's no longer the
11513         case if we switch to a more concise quoting style.
11514         * tests/test-sh-quote.c (check_one): Likewise.
11515         (main): Adjust for the new more concise quoting style.
11516         Reported by Bruno Haible.
11518 2016-10-16  Jim Meyering  <meyering@fb.com>
11520         non-recursive-gnulib-prefix-hack: fix inconsequential typo
11521         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
11522         to "$1".  This macro is always invoked with $1 == lib.
11523         Spotted by Bruno Haible
11525 2016-10-16  Bruno Haible  <bruno@clisp.org>
11527         Fix a test crash.
11528         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
11529         fails.
11531 2016-10-16  Pádraig Brady  <P@draigBrady.com>
11533         test-limits-h: suppress -Woverlength-strings
11534         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
11536 2016-10-15  Bruno Haible  <bruno@clisp.org>
11538         gettime, timespec, utimens: Relicense under LGPL.
11539         * modules/gettime (License): Change to LGPL.
11540         * modules/timespec (License): Likewise.
11541         * modules/utimens (License): Likewise.
11543 2016-10-14  Bruno Haible  <bruno@clisp.org>
11544             Pádraig Brady  <P@draigBrady.com>
11546         canonicalize-lgpl: Support the case path_max > INT_MAX.
11547         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
11548         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
11550 2016-10-13  Jim Meyering  <meyering@fb.com>
11552         getprogname: IBM z/OS: avoid NULL-dereference
11553         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
11554         upon strdup failure.
11556 2016-10-12  Jim Meyering  <meyering@fb.com>
11558         test-stdint: use _GL_VERIFY rather than "verify" for some tests
11559         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
11560         and an abbreviated diagnostic rather than verify with the full one,
11561         because the full-length strings would evoke warnings from gcc with
11562         -Woverlength-strings.
11564 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11566         stdint: port SIZE_MAX to glibc s390
11567         Problem reported by Eric Blake in:
11568         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
11569         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
11570         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
11571         correct type, if possible.
11573 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
11575         getprogname: port to IBM z/OS
11576         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
11578 2016-10-11  Jim Meyering  <meyering@fb.com>
11580         maint: remove stray space after "." in AC_DEFINE comment.
11581         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
11582         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
11584 2016-10-05  Jim Meyering  <meyering@fb.com>
11586         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11587         * lib/long-options.c (parse_long_options): Add a break statement
11588         to avoid this new warning/failure:
11589         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11590           --create-testdir --dir=/t/x --with-tests --test long-options
11591         ../../gllib/long-options.c: In function 'parse_long_options':
11592         ../../gllib/long-options.c:66:12: error: this statement may \
11593           fall through [-Werror=implicit-fallthrough]
11594                    (*usage_func) (EXIT_SUCCESS);
11595                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11597 2016-10-05  Jim Meyering  <meyering@fb.com>
11599         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11600         Testing this module would fail when using GCC 7 like this:
11601         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11602           --dir=/tmp/x --with-tests --test utimecmp
11603         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11604         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11605           [-Werror=bool-operation]
11606                          time_t s = src_s & ~ (res == 2 * BILLION);
11607                                             ^
11608         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11609           [-Werror=bool-operation]
11610                src_s &= ~ (res == 2 * BILLION);
11611                         ^
11612         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11613         Instead, make it explicit that we intend to apply it to 0 or 1.
11615 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11617         dfa: save memory for states
11618         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
11619         states if dfa has a lot of caches.
11621 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
11623         wchar, wctype-h: fix for MinGW 3.22.2
11624         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
11625         special invocation, to fix issues with MinGW 3.22.2 wchar.h
11626         when included from <string.h>.
11627         * lib/wctype.in.h [__MINGW32__]: Add special invocation
11628         convention for MinGW 3.22.2, to solve issues with their
11629         wctype.h when included from <ctype.h>.
11631 2016-10-05  Jim Meyering  <meyering@fb.com>
11633         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
11634         * lib/long-options.c (parse_long_options): Add a break statement
11635         to avoid this new warning/failure:
11636         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
11637           --create-testdir --dir=/t/x --with-tests --test long-options
11638         ../../gllib/long-options.c: In function ‘parse_long_options’:
11639         ../../gllib/long-options.c:66:12: error: this statement may \
11640           fall through [-Werror=implicit-fallthrough]
11641                    (*usage_func) (EXIT_SUCCESS);
11642                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
11644         utimecmp: avoid new GCC 7 warning from -Wbool-operation
11645         Testing this module would fail when using GCC 7 like this:
11646         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
11647           --dir=/tmp/x --with-tests --test utimecmp
11648         ../../gllib/utimecmp.c: In function ‘utimecmp’:
11649         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
11650           [-Werror=bool-operation]
11651                          time_t s = src_s & ~ (res == 2 * BILLION);
11652                                             ^
11653         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
11654           [-Werror=bool-operation]
11655                src_s &= ~ (res == 2 * BILLION);
11656                         ^
11657         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
11658         Instead, make it explicit that we intend to apply it to 0 or 1.
11660 2016-10-03  Pádraig Brady  <P@draigBrady.com>
11662         quotearg: minimize shell quoting using double quotes
11663         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
11664         quote in encountered then use double quotes (c style quoting)
11665         when possible, as it simplifies the quoting.
11666         * tests/test-quotearg-simple.c: Add test cases.
11667         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
11668         for the fact we now may write beyond the returned length.
11670 2016-10-02  Jim Meyering  <meyering@fb.com>
11672         vasnprintf.c: avoid spurious warning from GCC 7
11673         The presence of cpp directives renders this "FALLTHROUGH" comment
11674         ineffective, so does not suppress the -Wimplicit-fallthrough warning
11675         from GCC 7 built from git on 2016-10-02.
11676         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
11677         directives, so that it takes effect once again.  This is clearly
11678         not a proper change, and I will revert it once this bug is fixed:
11679         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
11681 2016-10-01  Jim Meyering  <meyering@fb.com>
11683         getprogname: correct the test for a __progname variable
11684         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
11685         and AC_LINK_IFELSE to check for a global __progname.  If found,
11686         define HAVE_VAR___PROGNAME.
11687         * lib/getprogname.c (getprogname): Reflect the new name of the
11688         feature- checked preprocessor symbol:
11689         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
11691 2016-09-28  Jim Meyering  <meyering@fb.com>
11693         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
11694         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
11695         fall-through case with a /* fallthrough */ comment.
11697         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
11698         * lib/dfa.c (dfassbuild): Mark the end of this case with a
11699         /* fallthrough */ comment.
11701         getprogname: avoid __progname vs program_invocation_short_name pitfall
11702         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
11703         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
11704         not with Fedora 24's glibc-2.23.1-10.
11705         * lib/getprogname.c (__progname): Move this declaration down...
11706         (getprogname): ... into the #elif block where used, and make it
11707         explicitly "extern".
11709         getprogname: port to OpenBSD 5.1
11710         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
11711         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
11712         * modules/getprogname (configure.ac): Move most of this code...
11713         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
11714         increment serial number, and add a test for __progname.
11715         https://bugs.gnu.org/24562
11716         Reported by Nelson H. F. Beebe.
11718 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11720         sched: port to GCC 6.2.1 on macOS Sierra
11721         Problem reported by Denis Davydov in:
11722         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
11723         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
11724         Include <sys/cdefs.h> before <sched.h>.
11725         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
11726         so that we needn’t worry about the sched.h include bug here.
11727         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
11728         and include it before <sched.h> if it exists, when
11729         checking for <sched.h>.
11731         tests/init.sh: port Alpine fix to AIX 7.1
11732         * tests/init.sh (compare_): When attempting to use diff -U3,
11733         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
11734         diff -u not outputting a space after leading '+', as the users
11735         of 'compare' should not be that picky about its output format.
11736         In the AIX 7.1 case, return with diff exit status (or with 2 if
11737         trouble), instead of some random nonzero exit status.
11738         * tests/test-init.sh (test_compare): Remove space after leading
11739         '+', so that AIX 7.1 'diff' passes the test.
11741 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
11743         nl_langinfo: pacify GCC
11744         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
11745         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
11747         stdint: also set GL_GENERATE_LIMITS_H
11748         Problem reported by Jim Meyering in:
11749         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
11750         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
11752         limits-h, stdint: Don't assume extensions, fix typo
11753         * m4/limits-h.m4 (gl_LIMITS_H):
11754         * m4/stdint.m4 (gl_STDINT_H):
11755         Don't assume AC_USE_SYSTEM_EXTENSIONS.
11756         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
11757         reported by Jim Meyering in:
11758         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
11760 2016-09-21  Jim Meyering  <meyering@fb.com>
11762         getprogname: port to AIX
11763         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
11764         and strdup to obtain a short program name string.  Using code from
11765         Bruno Haible and an idea from Bastien ROUCARIÈS, in
11766         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
11767         Assaf Gordon reported that this new file would fail to compile on
11768         AIX-7.1 32bit.
11770 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
11772         extensions: fix typo in comment
11773         * m4/extensions.m4: Sync from Autoconf master.
11775         stdint: support new _WIDTH macros
11776         * doc/posix-headers/stdint.texi: Document this.
11777         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
11778         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
11779         support for INTMAX_WIDTH, etc. as well as for support for just C99.
11780         * modules/stdint (Depends-on): Add limits-h.
11781         (Makefile.am): Substitute HAVE_C99_STDINT_H.
11782         * modules/stdint-tests (Depends-on): Add extensions, so that
11783         INTMAX_MAX etc. are defined.
11784         * tests/test-stdint.c: Verify the new macros.
11786         limits-h: new module
11787         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
11788         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
11789         * doc/posix-headers/limits.texi: Document new module.
11790         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
11791         * modules/limit-h-tests, tests/test-limits-h.c: New files.
11793         stdio: don't redefine __USE_MINGW_ANSI_STDIO
11794         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
11795         if it is already defined.  Apparently GNU Emacs relies on this.  See:
11796         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
11798 2016-09-15  Eric Blake  <eblake@redhat.com>
11800         sys_types: avoid glibc 2.25 warnings about major()
11801         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
11802         older autoconf.
11803         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
11804         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
11805         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
11806         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
11808         mountlist: include sysmacros.h for glibc
11809         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
11810         AC_HEADER_MAJOR.
11811         * lib/mountlist.c (includes): Use correct headers.
11813 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
11815         extensions: port to more ISO C TSes
11816         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
11817         master, to add support for more recent ISO C TRs and TSes.
11819 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
11821         intprops: new macro TYPE_WIDTH
11822         * lib/intprops.h (TYPE_WIDTH): New macro.
11823         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
11824         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
11825         * lib/parse-datetime.y (parse_datetime2):
11826         Use it.
11828         extensions: port to recent ISO C TRs
11829         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
11830         Sync from Autoconf master, to add support for recent ISO C TRs.
11831         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
11832         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
11833         the MinGW option is not an extension.
11835 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
11837         dfa: port to Solaris 9
11838         Problems reported by Tom G. Christensen in:
11839         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
11840         * modules/dfa (Depends-on): Add isblank.
11841         * modules/dfa-tests (dfa_match_aux_LDADD):
11842         Rename from test_stat_LDADD, to fix typo.
11843         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
11845 2016-09-10  Jim Meyering  <meyering@fb.com>
11847         strverscmp: avoid link failure on OS X
11848         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
11849         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
11851 2016-08-16  Jim Meyering  <meyering@fb.com>
11853         dfa: new module, importing grep's DFA matcher
11854         Since grep's DFA matcher is now being used by two gnulib-enabled
11855         projects, grep and sed, it makes sense to version-control its
11856         sources and unit tests in one place: here.
11857         * modules/dfa: New module.
11858         * modules/dfa-tests: New file.
11859         * lib/dfa.c: New file, from grep.
11860         * lib/dfa.h: Likewise.
11861         * lib/localeinfo.c: Likewise.
11862         * lib/localeinfo.h: Likewise.
11863         * tests/dfa-match-aux.c: Likewise.
11864         * tests/dfa-invalid-char-class.sh: Likewise.
11865         * tests/dfa-match.sh: Likewise, with minor changes.
11866         * MODULES.html.sh (Misc): Add "dfa" to this list.
11868 2016-09-09  Jim Meyering  <meyering@fb.com>
11870         getprogname-tests: don't depend on assert-h
11871         * modules/getprogname-tests (Depends-on): Remove assert-h.
11872         It was not needed, and in fact would cause build failure for
11873         coreutils on some systems.  Reported by Assaf Gordon in https:
11874         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
11876 2016-09-07  Jim Meyering  <meyering@fb.com>
11878         getprogname-tests: work also when EXEEXT is nonempty
11879         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
11880         * tests/test-getprogname.c (main): Use it.
11881         Suggested by Gisle Vanem.
11883 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
11885         getprogname: fix errors in previous change
11886         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
11887         s/program_invocation_name/base/
11888         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
11890 2016-09-08  Pádraig Brady  <P@draigBrady.com>
11892         parse-datetime: restrict debug output to input string
11893         * lib/parse-datetime.y (parse_datetime2): If we parse
11894         all of the input but determine it's invalid, ensure
11895         we don't output the now invalid input pointer.
11896         This issue was seen with `date -d 'now +1'`.
11898 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11900         flexmember: new macro FLEXALIGNOF
11901         * lib/flexmember.h: Include <stddef.h>, for offsetof.
11902         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
11903         this macro.  Update comments.
11905 2016-09-07  Jim Meyering  <meyering@fb.com>
11907         getprogname: port to systems with __argv (mingw, msvc)
11908         * lib/getprogname.c (getprogname): Include "dirname.h" and use
11909         last_component: more general than open coding it with hard-coded "/".
11910         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
11911         * modules/getprogname (Depends-on): Add dirname-lgpl.
11912         (configure.ac): Check for __argv in <stdlib.h>.
11913         * modules/getprogname-tests: New file.
11914         * tests/test-getprogname.c: New file.
11915         Suggested by Gisle Vanem in
11916         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
11918 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
11920         flexmember: port better to GCC + valgrind
11921         With a char[] flexible array member in a struct with nontrivial
11922         alignment, GCC-generated code can access past the end of the
11923         array, because GCC assumes there are padding bytes to get the
11924         struct aligned.  So the common idiom of malloc (offsetof (struct
11925         s, m), n) does not properly allocate an n-byte trailing member, as
11926         malloc’s argument should be the next multiple of alignof (struct s).
11927         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
11928         Although C11 apparently permits this GCC optimization (i.e., there
11929         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
11930         See the thread containing:
11931         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
11932         * lib/flexmember.h: New file.
11933         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
11934         * lib/localename.c, lib/time_rz.c:
11935         Include flexmember.h.
11936         * lib/fnmatch_loop.c (struct patternlist):
11937         * lib/localename.c (struct hash_node):
11938         Use FLEXIBLE_ARRAY_MEMBER.
11939         * lib/fnmatch_loop.c (EXT):
11940         * lib/fts.c (fts_alloc):
11941         * lib/glob.c (glob_in_dir):
11942         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
11943         * lib/localename.c (gl_lock_define_initialized):
11944         * lib/time_rz.c (tzalloc):
11945         Use FLEXSIZEOF instead of offsetof.
11946         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
11947         Check that the size of the struct can be taken.
11948         * modules/flexmember (Files): Add lib/flexmember.h.
11949         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
11950         Add flexmember.
11952 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
11954         getprogname: port to Solaris 10
11955         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
11956         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
11957         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
11959         stdalign: correct mistake in alignof doc
11960         Problem reported by Joseph Myers in:
11961         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
11962         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
11963         alignof(S) where S is a structure containing a flexible array
11964         member.  The Gnulib substitute does not support this, but C11 does.
11966 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11968         main.mk: remove sc_program_name, since there is no more need to
11969         use set_program_name in tools (getprogname is enough for most
11970         of the cases).
11971         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
11972         * top/maint.mk (sc_program_name): Remove.
11974 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
11976         Port tests away from progname, since modules that need the
11977         program name already depend on getprogname.
11978         * modules/acl-tests (Depends-on): Remove progname.
11979         * modules/argmatch (Depends-on): Likewise.
11980         * modules/argmatch-tests (Depends-on): Likewise.
11981         * modules/argp-tests (Depends-on): Likewise.
11982         * modules/argp-version-etc-tests (Depends-on): Likewise.
11983         * modules/array-list-tests (Depends-on): Likewise.
11984         * modules/array-oset-tests (Depends-on): Likewise.
11985         * modules/avltree-list-tests (Depends-on): Likewise.
11986         * modules/avltree-oset-tests (Depends-on): Likewise.
11987         * modules/avltreehash-list-tests (Depends-on): Likewise.
11988         * modules/carray-list-tests (Depends-on): Likewise.
11989         * modules/copy-file-tests (Depends-on): Likewise.
11990         * modules/exclude-tests (Depends-on): Likewise.
11991         * modules/fchownat-tests (Depends-on): Likewise.
11992         * modules/fdopendir-tests (Depends-on): Likewise.
11993         * modules/filenamecat-tests (Depends-on): Likewise.
11994         * modules/fstatat-tests (Depends-on): Likewise.
11995         * modules/fstrcmp-tests (Depends-on): Likewise.
11996         * modules/linked-list-tests (Depends-on): Likewise.
11997         * modules/linkedhash-list-tests (Depends-on): Likewise.
11998         * modules/mkdirat-tests (Depends-on): Likewise.
11999         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
12000         * modules/nonblocking-socket-tests (Depends-on): Likewise.
12001         * modules/obstack-printf-tests (Depends-on): Likewise.
12002         * modules/openat-tests (Depends-on): Likewise.
12003         * modules/parse-datetime-tests (Depends-on): Likewise.
12004         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
12005         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
12006         * modules/quotearg-simple-tests (Depends-on): Likewise.
12007         * modules/quotearg-tests (Depends-on): Likewise.
12008         * modules/rbtree-list-tests (Depends-on): Likewise.
12009         * modules/rbtree-oset-tests (Depends-on): Likewise.
12010         * modules/rbtreehash-list-tests (Depends-on): Likewise.
12011         * modules/spawn-pipe-tests (Depends-on): Likewise.
12012         * modules/system-quote-tests (Depends-on): Likewise.
12013         * modules/uniname/uniname-tests (Depends-on): Likewise.
12014         * modules/uninorm/nfc-tests (Depends-on): Likewise.
12015         * modules/uninorm/nfd-tests (Depends-on): Likewise.
12016         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
12017         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
12018         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
12019         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
12020         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
12021         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
12022         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
12023         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
12024         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
12025         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
12026         * modules/unlinkat-tests (Depends-on): Likewise.
12027         * modules/version-etc-tests (Depends-on): Likewise.
12028         * modules/xalloc-die-tests (Depends-on): Likewise.
12029         * modules/xmemdup0-tests (Depends-on): Likewise.
12030         * modules/xprintf-posix-tests (Depends-on): Likewise.
12031         * modules/xvasprintf-tests (Depends-on): Likewise.
12032         * tests/test-argmatch.c: Do not include progname.h.
12033         (main) Stop calling set_program_name.
12034         * tests/test-argp-version-etc.c: Likewise.
12035         * tests/test-argp.c: Likewise.
12036         * tests/test-argv-iter.c: Likewise.
12037         * tests/test-array_list.c: Likewise.
12038         * tests/test-array_oset.c: Likewise.
12039         * tests/test-avltree_list.c: Likewise.
12040         * tests/test-avltree_oset.c: Likewise.
12041         * tests/test-avltreehash_list.c: Likewise.
12042         * tests/test-carray_list.c: Likewise.
12043         * tests/test-copy-acl.c: Likewise.
12044         * tests/test-copy-file.c: Likewise.
12045         * tests/test-exclude.c: Likewise.
12046         * tests/test-fchownat.c: Likewise.
12047         * tests/test-fdopendir.c: Likewise.
12048         * tests/test-filenamecat.c: Likewise.
12049         * tests/test-fstatat.c: Likewise.
12050         * tests/test-fstrcmp.c: Likewise.
12051         * tests/test-linked_list.c: Likewise.
12052         * tests/test-linkedhash_list.c: Likewise.
12053         * tests/test-mkdirat.c: Likewise.
12054         * tests/test-nonblocking-pipe-main.c: Likewise.
12055         * tests/test-nonblocking-socket-main.c: Likewise.
12056         * tests/test-obstack-printf.c: Likewise.
12057         * tests/test-openat.c: Likewise.
12058         * tests/test-parse-datetime.c: Likewise.
12059         * tests/test-pipe-filter-gi1.c: Likewise.
12060         * tests/test-pipe-filter-gi2-main.c: Likewise.
12061         * tests/test-pipe-filter-ii1.c: Likewise.
12062         * tests/test-pipe-filter-ii2-main.c: Likewise.
12063         * tests/test-quotearg-simple.c: Likewise.
12064         * tests/test-quotearg.c: Likewise.
12065         * tests/test-rbtree_list.c: Likewise.
12066         * tests/test-rbtree_oset.c: Likewise.
12067         * tests/test-rbtreehash_list.c: Likewise.
12068         * tests/test-sameacls.c: Likewise.
12069         * tests/test-set-mode-acl.c: Likewise.
12070         * tests/test-spawn-pipe-main.c: Likewise.
12071         * tests/test-system-quote-main.c: Likewise.
12072         * tests/test-unlinkat.c: Likewise.
12073         * tests/test-version-etc.c: Likewise.
12074         * tests/test-xalloc-die.c: Likewise.
12075         * tests/test-xfprintf-posix.c: Likewise.
12076         * tests/test-xmemdup0.c: Likewise.
12077         * tests/test-xprintf-posix.c: Likewise.
12078         * tests/test-xvasprintf.c: Likewise.
12079         * tests/uniname/test-uninames.c: Likewise.
12080         * tests/uninorm/test-u32-nfc-big.c: Likewise.
12081         * tests/uninorm/test-u32-nfd-big.c: Likewise.
12082         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
12083         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
12084         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
12085         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
12086         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12087         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12088         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12089         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12090         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12091         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12092         * tests/test-c-stack.c: (program_name): Do not define.
12093         (main): Do not set program_name.
12094         * tests/test-closein.c: Likewise.
12095         * tests/test-xstrtol.c: Likewise.
12096         * tests/test-yesno.c: Likewise.
12098 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
12100         Port modules to use getprogname explicitly, instead of requiring
12101         progname to be used (or program_name to be provided).
12102         * lib/argmatch.c: Do not include progname.h.
12103         [TEST] (program_name): Do not define.
12104         [TEST] (main): Call getprogname instead of using program_name.
12105         * lib/c-stack.c: Do not include progname.h.
12106         (program_name): Do not define.
12107         (die): Call getprogname instead of using program_name.
12108         * lib/chdir-long.c: Do not include progname.h.
12109         [TEST_CHDIR] (main): Do not set program_name.
12110         * lib/error.c [!_LIBC]: Include progname.h.
12111         [!_LIBC] (program_name): Define using getprogname.
12112         * lib/euidaccess.c: Do not include progname.h.
12113         [TEST] (main): Do not set program_name.
12114         * lib/git-merge-changelog.c: Include getprogname.h instead of
12115         progname.h.
12116         (usage): Call getprogname instead of using program_name.
12117         (main): Likewise.  Stop calling set_program_name.
12118         * lib/group-member.c: Do not include progname.h.
12119         [TEST] (main): Do not set program_name.
12120         * modules/argmatch (Depends-on): Add getprogname.
12121         * modules/c-stack (Depends-on): Likewise.
12122         * modules/error (Depends-on): Likewise.
12123         * modules/git-merge-changelog (Depends-on): Likewise.
12124         Also remove progname.
12126 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
12128         * NEWS: Document the deprecation of the 'progname' module.
12130 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
12132         getprogname: new module
12133         This provides a LGPL module for getting the name of the current
12134         program, using the same API found on *BSD systems.
12135         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
12136         * modules/getprogname: New files.
12137         * MODULES.html.sh (Misc): Add getprogname.
12139 2016-09-02  Jim Meyering  <meyering@fb.com>
12141         manywarnings: add -fno-common
12142         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
12143         to the list.  Quoting the manual, "Compiling with -fno-common is
12144         useful on targets for which it provides better performance, or if
12145         you wish to verify that the program will work on other systems that
12146         always treat uninitialized variable declarations this way [putting
12147         it in the data section]."  If diffutils had been using this sooner,
12148         it would have prevented this duplicate declaration issue:
12149         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
12151 2016-08-31  Simon Josefsson  <simon@josefsson.org>
12153         parse-datetime: Fix typo.
12154         * lib/parse-datetime.y (parse_datetime2): Fix typo.
12156 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12158         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
12159         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
12160         GCC 5 and 6 that have __builtin_sub_overflow but not
12161         __builtin_sub_overflow_p.  With the recent changes, these
12162         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
12163         implementation than with INT_SUBTRACT_OVERFLOW implementation,
12164         since the former needs just one runtime comparison whereas the
12165         latter needs two.
12167         strverscmp: sync with glibc
12168         Although this doesn't exactly synchronize with glibc
12169         byte-for-byte, it makes the code behave the same as glibc.
12170         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
12171         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
12172         difference shouldn't matter in practical use.  All uses changed
12173         back to isdigit.
12174         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
12175         (next_state): Now unsigned char array; redo elements.
12176         (result_type): Now signed char array; redo elements.
12177         (__strverscmp): Fix glibc bug 9913 by using new states.
12178         * tests/test-strverscmp.c (main): Test glibc bug 9913.
12180 2016-08-29  Jim Meyering  <meyering@fb.com>
12182         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
12183         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
12184         similarly to how it was done to intprops.h.
12186 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
12188         intprops.h: port recent changes to GCC 6.2.0
12189         * lib/intprops.h (__has_builtin): Move earlier.
12190         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
12191         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
12192         the last argument can be null.  All uses changed.
12193         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
12194         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12195         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
12196         and it's not clear which GCC versions it works for.
12197         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
12198         its definiens.
12200         intprops.h: use __typeof__ with GCC 7
12201         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
12202         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
12203         This avoids computing the expression's value (which might overflow!).
12205 2016-08-29  Jim Meyering  <meyering@fb.com>
12207         intprops.h, xalloc-oversized.h: work with gcc 7
12208         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
12209         __builtin_mul_overflow each accept a NULL pointer as the third
12210         argument.  However in gcc 7, that is no longer accepted.
12211         Instead, one must use the "_p"-suffixed names, with which, the
12212         third parameter is no longer a pointer.
12213         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
12214         the definition: not true for gcc 7 and subsequent.
12215         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
12216         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12217         Provide new definitions for gcc 7 and subsequent.
12218         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
12219         that works with gcc-7.
12221         intprops.h: fix missing-backslash problems
12222         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
12223         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
12225 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12227         intprops: fix paren typo on old platforms
12228         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
12229         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
12230         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
12231         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
12232         && !defined LLONG_MAX]:
12233         Remove stray paren.
12235         intprops: port to OpenVMS
12236         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
12237         * doc/posix-headers/limits.texi: Document the problem.
12238         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
12239         Define if not already defined.
12241 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
12243         parse-datetime: improve debug implementation
12244         Follow-up to commit 12ad79069 ("add optional debug printing").
12245         Improve parse-datetime's debug implementation: remove macros,
12246         replace global debug flag variable with a function parameter,
12247         use nstrftime for formatting.
12248         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
12249         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
12250         (parse_datetime2): New function, accepts 'flags' parameter, supporting
12251         debug flag. Existing interface 'parse_datetime' left unmodified.
12252         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
12253         (struct parser_control): add 'parse_datetime_debug' member variable.
12254         (parse_datetime): Call new function 'parse_datetime2' without debug.
12255         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
12256         pc.parse_datetime_debug variable as needed.
12257         (to_year): Accept new flags parameter, instead of using global variable.
12258         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
12259         use struct 'debug' variable instead of global variable.
12260         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
12261         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
12262         correspnding functions directly instead of using macros.
12263         * modules/parse-datetime: Add gnulib's strftime module.
12265 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
12267         c-strcase-tests: port to EBCDIC
12268         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
12269         which assume ASCII encoding semantics to run only in ASCII
12270         mode, as they fail in EBCDIC.
12272         sigpipe-tests: fix typo
12273         * tests/test-sigpipe.sh: C, not B.
12275 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12277         canonicalize-lgpl: fix errno after malloca fails
12278         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
12279         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
12280         * lib/canonicalize-lgpl.c (__realpath):
12281         Don't assume malloca sets errno on failure.
12283 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12285         strtod: port errno handling to z/OS
12286         * lib/strtod.c (strtod): Save and restore errno more reliably.
12288 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12290         strtod: port to z/OS
12291         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12292         implementation.
12294 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12296         strtod: port to z/OS
12297         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
12298         implementation.
12300         regex, string: rename to avoid '__string'
12301         * lib/regex.h, lib/string.in.h: Do not use the identifier
12302         '__string', as it is effectively reserved by string.h on z/OS.
12304         c-strcase-tests, wcwidth-tests: depend on c-ctype
12305         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
12306         Add c-ctype.
12308 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
12310         thread: port to z/OS
12311         * lib/glthread/thread.c, lib/glthread/thread.h:
12312         Rudimentary gl_thread support for z/OS.
12314         maint: port tests to z/OS errno behavior
12315         * tests/test-nonblocking-reader.h:
12316         * tests/test-nonblocking-writer.h:
12317         Accommodate z/OS errno code preferences. (I believe this should
12318         still be within spec; IBM is good at following the letter if not
12319         the spirit of such things.)
12321         maint: preprocessor changes to support z/OS
12322         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
12323         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
12324         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
12325         * tests/test-nonblocking-pipe.h:
12327         fclose, strstr-simple, wchar: port to z/OS
12328         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
12329         Changes to the Autoconf M4 code to support z/OS.  Note that
12330         fclose() is broken in a different way on z/OS than it is on other
12331         systems, thus the special-case in fclose.m4.
12333         iconv_open-utf-tests, iconv-tests: port to EBCDIC
12334         * tests/test-iconv-utf.c, tests/test-iconv.c:
12335         Added appropriately conditional #pragmas so that the test strings
12336         in test-iconv-utf.c are correctly interpreted in ASCII instead of
12337         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
12338         addressed in a more portable way by simply rewriting all the ASCII
12339         literal characters as octal escapes, but then you would lose the
12340         partial readability that the strings have now. Also, iconv_open()
12341         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
12343         c-strcase-tests, wcwidth-tests: port to EBCDIC
12344         * tests/test-c-strcasecmp.c: Include c-ctype.h.
12345         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
12346         * tests/test-wcwidth.c: Likewise.
12348 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12350         stdbool: don't require _Bool for C++
12351         Problem reported by David Seifert in:
12352         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
12353         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
12354         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
12355         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
12356         stricter about checking that bool and _Bool are compatible in C.
12358 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
12360         getdelim: remove dependency on realloc-posix
12361         * lib/canonicalize-lgpl.c (alloc_failed)
12362         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
12363         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
12364         Use __set_errno where needed, for consistency.
12365         * lib/getdelim.c (alloc_failed): New function.
12366         (getdelim): Use it.
12368 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
12370         parse-datetime: add optional debug printing
12371         Print parsing information, warnings, and errors to stderr.
12372         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
12373         * lib/parse-datetime.y:
12374         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
12375         (PROGRESS*): Same as DEBUG, for progress reporting.
12376         (dbg_printf): Print message to stderr, with 'date' prefix.
12377         (struct parser_control): Add 'debug_*_seen' variables.
12378         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
12379         (debug_print_current_time, debug_print_relateive_time): Prints the
12380         current/relative date/time value of parser_control.
12381         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
12382         (to_year): Warn about 2-digit year parsing.
12383         (yylex):   Warn about unrecognized words.
12384         (get_effective_timezone): Returns current timezone in minutes.
12385         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
12386         clearly and unambigiously as possible.
12387         (debug_mktime_not_ok): Print detailed information about failed
12388         date/time values.
12389         (parse_datetime): Add DEBUG messages for failures, warnings. Add
12390         PROGRESS messages for status messages.
12391         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
12393 2016-08-06  Jim Meyering  <meyering@fb.com>
12395         tests/init.sh: exclude dash with bad "local" semantics
12396         * tests/init.sh (gl_shell_test_script_): Add a function to
12397         eliminate a shell like "dash" (unlike bash, zsh) that has
12398         surprising/risky "local var='...'" semantics.  Inspired by
12399         the problem and discussion in https://bugs.gnu.org/24116#11.
12401 2016-08-02  Ján Tomko  <jtomko@redhat.com>
12403         maint.mk: expand the prohibit_doubled_word regex
12404         This check has a static list of words that are checked for
12405         repetitions.  Expand it before running the perl script to
12406         avoid using expensive captures.  This decreases the cost
12407         for libvirt from 1.66s to 0.66s.
12408         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
12409         (sc_prohibit_doubled_word): Use it.
12411 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12413         useless-if-before-free: skip non-matching lines early
12414         * build-aux/useless-if-before-free: First match each line with the
12415         simple/quick /\bif\b/ and reject if there is no match. This often
12416         saves the cost of the much more involved regular expression.
12417         For libvirt, this decreases the cost from 1.44s to 1.02s.
12419 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12421         maint.mk: speed up sc_po_check
12422         sc_po_check would skip files based on their names, or on the
12423         existence of files with derived names. Rewrite it to use perl
12424         instead of shell to make the check faster.
12425         * top/maint.mk (perl_translatable_files_list_): Define.
12426         (sc_po_check): Use it.
12428 2016-07-30  Ján Tomko  <jtomko@redhat.com>
12430         maint.mk: speed up require_config_h_first
12431         Instead of spawning three processes per file,
12432         rewrite the check in perl and run it once for all the files.
12433         * top/maint.mk (perl_config_h_first_): Define.
12434         (sc_require_config_h_first): Use it in place of shell code.
12436 2016-07-26  Ján Tomko  <jtomko@redhat.com>
12438         maint.mk: speed up sc_po_check
12439         sc_po_check would skip files based on their names, or on the
12440         existence of files with derived names. Rewrite it to use perl
12441         instead of shell to make the check faster.
12442         * top/maint.mk (perl_translatable_files_list_): Define.
12443         (sc_po_check): Use it.
12445 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12447         obstack: pacify GCC 6 with -Wnull-dereference
12448         Problem reported by Assaf Gordon in:
12449         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
12450         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
12451         Declare with __attribute_noreturn__.
12452         * lib/obstack.h (__attribute_noreturn__): New macro.
12454 2016-07-13  Eric Blake  <eblake@redhat.com>
12456         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
12457         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
12458         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
12460 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
12462         doc: mention glibc SSIZE_MAX buglet
12463         * doc/posix-headers/limits.texi (limits.h): Document the bug.
12465 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
12467         printf-posix: Fix mingw build
12468         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
12469         expression for detecting C symbol prefixes but forgot to qoute square
12470         brackets in the command line arguments for grep.  That way when
12471         building with mingw the condition was false although it ought to be
12472         true instead.  In particular scenarios this led to the following
12473         compile error:
12475             Cannot export rpl_printf: symbol not found
12476             Cannot export rpl_scanf: symbol not found
12477             collect2: error: ld returned 1 exit status
12479         Fix this by properly quoting square brackets.
12481 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
12483         mktime: call tzset as per POSIX
12484         Problem reported by Ludovic Courtès in:
12485         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
12486         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
12487         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
12489 2016-06-26  Pádraig Brady  <P@draigBrady.com>
12491         fts: handle readdir() errors
12492         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
12493         but also upon error when it will also set errno.  Therefore
12494         flag the error case from readdir().  We treat the case where
12495         no items are read the same as if the dir can't be accessed,
12496         i.e. by setting fts_errno to FTS_DNR.
12498 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
12500         intprops: port better to GCC 7
12501         GCC 7 __builtin_add_overflow supports a new usage form, where the
12502         last argument is a null pointer, and which merely returns 1 if an
12503         overflow would occur.  This is a constant expression if all
12504         arguments are constants, and should generate faster code when code
12505         needs to be generated.
12506         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
12507         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
12508         Use builtin operations if available.
12509         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
12510         operations are available, as it's almost surely faster.
12512 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
12514         intprops-test: port to GCC 6
12515         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
12516         since the bug is not fixed in GCC 6.1.
12518 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
12520         xalloc-oversized: port to GCC 7; fewer warnings
12521         GCC 7 will have a better way to deal with integer overflow.
12522         Plus, fix a warnings problem reported by Tim Ruehsen in:
12523         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
12524         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
12525         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
12526         For GCC 5, use __xalloc_oversized if both args are constants,
12527         or if pedantic.
12529 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
12531         regex: port to Sun C
12532         Reported by Daiki Ueno.
12533         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
12534         __restrict, in prototype.  This fixes a problem I introduced in
12535         the 2016-02-19 merge from glibc.
12537 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
12539         stdbool: Restore __bool_true_false_are_defined check
12540         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
12541         __bool_true_false_are_defined is still defined, even with C++11.
12543 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
12545         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
12546         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
12548 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
12550         Use GCC_LINT, not lint
12551         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
12552         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
12553         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
12554         Document problem with lint and _Noreturn.
12555         * lib/diffseq.h (IF_LINT, IF_LINT2):
12556         * lib/fts.c (sccsid):
12557         * lib/getndelim2.c (IF_LINT):
12558         * lib/gl_anylinked_list2.h (gl_linked_iterator)
12559         (gl_linked_iterator_from_to):
12560         * lib/gl_anytree_list2.h (gl_tree_iterator)
12561         (gl_tree_iterator_from_to):
12562         * lib/gl_anytree_oset.h (gl_tree_iterator):
12563         * lib/gl_array_list.c (gl_array_iterator)
12564         (gl_array_iterator_from_to):
12565         * lib/gl_array_oset.c (gl_array_iterator):
12566         * lib/gl_carray_list.c (gl_carray_iterator)
12567         (gl_carray_iterator_from_to):
12568         * lib/idcache.c:
12569         * lib/inet_ntop.c (IF_LINT):
12570         * lib/regcomp.c (build_charclass_op, create_tree):
12571         * lib/regex_internal.c (re_acquire_state)
12572         (re_acquire_state_context):
12573         * lib/trigl.c (rcsid):
12574         * lib/trim.c (IF_LINT):
12575         * lib/vasnprintf.c (IF_LINT):
12576         * lib/verify.h (assume):
12577         Treat GCC_LINT like lint.
12579 2016-05-29  Bruno Haible  <bruno@clisp.org>
12581         secure_getenv: Port to many more platforms.
12582         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
12583         functions.
12584         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
12585         for non-BSD Unix platforms and for native Windows.
12586         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
12587         Prompted by a request from Nikos Mavrogiannopoulos.
12589 2016-05-27  Eric Blake  <eblake@redhat.com>
12591         canonicalize: Fix broken probe for realpath.
12592         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
12593         in logic introduced in 54615b95.
12595 2016-05-26  Eric Blake  <eblake@redhat.com>
12597         unsetenv: relax to LGPLv2+
12598         * modules/unsetenv (License): Match setenv license.
12600 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
12602         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
12603         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
12604         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
12605         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
12606         (commonarg, dirargs, dirs, infoarg, generate_ascii)
12607         (generate_html, generate_info, generate_tex, outdir)
12608         (source_extra, split, srcfile, texarg): Move above 'version'.
12609         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
12611 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12613         manywarnings: update for GCC 6.1
12614         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
12615         Add GCC 6.1 options that apply to C.
12616         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
12617         do not apply to C, are obsolescent, etc.
12619 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
12621         glob: size_t overflow checks
12622         * lib/glob.c (__has_builtin): New macro.
12623         (size_add_wrapv, glob_use_alloca): New static functions.
12624         (glob, glob_in_dir): Check for size_t overflow in several places,
12625         and fix some size_t checks that were not quite right.
12627         glob: don't assume INT_MAX < SIZE_MAX
12628         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
12629         latter is not portable to (probably theoretical) hosts where
12630         SIZE_MAX <= INT_MAX.
12632 2016-05-09  Bruno Haible  <bruno@clisp.org>
12634         Fix undefined behaviour in gettext.h.
12635         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
12636         pointer's value after the storage it points to has been freed.
12637         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
12638         Spotted by Coverity.
12640 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12642         git-version-gen: avoid undefined shift
12643         Problem reported by Mosè Giordano in:
12644         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
12645         * build-aux/git-version-gen: Avoid undefined behavior if invoked
12646         with --prefix or --fallback but without a later argument.  While
12647         we're at it, omit unnecessary quotes.
12649 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
12651         glob: merge glibc changes into lib/glob.c
12652         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
12653         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
12654         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
12655           struct dirent [BZ #19779]
12656         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
12657           callback gl_readdir
12658         2015-10-20 Convert miscellaneous function definitions to prototype style
12659         2015-10-20 Convert 113 more function definitions to prototype style
12660           (files with assertions)
12661         2015-06-12 Fix getlogin_r namespace (bug 18527).
12662         2014-02-10 Use glibc_likely instead __builtin_expect.
12663         2013-10-20 When glob pattern contains a trailing slash match only
12664           directories. Fixes bug 10278.
12665         2013-09-04 glob: silence -Wattribute warnings
12666         2013-06-07 Avoid use of "register" as optimization hint.
12667         2012-09-25 Use size_t instead of int for internal variables in glob
12668           (bug 14621)
12669         2011-07-20 Check for overflows in expressions
12670         2011-05-28 Remove unused variable
12671         2011-05-22 Add a few more alloca size checks
12672         2010-03-27 Whitespace fixes
12673         2010-03-27 Fix one more issue with the glob patch
12674         2010-03-24 Fix glob with empty pattern
12675         2008-05-27 Remove useless more "if" tests before "free"
12676         * modules/glob (Depends-on): Add stdint.
12678 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
12680         mktime: port to stricter signed overflow checking
12681         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
12682         (long_int): Require width for INT_MAX * 3 * (seconds per year),
12683         instead of merely for INT_MAX * 2.  In practice platforms that
12684         do the latter also do the former.
12685         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
12686         (shr): New static function, replacing SHR.  All uses changed.
12687         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
12688         and TIME_T_MAX.  All uses changed.
12689         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
12690         Use long_int, not time_t.
12691         (long_int_avg): New static function, replacing time_t_avg.
12692         All uses changed.  Round toward positive infinity, as that
12693         generates slightly better code.
12694         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
12695         by INT_ADD_WRAPV.
12696         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
12697         (convert_time): New static function.
12698         (ranged_convert): Use it
12699         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
12700         Use simpler test for loop exit.
12701         (__mktime_internal): Store negative of guessed offset, to simplify
12702         overflow checking.  Remove no-longer-needed test for small time_t
12703         overflows.
12705         mktime: speed up DEBUG_MKTIME benchmarks
12706         Call tzset just once, at the start, rather than for every test
12707         case.  This lets us measure the CPU cost of mktime as opposed to
12708         that of tzset.  This is relevant when TZ is not set and glibc is
12709         being used.  This speeds up tests by a factor of 40 on my Fedora
12710         23 x86-64 platform.
12711         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
12712         to call tzset and as a sanity check.  Later on, use localtime_r
12713         instead of localtime.
12715         mktime: resurrect DEBUG_MKTIME testing
12716         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
12717         Include <string.h>, for strcmp.
12719         mktime: simplify DEBUG_MKTIME
12720         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
12721         Simplify later usage accordingly.
12723         Port mktime_internal offset to unsigned time_t
12724         This avoids some assumptions about wraparound arithmetic on
12725         signed integer overflow.
12726         * lib/mktime-internal.h (mktime_offset_t): New type.
12727         (mktime_internal): Use it in decl.
12728         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
12730         * lib/mktime.c (__mktime_internal, localtime_offset):
12731         * lib/timegm.c (timegm): Use it.
12732         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
12733         (gl_FUNC_MKTIME): Require it.
12735 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
12737         xstrtol: prohibit monstrosities like "1bB"
12738         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
12739         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
12740         "B" only if the first suffix needs a base.
12741         * tests/test-xstrtol.sh: Test this.
12743 2016-04-21  Pádraig Brady  <P@draigBrady.com>
12745         xstrtod: reinstate setting of *result upon ERANGE
12746         * lib/xstrtod.c (XSTRTOD): The user may decide to use
12747         the returned limits upon ERANGE, so allow and document that.
12749 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
12751         xstrtod: modify *result only if no errors
12752         * lib/xstrtod.c (XSTRTOD).
12754 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
12756         btowc: document problems in C locale
12757         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
12758         with mbrtowc.  See: http://bugs.gnu.org/23269#32
12760 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12762         mktime: improve integer overflow checking
12763         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
12764         (WRAPV): Remove; no longer needed.
12765         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
12766         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
12767         Remove.  Use intprops.h defns instead.
12768         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
12769         Use bool for Boolean, for clarity.
12770         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
12771         detect integer overflow.
12772         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
12774         intprops: check two's complement assumption
12775         Suggested by Eric Blake in:
12776         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
12777         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
12778         short, int, long, and (if available) long long are two's complement.
12779         * modules/intprops (Depends-on): Add 'verify'.
12781         intprops, mktime, strtol: assume two's complement
12782         These macros were not portable to every conforming C11 ones'
12783         complement platform.  It's not worth the hassle of porting to some
12784         platforms that use ones' complement or signed magnitude, as such
12785         platforms are almost purely theoretical nowadays and porting even
12786         to some of them makes the code harder to review for little
12787         practical benefit.  Problem reported by Florian Weimer in:
12788         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
12789         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12790         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
12791         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
12792         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
12793         (TYPE_SIGNED_MAGNITUDE):
12794         Remove.  All uses rewritten to assume two's complement, which is
12795         all we can reasonably test nowadays anyway.
12796         * top/maint.mk (_intprops_names): Remove the removed macros.
12798 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12800         stdint: port to strict C11 left shift
12801         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
12802         Pacify clang -Wshift-negative-value, which should be an issue only
12803         on clang setups where stdint.h does not conform to C11 or to C++11.
12804         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
12806 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
12808         mbrtowc: work around glibc bug#19932
12809         Fix mbrtowc so that it never returns -1 in the C locale,
12810         as this conflicts with a future version of POSIX
12811         http://austingroupbugs.net/view.php?id=663#c2738
12812         and causes problems with GNU grep: http://bugs.gnu.org/23234
12813         See glibc bug 19932:
12814         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
12815         * doc/posix-functions/mbrlen.texi (mbrlen):
12816         * doc/posix-functions/mbrtowc.texi (mbrtowc):
12817         Document the glibc bug.
12818         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
12819         Include hard-locale.h, locale.h.
12820         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
12821         if the bug is possible.
12822         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
12823         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
12824         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
12825         * modules/mbrtowc (Depends-on): Add hard-locale.
12826         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
12827         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
12828         * tests/test-mbrtowc5.sh: New file.
12830 2016-04-03  Pedro Alves  <palves@redhat.com>
12832         stdint: detect good enough pre-C++11 stdint.h in C++ mode
12833         When gnulib is configured in C++ mode for a system with a working C99
12834         implementation of stdint.h that predates C++11, gnulib ends up
12835         substituting stdint.h anyway.  This works on most targets, but on e.g.,
12836         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
12837         MinGW is LLP64.  Instead of trying to detect the right types, detect
12838         good-enough-pre-C++11 stdint.h and in such case define
12839         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
12840         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
12841         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
12842         conforms to C99.  If it does, check whether it hides symbols
12843         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
12844         does, define those macros in config.h.
12846 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
12848         argp: merge changes from glibc
12849         Among other things, this should fix problems found by a Coverity
12850         scan and reported by Andrei Borzenkov:
12851         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
12852         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
12853         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
12854         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
12855         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
12856         * lib/argp.h:
12857         Merge changes from glibc.
12858         * tests/test-argp-2.sh: Adjust to match new behavior.
12860 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
12862         stddef: support configuring with g++
12863         Problem reported by Ángel González in:
12864         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
12865         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
12866         Do not define if _GCC_MAX_ALIGN_T is defined.
12868 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12870         test-framework-sh: minor cleanups
12871         * tests/init.sh (testdir_prefix_): Output a trailing newline,
12872         since strictly speaking POSIX requires this.
12873         (setup_): Do not use the variable 'fail', as that makes the
12874         trace output harder to read ('fail' is typically used by
12875         tests to mean the test failed).  Treat // portably.
12876         Check that new directory is not merely a sibling of the tmp dir.
12877         Avoid unnecessary invocation of tr.
12879         test-framework-sh: revert port to NetBSD 7.0
12880         It was a false alarm; I misinterpreted Assaf Gordon's report.
12881         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12882         Restore.
12883         (test_dir_): Adjust to mktempd_ change.
12884         (mktempd_): Restore 2nd arg.  Use -t again.
12885         (base_template_, template_, nx_): Resurrect old code.
12887         Port better to Alpine Linux
12888         Its diff implementation does not support -c, but does support -U3.
12889         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12890         * tests/init.sh (diff_opt_): New var.
12891         (compare_): Prefer diff -U3 to diff -c to plain diff.
12893 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
12895         test-framework-sh: port to NetBSD 7.0
12896         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
12897         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
12898         Remove.  All uses removed.
12899         (test_dir_): Adjust to mktempd_ change.
12900         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
12901         (base_template_, template_, nx_): Simplify by hardcoding.
12903 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
12905         gitlog-to-changelog: suppress ignored chatter
12906         * build-aux/gitlog-to-changelog: Do not warn about skipping
12907         an SHA if it would have been ignored anyway.
12909 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
12911         setlocale: add "sv" to Windows language table
12912         * lib/setlocale.c (language_table) [W32]: Add "sv".
12913         Reported in <https://savannah.gnu.org/bugs/?44588>.
12915 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
12917         sys_select: port to new Cygwin
12918         Problem reported by Ken Brown in:
12919         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
12920         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
12921         diagnostics.
12923 2016-03-17  Jim Meyering  <meyering@fb.com>
12925         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
12926         * tests/test-userspec.c (main): Remove unnecessary braces and fix
12927         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
12928           test-userspec.c:176:9: error: statement is indented as if it were \
12929             guarded by... [-Werror=misleading-indentation]
12930                    {
12931                    ^
12932           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
12933                  if (!diag && !T[i].result)
12934                  ^~
12936 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
12938         time_rz: port to clang -Wunused-const-variable
12939         * lib/time_rz.c (TZ): Remove.  All uses removed.
12941         std-gnu11: improve clang support
12942         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
12943         2016-03-15 Also try clang
12944         2016-03-15 Port C11 and C++11 testing to clang
12946         select: port more to Intel 2016.1.150 compiler
12947         Problem reported by Balázs Hajgató in:
12948         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
12949         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
12951 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
12953         select: try to port to 2016.1.150 compiler
12954         Problem reported by Balázs Hajgató in:
12955         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
12956         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
12957         POSIX specifies 'restrict'.
12959 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
12961         localename-tests: memory allocation fixes
12962         * tests/test-localename.c (test_locale_name)
12963         (test_locale_name_thread): Don't call freelocale on a locale
12964         that was the base of a successful newlocale, as that
12965         results in a double free.  Problem reported by Assaf Gordon.
12966         (test_locale_name_thread): Free saved names after use, to pacify
12967         gcc -fsanitize=address.
12969 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
12971         intprops: make .h file license match module
12972         * lib/intprops.h: Change the license wording to match glibc format.
12973         This is what is in modules/intprops anyway.  See:
12974         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
12976 2016-03-08  Eric Blake  <eblake@redhat.com>
12978         acl: fix missing return on Cygwin
12979         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
12980         fall off end of function. Fixes http://bugs.gnu.org/22949
12982 2016-03-05  Bruno Haible  <bruno@clisp.org>
12984         extern-inline: port to PGI CC
12985         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
12986         keyword 'inline'.
12987         Reported by Adam James Stewart in:
12988         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
12990 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12992         signbit: port back to pre-C++11 GCC
12993         * lib/math.in.h (signbit): Do previous change only if
12994         __cplusplus < 201103.  See Jonathan Wakely in:
12995         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
12997 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
12999         mountlist: recognize autofs-mounted remote file systems, too
13000         Originally reported at: https://bugzilla.redhat.com/1309247
13001         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
13002         "-hosts" because it is used by autofs to mount remote file systems.
13004 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
13006         signbit: port to C++ with GCC 6
13007         * lib/math.in.h (signbit) [__cplusplus]:
13008         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
13009         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
13011         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
13013         regex: make it closer to libc
13014         Make Idx a signed type, rather than possibly unsigned.
13015         The unsignedness was not really buying us anything, since the code
13016         overflows for other reasons before getting to PTRDIFF_MAX.  Making
13017         it signed allows us to use -1 and -2 with abandon, like libc does,
13018         thus lessening the number of differences between gnulib and libc.
13019         Also, it should help avoid gratuitous warnings like the one
13020         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
13021         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
13024         regex: merge patches from libc
13026         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
13027         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
13028         Convert miscellaneous function definitions to prototype style.
13029         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
13030         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
13031         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
13032         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
13033         (re_search_internal):
13034         Convert to prototype-style function definition.
13035         Use internal_function for internal functions.
13037 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
13039         stdalign: port to older HP and IBM cc
13040         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
13041         C compilers, by checking their version numbers.  These version
13042         numbers appear in MariaDB and in Qt code that dates way back and
13043         that conditiionally uses the 'aligned' attribute.
13045 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
13047         stdalign: port to clang 3.7.0
13048         Problem reported by Herbert J. Skuhra in:
13049         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
13050         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
13051         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
13052         https://llvm.org/bugs/show_bug.cgi?id=26547
13054 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
13056         readdir_r: now obsolescent
13057         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
13058         * lib/mountlist.c (read_file_system_list): Add a FIXME.
13060 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
13062         misc: port better to gcc -fsanitize=address
13063         Without these patches, ./configure CFLAGS='-fsanitize=address'
13064         would compute incorrect values.  This patch fixes some (but not all)
13065         test failures with recent glibc, with this configuration.
13066         * m4/acl.m4 (gl_ACL_GET_FILE):
13067         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
13068         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
13069         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
13070         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
13071         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
13072         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
13073         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
13074         * m4/getline.m4 (gl_FUNC_GETLINE):
13075         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
13076         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
13077         * m4/regex.m4 (gl_REGEX):
13078         * m4/strndup.m4 (gl_FUNC_STRNDUP):
13079         * tests/test-calloc-gnu.c (main):
13080         * tests/test-duplocale.c (main):
13081         * tests/test-getgroups.c (main):
13082         * tests/test-getline.c (main):
13083         * tests/test-inttostr.c (main):
13084         * tests/test-localename.c (test_locale_name)
13085         (test_locale_name_thread, test_locale_name_environ)
13086         (test_locale_name_default):
13087         * tests/test-regex.c (main):
13088         * tests/test-setlocale1.c (main):
13089         * tests/test-stat.h (test_stat_func):
13090         Free heap-allocated storage before exiting.
13091         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
13092         Don't match *_foo symbols inserted by AddressSanitizer.
13093         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
13095 2016-02-02  Jim Meyering  <meyering@fb.com>
13097         verify-tests: also remove stray test-verify.Tpo
13098         * modules/verify-tests (Makefile.am): Arrange for "make clean"
13099         to remove the test-verify.Tpo file that is left behind by
13100         the automake-generated rule upon compilation failure.
13101         Otherwise, that .Tpo file would cause a failed "make distcheck"
13102         at least for grep.
13104 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
13106         std-gnu11: new module
13107         This makes it easier for applications to prefer C11 and C++11
13108         to older variants, when compiling C and C++ code.
13109         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
13110         a nontrivial chunk of GPLed Autoconf source code.
13111         * COPYING: Mention the m4/*.m4 copyright situation.
13112         * MODULES.html.sh (std-gnu11): New module.
13113         * m4/std-gnu11.m4, modules/std-gnu11: New files.
13115 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13117         get-permissions, strftime: fix grammar in comments
13118         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
13119         some grammar fixes Alan Mackenzie made to GNU Emacs.
13121 2016-01-25  Daiki Ueno  <ueno@gnu.org>
13123         gettext: mark as obsolete
13124         Suggested by Paul Eggert in:
13125         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
13126         * modules/gettext (Status): Mark as obsolete.
13127         (Notice): Suggest to use 'gettext-h' instead.
13128         * modules/gettext-h (Description): Suggest GNU gettext, instead of
13129         the 'gettext' module.
13131 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13133         gnulib-tool: don't give up on ln -s so easily
13134         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
13135         because an earlier one failed.  The targets could be on different
13136         file systems.  Problem reported by KO Myung-Hun in:
13137         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
13139         closedir: fix OS/2-related typos
13140         Problem reported by KO Myung-Hun in:
13141         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
13142         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
13143         in the last couple of changes.
13145 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
13147         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
13148         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
13149         copying a directory.
13151 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
13153         regex: treat [x] as x if x is a unibyte encoding error
13154         Problem reported by Aharon Robbins in:
13155         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
13156         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
13157         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
13159         closedir, dirfd, opendir: port to OpenSolaris 5.10
13160         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
13161         * m4/dirfd.m4 (gl_FUNC_DIRFD):
13162         * m4/opendir.m4 (gl_FUNC_OPENDIR):
13163         Don't use ${word##pat} substitution, as it doesn't work in
13164         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
13165         http://bugs.gnu.org/22443#11
13167 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13169         bootstrap: use American spelling
13170         * build-aux/bootstrap: Honor American spelling.
13172 2016-01-22  Karl Berry  <karl@freefriends.org>
13174         * doc/posix-functions/localtime.texi,
13175         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
13177 2016-01-21  Bruno Haible  <bruno@clisp.org>
13179         hash-pjw-bare: fix comment
13180         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
13182         wcwidth: Replace also on OpenBSD 5.8
13183         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
13184         * doc/posix-functions/wcwidth.texi: Update.
13186 2016-01-20  Pádraig Brady  <P@draigBrady.com>
13188         gnu-web-doc-update: fix addition of new files
13189         If there were already added (emnpty) dirs,
13190         then cvs aborts the add with the message:
13191           cvs [add aborted]: there is a version in <./dirname> already
13192         * build-aux/gnu-web-doc-update: Add directories separately
13193         to the addition of files, to avoid the above issue
13194         impacting the addition of files.
13196 2016-01-19  Daiki Ueno  <ueno@gnu.org>
13198         utimens-tests: avoid pulling gettext .m4 files
13199         Although this is not the right fix to the original problem:
13200         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
13201         it makes it possible again for consumer projects to use arbitrary
13202         version of gettext, through the steps described at:
13203         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
13204         See here for details:
13205         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
13206         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
13207         'gettext'.
13208         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
13209         'gettext'.
13211 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
13213         regex: pacify static checkers
13214         Problem and draft fix reported by Aharon Robbins in:
13215         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13216         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
13217         Clear memory to pacify static checkers.
13219         regex: fix [ diagnostic
13220         Problem and fix reported by Aharon Robbins in:
13221         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13222         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
13224         regex: fix memory leaks
13225         Problem and draft fix reported by Aharon Robbins in:
13226         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
13227         * lib/regcomp.c (build_range_exp, build_charclass_op)
13228         * lib/regex_internal.c (re_dfa_add_node):
13229         Fix memory leak on failure.
13231 2016-01-18  Pádraig Brady  <P@draigBrady.com>
13233         fts: don't unconditionally use leaf optimization for NFS
13234         NFS st_nlink are not accurate on all implementations,
13235         leading to aborts() if that assumption is made.
13236         See <https://bugzilla.redhat.com/1299169>
13237         * lib/fts.c (leaf_optimization_applies): Remove NFS from
13238         the white list, and document the issue.
13240 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13241             KO Myung-Hun  <komh@chollian.net>
13243         gnulib-tool: don't assume ln -s works
13244         * gnulib-tool (func_ln_s): New function.
13245         (func_ln): Use it.
13247 2016-01-15  KO Myung-Hun  <komh@chollian.net>
13249         utimes: detect utimes() correctly on OS/2 kLIBC
13250         utimes() of OS/2 kLIBC has some limitations.
13251         1. OS/2 itself supports a file date since 1980 year in local time.
13252         2. OS/2 itself supports only even seconds for a file time.
13253         3. utimes() of OS/2 kLIBC does not work on an opened file.
13254         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
13255         * doc/posix-functions/utimes.texi: Document the above limitations of
13256         utimes() on OS/2 kLIBC.
13258 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
13259             KO Myung-Hun  <komh@chollian.net>
13261         openat_proc_name: port to OS/2 kLIBC
13262         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
13263         instead of /proc/self/fd.
13264         * lib/openat-proc.c (openat_proc_name):
13265         Don't assume file name length is less than INT_MAX.
13266         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
13268 2016-01-14  KO Myung-Hun  <komh@chollian.net>
13270         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
13271         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
13272         definitions of intptr_t and uintptr_t (which use int and unsigned)
13273         to avoid clashes with declarations of system functions like sbrk.
13274         * lib/stdint.in.h (intptr_t, uintptr_t): Check
13275         _INTPTR_T_DECLARED before defining them.
13277         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
13278         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
13279         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
13280         Declare on kLIBC.
13281         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
13282         fd associated with dirp.
13283         (_gl_register_dirp_fd): New. Register fd associated with dirp to
13284         dirp_fd_list.
13285         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
13286         (dirfd): Implemented for kLIBC.
13287         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
13288         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
13289         succeeds.
13290         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
13291         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13292         (REPLACE_DIRFD): Define to 1 if replaced.
13293         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
13294         * modules/closedir (Depends-on): Add dirfd.
13295         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
13296         condition.
13297         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
13298         * modules/opendir (Depends-on): Add dirfd.
13300         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
13301         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
13302         * lib/dup.c (dup_nothrow): New.
13303         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
13304         (klibc_dup2): New.
13305         * lib/fcntl.c (klibc_fcntl): New.
13306         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
13307         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
13308         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
13309         fd.
13311         pipe_filter_ii_execute: port to OS/2 kLIBC
13312         Pipes on kLIBC do not support O_NONBLOCK like Win32.
13313         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
13314         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
13315         Reuse Win32 code on OS/2 kLIBC.
13316         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
13317         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
13319         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
13320         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
13321         static inline function.  The implementation of wcwidth in wcwidth.c
13322         causes a "conflicting types" error.
13323         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
13325         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
13326         spawn() on OS/2 kLIBC is not silly like one on Windows
13327         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
13328         empty string on OS/2 kLIBC.
13330         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
13331         On OS/2 kLIBC, select() works only on sockets.
13332         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
13334         binary-io: don't put fd in binary mode if it is a console on EMX
13335         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
13336         a console on EMX.
13338 2016-01-15  Pádraig Brady  <P@draigBrady.com>
13340         doc: mention unfixed issues with unsupported localtime() values
13341         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
13342         returns nonsense for localtime(2^56).
13343         * doc/posix-functions/localtime_r.texi: Likewise.
13345 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13347         doc: mention setlocale() issues on OpenBSD
13348         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
13349         never fails, and the need to check categories individually.
13351 2016-01-14  Pádraig Brady  <P@draigBrady.com>
13353         sig2str: list all signals on FreeBSD >= 7
13354         FreeBSD >= 7 is contravening POSIX by not defining NSIG
13355         to the maximal statically defined signal value.
13356         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
13357         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
13358         where available, even when NSIG is defined.
13360 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
13362         acl-permissions: port to USE_ACL==0 platforms
13363         I ran into this problem when building bleeding-edge GNU Emacs
13364         with gcc -fsanitize=address on Fedora 23.  On this platform
13365         the ACL library does not pass the 'configure' test and Emacs
13366         then does not build due in part to what appear to be typos in the
13367         ACL part of Gnulib.
13368         * lib/acl-internal.c (free_permission_context):
13369         * lib/acl-internal.h (struct permission_context):
13370         Test whether USE_ACL is nonzero, not whether it is defined.
13372 2016-01-12  Martin Sebor  <msebor@redhat.com>
13374         mktime: rename macro to avoid glibc clash
13375         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
13376         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
13378 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
13380         Port "$@" to OpenIndiana ksh93
13381         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
13382         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
13383         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
13384         bug long-dead shells, so remove the workaround.
13385         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
13386         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13387         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
13388         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
13389         Use "$@" instead of ${1+"$@"}.
13391         Port Universal Time settings to strict POSIX
13392         * build-aux/announce-gen, build-aux/bootstrap:
13393         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
13394         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
13395         * build-aux/gnupload, build-aux/mkinstalldirs:
13396         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
13397         * build-aux/update-copyright, build-aux/useless-if-before-free:
13398         * build-aux/vc-list-files, tests/test-strftime.c:
13399         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
13400         but POSIX says the behavior of TZ="UTC" is undefined.
13402 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
13404         msvc-inval: fix problem with unset shell var
13405         Problem reported by Karl Berry in:
13406         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
13407         * modules/msvc-inval (Depends-on):
13408         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
13409         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
13411 2016-01-01  Pádraig Brady  <P@draigBrady.com>
13413         tests: for compare_(), use cmp -s where available
13414         * tests/init.sh (compare_): Only fall back to cmp without
13415         the POSIX defined -s option, where this is not available.
13417 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
13419         version-etc: new year
13420         * build-aux/gendocs.sh (version):
13421         * doc/gendocs_template:
13422         * doc/gendocs_template_min:
13423         * doc/gnulib.texi:
13424         * lib/version-etc.c (COPYRIGHT_YEAR):
13425         Update copyright dates by hand in templates and the like.
13426         * all files: Run 'make update-copyright'.
13428 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
13430         human: fix output buffer overrun by 1
13431         * lib/human.c (human_readable): Fix off-by-one typo in buffer
13432         calculation that could lead to a one-byte buffer overrun.
13434 2015-12-28  Daiki Ueno  <ueno@gnu.org>
13436         maint: fix operator precedence in mbrtowc test
13437         This is a fix for test breakage introduced by commit 45228d96; the
13438         equality expression must be parenthesized when negated with '!',
13439         otherwise we always get:
13441           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
13443         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
13444         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13446 2015-12-23  James Youngman  <jay@gnu.org>
13448         regexprops-generic: update from regex.h
13449         * doc/regexprops-generic.texi: update by running the regexprops binary
13450         from findutils (the command line is 'regexprops "Regular Expressions"
13451         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
13452         gnulib with GNU grep had made this document out-of-date.
13454 2015-12-23  Pádraig Brady  <P@draigBrady.com>
13456         strftime-tests: avoid false failure on OS X
13457         * tests/test-strftime.c (struct localtime_rz_test): Add an
13458         ahistorical member which is used to warn rather than fail
13459         when tm_isdst isn't set for such entries.  This is the case for
13460         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
13462 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
13464         fts: ensure leaf optimization is used for NFS
13465         NFS provides usable dirent.d_type but not necessarily for all entries
13466         of large directories.  See <https://bugzilla.redhat.com/1252549>
13467         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
13469 2015-12-20  Pádraig Brady  <P@draigBrady.com>
13471         fts: enable leaf optimization for XFS
13472         XFS provides usable dirent.d_type only for DT_DIR,
13473         but the noleaf optimization still applies.
13474         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
13476 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
13478         intprops: comment fix
13479         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
13480         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
13482         intprops-test: work around GCC bug 68971
13483         Problem reported by Pádraig Brady in:
13484         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
13485         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
13486         (main): Add a case that better tests 64-bit long in this area.
13488 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
13490         gnulib-tool: allow multiple --local-dir usage
13491         * gnulib-tool: Use --local-dir to construct compound
13492         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
13493         PATH_SEPARATOR early.
13494         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
13495         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
13496         func_determine_path_separator because that needs to be detected
13497         earlier now.
13498         (func_determine_path_separator): New function.
13499         (func_path_foreach, func_path_foreach_inner): New functions.
13500         (func_path_prepend, func_path_append): Likewise.
13501         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
13502         (func_lookup_file, func_all_modules): Use new functions to work
13503         with local_gnulib_path.
13504         (func_modules_in_dir, func_exists_module): New callbacks for
13505         func_path_foreach.
13506         (func_exists_module, func_get_tests_module): Likewise.
13507         (func_is_local_file, func_should_symlink): New helper methods.
13508         (func_add_file, func_update_file): Use new func_should_symlink
13509         instead, DRY.
13510         (func_reconstruct_cached_local_gnulib_path): New helper.
13511         (func_reconstruct_cached_dir): New callback.
13512         (func_import): The cached_local_gnulib_dir renamed to
13513         cached_local_gnulib_path similarly to local_gnulib_dir.
13514         Use new func_reconstruct_cached_local_gnulib_path.
13515         (func_count_relative_local_gnulib_path): New sub-method.
13516         (func_create_testdir): Use func_should_symlink, DRY.
13517         (func_create_megatestdir): Use new functions to work with
13518         local_gnulib_path correctly.
13519         (func_append_local_dir): New helper.
13521 2015-12-08  Pádraig Brady  <P@draigBrady.com>
13523         fix freadptr to work with ungetc on all uClibc configs
13524         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
13525         where GNU coreutils cut(1) generates invalid output on uClibc
13526         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
13527         * lib/freadptr.c (freadptr): Return NULL if there are
13528         ungotten chars.  In this case freadseek() will iterate
13529         again to process the ungotten character.
13531 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
13533         xalloc-oversized: improve performance with GCC 5
13534         * lib/xalloc-oversized.h (xalloc_oversized):
13535         Improve performance with GCC 5 by using __builtin_mul_overflow.
13537 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13539         intprops: new public macro EXPR_SIGNED
13540         Emacs can use this macro, so make it public.
13541         * doc/intprops.texi (Arithmetic Type Properties): Rename from
13542         'Integer Type Determination', since some of these macros apply
13543         to non-integer types.  Clarify what kinds of constant expressions
13544         these macros return.  Say when the arguments can be non-integers.
13545         Mention newly published macro EXPR_SIGNED.
13546         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
13547         make it public.  All uses changed.
13549         intprops: fix typo in clang port
13550         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
13551         '__builtin_add_overflow' that is not caught by compiler.
13553 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
13555         test-timespec: fix typo in previous change
13556         * tests/test-timespec.c (main): Fix typo that reduced test quality.
13558         timespec-sub: fix overflow bug; add tests
13559         * lib/timespec-add.c (timespec_add):
13560         * lib/timespec-sub.c (timespec_sub):
13561         Work even if time_t is narrower than int (a theoretical
13562         possibility).  Redo code for a bit more clarity.
13563         * lib/timespec-sub.c (timespec_sub):
13564         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
13565         * modules/timespec-tests, tests/test-timespec.c: New files.
13567         intprops-test: suppress -Woverlength-strings
13568         Problem reported by Pádraig Brady in:
13569         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
13570         It is not worth the hassle to port this test to compilers that
13571         cannot handle long strings in diagnostics.
13572         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
13574 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13576         quotearg: add quotearg_n_style_colon()
13577         This quotes with default options of the specified style,
13578         but with quoting enabled for instances of ':'.
13579         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
13580         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
13582 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
13584         intprops: revise _WRAPV macros, revert _OVERFLOW
13585         The incompatible changes to the _OVERFLOW macros were too much of
13586         a hassle in practice, so revert them.  Instead, change the new
13587         _WRAPV macros to make them closer in behavior to GCC 5's new
13588         builtin_add_overflow etc. functions.  No other software was using
13589         these newly-added macros yet, so this should be OK.
13590         * NEWS: Revert previous change, since the incompatible change
13591         has been reverted, and nobody used the incompatible version.
13592         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
13593         Document revised behavior.
13594         (Integer Range Overflow): Adjust example to match above revisions.
13595         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
13596         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
13597         these can be used in integer constant expressions again.
13598         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
13599         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
13600         needed.
13601         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13602         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13603         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
13604         Remove, as they did not seem that useful.
13605         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
13606         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
13607         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
13608         Support new semantics.
13609         (__has_builtin): New macro, if not alreay defined.
13610         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
13611         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13612         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13613         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13614         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
13615         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
13616         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
13617         New macros.
13618         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
13620 2015-11-03  Jim Meyering  <meyering@fb.com>
13622         intprops: add parentheses for when OP has precedence lower than "-"
13623         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
13624         "a OP b" must be parenthesized for when OP is like "<<", which has
13625         lower precedence than the following "-". Reported by Pádraig Brady.
13627 2015-11-03  Pádraig Brady  <P@draigBrady.com>
13629         quotearg: constify get_quoting_style parameters
13630         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
13631         * lib/quotearg.c (get_quoting_style): Likewise.
13633 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13635         quotearg: add support for $'' shell escaping
13636         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
13637         items and descriptions.
13638         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
13639         above types by quoting like "shell", but using $'...' syntax
13640         for non printable characters, which should provide unambiguous
13641         printable output for any input.
13642         * tests/test-quotearg-simple.c: Update accordingly.
13644 2015-11-02  Pádraig Brady  <P@draigBrady.com>
13646         maint: use a more standard return from mbrtowc test
13647         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
13648         from the test program as this is non standard and often
13649         indicates an unhandled case in the test program.
13650         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
13652 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
13654         intprops: add WRAPV and const flavors for GCC 5
13655         If available, use GCC 5's builtin functions for efficient integer
13656         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
13657         and safely compute the low-order bits of the correct answer.
13658         A downside of these efficient functions is that they cannot be
13659         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
13660         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
13661         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
13662         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
13663         Document the changes.
13664         (Wraparound Arithmetic): New section.
13665         (Integer Range Overflow):
13666         Put this subsection last, since it's least useful.
13667         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
13668         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
13669         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
13670         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
13671         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
13672         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
13673         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
13674         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
13675         New macros.
13676         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
13677         Generate calls to GCC builtins if available, for speed.
13678         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
13679         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
13680         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
13681         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
13682         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
13683         (CHECK_QUOTIENT, CHECK_REMAINDER):
13684         Test WRAPV and CONST flavors (when available) too.
13686 2015-10-30  Pádraig Brady  <P@draigBrady.com>
13688         doc: use extended timezone format in iso-8601 example
13689         * doc/parse-datetime.texi: The standard states that extended format
13690         is to be used consistently throughout.
13691         Note that lib/parse-datetime.y can handle either tz format.
13693 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
13695         stdalign: port to Sun C 5.9
13696         * doc/posix-headers/stdalign.texi: Document this.
13697         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
13698         __attribute__ ((__aligned__ (...))).
13700 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
13702         time_rz: fix comment about tzalloc
13703         * lib/time_rz.c (tzalloc): Fix comment.
13705 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13707         stdalign: work around pre-4.9 GCC x86 bug
13708         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
13709         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
13710         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
13712 2015-10-18  Pádraig Brady  <P@draigBrady.com>
13714         maint.mk: sc_tight_scope: remove extraneous expressions
13715         * top/maint.mk (tight_scope): This is not really required since
13716         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
13717         that matches all nm entries.  But it does remove extraneous entries
13718         that may be confusing or cause issue in future maintenance.
13720 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
13722         time_rz: return NULL if localtime_r fails
13723         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
13724         while still attempting to pacify bleeding-edge GCC.
13726         fts: port to C11 alignof
13727         * doc/posix-headers/stdalign.texi (stdalign.h):
13728         Document the C11 restriction.
13729         * lib/fts.c: Include stddef.h, for max_align_t.
13730         (fts_alloc): Align using max_align_t, not FTSENT.
13731         * modules/fts (Depends-on): Add stddef.
13733 2015-10-18  Jim Meyering  <meyering@fb.com>
13735         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
13736         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
13737         would see this:
13739         lib/time_rz.c: In function 'localtime_rz':
13740         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
13741           [-Werror=nonnull]
13742                    if (tm && !save_abbr (tz, tm))
13743                        ^
13745         That was complaining about "tm" because it is a parameter that was
13746         declared with the __nonnull__ attribute.
13747         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
13748         result of localtime_r.
13750 2015-10-17  Jim Meyering  <meyering@fb.com>
13752         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
13753         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
13754         name-extraction regexp mistakenly used \S+, and would mistakenly
13755         extract "*F" from "extern int *F()" rather than the desired "F".
13756         Use \w+ instead.
13758 2015-10-17  Jim Meyering  <meyering@fb.com>
13760         maint.mk: sc_tight_scope: factor and support OS X
13761         * top/maint.mk (_gl_tight_scope): Address three issues:
13762         - factor out four instances of code that wraps a string in "^...$"
13763         - allow nm-reported symbol names to have an optional leading "_"
13764         - add "main" to the list of ignored variable names, because on os x,
13765         "main" has nm-reported type "S" in the variable-checking section.
13767 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
13769         safe-alloc-tests: fix typo in license header
13770         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
13772 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
13774         copy-file: fix mem leak in error case
13775         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
13776         upon error opening or performing I/O to the src and dest files.
13778 2015-10-15  Mike Frysinger  <vapier@chromium.org>
13780         localename: control langinfo.h inclusion
13781         This header is only used to work around buggy behavior in old
13782         versions of glibc, so do not include it all the time.  Otherwise
13783         we get build failures on systems that do not provide langinfo.h.
13784         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
13785         in the source later on.
13786         The patch was originally submitted to gettext as:
13787         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
13789 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
13791         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
13792         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
13793         * lib/u64.c, lib/unistd.c:
13794         Append 'typedef int dummy;', to pacify compilers that are picky
13795         about empty translation units.
13797 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
13799         accept4-tests: fix to avoid non portable flags
13800         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
13801         as they are the only documented ones, and passing others may trigger
13802         EINVAL (seen on FreeBSD 10.1-RELEASE).
13803         * doc/glibc-functions/accept4.texi: Mention that we don't provide
13804         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
13806 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
13808         gnulib-tool: fix tests of 'extensions' module
13809         This complements f8fe25fab60e3c687a124 commit.
13810         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
13811         emitting of initial gl_EARLY macros.
13812         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
13813         replaced with func_emit_pre_early_macros call.
13815 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
13817         unicase/locale-language: fix typo in utf-8 cookie
13818         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
13819         Problem reported by Zbigniew Jędrzejewski-Szmek.
13821 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
13823         xalloc: do not worry about GCC 5 warning on 32 bit
13824         * lib/xalloc.h: Revert previous change.
13825         I found a better way to fix this in coreutils.
13827 2015-10-02  Pádraig Brady  <P@draigBrady.com>
13829         xalloc: avoid GCC 5.1 warning on 32 bit
13830         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
13831         xalloc_oversized(), which was seen to give this warning
13832         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
13833         when simplifying conditional".
13835 2015-10-02  Daiki Ueno  <ueno@gnu.org>
13837         uniname/uniname-tests: avoid compiler warnings
13838         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
13839         unused local variables.
13840         (test_alias_lookup): Fix alias name display in failure cases.
13842 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
13844         c-ctype: do not worry about EBCDIC + char signed
13845         Drop support for EBCDIC with char being signed, as this breaks too
13846         many programs.  Problem reported by Ben Pfaff in:
13847         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
13848         * lib/c-ctype.h: Verify that we are not using EBCDIC with
13849         char being signed.
13850         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
13851         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
13852         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
13853         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
13854         * tests/test-c-ctype.c (test_all):
13855         Simplify by assuming standard char values cannot be negative.
13856         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
13858 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13860         c-ctype: port better to z/OS EBCDIC
13861         Problems reported by Daniel Richard G. in:
13862         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
13863         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
13864         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
13865         (_C_CTYPE_OTHER_CNTRL): New macro.
13866         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
13867         from SCHAR_MIN, as the functions are defined only from values
13868         promoted from char or from unsigned char, not necessarily from
13869         signed char.
13871 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
13873         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
13875         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
13876         and ARFLAGS variables.  Doing this unconditionally could break
13877         later Automake's AM_PROG_AR invocation (at least it's
13878         AC_CHECK_TOOLS call to detect correct 'ar' binary).
13880         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
13881         Amsterdam Compiler Kit, so make the previous code to have effects
13882         only on ACK, and rather automatically call the Automake's
13883         AM_PROG_AR as soon as possible to decide other cases.
13885         References:
13886         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
13888         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
13889         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
13890         is possible, keep setting AR/ARFLAGS to reasonable defaults.
13891         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
13892         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
13893         'extensions' module is used.
13894         * modules/extensions (configure.ac-early): Remove as this snippet
13895         is added to gnulib-comp.m4 earlier anyway.
13897 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13899         sockets: MS Windows initalization fixes
13900         Problem reported by Test User in:
13901         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
13902         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
13903         Correct the endianness.
13904         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
13905         number mismatch, not just on <.  Cleanup before any such failure.
13907 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
13909         gc: fix detection of installed libgcrypt version
13910         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
13911         at least as recent as 1.4.4.  The previously used macro is not
13912         available now, since modules were removed in version 1.6.0.
13914 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
13916         c-ctype: rewrite to use inline functions
13917         This simplifies maintenance, since it makes for just one
13918         implementation of each function, letting the compiler have the fun
13919         of optimization.  In practice this works well nowadays with GCC.
13920         E.g., c_isascii might need only three instructions even though the
13921         source code lists every ASCII character individually in a large
13922         switch statement.
13923         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
13924         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
13925         * NEWS: Document the API change.
13926         * lib/c-ctype.c: Drastically simplify, since this now just expands
13927         inline functions.
13928         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
13929         (C_CTYPE_INLINE): New macro.
13930         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
13931         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
13932         Verify that either ASCII or EBCDIC is being used.
13933         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
13934         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
13935         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
13936         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
13937         New private macros.
13938         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
13939         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
13940         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
13941         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
13942         (c_tolower, c_toupper): When converting, return the unsigned char,
13943         as that is what z/OS does.
13944         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
13945         of some c-ctype.h macros.
13946         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
13947         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
13948         c_tolower promotion to be compatible with z/OS.
13950 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
13952         gitlog-to-changelog: trim only trailing whitespaces
13953         This is fix for --format regression introduced by commit
13954         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
13955         doubled %n string) had no effect anymore.  This format
13956         specification has been used e.g. by GNU paxuitils (commit
13957         edfd8bcc3).
13959         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
13960         newlines in commmit messages.
13962 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
13964         Test that c_iscntrl agrees with iscntrl, etc.
13965         Suggested by Daniel Richard G. in:
13966         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
13967         * modules/c-ctype-tests (Depends-on): Add ctype.
13968         * tests/test-c-ctype.c: Include <ctype.h>.
13969         (NCHARS): New constant.
13970         (test_agree_with_C_locale): New function.
13971         (main): Use it.
13972         (test_all): Use named constants.
13974         c-ctype: improve c_isascii testing
13975         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
13976         Add a test to count the number of ASCII characters.
13978 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
13980         savewd: remove SAVEWD_CHDIR_READABLE
13981         It was problematic in the light of file systems that ignore umask.
13982         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
13983         * NEWS: Document this.
13984         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
13985         successful, -1 (setting errno) on failure, rather than something
13986         more complicated than that.
13987         * lib/mkdir-p.c (make_dir_parents):
13988         Do not use SAVEWD_CHDIR_READABLE.
13989         * lib/savewd.c (savewd_chdir):
13990         Remove support for SAVEWD_CHDIR_READABLE.
13991         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
13993         c-ctype: port better to EBCDIC
13994         Problems reported by Daniel Richard G. in
13995         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
13996         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
13997         Include "verify.h".
13998         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
13999         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
14000         Define as enum constants with value false, if not defined, so that
14001         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
14002         code more portable, as both branches of the 'if' are compiled on
14003         all platforms.
14004         (C_CTYPE_EBCDIC): New constant.
14005         Verify that the character set is either ASCII or EBCDIC.
14006         (to_char): New static function.
14007         (c_isascii, c_iscntrl):
14008         Assume standard control-character assignments for EBCDIC.
14009         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
14010         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
14011         Rewrite to use 'if' instead of 'ifdef'.
14012         Use to_char if non-ASCII.  Prefer <= to >=.
14013         Prefer true and false to 1 and 0, for booleans.
14014         (c_iscntrl): Use 'if', not 'ifdef'.
14015         * modules/c-ctype (Depends-on): Add verify.
14016         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
14017         (to_char): New function.
14018         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
14020 2015-09-21  Pádraig Brady  <P@draigBrady.com>
14022         nanosleep: fix return code for interrupted replacement
14023         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
14024         that we return -1 in the case the call is interrupted by a signal,
14025         rather than the current value of 1.
14026         Diagnosed and tested by Daniel Richard G.
14028 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
14030         Diagnose ERE '()|\1'
14031         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
14032         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
14033         track of the set of previously-completed subexpressions available
14034         before the first alternative, and restore this set just before
14035         parsing each subsequent alternative.  This lets us diagnose the
14036         invalid back-reference in the ERE '()|\1'.
14038         regex: merge patches from libc
14040         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
14041         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
14042         * lib/regex_internal.h:
14043         Include <libc-lock.h> instead of <bits/libc-lock.h>.
14045         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
14046         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
14047         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
14048         wcscoll.
14049         * lib/regexec.c (check_node_accept_bytes): Likewise.
14051         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
14052         Fix regex wcrtomb namespace (bug 18496).
14053         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
14054         instead of wcrtomb.
14056         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
14057         Fix regex wctype namespace (bug 18495).
14058         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
14059         instead of towlower.
14060         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
14061         instead of iswlower.  Call __towupper instead of towupper.
14062         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
14063         instead of iswalnum.
14065         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
14066         * lib/regcomp.c (parse_bracket_exp): Initialize type to
14067         COLL_SYM in a couple of places to avoid uninitialized variable
14068         wanings on tilegx gcc 4.8.2.
14070         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
14071         * lib/regex_internal.h: Remove NOT_IN_libc.
14073         2014-11-17  Andreas Schwab  <schwab@suse.de>
14074         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
14076         2014-09-11  Roland McGrath  <roland@hack.frob.com>
14077         Move findidx nested functions to top-level.
14078         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
14079         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
14080         Pass new arguments to findidx.
14081         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
14082         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
14083         Don't #include it inside the function.  Pass new arguments to findidx.
14084         * lib/regex_internal.h:
14085         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
14086         (re_string_elem_size_at): Don't #include it inside the function.
14087         Pass new arguments to findidx.
14089         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
14090         Check if DEBUG is defined in regex_internal.c
14091         * lib/regex_internal.c: Check if DEBUG is defined and is set.
14093 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
14095         ceill: detect buggy OpenBSD implementation
14096         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
14097         which returns zero for small values.  Discussed here:
14098         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
14100 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
14102         mountlist: add me_mntroot field on Linux machines
14103         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
14104         mount_entry so Linux machines based on /proc/self/mountinfo can
14105         distinguish between bind mounts and original mounts.  In reality bind
14106         mounts aren't treated differently than mountroot=/ mounts by the
14107         kernel, but the user often wants these bind mounts distinguished.
14108         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
14109         More details at https://pad.lv/1432871
14111 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
14113         doc: Describe to use multiple instances of gnulib
14114         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
14115         instances of gnulib with different modules can be used, for example one
14116         for a lib and another one for associated tools.
14118 2015-09-01  Pádraig Brady  <P@draigBrady.com>
14120         base32: mark function as __attribute__ const
14121         * lib/base32.h (isbase32): Mark __attribute__ const as
14122         suggested by GCC, and consistent with the base64 module.
14124 2015-08-20  Daiki Ueno  <ueno@gnu.org>
14126         gnulib-tool: don't transform binary files with sed
14127         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
14128         .mo and .class files.
14129         Reported by Denis Denisov.
14131 2015-08-10  Daiki Ueno  <ueno@gnu.org>
14133         gperf: respect silent rules
14134         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
14135         V_GPERF_0 for silent rules.
14136         * modules/iconv_open (Makefile.am): Use V_GPERF.
14137         * modules/unicase/locale-language (Makefile.am): Likewise.
14138         * modules/unicase/special-casing (Makefile.am): Likewise.
14139         * modules/unictype/category-byname (Makefile.am): Likewise.
14140         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
14141         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
14142         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
14143         * modules/unictype/property-byname (Makefile.am): Likewise.
14144         * modules/unictype/scripts (Makefile.am): Likewise.
14145         * modules/uninorm/composition (Makefile.am): Likewise.
14147 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
14149         Improve port of stdalign to C++11
14150         Problem reported by Sundaram in:
14151         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
14152         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
14153         (__alignas_is_defined): Define if C++11 or newer.
14155 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
14157         pmccabe2html: fix gawk regex escaping
14158         * build-aux/pmccabe2html: Add one more backslash to properly
14159         escape the gsub replacement value.  Fixes this error:
14160         gawk: ./build-aux/pmccabe2html:425: \
14161         warning: escape sequence `\&' treated as plain `&'
14163 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
14165         time_rz: port to pedantic memcpy
14166         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
14167         that reject memcpy (..., NULL, 0).
14169 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
14171         time_rz: port better to MinGW
14172         Don't change tzname, as this makes MinGW dump core (Bug#21020).
14173         Instead, store the tzname copy in the struct tm_zone object.
14174         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
14175         * lib/strftime.c [!_LIBC]:
14176         * lib/time_rz.c: Include time-internal.h.
14177         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
14178         name from *TZ rather than from TZNAME, doable because *TZ now has
14179         a tzname_copy member.
14180         * lib/time-internal.h: New file, with contents taken from
14181         lib/time_rz.c.  It's separate because strftime.c now accesses
14182         struct tm_zone members.
14183         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
14184         New member tzname_copy.
14185         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
14186         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
14187         Initialize tzname_copy member.
14188         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
14189         in tzname_copy member.
14190         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
14191         (restore_tzname): Remove; no longer needed.  All calls removed.
14192         * modules/time_rz (Files): Add lib/time-internal.h.
14194         time: port __need_time_t to MinGW
14195         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
14196         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
14198 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14200         strftime: fix newly-introduced bug on Solaris
14201         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
14202         consistently at the start, rather than doing some of the setup at
14203         the start and some in the %Z format spec.  This is cleaner, and
14204         works better with time_rz on platforms like Solaris where struct
14205         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
14206         mktime_z and localtime_rz can mess up the tzname cache.
14208         test-strftime: test for Solaris bug
14209         * modules/strftime-tests (Depends-on): Add strerror.
14210         * tests/test-strftime.c: Include <errno.h>.
14211         (posixtm_test): New function, containing the old 'main'.
14212         (struct tzalloc_test, struct localtime_rz_test): New types.
14213         (TZ, LT): New static vars.
14214         (tzalloc_test): New function.
14215         (main): Rewrite in terms of posixtm_test and tzalloc_test.
14217         time_rz: port to Solaris etc.
14218         Works around a tzname problem on platforms like Solaris that have
14219         tzname but not tm_zone, by setting tzname at the appropriate time
14220         and restoring it later.
14221         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
14222         New static vars.
14223         (save_abbr) [HAVE_TZNAME]: Set them.
14224         (revert_tz) [HAVE_TZNAME]: Clear or use them.
14225         (restore_tzname): New function.
14226         (localtime_rz, mktime_z): Use it.
14228         time_rz: now LGPL
14229         * modules/time_rz (License): Now LGPL, because strftime depends on it.
14231         time_rz: make a constant 'const'
14232         * lib/time_rz.c (local_tz): Now const.
14234         time_rz: fix off-by-one typo
14235         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
14237 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
14239         fprintftime, strftime: use timezone_t args
14240         * NEWS: Document the change.
14241         * lib/fprintftime.h (fprintftime):
14242         * lib/strftime.c (extra_args) [my_strftime]:
14243         * lib/strftime.h (nstrftime):
14244         Time zone arg is now of type timezone_t, not int.
14245         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
14246         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
14247         (my_strftime) [emacs && !my_strftime]:
14248         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
14249         Remove; Emacs doesn't need this any more.
14250         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
14251         fprintftime and nstrftime to call tzset.
14252         (ut) [!my_strftime]: Remove, replacing with ...
14253         (tz) [!my_stftime]: ... this new macro.  All uses changed.
14254         (strftime_case_): Use localtime_rz and mktime_z instead
14255         of localtime_r and mktime.
14256         * modules/fprintftime (Depends-on): Add time_rz.
14257         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
14258         * tests/test-strftime.c (main): Adjust to new nstrftime API.
14260         time_rz: new module
14261         * MODULES.html.sh: Add time_rz.
14262         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
14263         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
14264         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
14265         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
14266         New var HAVE_TIMEZONE_T (default 0).
14267         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
14268         New var GNULIB_TIME_RZ (default 0).
14269         * modules/time (time.h): Substitute the new vars.
14271         flexmember: license is now unlimited
14272         * modules/flexmember (License): Change to unlimited,
14273         since its only source file gives an unlimited license.
14275 2015-07-15  Eric Blake  <eblake@redhat.com>
14277         maint: update copyright paper procedures
14278         * config/srclist.txt: Drop outdated files.
14279         * doc/Copyright/conditions.txt: Update to latest.
14280         * doc/Copyright/assign.changes.manual: Delete.
14281         * doc/Copyright/assign.future.manual: Likewise.
14282         * doc/Copyright/assign.manual: Likewise.
14283         * doc/Copyright/assign.translation.manual: Likewise.
14284         * doc/Copyright/disclaim.changes.manual: Likewise.
14285         * doc/Copyright/disclaim.manual: Likewise.
14286         * doc/Copyright/disclaim.program: Likewise.
14288 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14290         localename: fix link error on Illumos
14291         Illumos defines __sun, but does not have getlocalename_l nor the
14292         equivalent.  This partially reverts commit 387c214.
14293         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
14294         available, as well as uselocale.
14295         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
14296         use getlocalename_l if it is not available.
14298 2015-07-07  Daiki Ueno  <ueno@gnu.org>
14300         unistr/uN-strtok-tests: avoid a trivial leak
14301         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
14302         input and delim after the multibyte delimiter tests.
14304 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
14306         file-has-acl, acl-permissions: fix HP-UX typos
14307         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
14308         * lib/file-has-acl.c (file_has_acl):
14309         * lib/set-permissions.c (context_acl_from_mode)
14310         (context_aclv_from_mode, set_acls):
14311         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
14312         They were introduced by the recent ACL changes.
14314         regex: match current GNU grep behavior
14315         These symbols have not matched GNU grep behavior for quite some time.
14316         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
14317         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
14318         Change to match current GNU behavior.
14319         Simplify by expressing it as differences from POSIX BREs and EREs.
14320         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
14322 2015-07-03  Jim Meyering  <meyering@fb.com>
14324         set-permissions.c: adjust acl_from_mode's cpp guard
14325         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
14326         directives identical to those guarding the sole use.
14327         Otherwise, on some systems, we'd get a warning about
14328         the function being defined but not used.
14329         Also, filter through cppi to correct misleading indentation
14330         of cpp directives.
14332 2015-07-03  Pádraig Brady  <P@draigBrady.com>
14334         tests: restrict shells to those that support 'local'
14335         The local keyword is very widely supported and used
14336         in tests in coreutils and grep at least.  Therefore
14337         restrict to testing with shells that support it.
14338         This mainly excludes /bin/sh on Solaris.
14339         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
14341 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
14342         and Daiki Ueno  <ueno@gnu.org>
14344         unistr/uN-strtok: handle multibyte delimiters
14345         Previously, uN_strtok moved PTR to the next unit to the token end.
14346         When DELIM contained a multibyte character, the new position could
14347         be a middle of a multibyte character.
14348         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
14349         after the token.
14350         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
14351         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
14352         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
14353         * modules/unistr/u8-strtok (Depends-on): Depend on
14354         unistr/u8-strmblen.
14355         * modules/unistr/u16-strtok (Depends-on): Depend on
14356         unistr/u16-strmblen.
14357         * modules/unistr/u32-strtok (Depends-on): Depend on
14358         unistr/u32-strmblen.
14359         * tests/unistr/test-u-strtok.h: New file.
14360         * tests/unistr/test-u8-strtok.c: New file.
14361         * tests/unistr/test-u16-strtok.c: New file.
14362         * tests/unistr/test-u32-strtok.c: New file.
14363         * modules/unistr/u8-strtok-tests: New file.
14364         * modules/unistr/u32-strtok-tests: New file.
14365         * modules/unistr/u16-strtok-tests: New file.
14367 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
14369         update-copyright: fix test failure with perl >= 5.22 (trivial)
14370         * build-aux/update-copyright: Escape a literal left curly bracket,
14371         required with perl >= 5.22
14373 2015-07-02  Daiki Ueno  <ueno@gnu.org>
14375         u{16,32}-strstr-tests: relax timeout condition
14376         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
14377         tests can take longer than 5 seconds to complete.
14378         Reported by Dagobert Michelsen in:
14379         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
14380         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
14381         seconds to 10 seconds.
14382         * tests/unistr/test-u32-strstr.c (main): Likewise.
14384 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14386         gnulib-common.m4: change the ARFLAGS default to 'cr'
14387         In some GNU/Linux distributions people started to compile 'ar'
14388         binary with --enable-deterministic-archives (binutils project).
14389         That, however, in combination with previous autotools long time
14390         working default AR{_,}FLAGS=cru causes warnings on such
14391         installations:
14392         ar: `u' modifier ignored since `D' is the default (see `U')
14393         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
14394         set already.
14396 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
14398         selinux-h: avoid double free after *getfilecon()
14399         Originally reported by Ben Shelton on bug-tar:
14400         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
14401         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
14402         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
14403         param should be freed by freecon(3) (regardless the return value).
14405 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
14407         fix pty related tests issues on Windows (trivial)
14408         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
14409         however it's still present in tests/ subdirectory of the final project.
14410         Therefore avoid it to pass `make check`.
14411         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
14412         will just return -ENOSYS, so avoid this non applicable test allowing
14413         the build to proceed.
14415 2015-07-01  Pádraig Brady  <P@draigBrady.com>
14417         acl: fix definition of acl_from_mode on FreeBSD
14418         This was causing basic coreutils copy operations to fail
14419         with ENOTSUP or ENOENT error messages.
14420         * lib/acl-internal.h (acl_from_mode): Only define when
14421         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
14422         of acl_from_mode() defined in lib/set-permissions.c to
14423         be used on FreeBSD at least.
14424         * lib/set-permissions.c: Fix up comment spelling,
14425         and a redundant variable assignment; noticed in passing.
14427 2015-06-30  Pádraig Brady  <P@draigBrady.com>
14429         readutmp: port to FreeBSD >= 9
14430         * lib/readutmp.h: Map utmpxname() to setutxdb().
14431         With that coreutils who(1) and pinky(1) tests pass.
14433 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14435         mgetgroups: port to strict OS X
14436         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
14437         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
14438         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
14439         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
14441 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
14443         mgetgroups: port to strict OS X
14444         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
14445         Document the getgrouplist problem.
14446         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
14447         New macro.
14448         (mgetgroups): Use it.
14449         * m4/mgetgroups.m4 (gl_MGETGROUPS):
14450         Check for OS X signature for getgrouplist.
14452 2015-06-29  Jim Meyering  <meyering@fb.com>
14454         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
14455         It started like this when building coreutils' latest on OS X,
14456         invoking ./configure with a nonempty --cache=.cache:
14458           lib/linkat.c:46:42: error: operator '||' has no right operand
14459           lib/linkat.c: In function 'rpl_linkat':
14460           lib/linkat.c:330:27: error: #if with no expression
14462         Here's linkat.c's line 46:
14464           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
14466         Here's some context:
14468           $ grep linkat_nofoll .cache
14469           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
14470           $ grep LINKAT_SYM lib/config.h
14471           #define LINKAT_SYMLINK_NOTSUP
14473         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
14474         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
14475         but that violates a tenet of AC_CACHE_CHECK: it must
14476         have no side effect other than setting its cache variable.
14478         What happens is that when the cache is set, we'd skip the
14479         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
14480         defined to whatever value it happened to have in configure's
14481         environment.  In my case, it was not defined, so this later code:
14483           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
14484             [Define to 1 if linkat can create hardlinks to symlinks])
14486         would emit code with an empty RHS.
14488         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
14489         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
14491 2015-06-28  Jim Meyering  <meyering@fb.com>
14493         mountlist: avoid an unused-label warning on OS X
14494         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
14495         Building on OS X, I saw a warning about the "free_then_fail" label
14496         being unused.  Give it the _GL_UNUSED_LABEL attribute.
14498         error.c: correct printf-style format: %d -> %u
14499         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
14500         rather than %d, to match the type of "line_number", unsigned int.
14502 2015-06-25  Pádraig Brady  <P@draigBrady.com>
14504         fts: avoid reading beyond the heap allocation
14505         GCC 5.1.1 with -O2 and -fsanitize=address reports
14506         a read of size 4 from a heap object of size 3 is indeed invalid,
14507         though this may be due to incorrect padding assumptions by GCC, see:
14508         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
14509         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
14510         * modules/fts: Depend on stdalign.
14512 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14514         savedir: avoid undefined behavior in qsort call
14515         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14516         "runtime error: null pointer passed as argument 1,
14517          which is declared to never be null"
14518         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
14520 2015-06-24  Pádraig Brady  <P@draigBrady.com>
14522         userspec: avoid undefined behavior in gettext call
14523         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
14524         "runtime error: null pointer passed as argument 2,
14525          which is declared to never be null"
14526         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
14528 2015-06-20  Glenn Morris  <rgm@gnu.org>
14530         gitlog-to-changelog: improve gitmerge.el commits
14531         Let the Emacs ChangeLog generation process exclude "skipped"
14532         messages from merge commits (Bug#20717).
14533         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
14535 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14537         wchar: fix MinGW compilation warnings
14538         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
14539         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
14540         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
14542 2015-06-20  Daiki Ueno  <ueno@gnu.org>
14544         uniname/uniname-tests: use pristine data files
14545         For copyright and maintenance reasons, use the data files from UCD
14546         without modification.
14547         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
14548         (getfield): Remove.
14549         (aliases_count): New global variable.
14550         (fill_names): Skip comments and empty lines in the input.  Don't
14551         use getfield.
14552         (fill_aliases): Likewise.
14553         (main): Change the expected command line arguments to:
14554         NAMES... ["--" ALIASES...].
14555         * tests/uniname/test-uninames.sh: Adjust to the change in
14556         test-uninames.c.
14557         * tests/uniname/UnicodeDataNames.txt: Remove.
14558         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
14559         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
14560         file from Unicode 8.0.0.
14562 2015-06-19  Pádraig Brady  <P@draigBrady.com>
14564         linked-list, linkedhash-list: avoid compiler warnings
14565         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
14566         -Werror=suggest-attribute=pure (from GCC 5.1.1).
14568 2015-06-19  Daiki Ueno  <ueno@gnu.org>
14570         libunistring: bump minimum version to 0.9.6
14571         * all modules depending on updated Unicode data: Regenerate.
14572         The modules are listed by a script that does:
14573         - for each file listed by: git show --oneline --name-only 705f4efc
14574           - deduce the containing modules, based on "Files:"
14575         - deduce the modules which depend on the containing modules, based
14576           on "Depends-on:"
14578 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14580         uniname/uniname: update to Unicode 8.0.0
14581         * lib/uniname/uninames.h: Regenerate.
14582         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
14583         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
14585 2015-06-18  Daiki Ueno  <ueno@gnu.org>
14587         libunistring: update to Unicode 8.0.0
14588         * lib/gen-uni-tables.c (SIZEOF): New macro.
14589         (output_numeric): Increase the maximum number of fractions from
14590         128 to 160.  Increase the level3 value width from 7 bits to 8
14591         bits.  Use SIZEOF instead of a hard-coded integer.
14592         (output_blocks): Decrease the cut-off threshold from 0x30000 to
14593         0x28000.
14594         (fill_blocks): Increase the maximum number of blocks from 256 to
14595         384.  Use SIZEOF instead of a hard-coded integer.
14596         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
14597         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
14598         value width.
14599         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
14600         a new case added to LBP22.
14601         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
14602         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
14603         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
14604         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
14605         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
14606         * tests/uniwidth/test-uc_width2.sh: Same updates as in
14607         lib/uniwidth/width.c.
14608         * all generated files under lib/uni* and tests/uni*: Regenerate.
14610 2015-06-16  Pádraig Brady  <P@draigBrady.com>
14612         gnu-web-doc-update: add --mirror to remove stale files
14613         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
14614         out of date files from the CVS server.  Since this is usually
14615         appropriate, a prompt is given when the option is not specified,
14616         along with the `cvs remove` command that would be run.
14618 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14620         acl-permissions: pacify -Wsuggest-attribute=const
14621         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
14622         * lib/acl-internal.h (free_permission_context):
14623         Declare with attribute const if ! (defined USE_ACL &&
14624         (HAVE_ACL_GET_FILE || defined GETACL)).
14626         fsync: document AIX misbehavior
14627         * doc/posix-functions/fsync.texi (fsync):
14628         Document failure on AIX with read-only file descriptor.
14630 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
14632         stdio: Don't redefine gets when using C++
14633         * lib/stdio.in.h (gets): Disable warning on C++.
14635 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
14637         acl-permissions: port to AIX, C89 HP-UX
14638         Problems reported by Michael Felt.
14639         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
14640         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
14641         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
14642         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
14643         Add cast for AIX, whose system calls are declared to accept
14644         char * even though the arguments are really char const *.
14645         * lib/get-permissions.c (get_permissions):
14646         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
14647         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
14648         that broke a build.
14649         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
14650         Rework types to pacify xlc.
14652 2015-06-03  Pádraig Brady  <P@draigBrady.com>
14654         vasprintf-posix: avoid compiling vasnprintf where possible
14655         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
14656         module where not required.  For example on a GNU/Linux system
14657         when gnulib-tool is run with the --conditional-dependencies option.
14659 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14661         file-has-acl: fix build on Mac OS X 10
14662         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
14663         which has an incompatible 6 parameter getxattr() call.
14664         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
14665         call on Mac OS X >= 10.4.
14666         * doc/glibc-functions/fgetxattr.texi: Likewise.
14667         * lib/file-has-acl.c: Revert to more complete combined check.
14668         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
14669         Reported by Jack Howarth.
14671 2015-06-02  Pádraig Brady  <P@draigBrady.com>
14673         prefix-gnulib-mk: remove no longer needed special case
14674         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
14675         continued lib_SOURCES lines are no longer present,
14676         so special case handling of such entries is not required.
14678 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14680         acl: don't depend on the deprecated qacl module
14681         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
14683 2015-06-01  Pádraig Brady  <P@draigBrady.com>
14685         gnulib-tool: concatenate lib_SOURCES to a single line
14686         * gnulib-tool: Refactor the line merging sed logic,
14687         and use that to output a single lib_SOURCES line for each module.
14688         gnulib using projects often postprocess this output to prepend
14689         subdir paths to each item, and having a single line simplifies this
14690         processing allowing better decoupling from the gnulib-tool output.
14692 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
14694         pthread_sigmask: discount system version if a simple macro (trivial)
14695         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
14696         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
14697         function to ensure it's available.
14699 2015-05-31  Pádraig Brady  <P@draigBrady.com>
14701         readlinkat: avoid OS X 10.10 trailing slash bug
14702         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
14703         has this bug.
14704         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
14705         that OS X 10.10 has this function.
14706         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
14707         as done for readlink().
14708         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
14709         trailing slash bug, and assume readlinkat() has the same issue.
14710         Also fix a typo where $gl_cv_decl_readlink_works was tested,
14711         rather than the correct $gl_cv_decl_readlinkat_works.
14713 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
14715         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
14716         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
14717         module rewrite.
14719         acl-permissions: Fix build on Solaris and Cygwin
14720         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
14721         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
14722         ace_entries variables have moved into struct permission_context but
14723         they were still accessed as local variables here.
14725 2015-05-29  Pádraig Brady  <P@draigBrady.com>
14727         linkat: avoid OS X 10.10 trailing slash with symlink bug
14728         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
14729         causes the symlink to be dereferenced, and if it points
14730         to a non existent file, that file will be created as
14731         a hard link to "path1".
14732         This fixes a test failure in test-linkat.c.
14733         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
14734         this case.  The existing workaround in linkat.c for
14735         trailing slash issues, suffices for this case.
14736         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
14737         the list of platforms with trailing slash issues.
14739 2015-05-28  Pádraig Brady  <P@draigBrady.com>
14741         unlinkat: handle ignoring of ".." on Darwin 14
14742         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
14743         on Mac OS X 10.10, where it ignores paths with a trailing "..",
14744         so handle in the same manner.
14745         * m4/unlinkat.m4: Comment on this Darwin issue.
14746         * doc/posix-functions/unlink.texi: Update the latest version
14747         where the issue was seen.
14748         * doc/posix-functions/unlinkat.texi: Mention this issue.
14749         Fixes a test failure in test-unlinkat.c.
14751 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
14753         qacl: split into qcopy-acl and qset-acl
14754         Emacs needs the former, but not the latter.
14755         * modules/acl-permissions: New file, containing most of the old qacl.
14756         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
14757         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
14758         * modules/qcopy-acl, modules/qset-acl: New files.
14759         * MODULES.html.sh (File system functions):
14760         Mention the new modules, and mention qacl while we're at it.
14762 2015-05-27  Glenn Morris  <rgm@gnu.org>
14764         gitlog-to-changelog: new option --ignore-line
14765         (This patch is imported from the GNU Emacs master.)
14766         This option ignores individual commit lines matching a pattern.
14767         * build-aux/gitlog-to-changelog: Add --ignore-line option.
14769 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
14771         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
14772         Implement get_permissions and set_permissions primitives for getting all
14773         the permissions of a file, storing them, and later setting them. (In the
14774         minimal case, the permissions consist only of a file mode.) Reimplement
14775         qset_acl and qcopy_acl based on these new primitives: this avoids code
14776         duplication and makes error handling more consistent.
14777         The Solaris and Cygwin code still uses duplicate code paths for setting
14778         a file mode while making sure that no acls exist and setting an explicit
14779         acl; this is no worse than before, but could be cleaned up.  The AIX
14780         code still doesn't read ACLs, it only makes sure that acls don't get in
14781         the way when setting a file mode.
14782         * lib/acl-internal.h (struct permission_context): New data structure.
14783         (get_permissions, set_permissions, free_permission_context): Declare.
14784         * lib/acl-internal.c (free_permission_context): New helper function.
14785         * lib/get-permissions.c (get_permissions): New helper function split off
14786         from qcopy_acl.
14787         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
14788         AIX, set a file's permissions based only on a file mode.
14789         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
14790         other platforms construct a temporary acl from the file mode and set
14791         that acl in the same way as setting an acl read from the source file.
14792         This should help avoid code duplication and inconsistent / buggy
14793         behavior.
14794         (set_acls): New helper function Split off from qcopy_acl.
14795         (chmod_or_fchmod): Moved here from qset-acl.c.
14796         (set_permissions): New helper function.
14797         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
14798         set_permissions.
14799         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
14800         * modules/qacl: Add get-permissions.c and set-permissions.c.
14802         file-has-acl: Split feature tests again (Bug#20667)
14803         * lib/file-has-acl.c: Instead of testing for
14804         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
14805         define them when needed.
14806         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
14807         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
14809 2015-05-27  Pádraig Brady  <P@draigBrady.com>
14811         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
14812         This avoids a conflict with "FORTIFY_SOURCE" variants
14813         of the string functions when they're replaced on NetBSD-6.0.1
14814         and Darwin-14.3.0 at least.
14815         * lib/string.in.h: Avoid including our "lib/string.h" while
14816         including the system <string.h>.
14818 2015-05-26  Eric Blake  <eblake@redhat.com>
14820         stdio: limit __gnu_printf__ witness to gcc 4.4+
14821         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
14822         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
14824         error: use correct printf attributes on mingw
14825         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
14827         inttypes: force correct mingw PRIdMAX even without <stdio.h>
14828         * modules/inttypes (Depends-on): Require extensions, so that mingw
14829         always uses GNU style inttypes.
14830         * lib/inttypes.in.h: On mingw, include <stdio.h>.
14832         stdio: fix probe on mingw under gcc 5.1
14833         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
14834         around new gcc preprocessor rules.
14836 2015-05-07  Glenn Morris  <rgm@gnu.org>
14838         gitlog-to-changelog: parse "Tiny-change"
14839         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
14840         "Copyright-paperwork-exempt".  (Bug#20324)
14842 2015-05-06  Pádraig Brady  <P@draigBrady.com>
14844         doc: document glibc posix_fallocate() issues
14845         * doc/posix-functions/posix_fallocate.texi: Mention the
14846         glibc efficiency problems and issues with NFS.
14848 2015-05-05  Karl Berry  <karl@freefriends.org>
14850         * build-aux/gendocs.sh (usage): document new css default
14851         for HTML (--htmlarg).
14853 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
14855         extern-inline: no need for workaround in GCC 5.1
14856         * doc/extern-inline.texi (extern inline):
14857         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
14858         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
14859         around these bugs in GCC 5.1 and later.  Maybe in a decade or
14860         two we can remove these workarounds.
14862 2015-04-28  Pádraig Brady  <P@draigBrady.com>
14864         eealloc, pagealign_alloc, xalloc: avoid clang warnings
14865         Avoid [-Wunknown-attributes] warnings like:
14866         warning: unknown attribute '__alloc_size__' ignored
14867         * lib/xalloc.h: Don't use the __alloc_size__  attribute
14868         with clang, as support has been fully removed as of clang 3.5:
14869         https://github.com/llvm-mirror/clang/commit/c047507a
14870         * lib/eealloc.h: Likewise.
14871         * lib/pagealign_alloc.h: Likewise.
14873 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
14875         tests: pacify GCC 5.1's stricter printf checking
14876         * tests/test-dirname.c (main):
14877         * tests/test-getaddrinfo.c (simple):
14878         * tests/test-getlogin.c (main):
14879         * tests/test-getndelim2.c (main):
14880         * tests/test-inttostr.c (CK):
14881         * tests/test-md5.c (main):
14882         * tests/test-read-file.c (main):
14883         * tests/test-sha1.c (main):
14884         Fix mismatches between printf format and value signedness.
14885         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
14886         Remove, as CAST_VAL always returned a value of type uintmax_t.
14888         fts: port to GCC 5.1 with --enable-gcc-warnings
14889         Without this fix, GCC 5.1 (correctly) warns about a subscript
14890         error on the fts_name component of FTSENT.  It's actually a
14891         flexible member, so define it that way on C99 or later hosts.
14892         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
14893         structure that now has a flexible array member.
14894         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
14895         (FTSENT): fts_name is now flexible on C99-or-later platforms.
14896         * modules/fts (Depends-on): Add flexmember.
14898 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
14900         file-has-acl: port to CentOS 6
14901         Problem reported by Tom G. Christensen in:
14902         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
14903         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
14904         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
14905         HAVE_GETXATTR.
14906         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
14907         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
14908         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
14909         file-has-acl.c actually needs.
14911 2015-04-26  Pádraig Brady  <P@draigBrady.com>
14913         file-has-acl: always return false when ACLs aren't supported
14914         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
14915         change the GNU/Linux getxattr path, to transform "not supported"
14916         errors to a false return rather than an error.  This is handled
14917         within file_has_acl() due to the platform specific tests to
14918         determine if ACLs are not supported.
14920 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
14922         gettext: propagate po/Makefile.in.in too
14923         * build-aux/po/Makefile.in.in: Copy from latest gettext.
14924         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
14925         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
14926         between Makefile.in.in and the gettext-runtime m4 files.
14928 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
14930         file-has-acl: new module, split from acl
14931         And add a new module file-has-acl-tests to match.
14932         I ran into a problem with the recent changes to the acl module,
14933         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
14934         When using the fixed version with Emacs, I discovered that
14935         file-has-acl wasn't separated out well enough for Emacs (e.g., it
14936         had multiple libraries, but needed only one), so I fixed that too.
14937         * NEWS: Document this incompatible change.
14938         * modules/file-has-acl, modules/file-has-acl-tests: New files.
14939         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
14940         Initialize gl_need_lib_has_acl.
14941         (gl_FUNC_ACL): Require it.
14942         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
14943         Move the file-has-acl.c-relevant stuff to ...
14944         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
14945         use_xattrs = 0' typo, and omit some needless work.  Set
14946         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
14947         when gl_FUNC_ACL is called.
14948         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
14949         (Link): Remove $(LIB_HAS_ACL).
14950         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
14951         (check_PROGRAMS): Move stuff relevant to file-has-acl to
14952         modules/file-has-acl-tests.
14953         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
14955         manywarnings: add GCC 5.1 warnings
14956         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
14957         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
14958         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
14959         -Wsuggest-override, -Wuse-without-only.  Change
14960         -Wnormalized=... operands to match 5.1.
14961         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
14962         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
14963         -Wdiscarded-qualifiers, -Wformat-signedness,
14964         -Wincompatible-pointer-types, -Wint-conversion,
14965         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
14966         -Wshift-count-negative, -Wshift-count-overflow,
14967         -Wsizeof-array-argument, -Wsuggest-final-methods,
14968         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
14969         and add -Warray-bounds=2 as a special case.
14971 2015-04-21  Simon Josefsson  <simon@josefsson.org>
14973         doc: update FDL template to match FDL examples.
14974         * doc/alloca-opt.texi:
14975         * doc/alloca.texi:
14976         * doc/c-ctype.texi:
14977         * doc/c-strcase.texi:
14978         * doc/c-strcaseeq.texi:
14979         * doc/c-strcasestr.texi:
14980         * doc/c-strstr.texi:
14981         * doc/c-strtod.texi:
14982         * doc/c-strtold.texi:
14983         * doc/ctime.texi:
14984         * doc/error.texi:
14985         * doc/gcd.texi:
14986         * doc/gnulib-tool.texi:
14987         * doc/inet_ntoa.texi:
14988         * doc/intprops.texi:
14989         * doc/lib-symbol-visibility.texi:
14990         * doc/maintain.texi:
14991         * doc/parse-datetime.texi:
14992         * doc/quote.texi:
14993         * doc/regexprops-generic.texi:
14994         * doc/standards.texi: Remove spurious 'with' in FDL license
14995         template.
14997 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
14999         lstat: fix cross-compilation 'ln -s' problem
15000         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
15001         Have the test program call 'symlink' rather than a separate
15002         script run 'ln -s'; this is more likely to work in
15003         cross-compilation environments.  Reported by Pavel Fedin in:
15004         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
15006 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
15008         gendocs.sh: default to a common CSS style sheet for HTML output
15009         * build-aux/gendocs.sh (htmlarg): Change default value.
15011 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
15013         gnulib-tool: output bold attribute more portably
15014         * gnulib-tool (func_show_module_list): Change hexadecimal
15015         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
15016         encoded numbers as arguments to `printf' is not portable,
15017         and is not claimed by POSIX.  This is the case with FreeBSD.
15019 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
15021         qacl: Simplify HP-UX acl_nontrivial check
15022         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
15023         acl_nontrivial. Check if the acl has at most three entries instead (it must
15024         have exactly three entries according to the HP-UX documentation). Ignore
15025         uids and gids as long as an entry is either for a user (i.e., the owner),
15026         a group (i.e., the owning group), or others.
15027         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
15028         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
15030 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
15032         acl: On Linux, check for acls without libacl
15033         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
15034         library function to check for the presence of acls, avoiding a library.
15035         * lib/file-has-acl.c: Include xattr headers if we have them.
15036         (file_has_acl): On Linux, use getxattr().
15037         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
15038         file_has_acl(). Check for xattr headers and getxattr().
15040 2015-04-14  Ángel González  <keisial@gmail.com>
15042         tempname: avoid unused parameter warnings (trivial)
15043         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
15044         (try_nocreate): Likewise.
15046 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
15048         fseeko: fix build failure on NetBSD >= 6 (trivial)
15049         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
15050         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
15052 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
15054         gitlog-to-changelog: port to MS-Windows
15055         * build-aux/gitlog-to-changelog (git_dir_option):
15056         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
15057         MS-Windows Perl.  Reported by Eli Zaretskii in:
15058         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
15060 2015-04-07  Karl Berry  <karl@gnu.org>
15062         gendocs: new option --tex for passing args to texi2dvi.
15063         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
15064         (TEXI2DVI): cut to just command name.
15065         (usage): mention new option, and update copyright.
15066         <generate_tex>: use it.
15068 2015-04-07  Karl Berry  <karl@gnu.org>
15070         * config/srclistvars.sh (GETTEXT): new definition.
15071         * config/srclist.txt: use it for gettext .m4 files.
15072         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
15073         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
15074         and continuing into April.
15076 2015-04-07  Daiki Ueno  <ueno@gnu.org>
15078         uniname/uniname-tests: fix failure due to alias
15079         Reported by Jack Howarth in:
15080         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
15081         * tests/uniname/test-uninames.c (name_has_alias): New function.
15082         (test_inverse_lookup): Exclude character name with valid alias,
15083         from randomly generated character names.
15084         (main): Fill unicode_aliases before calling test functions.
15086 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
15088         hash: remove deprecated hash_insert0 function
15089         * lib/hash.h (hash_insert0): Remove deprecated function.
15090         * lib/hash.c (hash_insert0): Likewise.
15092 2015-04-02  Pádraig Brady  <P@draigBrady.com>
15094         mountlist: remove dependency on libmount
15095         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
15096         directly, rather than depending on libmount, which has many
15097         dependencies due to its dependence on libselinux, as detailed at:
15098         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
15099         Note we restrict this to __linux__ as that's probably where this
15100         interface will remain.  If ever porting, it would be best
15101         to first pull the makedev() wrapper from coreutils to a gnulib module.
15102         Note also we don't add a getline dependency to the mountlist module,
15103         as all Linux versions are sufficient.
15105 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
15107         stddef: port to pre-C11 GCC on x86
15108         On this platform, max_align_t should have an alignment of 8 even
15109         though the storage alignments of double, long, etc. max out at 4.
15110         Inspired by a comment of Andreas Schwab's here:
15111         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
15112         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
15113         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
15114         * tests/test-stddef.c: Test __alignof__ too, if available.
15116 2015-03-24  Pádraig Brady  <P@draigBrady.com>
15118         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
15119         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
15121 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
15123         yesno: make EOL optional in ENABLE_NLS case also (trival)
15124         * lib/yesno.c (yesno): Check for EOL before replacing.
15125         * tests/test-yesno.sh: Add a test case (test along with gettext).
15127 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
15129         fdopendir-tests: test it does not close its arg
15130         * tests/test-fdopendir.c (main): Test that fdopendir does not
15131         close its argument.  From a suggestion by David Grayson in:
15132         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
15134 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15136         gitlog-to-changelog: trim trailing white space
15137         * build-aux/gitlog-to-changelog (main):
15138         Trim trailing white space from commit message lines.
15139         This is helpful for processing the GNU Emacs repository,
15140         which dates back to 1985 and contains a lot of such lines.
15142         gitlog-to-changelog: new option --ignore-matching
15143         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
15144         Support new option --ignore-matching=PAT, which ignores all
15145         commit messages whose first line matches PAT.
15147 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15149         fdopendir: port better to MinGW
15150         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
15151         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
15152         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
15153         * modules/fdopendir (Depends-on): Add dirfd.
15155 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
15157         fdopendir: fix typo in comment
15158         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
15160 2015-03-09  Eric Blake  <eblake@redhat.com>
15162         error: document all entry points provided
15163         * doc/glibc-functions/error_print_progname.texi
15164         (error_print_progname): Mention the error module.
15165         * doc/glibc-functions/error_at_line.texi (error_at_line):
15166         Likewise.
15167         * doc/glibc-functions/error_message_count.texi
15168         (error_message_count): Likewise.
15169         * doc/glibc-functions/error_one_per_line.texi
15170         (error_one_per_line): Likewise.
15172 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
15174         vasnprintf: pacify clang 3.5.0
15175         Problem reported by Werner Lemberg in:
15176         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
15177         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
15178         The casts aren't needed, since the characters in question are ASCII.
15180 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15182         glob, etc.: port to MSVC v18 on MS-Windows 8.1
15183         * lib/dirent--.h (GNULIB_defined_opendir):
15184         * lib/dirent.in.h (GNULIB_defined_opendir)
15185         (GNULIB_defined_closedir):
15186         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
15187         #undef only if Gnulib defined it.
15189         poll: port to MSVC v18 on MS-Windows 8.1
15190         Problem reported by Gisle Vanem in:
15191         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
15192         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
15193         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
15194         Add sys_socket.
15196 2015-02-24  Pádraig Brady  <P@draigBrady.com>
15198         tests: support stderr verification with returns_()
15199         * tests/init.sh (returns_): Disable tracing for this wrapper
15200         function, so that stderr of the wrapped command is unchanged,
15201         allowing for verification of the contents.
15203 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
15205         passfd: avoid valgrind uninitalised data warning
15206         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
15207         to include just the fd we've initialized, rather than including
15208         the extra space used for alignment.
15210 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15212         uniwbrk/u32-wordbreaks-tests: fix copyright
15213         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
15215         dup2: doc and test for Android bug
15216         Reported by Kevin Cernekee in:
15217         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
15218         * doc/posix-functions/dup2.texi (dup2): Document the bug.
15219         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
15221 2015-02-23  Kevin Cernekee  <cernekee@google.com>
15223         Replace dup2() on Android
15224         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
15225         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
15226         fails.  Using rpl_dup2() fixes this because it has an explicit test
15227         for this condition.
15229 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
15231         Android doesn't define RLIM_SAVED_*
15232         Portability problem reported by Kevin Cernekee in:
15233         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
15234         * doc/posix-headers/sys_resource.texi (sys/resource.h):
15235         Mention the portability problem.
15236         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
15237         Define if not defined.
15238         * m4/dup2.m4 (gl_FUNC_DUP2):
15239         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15240         Likewise.
15242 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15244         vasnprintf-posix-tests: use consistent test
15245         * tests/test-vasnprintf-posix.c (test_function):
15246         Use "<" in assert instead of "<=", for consistency with other tests.
15248 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15250         printf, isinf, etc.: noncanonical != NaN
15251         Do not require that isinf, printf, etc. treat noncanonical
15252         values as NaNs.  Instead, require only that they do not crash.
15253         Problem reported by Joseph Myers in:
15254         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
15255         * doc/posix-functions/dprintf.texi (dprintf):
15256         * doc/posix-functions/fprintf.texi (fprintf):
15257         * doc/posix-functions/isfinite.texi (isfinite):
15258         * doc/posix-functions/isinf.texi (isinf):
15259         * doc/posix-functions/isnan.texi (isnan):
15260         * doc/posix-functions/printf.texi (printf):
15261         * doc/posix-functions/snprintf.texi (snprintf):
15262         * doc/posix-functions/sprintf.texi (sprintf):
15263         * doc/posix-functions/vdprintf.texi (vdprintf):
15264         * doc/posix-functions/vfprintf.texi (vfprintf):
15265         * doc/posix-functions/vprintf.texi (vprintf):
15266         * doc/posix-functions/vsnprintf.texi (vsnprintf):
15267         * doc/posix-functions/vsprintf.texi (vsprintf):
15268         Document this.
15269         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
15270         * m4/isinf.m4 (gl_ISINFL_WORKS):
15271         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
15272         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
15273         * tests/test-isfinite.c (test_isfinitel):
15274         * tests/test-isinf.c (test_isinfl):
15275         * tests/test-isnan.c (test_long_double):
15276         * tests/test-isnanl.h (main):
15277         * tests/test-snprintf-posix.h (test_function):
15278         * tests/test-sprintf-posix.h (test_function):
15279         * tests/test-vasnprintf-posix.c (test_function):
15280         * tests/test-vasprintf-posix.c (test_function):
15281         Test only that noncanonical values do not cause crashes, not that
15282         they are treated as NaNs.  In some cases this means a larger
15283         output buffer is needed.
15285 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
15287         fts: remove redundant close() (trivial)
15288         * lib/fts.c (fts_read): Remove redundant call to close().
15289         Spotted by coverity.
15291 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
15293         getdtablesize: port better for Android
15294         Problem reported by Kevin Cernekee in:
15295         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
15296         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
15297         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
15298         Instead, just use getrlimit, taking care to avoid Cygwin bug.
15300         poll: fixes for large fds
15301         * lib/poll.c (poll): Don't check directly for NFD too large.
15302         Don't rely on undefined behavior in FD_SET when an arg exceeds
15303         FD_SETSIZE.  Always set revents afterwards, even if to zero.
15304         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
15305         as that makes the test a bit stricter.
15307 2015-02-19  Kevin Cernekee  <cernekee@google.com>
15309         fcntl: Fix cross compiling
15310         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
15311         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
15313 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15315         dup2, fcntl: cross-compile better for Android
15316         Problem reported by Kevin Cernekee in:
15317         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
15318         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
15319         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
15320         there's little need to cross-compile for older kernels nowadays.
15321         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
15322         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
15324 2015-02-18  Pádraig Brady  <P@draigBrady.com>
15326         getopt: don't crash on memory exhaustion
15327         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
15328         memory exhaustion.  In the _LIBC case we use alloca() as is
15329         already done in glibc, so we don't need to consider the separate
15330         error path in that awkward case.  Also fix a memory leak when
15331         ambiguous options are present.
15332         Reported by Tobias Stoeckmann
15334 2015-02-17  Mike Miller  <mtmiller@ieee.org>
15336         tempname: allow compilation with C++ (trivial)
15337         * lib/tempname.h [C++]: Specify extern "C" linkage.
15338         * lib/tempname.h (try_tempname):
15339         * lib/tempname.c (__try_tempname, __gen_tempname):
15340         Rename 'try' to 'tryfunc'.
15342 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15344         dup2, fcntl: port to AIX
15345         * m4/dup2.m4 (gl_FUNC_DUP2):
15346         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15347         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
15348         The former works on AIX 7.1 but the latter does not.
15349         Also, this may work better with Android; see:
15350         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
15352 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15354         getdtablesize, dup2, fcntl: port to Android
15355         Problem reported by Kevin Cernekee in:
15356         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
15357         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
15358         Mention that getdtablesize doesn't work on Android.
15359         * lib/getdtablesize.c: Use getrlimit substitute only if
15360         getdtablesize is declared.  This should suffice for Cygwin
15361         while not breaking Android.
15362         * m4/dup2.m4 (gl_FUNC_DUP2):
15363         * m4/fcntl.m4 (gl_FUNC_FCNTL):
15364         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
15365         standardized but the latter is not, and sysconf works on Android.
15366         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
15367         Also check that getdtablesize is declared.
15368         This removes the need for a special case for Android.
15370 2015-02-16  Kevin Cernekee  <cernekee@google.com>
15372         localename: Implement gl_locale_name_thread_unsafe for Android
15373         * lib/localename.c: Android API level >= 21 supports two hardcoded
15374         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
15375         the internal __locale_t struct.
15377 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
15379         fts: avoid crash when a cycle is added while traversing
15380         This could be triggered by auto-mounting a recursive bind mount.
15381         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
15382         * lib/fts.c (fts_read): Avoid removing the original hash table item
15383         when leaving a directory that caused a cycle, and preserve the FTS_DC
15384         flag.
15386 2015-02-16  Daiki Ueno  <ueno@gnu.org>
15388         uniname/uniname: support character alias
15389         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
15390         Generate one-way mapping from aliases to codepoints in the
15391         generated tables.  Special case variation selectors to reduce
15392         table size.
15393         * lib/uniname/uniname.c (unicode_character_name): Special case
15394         variation selectors.
15395         (unicode_name_character): Special case variation selectors and
15396         their aliases.
15397         * lib/uniname/uninames.h: Regenerate.
15398         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
15399         * modules/uniname/uniname-tests (Files): Add
15400         tests/uniname/NameAliases.txt.
15401         * tests/uniname/test-uninames.c: Mark as static.
15402         (ALIASLEN): Define.
15403         (struct unicode_alias): New struct.
15404         (unicode_aliases): New variable.
15405         (fill_aliases): New function.
15406         (test_alias_lookup): New test function.
15407         (main): Run the 'test_alias_lookup' test if the second argument is
15408         given.
15409         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
15410         second argument.
15412 2015-02-11  Kevin Cernekee  <cernekee@google.com>
15414         Fix FILE struct compatibility with Android API level >= 21
15415         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
15416         __sferror.  Recent versions of Bionic's stdio.h no longer define
15417         __sferror.
15418         * lib/fbufmode.c: Likewise.
15419         * lib/fflush.c: Likewise.
15420         * lib/fpurge.c: Likewise.
15421         * lib/freadable.c: Likewise.
15422         * lib/freadahead.c: Likewise.
15423         * lib/freading.c: Likewise.
15424         * lib/freadptr.c: Likewise.
15425         * lib/freadseek.c: Likewise.
15426         * lib/fseeko.c: Likewise.
15427         * lib/fseterr.c: Likewise.
15428         * lib/fwritable.c: Likewise.
15430         Assume unbroken ungetc() on Android
15431         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
15432         test case passed when running on an Android host, and the code
15433         hasn't really changed since 2009.
15435         getdtablesize: Fix Android build
15436         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
15437         versions have this symbol in the .so library (at least 32-bit
15438         platforms) but are missing the declaration in the header file,
15439         causing the m4 logic to guess incorrectly.
15441         localename: Fix Android build
15442         * modules/localename (Depends-on): Add langinfo.
15444         getugroups: Fix Android build
15445         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
15446         functions.
15448         euidaccess: Fix Android build
15449         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
15450         AT_EACCESS gets declared.
15452         linkat_nofollow: Add fallback case for cross compiling
15453         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
15455         net_if: Handle content-free <net/if.h> system headers
15456         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
15457         struct if_nameindex.  If not, enable the replacement header.
15459         signal_h: Fix Android build
15460         * lib/signal.in.h: Add Android to the list of platforms that declare
15461         pthread_sigmask() in <pthread.h> instead of <signal.h>.
15463         duplocale: Fix Android build of duplocale-tests
15464         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
15465         is included by test-duplocale.c (but not by duplocale.c).
15466         * modules/duplocale-tests (configure.ac): Check for monetary.h.
15467         * tests/test-duplocale.c: Skip test if monetary.h is absent.
15468         * doc/posix-headers/monetary.texi: Add Android to the list of
15469         platforms missing monetary.h.
15471 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15473         tests: avoid recent -Werror=unused-variable regression in test-locale
15474         * tests/test-locale.c (main): Reference the variable to avoid the
15475         "unused variable" warning.
15477 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15479         maint: various whitespace cleanups in tempname
15480         * lib/tempname.c: Normalize spacing and line length.
15481         * lib/tempname.h: Likewise.
15482         * modules/tempname: Likewise.
15484 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15486         tests: provide returns_() to simplify exit status checking
15487         * tests/init.sh (returns_): A new function for use in tests,
15488         to allow for easier checking of return values, where you expect
15489         a command to exit with failure status.  By checking for a particular
15490         exit code, you don't hide any crashes for example.
15492 2015-02-11  Pádraig Brady  <P@draigBrady.com>
15494         mountlist: only use libmount when specified
15495         There are currently many shared libs dependencies introduced by
15496         libmount with associated runtime and virt mem overhead.
15497         Therefore don't enable by default.
15498         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
15500 2015-02-08  Daiki Ueno  <ueno@gnu.org>
15502         uniname/unimame-tests: don't link with -lunistring
15503         * modules/uniname/uniname-tests (Makefile.am): Don't link against
15504         $(LIBUNISTRING).  Document the rationale why we need to
15505         conditionalize the test.
15507 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
15509         fstrcmp: don't assume strlen < INT_MAX
15510         * lib/fstrcmp.c: Include stddef.h and stdint.h.
15511         (uintptr_t): Remove, as we're now assuming stdint.
15512         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
15513         Prefer ptrdiff_t to int when the value could exceed INT_MAX
15514         if the input string is long.
15515         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
15516         uintptr_t to size_t when the underlying value is a pointer casted
15517         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
15518         * modules/fstrcmp (Depends-on): Add stdint.
15520         diffseq: prefer ptrdiff_t to ssize_t
15521         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
15522         ptrdiff_t is the natural type for signed indexes.
15523         On a few older platforms, ssize_t is narrower than size_t.
15525         xalloc: fix typo that suppressed warnings
15526         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
15527         This typo, introduced a couple of years ago, mistakenly suppressed
15528         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
15529         -Wmissing-declarations warnings.
15531         full-read: fix license notice typo
15532         * lib/full-read.h: Remove a stray line in the license notice.
15533         Reported by Sam Ellis in: http://bugs.gnu.org/19808
15535         crypto/gc: fix a -Wswitch warning
15536         Reported by Bruce Korb in:
15537         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
15538         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
15540 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15542         gnulib-tool: fix handling of patch(1) diagnostics
15543         * gnulib-tool: Send diagnostics from patch(1) to stderr,
15544         as otherwise gnulib-tool will reparse that output and attempt
15545         to lookup modules.
15547 2015-02-03  Pádraig Brady  <P@draigBrady.com>
15549         bootstrap: exit immediately upon gnulib-tool failure
15550         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
15551         This was noticed when gnulib-tool exited early due to failure
15552         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
15553         but various confusing errors were then given as the build proceeded.
15555 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
15557         symlinkat: include all required header files
15558         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
15559         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
15560         Reported at https://savannah.gnu.org/bugs/index.php?44151
15561         and by Jack Howarth.
15563 2015-01-29  Pádraig Brady  <P@draigBrady.com>
15565         localename: support Solaris 12 and illumos
15566         * lib/localename.c (gl_locale_name_thread_unsafe): call
15567         getlocalename_l() on newer __sun platforms.
15568         Reported by Alexander Pyhalov.
15569         Fix suggested by Rich Burridge.
15571 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
15573         locale: fix tests on illumos (trivial)
15574         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
15575         so move from global scope to main().
15577 2015-01-24  Daiki Ueno  <ueno@gnu.org>
15579         unictype: avoid undefined left-shift behavior
15580         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
15581         gcc's -fsanitize=shift and running its tests triggered:
15582           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
15583             places cannot be represented in type 'int'
15584         Cast LHS to 'unsigned int' after integer promotion.
15585         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15586         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15588 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15590         libunistring: bump version of unitypes dependants
15591         Due to the header file search order, all the headers which depend
15592         on unitypes.h need to be generated, when the preinstalled
15593         libunistring is older.
15594         * modules/unicase/base (configure.ac): Bump minimum version to
15595         0.9.4.
15596         * modules/uniconv/base (configure.ac): Likewise.
15597         * modules/unilbrk/base (configure.ac): Likewise.
15598         * modules/uninorm/base (configure.ac): Likewise.
15599         * modules/unistdio/base (configure.ac): Likewise.
15600         * modules/unistr/base (configure.ac): Likewise.
15601         * modules/uniwbrk/base (configure.ac): Likewise.
15602         * modules/uniwidth/base (configure.ac): Likewise.
15604 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15606         unictype/category-none: fix link with libunistring
15607         Since _UC_CATEGORY_NONE is not a public symbol, it will be
15608         prefixed with "libstring_" when compiled as part of libunistring.
15609         To avoid undefined symbol at link time, increase the minimum
15610         version when the dependant modules are updated.
15611         * modules/unictype/category-none (configure.ac): Bump minimum
15612         version to 0.9.5.
15614 2015-01-20  Daiki Ueno  <ueno@gnu.org>
15616         unitypes: fix build with installed libunistring
15617         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
15618         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
15619         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
15621 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
15623         time: port to MinGW32 3.21
15624         Problem reported by Eli Zaretskii in:
15625         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
15626         * lib/time.in.h:
15627         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
15628         * modules/time (Depends-on):
15629         Fall back on unistd.h if the other include files don't define
15630         struct timespec.
15632         update-copyright: apply to self
15633         * build-aux/update-copyright: Fix copyright date.  How ironic!
15635 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15637         libunistring: update to Unicode 7.0.0
15638         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
15639         Manichaean names.
15640         * lib/unictype/joininggroup_name.h: Likewise.
15641         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
15642         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
15643         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
15644         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
15645         (fill_arabicshaping, joining_group_as_c_identifier): Support those
15646         enum values.
15647         (is_property_alphabetic): Accept newly added characters to
15648         cuneiform numeric signs.
15649         (is_property_default_ignorable_code_point): Reject U+0605.
15650         (FIELDLEN): Increase from 120 to 160.
15651         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
15652         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
15653         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
15654         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
15655         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
15656         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
15657         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
15658         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
15659         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
15660         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
15661         U+1E8D0..U+1E8D6.
15662         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
15663         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15664         lib/uniwidth/width.c.
15665         * all generated files under lib/uni* and tests/uni*: Regenerate.
15667 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15669         libunistring: update to Unicode 6.3.0
15670         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15671         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
15672         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
15673         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
15674         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
15675         Update WB5, WB9, WB10, WB13a, and WB13b.
15676         * tests/uniwbrk/test-uc-wordbreaks.c
15677         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
15678         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15679         (UC_BIDI_PDI): New enumeration values.
15680         (bidi_category_byname): Support those enum values.
15681         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
15682         dedicated property assigned.
15683         (is_property_case_ignorable): Check 0x0027.
15684         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
15685         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15686         (output_wbp): Support those enum values.
15687         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
15688         (UC_BIDI_PDI): New enumeration values.
15689         * lib/unictype/bidi_byname.gperf: Add those property names.
15690         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
15691         U+180E, U+1A1B, and U+2066..U+2069.
15692         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15693         lib/uniwidth/width.c.
15694         * all generated files under lib/uni* and tests/uni*: Regenerate.
15696 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15698         libunistring: update to Unicode 6.2.0
15699         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
15700         (unilbrk_table): Adjust table size.
15701         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15702         for LBP_RI.
15703         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
15704         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
15705         Normalize table index skipping ignored properties.
15706         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
15707         WBP_EXTEND and WBP_FORMAT, which are now computed without using
15708         the table.
15709         * lib/uniwbrk/wbrktable.h: Adjust table size.
15710         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
15711         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
15712         Support rule GB8a.
15713         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
15714         * tests/unigbrk/test-uc-is-grapheme-break.c
15715         (graphemebreakproperty_to_string): Support GBP_RI.
15716         * tests/uniwbrk/test-uc-wordbreaks.c
15717         (wordbreakproperty_to_string): Support WBP_RI.
15718         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
15719         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
15720         (output_lbp): Support LBP_RI.  Adjust some characters changed from
15721         LBP_AL to LBP_ID.
15722         (output_lbp): Support LBP_RI.
15723         (WBP_RI): New enumeration value.
15724         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
15725         (output_wbp): Support WBP_RI.
15726         (GBP_RI): New enumeration value.
15727         (output_gbp_test, fill_org_gbp): Support GBP_RI.
15728         * all generated files under lib/uni* and tests/uni*: Regenerate.
15730 2015-01-14  Daiki Ueno  <ueno@gnu.org>
15732         libunistring: update to Unicode 6.1.0
15733         * lib/gen-uni-tables.c (output_joining_group): Switch to
15734         3-level table to accommodate joining groups defined with higher
15735         codepoint value.  Since there are only 88 groups defined in
15736         Unicode 7.0.0, use 7-bit packed format for level3 entries.
15737         (get_lbp): Update for Unicode 6.1.0.
15738         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
15739         3-level table.
15740         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
15741         joining group name.
15742         * lib/unictype/joininggroup_name.h: Likewise.
15743         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
15744         (unilbrk_table): Adjust table size.
15745         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
15746         for LBP_HL.
15747         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
15748         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
15749         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
15750         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
15751         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
15752         U+302E..U+302F.
15753         * tests/uniwidth/test-uc_width2.sh: Same updates as in
15754         lib/uniwidth/width.c.
15755         * all generated files under lib/uni* and tests/uni*: Regenerate.
15756         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
15758 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15760         uniwbrk/u32-wordbreaks-tests: add conformance test
15761         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
15762         tests/uniwbrk/test-uc-wordbreaks.c,
15763         tests/uniwbrk/test-uc-wordbreaks.sh, and
15764         tests/uniwbrk/WordBreakTest.txt.
15765         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
15766         test-uc-wordbreaks to $(check_PROGRAMS), and define
15767         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
15768         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
15769         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
15771 2015-01-15  Daiki Ueno  <ueno@gnu.org>
15773         uniwbrk: ignore Extended/Format characters at BOL not BOS
15774         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
15775         characters if the previous character property is one of
15776         WBP_NEWLINE, WBP_CR, and WBP_LF.
15778 2015-01-11  Jim Meyering  <meyering@fb.com>
15780         test-strstr.c: avoid a trivial leak
15781         * tests/test-strstr.c (main): Free haystack.
15783         update-copyright: recognize groff's \(co marker
15784         * build-aux/update-copyright (circle_c_re): Also accept
15785         uses of \(co, as found in gzip.1.
15787 2015-01-08  Pádraig Brady  <P@draigBrady.com>
15789         maint.mk: fix compatibility with OS X nm
15790         * top/maint.mk (_gl_tight_scope): Use the -g option to
15791         show exported items rather than the -e option which is
15792         ignored on all platforms except OS X where it gives an error.
15793         Reported by Assaf Gordon.
15795 2015-01-07  KO Myung-Hun  <komh@chollian.net>
15797         localcharset: improve charset detection on OS/2
15798         Use system codepage when appropriate.  Map OS/2 codepages to
15799         GNU canonical charset names if possible.
15800         * lib/config.charset: Don't output aliases if "$os" is os2*.
15801         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
15802         result for OS/2.
15803         (locale_charset) [OS2]: Use system codepage if codeset is omitted
15804         from the locale name which is neither "C" nor "POSIX".
15806 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
15808         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
15809         This reverts the last patch but one, as it shouldn't be needed now
15810         that the typo is fixed.
15811         * lib/count-leading-zeros.h (count_leading_zeros_ll):
15812         * lib/count-trailing-zeros.h:
15813         * lib/count-one-bits.h:
15814         Go back to using 64-bit intrinsics.
15816         count-leading-zeros: fix pragma typos
15817         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
15818         Fix typos in declaration of intrinsics when _MSC_VER.
15820 2015-01-06  Pádraig Brady  <P@draigBrady.com>
15822         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
15823         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
15824         intrinsics in this case.
15825         * lib/count-trailing-zeros.h: Likewise.
15826         * lib/count-one-bits.h: Likewise.
15828 2015-01-06  Daiki Ueno  <ueno@gnu.org>
15830         uniname/uniname: update to Unicode 7.0.0
15831         To accommodate new characters added since Unicode 5.1.0, this
15832         changes the internal representation of codepoint ranges.
15833         Previously, we grouped codepoint ranges by manually assigned 4-bit
15834         tag, which only allowed 16 groups.  This removes the limitation by
15835         switching to binary search on a table.  For the detail rationale
15836         and the benchmark results, see:
15837         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
15838         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
15839         to INDEX, as it no longer represents a codepoint.
15840         (range): New struct.
15841         (main): Switch to intervals list from a bit-pattern based
15842         classification.
15843         * lib/uniname/uninames.h: Regenerate.
15844         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
15845         * modules/uniname/base (configure.ac): Bump minimum version to
15846         0.9.5.
15847         * modules/uniname/uniname (configure.ac): Bump minimum version to
15848         0.9.5.
15850 2015-01-05  Eric Blake  <eblake@redhat.com>
15852         doc: update INSTALL from autoconf
15853         * doc/install.texi: Resync from autoconf.
15854         * doc/INSTALL: Reflect recent autoconf update.
15855         * doc/INSTALL.ISO: Likewise.
15856         * doc/INSTALL.UTF-8: Likewise.
15858         stdio: fix use of PRIdMAX on modern mingw
15859         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
15860         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
15861         to work with modern mingw.
15863 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
15865         pthread: detect git mingw builds with only partial pollution
15866         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
15867         pollution, as seen temporarily in Fedora 21.
15869 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
15871         lib-symbol-versions: cache script check
15872         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
15873         Cache the check for linker version scripts.
15874         From a suggestion by Christophe Curis in:
15875         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
15877 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
15879         maint: fix grammar nits in propername (trivial change)
15880         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
15881         and use an adequate verb and tense.
15883 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
15885         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
15886         * module/gendocs: Add 'doc/gendocs_template_min'.
15888         * build-aux/gendocs.sh: Change email addresses and upstream URLs
15889         from to Gnulib's.
15890         (scripturl, templateurl): Adjust accordingly.
15892 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15894         gendocs: copyright date and version fix
15895         Reported by Karl Berry in:
15896         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
15897         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
15898         Fix copyright date.
15899         * build-aux/gendocs.sh (scriptversion): Update.
15901 2015-01-01  Karl Berry  <karl@gnu.org>
15903         * doc/install.texi,
15904         * build-aux/mdate-sh,
15905         * build-aux/depcomp,
15906         * build-aux/config.guess,
15907         * build-aux/config.sub,
15908         * build-aux/ar-lib,
15909         * build-aux/compile: revert copyright updates (some from last
15910         year) in slaved files.
15912 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
15914         version-etc: new year
15915         * doc/gnulib.texi:
15916         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
15917         * all files: Run 'make update-copyright'.
15919 2014-12-30  Pádraig Brady  <P@draigBrady.com>
15921         xstrtol: ensure errno is reset
15922         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
15923         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
15925         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
15927 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
15929         utimens: fix dependency typo
15930         * modules/utimens (Depends-on): Remove 'assure'.
15931         This bug was introduced in the recent 'assure' patch.
15933 2014-12-22  Eric Blake  <eblake@redhat.com>
15935         docs: mention why libgen.h is bad
15936         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
15938 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
15940         assure: new module
15941         This works better than 'assert' when compiling with -DNDEBUG,
15942         as it avoids some compiler diagnostics in that case.
15943         Reported by Norihiro Tanaka in:
15944         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
15945         * MODULES.html.sh (func_all_modules): Add 'assure'.
15946         * lib/assure.h, modules/assure: New files.
15947         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
15948         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
15949         Prefer 'assure' to 'assert'.
15950         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
15951         * modules/chdir-long, modules/cycle-check, modules/fchdir:
15952         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
15953         Depend on 'assure'.
15955 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
15957         stdalign: port better to HP compilers
15958         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
15959         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
15961         stdalign: work around Apple GCC 4.0 bug
15962         Reported by David Fang in:
15963         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
15964         * lib/stdalign.in.h (_Alignas):
15965         * m4/stdalign.m4 (gl_STDALIGN_H):
15966         Do not use aligned attribute with GCC 4.0 on Apple.
15968 2014-12-16  Pádraig Brady  <P@draigBrady.com>
15970         getcwd: fix test failure on OS X 10.9
15971         * m4/getcwd-path-max.m4: Avoid the replacement if it
15972         won't be effective due to the PATH_MAX limitation of lstat().
15973         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
15974         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
15975         for this case for use in tests, and also exclude this
15976         case when setting REPLACE_GETCWD.
15977         * tests/test-getcwd.c (test_long_name): Restrict the
15978         tested path length so that lstat() will not be passed
15979         a path greater than PATH_MAX.
15980         Also key a test condition on HAVE_OPENAT_SUPPORT rather
15981         than AT_FDCWD, since the latter is set unconditionally
15982         since Sep 2009 in commit 52c658e9.
15984 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
15986         parse-datetime: avoid a compiler warning with byacc (trivial)
15987         * lib/parse-datetime.y (yylex): Use the same prototype in the
15988         function definition as the declaration, to avoid a -Wstrict-prototypes
15989         warning seen when using byacc.
15991 2014-12-12  Daiki Ueno  <ueno@gnu.org>
15993         unicase/locale-language-tests: fix LOCALE_FR test
15994         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
15995         a French locale with traditional encoding.
15996         Reported by umerqayam in:
15997         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
15999 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
16001         stddef: support C11's max_align_t
16002         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
16003         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
16004         Do not undef, as that might cause max_align_t to be defined twice.
16005         Instead, change use to check for _GL_STDDEF_WINT_T too.
16006         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
16007         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
16008         Check for max_align_t.
16009         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
16010         * modules/stddef-tests (Depends-on): Add stdalign.
16011         * tests/test-stddef.c: Test max_align_t.
16013 2014-12-11  Daiki Ueno  <ueno@gnu.org>
16015         unistd: fix iOS check conditional
16016         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
16017         as 0 or 1 in <TargetConditionals.h>, and the previous check always
16018         yielded true on non-iOS environment.
16019         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
16020         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
16021         they are defined.
16023 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
16025         posixtm: avoid compiler warning in a better way
16026         * lib/posixtm.c (IF_LINT): Remove.
16027         (year, posix_time_parse):
16028         Return true (not 0) if successful.  All callers changed.
16029         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
16031 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
16033         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
16034         started with '/' on EMX.
16036 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
16038         freopen: workaround freopen() on OS/2 kLIBC
16039         * lib/freopen.c (rpl_freopen): Workaround.
16040         * m4/freopen.m4: Add os2* case.
16042         get_shared_library_fullname: port to EMX
16043         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
16044         on EMX, respectively.
16045         (_DLL_InitTerm): New on EMX.
16046         (get_shared_library_fullname): Implement on EMX.
16048         find_executable: port to EMX
16049         * lib/progreloc.c (find_executable): Implement on EMX.
16051         sched: check struct sched_param in spawn.h as well
16052         * lib/sched.in.h: Include spawn.h on kLIBC.
16053         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
16055 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
16057         bootstrap: Allow perl modules in $buildreq
16058         * build-aux/bootstrap: Add case for perl modules.
16060 2014-12-08  Pádraig Brady  <P@draigBrady.com>
16062         apply _GL_ATTRIBUTE_PURE to some inline functions
16063         clang 3.4.2 flagged these inline functions as pure
16064         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
16065         * lib/sig-handler.h (get_handler): Likewise.
16066         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
16067         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
16069 2014-12-06  Pádraig Brady  <P@draigBrady.com>
16071         vasnprintf: fix potential use after free
16072         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
16073         flagged by clang-analyzer 3.4.2.
16075 2014-12-05  Pádraig Brady  <P@draigBrady.com>
16077         filevercmp, posixtm: avoid compiler warnings with -O3
16078         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
16079         * lib/posixtm.c: (IF_LINT): Define.
16080         (posix_time_parse): Use it to void a "may be used uninitialized"
16081         warning, seen only with -O3.
16083 2014-12-05  Bruno Haible  <bruno@clisp.org>
16085         Fix LDBL80_WORDS macro on big endian platforms.
16086         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
16087         LDBL80_WORDS macro.
16088         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
16089         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16090         * tests/test-isfinite.c (test_isfinitel): Likewise.
16091         * tests/test-isinf.c (test_isinfl): Likewise.
16092         * tests/test-isnan.c (test_long_double): Likewise.
16093         * tests/test-isnanl.h (main): Likewise.
16094         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
16095         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
16096         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
16097         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
16098         Reported by Pádraig Brady.
16100 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
16102         git-version-gen: do not print new line characters
16103         * build-aux/git-version-gen: Use printf instead of echo and tr.
16105         gnulib-tool: recognize x:* as an absolute path
16106         * gnulib-tool (func_gnulib_dir): Add ?:* case.
16107         (func_relconcat): Likewise.
16109 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
16111         argp: avoid extraneous translation and mem leak with empty pre doc
16112         * lib/argp-help.c (argp_doc): Never translate the empty string,
16113         when "\v" is the first or last character of the string, as that
16114         has a reserved meaning to return the header info from a po file.
16115         This also fixes a small memory leak in the !post case.
16116         The issue can be seen with this command for example:
16117         LC_MESSAGES=en_US grub2-mknetdir --help
16119 2014-11-27  Daiki Ueno  <ueno@gnu.org>
16121         uniname/uniname-tests: skip if system's libunistring is used
16122         * modules/uniname/uniname-tests (Makefile.am): Skip test if
16123         uniname/uniname module is not compiled.
16125 2014-11-27  Pádraig Brady  <P@draigBrady.com>
16127         printf: fix configure check on big endian systems
16128         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
16130 2014-11-22  Daiki Ueno  <ueno@gnu.org>
16132         pipe-filter-gi, pipe-filter-ii: port to AIX
16133         On AIX 7.1, 'select' is defined as static and cannot be referred
16134         to from inline function.
16135         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
16136         the definition...
16137         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
16138         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
16140 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
16142         gitlog-to-changelog: add --until
16143         * build-aux/gitlog-to-changelog: Support new --until option.
16144         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
16146 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
16148         extern-inline: update commentary about GCC bugs
16149         * m4/extern-inline.m4: Add another GCC bug number to comments.
16151 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16153         gen-uni-tables: untabify
16154         * lib/gen-uni-tables.c: Untabify.
16156 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16158         gen-uni-tables: check out-of-range values added to 3-level tables
16159         * lib/gen-uni-tables.c (output_category, output_bidi_category)
16160         (output_joining_type, output_ident_category): Check out-of-range
16161         values added to 3-level tables.
16163 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16165         gen-uni-tables: utilize 'assert'
16166         * lib/gen-uni-tables.c: Include <assert.h>.
16167         (output_category, output_combclass, output_decimal_digit_test)
16168         (output_decimal_digit, output_digit_test, output_digit)
16169         (output_numeric, get_mirror_value, fill_properties)
16170         (fill_property30, is_property_alphabetic)
16171         (is_property_default_ignorable_code_point)
16172         (is_property_uppercase, is_property_lowercase)
16173         (is_property_cased, is_property_case_ignorable)
16174         (is_property_changes_when_lowercased, is_property_iso_control)
16175         (is_property_math, fill_arabicshaping, output_joining_group)
16176         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
16177         (output_wbp, fill_org_gbp, get_decomposition)
16178         (output_decomposition, fill_composition_exclusions)
16179         (debug_output_composition_tables, output_composition_tables)
16180         (redistribute_casefolding_rules, output_casing_rules): Use
16181         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
16182         reporting.
16184 2014-11-13  Daiki Ueno  <ueno@gnu.org>
16186         gen-uni-tables: cosmetic improvements
16187         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
16188         variables specification.
16189         (is_outdigit): Remove unused function.
16191 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
16193         fcntl-h-tests: port to PA-RISC GNU/Linux
16194         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
16196 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
16198         fts: port to C89
16199         Problem reported for MSVC 16 by Gisle Vanem in:
16200         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
16201         * lib/fts.c (fts_build): Avoid declaration before statement.
16203 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
16205         unistd: port to iOS
16206         Problem reported by André Klitzing in:
16207         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
16208         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
16210 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
16212         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
16213         Problem reported by Alan Modra in:
16214         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
16215         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
16216         Always cast the function arg, reverting this part of the previous
16217         change.
16219 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
16221         obstack: avoid potentially-nonportable function casts
16222         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
16223         Remove, replacing with ...
16224         (call_chunkfun, call_freefun): New static functions.
16225         All uses changed.  Avoid potentially-nonportable casts.
16226         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
16227         (_obstack_begin_worker): Omit last two args, since they
16228         rely on potentially-nonportable casts.  All callers changed.
16229         * lib/obstack.h (_OBSTACK_CAST): New macro.
16230         Use it everywhere the old API used a potentially-nonportable cast.
16231         The new API doesn't cast.
16232         (struct obstack): Use unions rather than requiring
16233         potentially-nonportable casts.
16234         (obstack_chunkfun, obstack_freefun): Return void.
16236 2014-11-03  Alan Modra  <amodra@gmail.com>
16238         obstack: fix macro return values
16239         * lib/obstack.h (obstack_next_free): Return void *.
16240         (obstack_1grow_fast, obstack_blank_fast): Return void.
16241         For __GNUC__ macros:
16242         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
16243         For !__GNUC__ macros:
16244         (obstack_make_room, obstack_grow, obstack_grow0)
16245         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
16247 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
16249         obstack: do not assume system-supplied obstack is size_t safe
16250         * m4/obstack.m4: New file.
16251         * modules/obstack (Files): Add it.
16253         obstack: port to platforms that #define __alignof__
16254         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
16255         not if !_LIBC.  We don't know of any platforms that #define
16256         __alignof__, but it might be useful in tests.  Conversely,
16257         glibc assumes GCC.
16259 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16261         linkat: don't unconditionally replace on GNU/Linux
16262         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
16263         was redundant for a few reasons.  It was present to support compiling
16264         on new systems but running on the old narrow window of Linux 2.6.1[67].
16265         It setup and cleaned up test files which weren't actually used.
16266         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
16267         implicit in the following check.
16269 2014-11-03  Pádraig Brady  <P@draigBrady.com>
16271         linkat: wrap to handle symlinks on OS X 10.10
16272         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
16273         but not usable because it doesn't support creating hardlinks
16274         to symlinks.  Therefore add a generic test for this capability
16275         and fallback to our emulation if linkat() fails with ENOTSUP.
16277 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16279         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
16280         * doc/posix-functions/open.texi (open):
16281         * doc/posix-functions/openat.texi (openat):
16282         Document that these functions do not set errno to ELOOP when
16283         a symlink is opened with O_NOFOLLOW.
16285 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
16287         obstack: add NEWS entry for recent incompatible changes
16288         * NEWS: Describe recent changes.
16290 2014-10-30  Pádraig Brady  <P@draigBrady.com>
16292         mountlist: don't use libmount to decide on dummy/remote
16293         * lib/mountlist.c (read_file_system_list): Don't use the libmount
16294         routines to determine whether a file system is dummy or remote,
16295         as they're not currently compatible.  For example the remoteness
16296         is determined on file system type (for which the list seems incomplete),
16297         rather than simply checking for a ':' in the device name.
16298         Also libmount currently determines that 'tmpfs' is a dummy file system
16299         even though it has associated storage.
16301 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
16303         obstack: prefer __alignof__ to alignof
16304         This is for portability to pre-4.7 GCC when compiling glibc.
16305         See Joseph S. Myers in:
16306         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
16307         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
16308         New macro, defined by including and using <alignof.h>.
16309         (MAX): New macro.
16310         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
16311         Do not use enums as they are not portable to some broken compilers.
16312         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
16314         obstack: prefer alignof to calculating alignments by hand
16315         * lib/obstack.c: Include <stdalign.h>.
16316         (struct fooalign): Remove.
16317         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
16318         * modules/obstack (Depends-on): Add stdalign.
16320 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
16322         obstack: use size_t alignments and check for overflow
16323         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
16324         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
16325         * lib/obstack.h (struct obstack.alignment_mask):
16326         Use _OBSTACK_SIZE_T, not int, for alignments.
16327         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
16328         overflows, e.g., when adding the alignment.
16330 2014-10-29  Alan Modra  <amodra@gmail.com>
16332         obstack: 64-bit obstack support, part 3
16333         This finally enables full 64-bit obstack support.  The glibc
16334         shared library specific code is removed from obstack.c too, and
16335         the error handling code conditionally compiled under control of
16336         another macro, _OBSTACK_NO_ERROR_HANDLER.
16337         * lib/obstack.h: Include string.h earlier.
16338         (_OBSTACK_INTERFACE_VERSION): Define.
16339         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
16340         * lib/obstack.c: Don't include shlib-compat.h.
16341         (OBSTACK_INTERFACE_VERSION): Delete.
16342         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
16343         glibc code is compatible with version 2.  Don't include stdio.h for
16344         __GNU_LIBRARY.
16345         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
16346         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
16347         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
16348         glibc shared library specific source.
16350         obstack: 64-bit obstack support, part 2
16351         This gets us 4G obstack support, without changing ABI
16352         compatibility, apart from possibly introducing some
16353         signed/unsigned comparison warnings in code that uses obstack.h.
16354         a) Replace "int" size parameters, return values, and macro local vars
16355            with _OBSTACK_SIZE_T, an "unsigned int" for now.
16356         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
16357         c) Make all obstack macros checking available room use obstack_room.
16358            "next_free + desired > chunk_limit" may wrap the lhs for chunks
16359            allocated near the top of memory.
16360         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
16361         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
16362         in place of "int" size parameters, return values and local vars.
16363         (_CHUNK_SIZE_T): Define.
16364         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
16365         union use an _OBSTACK_SIZE_T integer type.
16366         For __GNUC__ versions of the following macros...
16367         (obstack_room): Rename local var.
16368         (obstack_make_room): Use obstack_room.
16369         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16370         obstack_int_grow, obstack_blank): Likewise.
16371         (obstack_finish): Use unsigned comparison when comparing aligned
16372         next_free against chunk_limit.
16373         (obstack_free): Cast OBJ to remove possible const qualifier.
16374         For !__GNUC__ versions of the following macros...
16375         (obstack_make_room): Use obstack_room.
16376         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
16377         obstack_int_grow, obstack_blank): Likewise.
16378         (obstack_finish): Use unsigned comparision when comparing aligned
16379         next_free against chunk_limit.
16380         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
16381         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
16382         _OBSTACK_SIZE_T.
16383         (_obstack_begin, _obstack_begin_1): Likewise.
16384         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
16385         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
16387         obstack: 64-bit obstack support, part 1
16388         a) Correct calls to alloc function, to use a size_t arg.  "long" is
16389            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
16390            and "size_t" 64 bits.
16391         b) Consolidate _obstack_begin and _obstack_begin1 code.
16392         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
16393         use "size_t" rather than "long".
16394         (_obstack_begin, _obstack_begin1): Likewise.
16395         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
16396         obstack_chunkfun): Update alloc function casts.
16397         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
16398         (chunkfun_type, freefun_type): New typdefs.
16399         (_obstack_begin_worker): Split out from ..
16400         (_obstack_begin, _obstack_begin_1): ..here.
16402         obstack: tidy part 2
16403         a) Don't be concerned about "not polluting the namespace with stddef.h
16404            symbols" in obstack.h, since gnulib string.h includes stddef.h
16405            anyway, and it seems unlikely that anyone would care.
16406         b) Don't roll our own slow memcpy in _obstack_newchunk.
16407         c) Rename obstack_free to _obstack_free.  This makes the naming
16408            consistent with other obstack functions and obviates the need for
16409            __obstack_free.  Ancient obstack.c defined both obstack_free and
16410            _obstack_free.  We continue to do that for _LIBC via an alias.
16411         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
16412            is clever, but nowadays gcc warns on undefined macros.  You'll get
16413            an undefined macro warning if simulating an old gcc with -U__GNUC__
16414            -U__GNUC_MINOR__ -D__GNUC__=1.
16415         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
16416         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
16417         (__obstack_free): Delete, update refs.
16418         (_obstack_free): Rename from obstack_free.
16419         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
16420         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
16421         * lib/obstack.c: Don't include stddef.h.
16422         (COPYING_UNIT): Delete.
16423         (_obstack_begin): Formatting fix.
16424         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
16425         (_obstack_free): Rename from __obstack_free, update alias.  Move
16426         undef of obstack_free to where it is needed.
16428         obstack: tidy part 1
16429         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
16430            to me, and result in overlong lines after later patches.
16431         b) Move error handling code, to avoid a forward declaration and to
16432            simplify later patches in this series.
16433         * lib/obstack.h (struct obstack <temp>): Rename fields of union
16434         and update all uses.
16435         * lib/obstack.c: Include stdlib.h earlier.
16436         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
16437         in file.
16438         (print_and_abort): Remove now redundant forward declaration.
16440 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
16442         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
16443         Without this change, in bleeding-edge fileutils Autoconf complains
16444         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
16445         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
16446         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
16447         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
16449 2014-10-24  Daiki Ueno  <ueno@gnu.org>
16451         iconv: avoid false detection of non-working iconv
16452         The INBUF arguments of iconv can be either 'const char **'
16453         or 'char **'.  If CC is g++, the difference causes a compile error
16454         and thus leads to a false detection of non-working iconv.
16455         Reported by Eli Zaretskii and Werner LEMBERG in:
16456         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
16457         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
16458         iconv.  Bump serial number.
16460 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16462         bootstrap: print more diagnostics for missing programs
16463         * build-aux/bootstrap: only suppress stderr when checking for
16464         alternative program names.  This supports programs issuing non
16465         standard error messages.
16467 2014-10-23  Pádraig Brady  <P@draigBrady.com>
16469         bootstrap: only update the gnulib submodule
16470         * build-aux/bootstrap: Restrict the "submodule update" command
16471         to the gnulib path.
16473 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
16475         symlinkat: port to AIX 7.1
16476         * doc/posix-functions/symlinkat.texi (symlinkat):
16477         Mention AIX porting problem.
16478         * lib/symlinkat.c: Always include errno.h.
16479         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
16480         * lib/unistd.in.h (symlinkat): Add replacement machinery.
16481         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
16482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
16483         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
16484         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
16485         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
16487         readlinkat: port to AIX 7.1
16488         * doc/posix-functions/readlink.texi (readlink):
16489         * doc/posix-functions/readlinkat.texi (readlinkat):
16490         Mention AIX porting problem.
16491         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
16492         New function.
16493         * lib/unistd.in.h (readlinkat): Add replacement machinery.
16494         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
16495         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
16496         * modules/readlinkat (configure.ac): Also compile replacement
16497         if REPLACE_READLINKAT.
16498         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
16500 2014-10-12  Karl Berry  <karl@gnu.org>
16502         * doc/posix-functions/dirname.texi: remove spurious {.
16504 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
16506         basename, dirname: Improve documentation.
16507         * doc/posix-functions/basename.texi: Mention dirname module and
16508         base_name() function.
16509         * doc/posix-functions/dirname.texi: Mention dir_name() and
16510         mdir_name() functions.
16511         Suggested by Werner LEMBERG <wl@gnu.org>.
16513 2014-09-24  Jim Meyering  <meyering@fb.com>
16515         exclude: declare exclude_patopts static
16516         * lib/exclude.c (exclude_patopts): Declare static,
16517         to avoid triggering a -Wmissing-prototypes warning.
16518         The alternative (declaring it in the .h file) would
16519         require publicizing the private "struct patopts".
16521 2014-09-21  Werner Lemberg  <wl@gnu.org>
16523         dirname: support compilation with C++
16524         * lib/dirname.h: Add necessary C linkage declarations.
16526 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
16528         qsort_r: include <config.h>
16529         Problem reported by Tom G. Christensen in:
16530         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
16531         * lib/qsort.c [!_LIBC]: Include <config.h> first.
16533 2014-09-16  Dylan Cali  <calid1984@gmail.com>
16535         avltree-list: avoid compiler warnings (trivial)
16536         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
16537         -Werror=suggest-attribute=pure.
16538         * lib/gl_array_list.c: Likewise.
16539         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
16540         declaration to avoid -Werror=missing-prototypes.  This is not added
16541         to a header as only exported for tests.  Add (void) to the
16542         check_invariants() call to indicate we're discarding the result
16543         in this context which avoids -Werror=unused-value.  Note we don't
16544         use ignore_value here to avoid a dependency as we know we'll not
16545         be adding __attribute__((warn_unused_result)) to check_invariants().
16546         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
16548 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
16550         qsort_r: new module, for GNU-style qsort_r
16551         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
16553 2014-09-15  Werner LEMBERG  <wl@gnu.org>
16555         strerror_r-posix: support compilation with C++
16556         * lib/strerror_r.c: Add necessary C linkage declarations.
16558 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
16560         fcntl-h: fix compilation with Intel C++ compiler (trivial)
16561         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
16563 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
16565         mountlist: use /proc/self/mountinfo when available
16566         Use libmount to propagate device IDs provided by Linux in
16567         /proc/self/mountinfo.  This will give more accurate output when
16568         using df in chroot'ed environments as the device IDs are not
16569         determined by stat() which may be inaccurate within the chroot.
16570         * lib/mountlist.c (read_file_system_list): Use the libmount routines
16571         from util-linux to parse "/proc/self/mountinfo" or fall back to
16572         standard getmntent() processing.
16573         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
16574         getmntent() is used, as is the case on GNU/Linux.
16576 2014-09-07  Eric Wong  <normalperson@yhbt.net>
16578         users.txt: add cmogstored
16579         cmogstored has used gnulib since the beginning in 2012 to support
16580         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
16582 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16584         Trivial change.
16585         * gnulib-tool: Use same options as build-aux/bootstrap to download
16586         PO files.
16588 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
16590         Trivial change.
16591         * gnulib-tool: Fallback to wget when rsync of PO files fails.
16593 2014-09-04  Eric Blake  <eblake@redhat.com>
16595         maintainer-makefile: add syntax check for useless ';;'
16596         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
16598 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
16600         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
16601         Problem reported by Assaf Gordon in:
16602         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
16603         Apparently Ubuntu is doing some fancy link-time optimization
16604         that doesn't work with -lpthread but does work with -pthread.
16605         Work around the bug by preferring -pthread to -lpthread.
16606         * m4/pthread.m4 (gl_PTHREAD_CHECK):
16607         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
16608         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
16609         Treat -pthread like -lpthread.
16611 2014-09-04  Eric Blake  <eblake@redhat.com>
16613         error: drop spurious semicolon
16614         * lib/error.c (__error_at_line): Fix ';;'.
16616 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16618         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
16619         * m4/gnulib-common.m4 (AC_C_RESTRICT):
16620         Override AC_C_RESTRICT unconditionally.
16621         Update from autoconf, incorporating:
16622         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
16623         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
16625 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16627         manywarnings: add GCC 4.9 warnings
16628         Also, make it easier to maintain this in the future.
16629         * build-aux/gcc-warning.spec: Add -Wabi-tag,
16630         -Wconditionally-supported, -Wdelete-incomplete,
16631         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
16632         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
16633         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
16634         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
16635         only for older GCC versions that need them.  Handle
16636         -Wnormalized=nfc specially, so that the 'comm' command used
16637         for maintenance doesn't get confused.
16639 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
16641         vasnprintf: fix bugs in width computation
16642         * lib/vasnprintf.c (VASNPRINTF):
16643         Rework previous change, which introduced a bug,
16644         to avoid the warning in a different way.
16645         Avoid undefined behavior if the width arg is less than -INT_MAX.
16646         Avoid unnecessary use of HAS_WIDTH local.
16648 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
16650         vasnprintf: Avoid signed/unsigned comparison warning.
16651         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
16652         compare end addr of generated string w/ maximum end addr.
16654 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
16656         parse-datetime: Avoid pointer difference.
16657         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
16658         instead of calculating difference of pointers.  This removes an
16659         annoying warning, devoid of any use.
16661 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
16663         qsort_r: new module, for GNU-style qsort_r
16664         This works even on FreeBSD, which has an incompatible qsort_r API.
16665         * MODULES.html.sh: Add it.
16666         * doc/glibc-functions/qsort_r.texi: It's now supported.
16667         * lib/qsort.c: New file, taken from glibc with minor changes
16668         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
16669         removed.
16670         * lib/qsort_r.c: New file, compiled only on FreeBSD.
16671         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
16672         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
16673         * modules/qsort_r, modules/qsort_r-tests: New files.
16674         * modules/stdlib (Makefile): Set up its defaults.
16675         * tests/test-qsort_r.c: New file.
16677 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
16679         vla: new module
16680         GNU RCS can use this, mostly for documentation I expect.  See:
16681         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
16682         * MODULES.html.sh: Add vla.
16683         * lib/vla.h, modules/vla: New files.
16685 2014-08-07  Daiki Ueno  <ueno@gnu.org>
16687         localename: make gl_locale_name_thread really thread-safe on Windows
16688         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
16689         "glthread/lock.h".
16690         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
16691         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
16693 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
16695         getpass: don't assume struct termios
16696         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
16697         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
16698         * lib/getpass.c (getpass): Port to systems lacking struct termios.
16700         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
16701         Problem reported by Jonas 'Sortie' Termansen in:
16702         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
16703         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
16704         Implement via sysconf for platforms that lack getdtablesize.
16706         vararrays: modernize AC_C_VARARRAYS for C11
16707         This backports a change I recently made to Autoconf.
16708         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
16709         VLAs are not supported, as this is what C11 does.  The old macro
16710         HAVE_C_VARARRAYS is still defined if they are supported, but is
16711         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
16713 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
16715         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
16716         * build-aux/install-reloc (func_create_wrapper): Also wrap
16717         strerror-override, stat, stat.
16719 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
16721         sys_select: fix FD_ZERO problem on Solaris 10
16722         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
16723         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
16724         to expand to an expression that invoked memset without necessarily
16725         including <string.h>.  The problem was that the first include
16726         defined _SYS_TIME_H, causing the second include to short-circuit.
16727         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
16728         Also, fix what appears to be a cut-and-paste typo, by replacing
16729         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
16730         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
16732         accept: document Solaris 10 type glitch
16733         * doc/posix-functions/accept.texi (accept): Mention that
16734         Solaris 10 'accept' takes void * last arg, not socklen_t *.
16736 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
16738         extern-inline: port to FreeBSD, DragonFly
16739         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
16740         is present if either __DragonFly__ or __FreeBSD__ is defined.
16741         FreeBSD problem reported by Andrey Borzenkov in:
16742         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
16743         Also, worry about __APPLE__ only if __MACH__ is also defined,
16744         as this is more consistent with the rest of gnulib.
16745         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
16746         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
16748 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
16750         regex: Make #if/#ifdef usage consistent for DEBUG
16751         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
16752         of the inconsistent usage of #if and #ifdef as that works with
16753         both Glibc and Gnulib's style.
16755 2014-07-31  Eric Blake  <eblake@redhat.com>
16757         openat-die: use _Noreturn markup
16758         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
16759         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
16760         _Noreturn.
16762 2014-07-30  Eric Blake  <eblake@redhat.com>
16764         test-open: port to cygwin, which lacks Fortify
16765         * tests/test-open.h (ALWAYS_INLINE): New macro.
16766         (__always_inline): Don't abuse internal symbol on non-glibc.
16768 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
16770         localename: Enforce declarations before statements.
16771         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
16772         first statement.
16774 2014-07-18  Jim Meyering  <meyering@fb.com>
16776         test-userspec: don't look up numeric user names
16777         * tests/test-userspec.c: I found a system for which getpwnam("0")
16778         returned a pointer to a non-root user's entry, and that made the
16779         test fail.
16780         (T): Prefix each numeric input with "+", to inhibit lookup.
16782 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
16784         localcharset, localename: MS-Windows support for non-default locales
16785         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
16786         falling back on the default system codepage, try extracting
16787         the codepage from what 'setlocale' returns.  This allows to
16788         take into account changes of the codeset due to non-default
16789         locale set by a previous call to 'setlocale'.
16790         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
16791         Define if not already defined.
16792         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
16793         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
16794         current locale by calling 'setlocale', then converting the
16795         locale name into LCID by calling 'get_lcid'.  This allows to
16796         take into account changes in the current locale from the
16797         default one, in contrast to GetThreadLocale.
16799 2014-07-14  Daiki Ueno  <ueno@gnu.org>
16801         announce-gen: avoid failure when Digest::SHA is installed
16802         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
16803         Digest::SHA1->new in print_checksums fails.
16804         * build-aux/announce-gen (digest_classes): New associative array
16805         for available message digest implementations.
16806         (print_locations): Use it.
16808 2014-07-13  Pádraig Brady  <P@draigBrady.com>
16810         gettext: revert "update macros to version 0.19"
16811         This reverts commit 9b9370ca, as it currently requires that
16812         developers of any project that explicitly uses the gettext module
16813         or implicitly uses it through the utimens-tests or
16814         futimens-tests modules, use gettext >= 0.19.
16815         However there are some stability and availablity issues with
16816         that version at present.  We can reinstate this soon, when stability
16817         is addressed and packages are more readily available.
16819 2014-07-12  Jim Meyering  <meyering@fb.com>
16821         regex: don't deref NULL upon heap allocation failure
16822         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
16823         failure in one more place.
16824         To trigger the segfault, configure grep -with-included-regex,
16825         build it, and run these commands:
16826         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
16827         I discovered this while replying to a private report from
16828         Jens Schleusener about excessive memory consumption by grep
16829         when using a regular expression like the one above.
16831 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16833         regex: fix memory leak in compiler
16834         Fix by Andreas Schwab in:
16835         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
16836         * lib/regcomp.c (parse_reg_exp): Deallocate partially
16837         constructed tree before returning error.
16839 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16841         announce-gen: avoid perl warnings
16842         * build-aux/announce-gen: add two minor checks to avoid
16843         "use of uninitialized value" warnings when command-line parameters are
16844         missing.
16846 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
16848         localename: avoid -Wsuggest-attribute={const,pure} warnings
16849         * lib/localename.c (string_has): Tag internal function as pure.
16850         * lib/localename.h (gl_locale_name_default): Tag extern declaration
16851         as const when appropriate.
16853 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
16855         nl_langinfo: Fix last change.
16856         * lib/nl_langinfo.c (includes): Drop redundant include.
16858 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
16860         error: Fix -Wundef warnings in glibc
16861         * lib/error.c [_LIBC]: Define default macros for
16862         glibc.
16863         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
16864         Check _LIBC before STRERROR_R_CHAR_P.
16866         error: Sync from glibc master
16867         * lib/error.c [_LIBC]: Remove INTUSE usage.
16868         (error_tail): Remove unused macro ALLOCA_LIMIT.
16869         Fix potential buffer overflow.  Fix potential NULL dereference
16870         in strcmp.
16872 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
16874         nl_langinfo: fix build under mingw
16875         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
16877 2014-07-09  Andrew D Warshall  <warshall@99main.com>
16879         mountlist: do not classify a bind-mounted dir entry as "dummy"
16880         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
16881         1-argument getmntent() (instead of assuming absence).
16883 2014-07-08  Eric Blake  <eblake@redhat.com>
16885         maint.mk: less syntax-check noise when SIGPIPE is ignored
16886         * top/maint.mk (_sc_header_without_use)
16887         (sc_require_config_h_first): Parse full list.
16889 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
16890             Paul Eggert  <eggert@cs.ucla.edu>
16892         nl_langinfo: CODESET on MS-Windows and more items from localeconv
16893         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
16894         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
16895         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
16896         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
16897         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
16898         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
16899         Include <stdio.h> if Microsoft Windows.
16900         Include <time.h> if !REPLACE_NL_LANGINFO.
16901         (ctype_codeset): New function, taken from rpl_nl_langinfo,
16902         and with improvements for Microsoft Windows.
16903         (rpl_nl_langinfo): Use it.
16904         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
16905         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
16906         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
16907         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
16908         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
16909         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
16910         corresponding values returned by 'localeconv'.  Compute the values
16911         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
16912         'strftime' with a suitable struct tm value.
16914 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
16916         Bruno Haible has stepped down as maintainer.
16917         See Karl Berry in:
16918         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
16919         Daiki Ueno has volunteered to maintain libunistring; see:
16920         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
16921         * modules/gen-uni-tables, modules/libunistring:
16922         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
16923         * modules/unicase/base, modules/unicase/cased:
16924         * modules/unicase/empty-prefix-context:
16925         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
16926         * modules/unicase/locale-language, modules/unicase/special-casing:
16927         * modules/unicase/tocasefold, modules/unicase/tolower:
16928         * modules/unicase/totitle, modules/unicase/toupper:
16929         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
16930         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
16931         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
16932         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
16933         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
16934         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
16935         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
16936         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
16937         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
16938         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
16939         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
16940         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
16941         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
16942         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
16943         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
16944         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
16945         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
16946         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
16947         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
16948         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
16949         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
16950         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
16951         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
16952         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
16953         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
16954         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
16955         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
16956         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
16957         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
16958         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
16959         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
16960         * modules/unicase/ulc-casexfrm, modules/unicodeio:
16961         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
16962         * modules/uniconv/u16-conv-to-enc:
16963         * modules/uniconv/u16-strconv-from-enc:
16964         * modules/uniconv/u16-strconv-from-locale:
16965         * modules/uniconv/u16-strconv-to-enc:
16966         * modules/uniconv/u16-strconv-to-locale:
16967         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
16968         * modules/uniconv/u32-strconv-from-enc:
16969         * modules/uniconv/u32-strconv-from-locale:
16970         * modules/uniconv/u32-strconv-to-enc:
16971         * modules/uniconv/u32-strconv-to-locale:
16972         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
16973         * modules/uniconv/u8-strconv-from-enc:
16974         * modules/uniconv/u8-strconv-from-locale:
16975         * modules/uniconv/u8-strconv-to-enc:
16976         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
16977         * modules/unictype/bidicategory-all:
16978         * modules/unictype/bidicategory-byname:
16979         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
16980         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
16981         * modules/unictype/bidiclass-byname:
16982         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
16983         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
16984         * modules/unictype/block-all, modules/unictype/block-list:
16985         * modules/unictype/block-of, modules/unictype/block-test:
16986         * modules/unictype/category-C, modules/unictype/category-Cc:
16987         * modules/unictype/category-Cf, modules/unictype/category-Cn:
16988         * modules/unictype/category-Co, modules/unictype/category-Cs:
16989         * modules/unictype/category-L, modules/unictype/category-LC:
16990         * modules/unictype/category-Ll, modules/unictype/category-Lm:
16991         * modules/unictype/category-Lo, modules/unictype/category-Lt:
16992         * modules/unictype/category-Lu, modules/unictype/category-M:
16993         * modules/unictype/category-Mc, modules/unictype/category-Me:
16994         * modules/unictype/category-Mn, modules/unictype/category-N:
16995         * modules/unictype/category-Nd, modules/unictype/category-Nl:
16996         * modules/unictype/category-No, modules/unictype/category-P:
16997         * modules/unictype/category-Pc, modules/unictype/category-Pd:
16998         * modules/unictype/category-Pe, modules/unictype/category-Pf:
16999         * modules/unictype/category-Pi, modules/unictype/category-Po:
17000         * modules/unictype/category-Ps, modules/unictype/category-S:
17001         * modules/unictype/category-Sc, modules/unictype/category-Sk:
17002         * modules/unictype/category-Sm, modules/unictype/category-So:
17003         * modules/unictype/category-Z, modules/unictype/category-Zl:
17004         * modules/unictype/category-Zp, modules/unictype/category-Zs:
17005         * modules/unictype/category-all, modules/unictype/category-and:
17006         * modules/unictype/category-and-not, modules/unictype/category-byname:
17007         * modules/unictype/category-longname, modules/unictype/category-name:
17008         * modules/unictype/category-none, modules/unictype/category-of:
17009         * modules/unictype/category-or, modules/unictype/category-test:
17010         * modules/unictype/category-test-withtable:
17011         * modules/unictype/combining-class:
17012         * modules/unictype/combining-class-all:
17013         * modules/unictype/combining-class-byname:
17014         * modules/unictype/combining-class-longname:
17015         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
17016         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
17017         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
17018         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
17019         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
17020         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
17021         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
17022         * modules/unictype/digit, modules/unictype/joininggroup-all:
17023         * modules/unictype/joininggroup-byname:
17024         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
17025         * modules/unictype/joiningtype-all:
17026         * modules/unictype/joiningtype-byname:
17027         * modules/unictype/joiningtype-longname:
17028         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
17029         * modules/unictype/mirror, modules/unictype/numeric:
17030         * modules/unictype/property-all, modules/unictype/property-alphabetic:
17031         * modules/unictype/property-ascii-hex-digit:
17032         * modules/unictype/property-bidi-arabic-digit:
17033         * modules/unictype/property-bidi-arabic-right-to-left:
17034         * modules/unictype/property-bidi-block-separator:
17035         * modules/unictype/property-bidi-boundary-neutral:
17036         * modules/unictype/property-bidi-common-separator:
17037         * modules/unictype/property-bidi-control:
17038         * modules/unictype/property-bidi-embedding-or-override:
17039         * modules/unictype/property-bidi-eur-num-separator:
17040         * modules/unictype/property-bidi-eur-num-terminator:
17041         * modules/unictype/property-bidi-european-digit:
17042         * modules/unictype/property-bidi-hebrew-right-to-left:
17043         * modules/unictype/property-bidi-left-to-right:
17044         * modules/unictype/property-bidi-non-spacing-mark:
17045         * modules/unictype/property-bidi-other-neutral:
17046         * modules/unictype/property-bidi-pdf:
17047         * modules/unictype/property-bidi-segment-separator:
17048         * modules/unictype/property-bidi-whitespace:
17049         * modules/unictype/property-byname:
17050         * modules/unictype/property-case-ignorable:
17051         * modules/unictype/property-cased:
17052         * modules/unictype/property-changes-when-casefolded:
17053         * modules/unictype/property-changes-when-casemapped:
17054         * modules/unictype/property-changes-when-lowercased:
17055         * modules/unictype/property-changes-when-titlecased:
17056         * modules/unictype/property-changes-when-uppercased:
17057         * modules/unictype/property-combining:
17058         * modules/unictype/property-composite:
17059         * modules/unictype/property-currency-symbol:
17060         * modules/unictype/property-dash:
17061         * modules/unictype/property-decimal-digit:
17062         * modules/unictype/property-default-ignorable-code-point:
17063         * modules/unictype/property-deprecated:
17064         * modules/unictype/property-diacritic:
17065         * modules/unictype/property-extender:
17066         * modules/unictype/property-format-control:
17067         * modules/unictype/property-grapheme-base:
17068         * modules/unictype/property-grapheme-extend:
17069         * modules/unictype/property-grapheme-link:
17070         * modules/unictype/property-hex-digit:
17071         * modules/unictype/property-hyphen:
17072         * modules/unictype/property-id-continue:
17073         * modules/unictype/property-id-start:
17074         * modules/unictype/property-ideographic:
17075         * modules/unictype/property-ids-binary-operator:
17076         * modules/unictype/property-ids-trinary-operator:
17077         * modules/unictype/property-ignorable-control:
17078         * modules/unictype/property-iso-control:
17079         * modules/unictype/property-join-control:
17080         * modules/unictype/property-left-of-pair:
17081         * modules/unictype/property-line-separator:
17082         * modules/unictype/property-logical-order-exception:
17083         * modules/unictype/property-lowercase, modules/unictype/property-math:
17084         * modules/unictype/property-non-break:
17085         * modules/unictype/property-not-a-character:
17086         * modules/unictype/property-numeric:
17087         * modules/unictype/property-other-alphabetic:
17088         * modules/unictype/property-other-default-ignorable-code-point:
17089         * modules/unictype/property-other-grapheme-extend:
17090         * modules/unictype/property-other-id-continue:
17091         * modules/unictype/property-other-id-start:
17092         * modules/unictype/property-other-lowercase:
17093         * modules/unictype/property-other-math:
17094         * modules/unictype/property-other-uppercase:
17095         * modules/unictype/property-paired-punctuation:
17096         * modules/unictype/property-paragraph-separator:
17097         * modules/unictype/property-pattern-syntax:
17098         * modules/unictype/property-pattern-white-space:
17099         * modules/unictype/property-private-use:
17100         * modules/unictype/property-punctuation:
17101         * modules/unictype/property-quotation-mark:
17102         * modules/unictype/property-radical:
17103         * modules/unictype/property-sentence-terminal:
17104         * modules/unictype/property-soft-dotted:
17105         * modules/unictype/property-space:
17106         * modules/unictype/property-terminal-punctuation:
17107         * modules/unictype/property-test, modules/unictype/property-titlecase:
17108         * modules/unictype/property-unassigned-code-value:
17109         * modules/unictype/property-unified-ideograph:
17110         * modules/unictype/property-uppercase:
17111         * modules/unictype/property-variation-selector:
17112         * modules/unictype/property-white-space:
17113         * modules/unictype/property-xid-continue:
17114         * modules/unictype/property-xid-start:
17115         * modules/unictype/property-zero-width, modules/unictype/scripts:
17116         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
17117         * modules/unictype/syntax-c-whitespace:
17118         * modules/unictype/syntax-java-ident:
17119         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
17120         * modules/unigbrk/u16-grapheme-breaks:
17121         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
17122         * modules/unigbrk/u32-grapheme-breaks:
17123         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
17124         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
17125         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
17126         * modules/unigbrk/uc-is-grapheme-break:
17127         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
17128         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
17129         * modules/unilbrk/u16-width-linebreaks:
17130         * modules/unilbrk/u32-possible-linebreaks:
17131         * modules/unilbrk/u32-width-linebreaks:
17132         * modules/unilbrk/u8-possible-linebreaks:
17133         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
17134         * modules/unilbrk/ulc-possible-linebreaks:
17135         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
17136         * modules/uniname/uniname, modules/uninorm/base:
17137         * modules/uninorm/canonical-decomposition:
17138         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
17139         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
17140         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
17141         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
17142         * modules/uninorm/nfkc, modules/uninorm/nfkd:
17143         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
17144         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
17145         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
17146         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
17147         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
17148         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
17149         * modules/unistdio/base, modules/unistdio/u-printf-args:
17150         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
17151         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
17152         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
17153         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
17154         * modules/unistdio/u16-u16-sprintf:
17155         * modules/unistdio/u16-u16-vasnprintf:
17156         * modules/unistdio/u16-u16-vasprintf:
17157         * modules/unistdio/u16-u16-vsnprintf:
17158         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
17159         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
17160         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
17161         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
17162         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
17163         * modules/unistdio/u32-u32-asnprintf:
17164         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
17165         * modules/unistdio/u32-u32-sprintf:
17166         * modules/unistdio/u32-u32-vasnprintf:
17167         * modules/unistdio/u32-u32-vasprintf:
17168         * modules/unistdio/u32-u32-vsnprintf:
17169         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
17170         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
17171         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
17172         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
17173         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
17174         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
17175         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
17176         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
17177         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
17178         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
17179         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
17180         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
17181         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
17182         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
17183         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
17184         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
17185         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
17186         * modules/unistr/u16-check, modules/unistr/u16-chr:
17187         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
17188         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
17189         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
17190         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
17191         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
17192         * modules/unistr/u16-move, modules/unistr/u16-next:
17193         * modules/unistr/u16-prev, modules/unistr/u16-set:
17194         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
17195         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
17196         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
17197         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
17198         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
17199         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
17200         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
17201         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
17202         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
17203         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
17204         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
17205         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
17206         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
17207         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
17208         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
17209         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
17210         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
17211         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
17212         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
17213         * modules/unistr/u32-next, modules/unistr/u32-prev:
17214         * modules/unistr/u32-set, modules/unistr/u32-startswith:
17215         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
17216         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
17217         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
17218         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
17219         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
17220         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
17221         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
17222         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
17223         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
17224         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
17225         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
17226         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
17227         * modules/unistr/u8-check, modules/unistr/u8-chr:
17228         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
17229         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
17230         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
17231         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
17232         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
17233         * modules/unistr/u8-next, modules/unistr/u8-prev:
17234         * modules/unistr/u8-set, modules/unistr/u8-startswith:
17235         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
17236         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
17237         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
17238         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
17239         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
17240         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
17241         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
17242         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
17243         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
17244         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
17245         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
17246         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
17247         * modules/uniwbrk/base, modules/uniwbrk/table:
17248         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
17249         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
17250         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
17251         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
17252         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
17253         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
17254         * modules/uniwidth/width, modules/utf16-ucs4:
17255         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
17256         * modules/utf8-ucs4-unsafe:
17257         Change maintainer from Bruno Haible to Daiki Ueno.
17258         This is my guess at the libunistring modules; please feel free
17259         to fix if I guessed incorrectly.
17260         * modules/accept4, modules/acl, modules/acos, modules/acosf:
17261         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
17262         * modules/areadlink, modules/array-list, modules/array-mergesort:
17263         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
17264         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
17265         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
17266         * modules/binary-io, modules/bison-i18n, modules/btowc:
17267         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
17268         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
17269         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
17270         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
17271         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
17272         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
17273         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
17274         * modules/closedir, modules/concat-filename, modules/copy-file:
17275         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
17276         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
17277         * modules/csharpcomp-script, modules/csharpexec:
17278         * modules/csharpexec-script, modules/ctype, modules/diffseq:
17279         * modules/dprintf, modules/dprintf-posix, modules/dup:
17280         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
17281         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
17282         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
17283         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
17284         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
17285         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
17286         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
17287         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
17288         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
17289         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
17290         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
17291         * modules/findprog, modules/findprog-lgpl, modules/floor:
17292         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
17293         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
17294         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
17295         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
17296         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
17297         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
17298         * modules/freadable, modules/freadahead, modules/freadptr:
17299         * modules/freadseek, modules/freopen, modules/frexp:
17300         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
17301         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
17302         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
17303         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
17304         * modules/ftello, modules/full-read, modules/full-write:
17305         * modules/fwritable, modules/fwriteerror, modules/gcd:
17306         * modules/get-rusage-as, modules/get-rusage-data:
17307         * modules/getdtablesize, modules/getrusage, modules/gettext:
17308         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
17309         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
17310         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
17311         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
17312         * modules/iconv, modules/iconv-h, modules/iconv_open:
17313         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
17314         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
17315         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
17316         * modules/integer_length_ll, modules/ioctl, modules/isatty:
17317         * modules/isblank, modules/isnand, modules/isnand-nolibm:
17318         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
17319         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
17320         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
17321         * modules/javaexec, modules/javaexec-script, modules/javaversion:
17322         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
17323         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
17324         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
17325         * modules/lib-symbol-visibility, modules/libsigsegv:
17326         * modules/linked-list, modules/linkedhash-list, modules/list:
17327         * modules/localcharset, modules/locale, modules/localeconv:
17328         * modules/localename, modules/lock, modules/log, modules/log-ieee:
17329         * modules/log10, modules/log10-ieee, modules/log10f:
17330         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
17331         * modules/log1p, modules/log1p-ieee, modules/log1pf:
17332         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
17333         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
17334         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
17335         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
17336         * modules/logf, modules/logf-ieee, modules/login_tty:
17337         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
17338         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
17339         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
17340         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
17341         * modules/mbscspn, modules/mbsinit, modules/mbslen:
17342         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
17343         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
17344         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
17345         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
17346         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
17347         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
17348         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
17349         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
17350         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
17351         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
17352         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
17353         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
17354         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
17355         * modules/posix_spawn, modules/posix_spawn-internal:
17356         * modules/posix_spawn_file_actions_addclose:
17357         * modules/posix_spawn_file_actions_adddup2:
17358         * modules/posix_spawn_file_actions_addopen:
17359         * modules/posix_spawn_file_actions_destroy:
17360         * modules/posix_spawn_file_actions_init:
17361         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
17362         * modules/posix_spawnattr_getpgroup:
17363         * modules/posix_spawnattr_getschedparam:
17364         * modules/posix_spawnattr_getschedpolicy:
17365         * modules/posix_spawnattr_getsigdefault:
17366         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
17367         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
17368         * modules/posix_spawnattr_setschedparam:
17369         * modules/posix_spawnattr_setschedpolicy:
17370         * modules/posix_spawnattr_setsigdefault:
17371         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
17372         * modules/pow, modules/powf, modules/printf-frexp:
17373         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
17374         * modules/progname, modules/propername, modules/pselect:
17375         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
17376         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
17377         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
17378         * modules/read, modules/readdir, modules/readlink:
17379         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
17380         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
17381         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
17382         * modules/relocatable-script, modules/remainder:
17383         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
17384         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
17385         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
17386         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
17387         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
17388         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
17389         * modules/setlocale, modules/sh-quote, modules/shutdown:
17390         * modules/signal, modules/signbit, modules/sigpipe:
17391         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
17392         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
17393         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
17394         * modules/snippet/link-warning, modules/snippet/unused-parameter:
17395         * modules/snprintf, modules/snprintf-posix, modules/spawn:
17396         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
17397         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
17398         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
17399         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
17400         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
17401         * modules/streq, modules/strerror_r-posix, modules/striconv:
17402         * modules/striconveh, modules/striconveha, modules/strncat:
17403         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
17404         * modules/sublist, modules/sys_resource, modules/sys_utsname:
17405         * modules/sys_wait, modules/system-posix, modules/system-quote:
17406         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
17407         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
17408         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
17409         * modules/truncf, modules/truncf-ieee, modules/truncl:
17410         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
17411         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
17412         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
17413         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
17414         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
17415         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
17416         * modules/wait-process, modules/waitpid, modules/wcpcpy:
17417         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
17418         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
17419         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
17420         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
17421         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
17422         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
17423         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
17424         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
17425         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
17426         * modules/write, modules/xconcat-filename, modules/xlist:
17427         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
17428         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
17429         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
17430         * modules/y0, modules/y1, modules/yn:
17431         Remove Bruno Haible as maintainer; if he's the sole maintainer,
17432         change the maintainer to 'all'.  Let's hope someone volunteers.
17434 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
17436         mktime: merge #if/#ifdef usage from glibc
17437         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
17438         as that works with both Glibc's and Gnulib's style.
17439         See thread starting at Siddhesh Poyarekar's bug report at:
17440         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
17442 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
17444         git-version-gen: improve option descriptions
17445         * build-aux/git-version-gen: Mention that --prefix and --fallback
17446         have a mandatory argument.
17448 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17450         regex: fix memory leak in compiler
17451         Fix by Andreas Schwab in:
17452         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
17453         * lib/regcomp.c (parse_expression): Deallocate partially
17454         constructed tree before returning error.
17456         regex: merge patch from libc
17457         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
17458         Combine __USE_BSD and __USE_SVID into __USE_MISC.
17459         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
17461 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
17463         acl: port to gcc -Wredundant-decls
17464         From a request by Dmitry Antipov in:
17465         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
17466         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
17467         "#ifndef _GL_ACL_H".
17469 2014-06-11  Bruce Korb  <bkorb@gnu.org>
17470         Jim Meyering  <meyering@fb.com>
17472         parse-duration: eliminate 68-year duration limit
17473         * lib/parse-duration.c: Include "intprops.h".
17474         (TIME_MAX): Rename to MAX_DURATION and define to
17475         TYPE_MAXIMUM(time_t).
17476         * modules/parse-duration (Depends-on): Add intprops.
17477         Reported by Jonas 'Sortie' Termansen.
17479 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17481         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
17482         * modules/pthread (Depends-on): Add 'extensions', as it defines
17483         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
17484         (configure.ac-early): New section.
17485         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
17486         it is no longer needed.
17488 2014-06-14  Pádraig Brady  <P@draigBrady.com>
17490         pthread: define thread-safe macros on some platforms
17491         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
17492         for thread-safe operation on some platforms.
17494 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17496         regex: don't be multithreaded if USE_UNLOCKED_IO.
17497         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
17498         * lib/regex_internal.h: Do not use multithreaded version if
17499         USE_UNLOCKED_IO is defined.  This is a hack, but it works
17500         around a porting bug with coreutils 8.22 on AIX 7.1.
17502 2014-06-11  Daiki Ueno  <ueno@gnu.org>
17504         gettext: update macros to version 0.19
17505         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
17506         depend on gl_EXTERN_INLINE and drop support for older Bison
17507         versions.
17509 2014-06-10  Pádraig Brady  <P@draigBrady.com>
17511         select,poll: fix console handle check on windows 8
17512         lib/poll.c (IsConsoleHandle): Change from testing the lower
17513         2 bits of the handle to the more expensive but accurate syscall.
17514         lib/select.c: Likewise.
17516 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17518         select: fix waiting on anonymous pipes on MS-Windows
17519         * lib/select.c (rpl_select): Fall back to polling when select()
17520         indicates there is nothing to check, while due to the timeout not
17521         expiring, activity is indicated on one of the handles.
17522         Also clear the TIMEOUT argument if the timer does expire.
17524 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
17526         times: fix to return non constant value on MS-Windows
17527         * lib/times.c (times): Don't use the process creation time,
17528         rather clock() which on windows returns the number of
17529         clock ticks since the process started.
17531 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
17533         isatty: fix to work on windows 8
17534         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
17535         2 bits of the handle to the more expensive but accurate syscall.
17537 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17539         maint: fix typo in fdl.texi
17540         * doc/fdl.texi: Fix typo (missing '@').
17541         Somehow this was in fdl.texi but not fdl-1.3.texi.
17543 2014-06-06  Ben Walton  <bdwalton@gmail.com>
17545         mountlist: avoid hasmntopt const type warning on solaris
17546         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
17547         with char * instead of const char *.  Passing the constant string
17548         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
17549         to avoid the warning.
17551 2014-06-04  Eric Blake  <eblake@redhat.com>
17553         maintainer-makefile: delete obsolete code
17554         * top/maint.mk (build_aux): Drop old code, as threatened.
17556         maintainer-makefile: avoid spurious error messages
17557         * top/maint.mk (syntax-check): Guard definition and use of
17558         $(shell) by whether Makefile is present.
17560 2014-06-03  Ben Walton  <bdwalton@gmail.com>
17562         rename: avoid unused-but-set-variable compiler warning
17563         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
17564         it is possible that dst_exists may be set but not used.  Mark it with
17565         the unused attribute to avoid compiler warnings.
17567 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17569         rename: mark a label as potentially unused
17570         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
17571         by marking the out label as potentially unused.
17572         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
17574 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
17576         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
17577         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
17579 2014-06-02  Ben Walton  <bdwalton@gmail.com>
17581         acl: apply pure attribute to two functions
17582         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
17583         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
17585 2014-06-01  Pádraig Brady  <P@draigBrady.com>
17587         gnulib-common.m4: add _GL_UNUSED_LABEL
17588         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
17589         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
17591 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
17593         dup2, fcntl, fcntl-h: port to AIX 7.1
17594         This fixes some porting problems discovered when testing the latest
17595         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
17596         in grep but it could be important for other applications.
17597         * doc/posix-functions/dup2.texi:
17598         * doc/posix-functions/fcntl.texi:
17599         * doc/posix-headers/fcntl.texi:
17600         Document AIX bugs.
17601         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
17602         Define to 0 if outside 'int' range.
17603         * m4/dup2.m4 (gl_FUNC_DUP2):
17604         * m4/fcntl.m4 (gl_FUNC_FCNTL):
17605         Check for getdtablesize.  If it's available, test a value just
17606         outside its range instead of testing 1000000.  When cross-compiling,
17607         guess that AIX will fail this improved test.
17609 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
17611         printf, config.rpath: Port to FreeBSD 10.
17612         Problem reported by Tijl Coosemans in:
17613         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
17614         * build-aux/config.rpath (hardcode_libdir_flag_spec)
17615         (hardcode_direct): Simplify FreeBSD configuration.
17616         (library_names_spec): Don't mishandle FreeBSD 10+.
17617         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
17618         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
17619         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
17620         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
17621         Don't mishandle FreeBSD 10+ when cross-compiling.
17623         ftoastr: work around compiler bug in IBM xlc 12.1
17624         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
17625         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
17626         around a compiler bug in IBM xlc 12.1.0.0: it complains
17627         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
17628         _GL_FLT_PREC_BOUND.'
17630 2014-05-30  Kieran Colford  <colfordk@gmail.com>
17632         valgrind-tests: fixed misleading help message
17633         * m4/valgrind-tests.m4: The help message generated by configure
17634         implied that valgrind was disabled by default, which it wasn't.
17635         Adjusted the help message using s/enable/disable/ to clarify.
17637 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
17639         isfinite, isinf, isnan tests: fix for little-endian PowerPC
17640         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
17641         first double of a PowerPC "double double" pair.
17642         * tests/test-isinf.c (test_isinfl): Likewise.
17643         * tests/test-isnan.c (test_long_double): Likewise.
17644         * tests/test-isnanl.h (main): Likewise.
17645         * tests/test-signbit.c (test_signbitl): Likewise.
17647 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17649         exclude-tests: port to AIX 7.1
17650         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
17651         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
17652         the regex code uses locks.
17654 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
17656         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
17657         Without this fix, Emacs would sometimes call sigprocmask instead
17658         of pthread_sigmask, which is a no-no in multithreaded applications.
17659         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
17660         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
17661         Suppress check for pthread_sigmask working without -lpthread if
17662         the application always links with -lpthread.  Do not link with
17663         $LIBMULTITHREAD if gl_THREADLIB is not defined.
17664         * m4/timer_time.m4 (gl_TIMER_TIME):
17665         Require gl_THREADLIB only if it is defined.  Do not append
17666         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
17668 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
17670         gnulib-tool: wget translations using --no-verbose rather than --quiet
17671         This allows the user to see error messages if any (--quiet hides them)
17672         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
17674 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
17676         gnulib-tool: adjust translation wget to avoid a https redirection
17677         Context: http://translationproject.org/latest/gnulib redirects to
17678            https://translationproject.org/latest/gnulib/
17679         Rationale: if the user falls back to wget, she doesn't have rsync and
17680         is probably in a minimal build environment, where packages such as
17681         'ca-certificates' are missing as well, resulting in a failed (and
17682         difficult to detect since ignored) translation initial fetch.
17683         Consequently let's avoid https if possible, and add the missing
17684         trailing slash.  This also avoids an unnecessary 302 redirection.
17685         * gnulib-tool: Add trailing slash to gnulib URL.
17687 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17689         getlogin_r-tests: check return value rather than errno
17690         * tests/test-getlogin_r.c (main): As per POSIX we should be
17691         verifying the return value from getlogin_r() rather than errno.
17693 2014-05-22  Pádraig Brady  <P@draigBrady.com>
17695         getlogin_r-tests: fix various issues in recent change
17696         * tests/test-getlogin_r.c: Include required headers that were
17697         missed in recent commit eec20b4e.
17698         Also consistently check the errno rather than the return value from
17699         getlogin_r as POSIX only specifies that non zero is returned on error.
17700         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
17702 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17704         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
17705         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
17706         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
17707         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
17708         * lib/spawn-pipe.c:
17709         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
17710         and then 'int open64(const char *, int, ...);', which means the
17711         declaration for 'open' gets lost if we later '#undef open'.
17712         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
17713         where the compilation reported the non-fatal error "In function
17714         'openat_proc_name' ... warning: implicit declaration of function
17715         'open'".  In this case the error is relatively harmless, but in
17716         other cases it might not be so minor.
17718 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17720         xalloc: don't potentially generate invalid code for xmemdup calls
17721         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
17722         this function can initialize the newly-allocated storage with new
17723         pointers, which means this function is not malloc-like.  See:
17724         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
17726 2014-05-19  Pádraig Brady  <P@draigBrady.com>
17728         getlogin_r-tests: avoid false failure under sudo/ssh etc.
17729         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
17730         changes from commit 97249cf29 to not depend on environment variables.
17732 2014-05-18  Pádraig Brady  <P@draigBrady.com>
17734         getlogin-tests: avoid false failure under cron
17735         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
17736         since that's not what's under test.  Centos 6 was seen to return
17737         EINVAL for ttyname() when run from cron.
17739 2014-05-16  Jim Meyering  <meyering@fb.com>
17741         mbrtowc.m4: fix a comment typo
17742         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
17743         emitted documentation string.
17745 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17747         mbrlen, mbrtowc: fix bug with empty input
17748         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
17749         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
17750         so this is mainly for documentation.
17751         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
17752         (gl_FUNC_MBRTOWC): Use it.
17753         * tests/test-mbrtowc.c (main): Test for the bug.
17755 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
17757         doc: document mbrtowc and mbrlen problem with empty input
17758         * doc/posix-functions/mbrlen.texi (mbrlen):
17759         * doc/posix-functions/mbrtowc.texi (mbrtowc):
17760         Document portability problem when the input string is empty.  See:
17761         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
17763         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
17764         Problem reported by Eli Zaretskii in:
17765         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
17766         * doc/posix-functions/execl.texi (execl):
17767         * doc/posix-functions/execle.texi (execle):
17768         * doc/posix-functions/execlp.texi (execlp):
17769         * doc/posix-functions/execv.texi (execv):
17770         * doc/posix-functions/execve.texi (execve):
17771         * doc/posix-functions/execvp.texi (execvp):
17772         Mention spawn+exit problem on non-Cygwin Windows platforms.
17774 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
17776         getlogin-tests: avoid false failure under sudo/ssh etc.
17777         * modules/getlogin-tests (configure.ac): Check for ttyname().
17778         * tests/test-getlogin.c (main): Don't depend on environment variables
17779         to correlate with getlogin(), since sudo and ssh etc. can tamper
17780         with the LOGNAME and USER env vars.  Instead lookup the name from
17781         the uid associated with the stdin tty.
17783 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17785         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
17786         These were found when building the latest grep snapshot on IRIX 6.5.
17787         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
17788         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
17789         never used later.
17790         * lib/quotearg.c (quoting_options_from_style):
17791         * lib/xstrtol.c (__xstrtol):
17792         Use enum instead of 0, to pacify IRIX 6.5 cc.
17794 2014-04-18  Pádraig Brady  <P@draigBrady.com>
17796         gitlog-to-changelog: revert inclusion of git-log-fix file
17797         * build-aux/git-log-fix: Delete dummy file.
17798         * modules/gitlog-to-changelog: Don't reference (overwrite)
17799         the project specific git-log-fix file.
17801 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
17803         maint.mk: Relax the copyright check to cater for non FSF projects
17804         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
17805         to not require the "Free" suffix after the copyright years.
17807 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
17809         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
17810         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
17811         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
17812         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
17813         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
17815 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
17817         exclude: port to strict C99
17818         Strict C does not allow converting a function pointer to void *
17819         and vice versa.  Pass a pointer to a function pointer instead.
17820         * lib/exclude.c (add_exclude_file):
17821         Pass the address of the function pointer.
17822         (call_addfn): And deference the address here, to match.
17824 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
17826         regex: do not depend on malloc-gnu
17827         * modules/regex (Depends-on): Remove malloc-gnu.
17828         It's no longer needed, because of the 2012-12-29 patch
17829         "regex: port to hosts where malloc (0) == NULL".
17830         Reported by Nathan Kennedy in:
17831         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
17833 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
17835         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
17836         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
17837         * doc/posix-functions/expl.texi: Mention the workaround.
17839 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
17841         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
17842         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
17843         size to be zero even when the pointer is nonnull.  This
17844         accommodates the use case where P is malloc (0) and *PN is 0 on a
17845         host where malloc (0) yields nonnull.
17847 2014-04-09  Eric Blake  <eblake@redhat.com>
17849         fts: avoid unnecessary strlen calls
17850         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
17852 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17854         fts: avoid unnecessary strlen calls
17855         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
17856         when that can be faster than strlen.
17858 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17860         fts: avoid unnecessary strlen calls
17861         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
17862         (fts_build): Store the length of the dp->d_name entry in a local variable
17863         instead of calling strlen() several times via the above, removed macro.
17864         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
17865         run by ~4%, yet this reduces the execution time by about a third if run
17866         via "ltrace -c rm -rf some-dir".
17868 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17870         obstack: Remove ancient NeXTSTEP gcc support conditional
17871         This change will ease merging with glibc.  The "#if ... __NEXT__"
17872         causes a warning with -Wundef which glibc now enables by default.
17873         Problem reported by Will Newton in
17874         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
17875         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
17876         so go with that.
17877         * lib/obstack.h (__extension__):
17879 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
17881         obstack: merge with glibc changes
17882         * lib/obstack.c, lib/obstack.h: Merge from glibc.
17883         This is mostly indenting and commentary changes.
17884         Instances of 'register' have been removed.
17886 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17888         strftime: wrap macros in "do {...} while(0)"
17889         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
17890         this macro in "do {...} while(0)" to prevent false use as a
17891         single statement, e.g., in an un-braced "{}" else-block.
17892         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
17893         (strftime_case_): Remove 'else' after 'goto' - which was the
17894         only non-fatal, un-braced use of one of the above macros.
17895         Spotted by coverity (NESTING_INDENT_MISMATCH).
17897 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
17899         modechange: avoid memory leaks for invalid octal modes
17900         * lib/modechange.c (mode_compile): During the parsing of
17901         notations like +40, free the 'mc' buffer for invalid mode
17902         strings like +17777 (greater than the maximum octal mode),
17903         =18 (bad octal mode characters) or u=1 ('affected' with
17904         octal modes).
17905         Reproducer, e.g.:
17906             $ valgrind --leak-check=full chmod +17777 file
17907         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
17908         add notations +40, 00440, etc.".
17909         Spotted by coverity (RESOURCE_LEAK).
17911 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17913         gitlog-to-changelog: include a dummy git-log-fix file
17914         Problem reported by Nathan Stratton Treadway in:
17915         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
17916         * build-aux/git-log-fix: New file.
17918 2014-03-13  Jim Meyering  <meyering@fb.com>
17920         gitlog-to-changelog: also include the file, git-log-fix
17921         * modules/gitlog-to-changelog (Files): Add git-log-fix.
17922         Reported by Assaf Gordon.
17924 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
17926         regex: port to OS X 10.8.5 en_US.UTF-8 locale
17927         This fixes a bug when ignoring case and when comparing the
17928         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
17929         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
17930         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
17931         titlecase letter is neither lowercase nor uppercase, but
17932         uppercasing the titlecase letter (via towupper) yields the
17933         uppercase letter, so the two letters should match when ignoring case.
17934         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
17935         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
17936         Don't test whether a character is lowercase before uppercasing it.
17938 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
17940         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
17941         This is basically one of the options Bruno Haible proposed in:
17942         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
17943         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
17944         * lib/stdint.in.h: Use it.
17945         * modules/stdint (Depends-on): Add sys_types.
17947 2014-02-26  Pádraig Brady  <P@draigBrady.com>
17949         parse-datetime: fix crash or infloop in TZ="" parsing
17950         * lib/parse-datetime.y (parse_datetime): Break out of the
17951         TZ="" parsing loop once the second significant " is found.
17952         Also skip over any subsequent whitespace to be consistent
17953         with the non TZ= case.
17954         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
17956 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
17958         savedir: new symbol for fast-read version
17959         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
17960         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
17961         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
17962         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
17964 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
17966         unistd: port readlink to Mac OS X 10.3.9
17967         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
17968         around self-include problem in Mac OS X 10.3.9 when combined with
17969         readlink module.  Problem reported by Klaus Zietler in
17970         <http://bugs.gnu.org/16825>.
17972 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
17974         diffseq: remove TOO_EXPENSIVE heuristic
17975         Problem with diffutils reported by Vincent Lefevre in
17976         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
17977         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
17978         Although appropriate for circa-1993 hardware, these days the heuristic
17979         seems to be more trouble than it's worth.
17980         * lib/diffseq.h: Modernize citations.
17981         (struct context): Remove member too_expensive.
17982         All uses changed.
17983         (struct partition): Remove members lo_minimal, hi_minimal.
17984         All uses changed.
17985         (diag, compareseq): Remove arg find_minimal.  All uses changed.
17986         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
17987         1993 to make 'diff' run faster (but not as well) on large inputs.
17988         These days, computers are fast enough that it's typically better
17989         to run slower but more accurately.
17990         * lib/fstrcmp.c: Remove duplicate comment.
17991         * lib/fstrcmp.c (strcmp_bounded):
17992         * lib/git-merge-changelog.c (compute_differences):
17993         Adjust to diffseq.h changes.
17994         * NEWS: Document the change.
17996         savedir: simplify by using stpcpy
17997         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
17998         (streamsavedir): Use stpcpy instead.
17999         * modules/savedir (Depends-on): Add stpcpy.
18001 2014-02-21  Pádraig Brady  <P@draigBrady.com>
18003         spawn: fix link error on uclibc
18004         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
18005         to incorporate -lrt if needed (on uclibc for example).
18006         * modules/posix_spawn: Reference the substituted LIB.
18008 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
18009         timer: fix uClibc detection of threading
18010         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
18011         enabled in uClibc.
18013 2014-02-21  Eric Blake  <eblake@redhat.com>
18015         maintainer-makefiles: provide AC_PROG_SED for older autoconf
18016         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
18018 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
18020         exclude: add support for posix regexps
18022         This commit adds support for POSIX extended regular expressions
18023         and fixes a long-standing memory leak (pattern buffer was never
18024         freed).  It also implements a new interface function to read
18025         exclude patterns from a FILE, which passes an additional parameter
18026         to its callback function, thereby allowing to preserve its state
18027         between invocations.
18029         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
18030         (pattern_buffer): New struct.
18031         (exclude): New member patbuf.
18032         (exclude_add_pattern_buffer): New function.
18033         (free_exclude_segment): Free regexps.
18034         (free_exclude): Free allocated pattern buffers.
18035         (exclude_patopts): New function.
18036         (file_pattern_matches): Use exclude_patopts.
18037         (add_exclude): support regexps.
18038         (add_exclude_fp): New function.
18039         (add_exclude_file): Rewrite using add_exclude_fp.
18040         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
18041         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
18042         (add_exclude_fp)
18043         (add_exclude_file): Rewrite using add_exclude_fp.
18044         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
18045         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
18046         (add_exclude_fp)
18047         (exclude_add_pattern_buffer): New prototypes.
18048         * modules/exclude: Depends on regex and filename.
18050 2014-02-20  Eric Blake  <eblake@redhat.com>
18052         maintainer-makefiles: use $(SED) for syntax check
18053         * modules/maintainer-makefile (configure.ac): Check for sane sed.
18054         * top/maint.mk: Change sed to $(SED).
18056 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
18057             Paul Eggert  <eggert@cs.ucla.edu>
18059         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
18060         Patch based on an idea by Dick Streefland in
18061         <https://savannah.gnu.org/patch/?7892>.
18062         * NEWS: Document this.
18063         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
18064         (direntry_t, comparison_function): New types.
18065         (direntry_cmp_name): New function.
18066         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
18067         (streamsavedir, savedir): New arg OPTION.
18068         (streamsavedir): Simplify memory allocation.
18069         (fdsavedir): Remove.
18070         * lib/savedir.h (enum savedir_option): New type.
18071         (streamsavedir, savedir): New arg OPTION.
18072         (fdsavedir): Remove.
18074 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
18076         file-type: add support for doors and other less-common file types
18077         Problem with S_ISDOOR reported by Rich Burridge.
18078         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
18079         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
18080         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
18082 2014-01-23  Eric Blake  <eblake@redhat.com>
18084         pthread: work around winpthread header pollution on mingw
18085         * lib/time.in.h: Move pthread workarounds...
18086         * lib/pthread.in.h: ...here.
18087         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
18088         detect macro pollution on mingw.
18089         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
18091 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
18093         qacl: check for fchmod
18094         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
18095         and qset-acl.c both use HAVE_FCHMOD.
18097 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18099         fdopen-tests: port to Tru64
18100         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
18101         descriptor that is not open, as POSIX doesn't specify the
18102         resulting behavior and the test does not work on Tru64.
18103         Problem reported by Steven M. Schweda in:
18104         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
18106         stdalign: port to HP-UX compilers
18107         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
18108         if __HP_cc or __HP_aCC are nonzero.
18110 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
18112         strtoimax: port to platforms lacking 'long long'
18113         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
18114         check whether strtoll is declared, which causes the C file to
18115         wrongly report an error.  Problem reported by Steven M. Schweda in:
18116         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
18117         * lib/strtoimax.c (strtoull):
18118         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
18119         (strtoll): Declare only if HAVE_LONG_LONG_INT.
18121 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
18123         relocatable-perl: fix texi syntax
18124         * doc/relocatable-maint.texi: Escape braces.
18126 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
18128         relocatable-perl: like relocatable-script, but for Perl scripts
18129         * build-aux/relocatable.pl.in: Add.
18130         * doc/relocatable-maint.texi: Add documentation.
18131         * modules/relocatable-perl: Add.
18133 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
18135         tests: fix export bug in previous patch
18136         Problem reported by Jim Meyering.
18137         * tests/init.sh (re_shell): New var, which is exported instead of
18138         re_shell_.
18140         tests: simplify porting to Solaris 10 /bin/sh
18141         Some test cases in 'grep' need a shell that groks '$(';
18142         export re_shell_ for their benefit.  Problem reported for 'grep'
18143         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
18144         * tests/init.sh (re_shell_): Export if it's used.
18146 2014-01-06  Eric Blake  <eblake@redhat.com>
18148         md5, sha1, sha256, sha512: support older autoconf
18149         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
18150         for autoconf < 2.63b.
18152         include_next: port to autoconf 2.63
18153         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
18155 2014-01-04  Jim Meyering  <meyering@fb.com>
18157         maint: add a gnulib-local rule to keep non-ascii out of .texi files
18158         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
18159         so that "make sc_maint" will ding anyone who puts non-ascii
18160         in any of gnulib's .texi files.
18162 2014-01-03  Jim Meyering  <meyering@fb.com>
18164         freadable, fwritable, fwriting: declare with the "pure" attribute
18165         * lib/freadable.h (freadable): Declare with the "pure" attribute.
18166         * lib/fwritable.h (fwritable): Likewise.
18167         * lib/fwriting.h (fwriting): Likewise.
18168         Suggested by Bruno Haible.
18170         maint.mk: adapt openat.h-include-without-use test
18171         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
18172         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
18173         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
18174         With this change, running "make sc_maint" in gnulib's top-level
18175         directory now passes for me.
18177 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
18179         doc: use ASCII in .texi files where UTF-8 isn't needed
18180         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
18181         * doc/posix-functions/setkey.texi, doc/regex.texi:
18182         Use ASCII input, not UTF-8.
18184 2014-01-02  Jim Meyering  <meyering@fb.com>
18186         freading: declare with the "pure" attribute
18187         * lib/freading.h (freading): Declare with the "pure" attribute.
18189         manywarnings: remove -Wmudflap
18190         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
18191         it is no longer supported in gcc-4.9-to-be.
18193 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18195         relocatable-script: remove unused code
18196         Problem reported by Reuben Thomas in:
18197         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
18198         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
18200 2014-01-01  Jim Meyering  <meyering@fb.com>
18202         maint: fix public-submodule-commit to work with newer git
18203         * top/maint.mk (public-submodule-commit): Remove excess quoting.
18204         We were over-quoting the test arguments, and somewhere prior to
18205         version 1.8.5.2.229, git stopped removing those excess quotes,
18206         which made the test fail, since the unexpanded strings would
18207         always differ; using GIT_TRACE=1 confirmed that the git merge-base
18208         command wasn't even being run.
18210 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
18212         doc: update main copyright year
18213         * doc/gnulib.texi: Update copyright date.
18215 2014-01-01  Eric Blake  <eblake@redhat.com>
18217         version-etc: new year
18218         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
18219         * all files: run 'make update-copyright'
18221 2013-12-24  Eric Blake  <eblake@redhat.com>
18223         passfd: give nicer error for recvfd at eof
18224         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
18225         * tests/test-passfd.c (main): Enhance test to cover this.
18227 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18229         gettimeofday: port recent C++ fix to Emacs
18230         Without this further patch, Emacs won't build due to
18231         the portcheck failing.  Also, this simplifies the patch a bit.
18232         * lib/time.in.h (localtime, gmtime): Don't replace unless
18233         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
18234         * lib/time.in.h (localtime, gmtime):
18235         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
18236         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18237         * modules/time (time.h):
18238         Don't worry about the possibility of localtime and gmtime
18239         being absent; they're present in all C libraries we know about.
18240         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
18241         Don't assume sys_time is present and has been initialized.
18242         Instead, use a hack that should work even if it hasn't been.
18243         Don't use a portcheck for gmtime or localtime; this supports
18244         the hack.
18245         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
18247 2013-12-17  John W. Eaton  <jwe@gnu.org>
18249         gettimeofday: fix C++ crosscompilation
18251         Never replace gmtime and localtime by macros when compiling with
18252         C++, this prevents <ctime> from being included.
18254         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
18255         define gmtime and localtime as preprocessor macros.  Instead
18256         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
18257         REPLACE_LOCALTIME substitutions.
18258         * lib/time.in.h: Declare gmtime and localtime when needed.
18259         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
18260         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
18261         * modules/time: Depend on gettimeofday, and substitute the above
18262         variables in time.h.
18264 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
18266         qacl: port to Windows better
18267         See Eli Zaretskii in
18268         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
18269         * lib/file-has-acl.c (acl_access_nontrivial):
18270         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
18271         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
18273 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
18275         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
18276         * lib/gl_openssl.h: Cast void pointers to a specific type.
18278 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18280         open-tests: fix build failure with -Werror=old-style-declaration
18281         * tests/test-open.h: Reorder the inline to avoid the issue.
18283 2013-12-07  Pádraig Brady  <P@draigBrady.com>
18285         md5, sha1, sha256, sha512: fix link error with partial libcrypto
18286         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
18287         init time, so that if early checks find crypto routines,
18288         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
18289         avoiding link failures.
18291 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
18293         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
18294         This provides a new way to specify the default for
18295         gl_CRYPTO_CHECK, one that is reflected in the --help message.
18296         Emacs uses this, as well as the old way.
18297         This attempts to implement a suggestion by Pádraig Brady in
18298         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
18299         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
18300         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
18302         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
18303         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
18304         Add support for a new option, --with-openssl=auto, which causes
18305         the library to be used if available and silently ignored if not.
18306         Add support to allow configure.ac to specify its own
18307         default, by setting with_openssl_default before invoking gl_INIT.
18309 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
18311         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
18312         Problem reported by Daiki Ueno in:
18313         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
18314         * tests/test-open.h (__always_inline):
18315         New macro, if not already defined.
18316         (test_open): Use it.
18318 2013-12-04  Eric Blake  <eblake@redhat.com>
18320         include_next: minimize code duplication
18321         * modules/include_next (Depends-on): Add absolute-header.
18322         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
18323         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
18325 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18327         getcwd: fix compile error in configure check
18328         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
18330 2013-12-04  Pádraig Brady  <P@draigBrady.com>
18332         regex: suppress core dumps from detection code
18333         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
18334         to suppress core dumps that may well occur on glibc systems.
18335         These core dumps might not be cleaned up automatically, or could
18336         trigger some system core dump handling logic.
18338 2013-12-03  Pádraig Brady  <P@draigBrady.com>
18340         md5, sha1, sha256, sha512: support mandating use of openssl
18341         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
18342         description, to list the now 3 separate options.  also don't
18343         mention the default=no, since this is implicit given the option
18344         is described as --with-openssl rather than --without-openssl.
18345         If projects change the default they're free to document that.
18346         with --with-openssl[=yes] we now error out when the specified
18347         hash algorithm is not available in libcrypto.
18349 2013-12-03  Ivailo  <xakepa10@gmail.com>
18351         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
18352         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
18353         -Wformat-nonliteral checks, as these edge cases are part of the test.
18355 2013-12-03  Eric Blake  <eblake@redhat.com>
18357         regex: avoid glibc deadlock during configure
18358         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
18359         glibc bug 15078 in turn triggers bug 16159.
18360         Reported by Michal Privoznik.
18362 2013-12-02  Pádraig Brady  <P@draigBrady.com>
18364         md5, sha1, sha256, sha512: use openssl routines if available.
18365         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
18366         routines will be used if available, requiring apps to link @LIB_CRYPTO@
18367         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
18368         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
18369         in the standard system location.
18370         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
18371         * m4/sha256.m4: Likewise with SHA256.
18372         * m4/sha512.m4: Likewise with SHA512.
18373         * m4/md5.m4: Likewise with MD5.
18374         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
18375         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
18376         * lib/sha256.h: Likewise with SHA256.
18377         * lib/sha512.h: Likewise with SHA512.
18378         * lib/md5.h: Likewise with MD5.
18379         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
18380         * lib/sha256.c: Likewise with SHA256.
18381         * lib/sha512.c: Likewise with SHA512.
18382         * lib/md5.c: Likewise with MD5.
18383         * modules/crypto/sha1 (Link:): Add the new optional lib.
18384         (Depends-on:): Add dependency on extern-inline.
18385         * modules/crypto/sha256: Likewise.
18386         * modules/crypto/sha512: Likewise.
18387         * modules/crypto/md5: Likewise.
18388         * modules/crypto/sha1-tests: Reference the lib here too.
18389         * modules/crypto/md5-tests: Likewise.
18390         * modules/crypto/gc-des-tests: Likewise.
18391         * modules/crypto/gc-hmac-md5-tests: Likewise.
18392         * modules/crypto/gc-hmac-sha1-tests: Likewise.
18393         * modules/crypto/gc-hmac-sha256-tests: Likewise.
18394         * modules/crypto/gc-hmac-sha512-tests: Likewise.
18395         * modules/crypto/gc-md5-tests: Likewise.
18396         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
18397         * modules/crypto/gc-sha1-tests: Likewise.
18398         * modules/crypto/gc-tests: Likewise.
18399         * modules/crypto/hmac-md5-tests: Likewise.
18400         * modules/crypto/hmac-sha1-tests: Likewise.
18401         * modules/crypto/hmac-sha256-tests: Likewise.
18402         * modules/crypto/hmac-sha512-tests: Likewise.
18404 2013-11-29  RV1971  <rv1971@web.de>
18406         base64: (trivial) fix compilation regression on some compilers
18407         * lib/base64.c: Don't return the void function,
18408         instead split to a separate return statement.
18410 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
18412         ignore-value: revert previous code change
18413         * lib/ignore-value.h (ignore_value): Use __extension__ and
18414         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
18415         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
18416         Change the comment to try to explain this better.
18418 2013-11-27  Pádraig Brady  <P@draigBrady.com>
18420         selinux-h: improve stub types and add more stub functions
18422         * lib/se-selinux.in.h: Change security_context_t to a typedef
18423         rather than a define, as it's a pointer type and so is better
18424         as a typedef to avoid issues declaring multiple variables
18425         with the comma operator.  Also add stub for string_to_security_class().
18426         * lib/se-context.in.h: Add stub functions for
18427         context_{type,range,role,user}_get().
18429 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
18431         ignore-value: prefer GCC version back through 2.0
18432         The code didn't match the comments, so I did a bit of software
18433         archaeology.  GCC 2.0 seems to support __extension__ and
18434         __typeof__, so fix both code and comments to use 2.0.
18435         * lib/ignore-value.h (ignore_value): Use __extension__ and
18436         __typeof__ for GCC 2.0 through 3.3, too.
18438 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
18440         pty: Activate the signature wrapper of forkpty.
18441         The intended preprocessor macro HAVE_FORKPTY is
18442         never defined, yet `lib/forkpty.c' depends on it.
18444         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
18445         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
18446         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
18448 2013-11-18  Jim Meyering  <meyering@fb.com>
18449         and Paul Eggert  <eggert@cs.ucla.edu>
18451         quotearg: don't attempt to store 1 << 31 into an "int"
18452         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
18453         gcc's new -fsanitize=undefined and running its tests triggered some
18454         new test failures due to undefined behavior, all with this diagnostic:
18455           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
18456             cannot be represented in type int
18457         Rather than shifting "1" left to form a mask, shift the bits right and
18458         simply use "1" as the mask.
18460 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
18462         error: depend on stdio
18463         Problem reported by Nikos Mavrogiannopoulos in
18464         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
18465         * modules/error (Depends-on): Add stdio.
18467 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
18469         * doc/relocatable-maint.texi (Supporting Relocation): Improve
18470         wording.
18471         Reported by Reuben Thomas <rrt@sc3d.org>.
18473 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
18475         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
18476         New function and macro, to work around _DARWIN_C_SOURCE problem.
18477         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
18479 2013-11-11  Pádraig Brady  <P@draigBrady.com>
18481         base64: provide a fast path for encoding well sized buffers
18482         Avoid conditionals in the base64 encoding loop,
18483         which was seen to give 60% better throughput.
18484         * lib/base64.c (base64_encode_fast): A new function to be called
18485         when we don't want to NUL terminate, and we have enough space
18486         in the output to encode the given input.
18487         (base64_encode): Call the _fast() version when appropriate.
18488         Also remove a redundant mask with 0x3F on the first encoded byte.
18490 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
18492         extern-inline: port better to OS X 10.9
18493         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
18494         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
18495         OS X 10.9, except for g++ where the bug is still present.
18496         See <http://trac.macports.org/ticket/41033>.
18498 2013-11-08  Eric Blake  <eblake@redhat.com>
18500         fpending: fix regression on DragonFly BSD
18501         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
18502         * lib/fpending.h (__fpending): Don't declare twice.
18503         Reported by GW in
18504         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
18506 2013-11-05  Jim Meyering  <meyering@fb.com>
18508         hash: relax license to LGPLv2+, for libguestfs
18509         * modules/hash (License): Change from GPL to LGPLv2+.
18511 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
18513         intprops: port to Oracle Studio c99
18514         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
18515         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
18517 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
18519         obstack: pacify HP C
18520         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
18521         warning "conversion from pointer to smaller integer" from HP
18522         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
18523         C89 or later nowadays, so cast to void instead of int.  Privately
18524         reported by H.Merijn Brand.  Also, change header to match glibc's,
18525         to make checking against glibc easier.
18527 2013-10-29  Jim Meyering  <meyering@fb.com>
18529         maint.mk: prefer gpgv2 over gpgv
18530         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
18531         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
18532         Reported by Gary Vaughan.
18534 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
18536         isnan: port to VAX
18537         Reported by John Klos for NetBSD-5/VAX in
18538         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
18539         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
18540         (FUNC): Use it.
18542 2013-10-28  Jim Meyering  <meyering@fb.com>
18544         gnulib-tool: protect against CDPATH
18545         * gnulib-tool: Many "cd" built-in functions print a directory name
18546         to stdout when CDPATH is set, e.g.,
18547           $ bash -c 'CDPATH=/; cd tmp'
18548           /tmp
18549         Unset it, when possible.  Prompted by a comment from Bruce Korb.
18551         maint.mk: restore functionality removed by recent change...
18552         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
18553         the context of a shallow-cloned gnulib repository: "git describe"
18554         would fail in such a directory.  However, that change made it so
18555         the reported gnulib revision no longer includes the version number
18556         or a commit count, even when run from a full clone.
18557         * top/maint.mk (gnulib-version): Use the full "git describe"
18558         output when possible, e.g., the form above, rather than the
18559         abbreviated, no-tag, no-commit-count string, and fall back to
18560         using a 10-byte hash, rather than the default minimal-length
18561         hash prefix, since while the minimal-length one may be fine today,
18562         it is likely not to be unique for very long.
18564 2013-10-26  Jim Meyering  <meyering@fb.com>
18566         maint.mk: fix "release" target to build _version
18567         This fixes a bug in README-release whereby following the outlined
18568         steps, one would publish a tarball whose programs would report
18569         --version output not consistent with the package version number.
18570         This bug caused grep-2.15 to produce a grep program whose
18571         --version option made it print 2.14.56-1e3d rather than 2.15.
18572         * top/maint.mk (release): Making this target build "_version"
18573         ensures that the new version number is reflected in configure.
18575 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
18577         install-reloc: Support multi-binary installation.
18578         * build-aux/install-reloc: Support installing multiple programs in
18579         one invocation, as done by Automake starting with commit
18580         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
18581         Haible <bruno@clisp.org>, archived at
18582         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
18583         Reported by Sylvain <beuc@gnu.org>.
18585 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
18587         selinux-h: Really build without selinux when library is missing.
18588         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
18589         continue without selinux, as already told in the warning message.
18591 2013-10-21  Jim Meyering  <meyering@fb.com>
18593         regex: also remove dependency on HAVE_WCSCOLL
18594         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
18596 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
18598         xfreopen: Fix typo. s/frepoen/freopen/
18599         * lib/xfreopen.c: Fix description.
18600         * modules/xfreopen: Likewise.
18602 2013-10-21  Jim Meyering  <meyering@fb.com>
18604         regex: don't depend on wcscoll
18605         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
18606         It is no longer used.
18608 2013-10-20  Jim Meyering  <meyering@fb.com>
18610         error: add the printf attribute to a static function
18611         * lib/error.c (error_tail): Add the printf attribute, to placate
18612         gcc's -Werror=suggest-attribute=format option.
18614 2013-09-30  Jim Meyering  <meyering@fb.com>
18616         fpending, obstack, strerror-override: use pure+const function attrs
18617         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
18618         * lib/obstack.c (_obstack_allocated_p): Likewise.
18619         * lib/obstack.h (_obstack_memory_used): Likewise.
18620         (_obstack_memory_used): Likewise.
18621         * lib/strerror-override.h (strerror_override): Declare with
18622         the "const" attribute.
18624 2013-10-18  Eric Blake  <eblake@redhat.com>
18626         extern-inline: make safe for -Wundef usage
18627         Reported by Vladimir 'phcoder' Serbinenko in
18628         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
18629         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
18631 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
18633         mkfifo-tests, etc.: allow HP-UX 11.11 bug
18634         Problem reported by Daniel Richard G. in
18635         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
18636         * doc/posix-functions/mkfifo.texi (mkfifo):
18637         * doc/posix-functions/mkfifoat.texi (mkfifoat):
18638         * doc/posix-functions/mknod.texi (mknod):
18639         * doc/posix-functions/mknodat.texi (mknodat):
18640         Document the HP-UX 11.11 bug.
18641         * tests/test-mkfifo.h (test_mkfifo):
18642         Allow the HP-UX 11.11 bug.
18644 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
18646         acl: allow cross-compilation to Gentoo
18647         Problem reported by Gabriel Marcano in
18648         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
18649         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
18650         test only whether it links.
18652 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
18654         mgetgroups: remove dependency on realloc-gnu
18655         The dependency violates the comment in realloc-gnu, which
18656         says that tests can't depend on realloc-gnu; some tests depend
18657         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
18658         Problem reported by Daniel Richard G. in
18659         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
18660         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
18661         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
18662         not realloc-gnu.
18664 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
18666         regex-tests: port to HP-UX 11.11
18667         Problem reported by Daniel Richard G. in
18668         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
18669         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
18671 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18673         verify: document some 'assume' pitfalls
18674         * doc/verify.texi (Compile-time Assertions):
18675         Mention that 'assume (E)' can sometimes slow things down.
18676         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
18678 2013-10-10  Eric Blake  <eblake@redhat.com>
18680         strtoumax: fix typo in previous commit.
18681         * modules/strtoumax (Depends-on): Fix typo.
18682         * modules/strtoimax (Depends-on): Likewise.
18684 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
18686         strtoumax: port to Solaris 8
18687         This problem was introduced in the recent HP-UX patch.
18688         Reported by Tom G. Christensen in
18689         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
18690         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
18691         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
18693 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
18695         strtoimax, strtoumax: port to HP-UX 11.11
18696         Problem reported by Daniel Richard G. in
18697         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
18698         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
18699         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
18700         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
18701         REPLACE_STRTOUMAX.
18702         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
18703         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
18704         Replace the function if defined as a macro but not as a function.
18705         * modules/inttypes-incomplete (inttypes.h): Substitute
18706         REPLACE_STRTOUMAX.
18707         * modules/strtoumax (configure.ac): Replace strtoumax if
18708         REPLACE_STRTOUMAX.
18710 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
18712         strtoimax: port to HP-UX 11.11
18713         Problem reported by Daniel Richard G.
18714         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
18715         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
18716         they might clash with inttypes.h.
18718 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18720         New module 'count-trailing-zeros'.
18721         * MODULES.html.sh: Mention it.
18722         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
18723         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
18724         * modules/count-trailing-zeros-tests:
18725         * tests/test-count-trailing-zeros.c:
18726         New files.
18728         count-leading-zeros: port to MSC; support types wider than 64 bits
18729         The ideas behind the MSC port are stolen from Emacs.
18730         * lib/count-leading-zeros.h:
18731         Don't include verify.h: it's no longer needed, as types wider than
18732         64 bits are now supported.
18733         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
18734         performance with MSC.  All uses changed.  Do not assume that TYPE
18735         has at most 64 bits.
18736         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
18737         All uses changed.  Fold the subtraction from 31 into the table.
18739         count-one-bits: port to MSC; support types wider than 64 bits
18740         The ideas behind the MSC port are stolen from Emacs.
18741         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
18742         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
18743         Don't include verify.h: it's no longer needed, as types wider than
18744         64 bits are now supported.
18745         (COUNT_ONE_BITS_GENERIC): New macro.
18746         (popcount_supported) [_MSC_VER]: New inline function.
18747         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
18748         performance with MSC.  All uses changed.  Do not assume that TYPE
18749         has at most 64 bits.
18750         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
18752 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
18754         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
18755         * lib/mountlist.c (read_file_system_list): fix leak of directory
18756         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
18758 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
18760         tests: improve diagnostic when an assertion fails
18761         * tests/macros.h (ASSERT): Report the assertion that failed.
18763 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
18765         verify: new macro 'assume'
18766         This is taken from Emacs, and should be generally useful.
18767         * doc/verify.texi (assume): Document it.
18768         * lib/verify.h (assume): New macro.
18769         (__has_builtin): Expand to 0 if not defined.
18771 2013-09-26  Eric Blake  <eblake@redhat.com>
18773         dup2, dup3: work around another cygwin crasher
18774         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
18775         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
18776         * tests/test-dup2.c (main): Likewise.
18777         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
18778         * lib/dup3.c (dup3): Likewise.
18779         * doc/posix-functions/dup2.texi (dup2): Document it.
18780         * doc/glibc-functions/dup3.texi (dup3): Likewise.
18782         getdtablesize: work around cygwin issue
18783         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
18784         * modules/getdtablesize (configure.ac): Build replacement.
18785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
18786         * modules/unistd (Makefile.am): Expose the witness.
18787         * lib/unistd.in.h (getdtablesize): Declare replacement.
18788         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
18789         * tests/test-getdtablesize.c (main): Test it.
18790         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
18792 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
18794         pmccabe2html: escaping of special characters
18795         Escape all '<', '>', and '&' in HTML output.
18796         * build-aux/pmccabe2html (html_fnc): Call gsub()
18797         instead of sub() to capture all '<', '>', and '&'.
18798         Neither of '<' and '>' is special in a regexp,
18799         so first arguments to gsub() are corrected. Also,
18800         in replacement strings, ampersand must be escaped.
18801         Finally, '&' must be handled first, then '<' and '>'.
18803 2013-09-24  Eric Blake  <eblake@redhat.com>
18805         manywarnings: enable nicer gcc warning messages
18806         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
18807         some -f options for optimal warnings.
18809 2013-09-21  Jim Meyering  <meyering@fb.com>
18811         timespec: use the new TIMESPEC_RESOLUTION in a few more places
18812         * lib/timespec-add.c (timespec_add): Also replace 999999999
18813         with TIMESPEC_RESOLUTION - 1.
18814         * lib/timespec-sub.c (timespec_sub): Likewise.
18816 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
18818         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
18819         Problem reported by Dagobert Michelsen via Eric Blake in
18820         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
18821         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
18822         not AC_COMPILE_IFELSE.
18824 2013-09-23  Eric Blake  <eblake@redhat.com>
18826         configmake: support new --runstatedir option
18827         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
18828         even if autoconf was too old to provide the command line option.
18829         * modules/configmake (Makefile.am): Propagate it to .h file.
18831 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
18833         ctype, string: depend on extern-inline
18834         This is needed to complete the recent OS X fixes.
18835         Also, fix related documentation as suggested by Eric Blake.
18836         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18837         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
18838         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
18839         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
18840         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
18841         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
18842         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
18843         * doc/posix-functions/toupper.texi:
18844         List the 'ctype' gnulib module.
18845         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
18846         * doc/posix-functions/strncpy.texi:
18847         List the 'string' gnulib module.
18848         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
18849         Add string.
18850         * modules/ctype, modules/string (Depends-on): Add extern-inline.
18852 2013-09-19  Pádraig Brady  <P@draigBrady.com>
18854         userspec: support optional parameters to parse_user_spec()
18855         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
18856         then avoid group processing and treat the full spec as a user.
18857         (parse_with_separator): Allow the USERNAME and GROUPNAME to
18858         be optional params (NULL), in which case they're ignored.
18860 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
18862         timespec: new function make_timespec, and new constants
18863         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
18864         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
18865         (make_timespec): New function.
18866         * lib/dtotimespec.c (dtotimespec):
18867         * lib/timespec-add.c (timespec_add):
18868         * lib/timespec-sub.c (timespec_sub):
18869         * lib/utimens.c (validate_timespec):
18870         * lib/utimensat.c (rpl_utimensat):
18871         Use these new constants and functions.
18873         stdio: OS X port of putc_unlocked + extern inline
18874         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
18875         * doc/posix-functions/putc_unlocked.texi:
18876         * doc/posix-functions/putchar_unlocked.texi:
18877         Document this portability problem.
18879         signal: OS X port of sigaddset etc. + extern inline
18880         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
18881         (sigismember): #undef on problematic Apple platforms.
18882         * doc/posix-functions/sigaddset.texi:
18883         * doc/posix-functions/sigdelset.texi:
18884         * doc/posix-functions/sigemptyset.texi:
18885         * doc/posix-functions/sigfillset.texi:
18886         * doc/posix-functions/sigismember.texi:
18887         Document this portability problem.
18889         extern-inline: do not always suppress extern inline on OS X
18890         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
18891         extern inline on Apple only if the particular compile-time
18892         configuration is known to have the problem.
18893         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
18894         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
18895         other Gnulib modules.
18897         extern-inline: document fixes for ctype and wctype macros
18898         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
18899         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
18900         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
18901         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
18902         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
18903         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
18904         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
18905         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
18906         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
18907         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
18908         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
18909         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
18910         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
18911         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
18912         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
18913         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
18914         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
18915         * doc/posix-functions/strncpy.texi:
18916         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
18917         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
18918         Document that Gnulib fixes portability problems with these
18919         functions on OS X 10.8 and earlier when called from plain inline
18920         or extern inline functions.
18922 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
18924         fflush, freadahead, fseeko: Fix for Android
18925         Suggested by Bruno Haible in:
18926         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
18927         * lib/stdio-impl.h: Use local __sfileext definition.
18929 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
18931         pmccabe2html: Portability to other awk versions.
18932         The functions systime() and strftime() are available
18933         in Gawk only.  Properly close two HTML-tags 'style'
18934         and 'span'.
18935         * build-aux/pmccabe2html (BEGIN): Store timing
18936         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
18937         systime() in HTML_COMMENT.
18938         (html_header): Correctly close tag 'style'.
18939         (END): Replace strftime() by CHRONOS_TIME.  Close
18940         tag 'span' correctly, not as 'div'.
18942 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
18944         getgroups: statement without effect
18945         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
18946         Change equality conditional to expected assignment.
18948 2013-09-09  Eric Blake  <eblake@redhat.com>
18950         glob: fix compilation
18951         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
18953 2013-09-07  Eric Blake  <eblake@redhat.com>
18955         glob: fix build for platforms without __THROW
18956         * lib/glob.in.h (__THROW): Add definition again.
18958 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
18960         regex-quote: fix buffer access out of bounds
18961         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
18962         * lib/regex-quote.c (regex_quote_spec_pcre):
18963         Fix typo that resulted in an out-of-bounds read.
18965 2013-09-04  Eric Blake  <eblake@redhat.com>
18967         glob: avoid -Wattribute warnings on glibc
18968         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
18969         __THROWNL, not __THROW, on static functions.
18970         * lib/glob.in.h (__THROW): Adjust...
18971         (__THROWNL): ...accordingly.
18973 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
18975         headers: check that _GL_INLINE_HEADER_BEGIN is defined
18976         Suggested by Bruce Korb in:
18977         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
18978         * doc/extern-inline.texi (extern inline):
18979         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
18980         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
18981         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
18982         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
18983         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
18984         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
18985         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
18986         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
18987         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
18988         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
18989         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
18990         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
18991         * lib/xtime.h:
18992         Check that _GL_INLINE_HEADER_BEGIN is defined.
18994 2013-08-29  Pádraig Brady  <P@draigBrady.com>
18996         bootstrap: remove the --version requirement from ancillary tools
18997         * build-aux/bootstrap (check_exists): A new refactored function to
18998         determine if a command exists.
18999         (find_tool): Use the new function which does not require the
19000         --version option to be supported.
19001         (check_versions): Use the new function.
19003 2013-08-26  Simon Josefsson  <simon@josefsson.org>
19005         gc: support HMAC-SHA256 and HMAC-SHA512.
19006         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
19007         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
19008         functions.
19009         (gc_hmac_md5): Use symbolic constant.
19010         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
19011         (gc_hmac_sha256, gc_hmac_sha512): New functions.
19012         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
19013         * m4/sha256.m4: Protect against empty expansion.
19014         * m4/sha512.m4: Likewise.
19015         * lib/hmac-sha256.c: New file.
19016         * lib/hmac-sha512.c: Likewise.
19017         * m4/gc-hmac-sha256.m4: Likewise.
19018         * m4/gc-hmac-sha512.m4: Likewise.
19019         * m4/gc-sha256.m4: Likewise.
19020         * m4/gc-sha512.m4: Likewise.
19021         * modules/crypto/gc-hmac-sha256: Likewise.
19022         * modules/crypto/gc-hmac-sha256-tests: Likewise.
19023         * modules/crypto/gc-hmac-sha512: Likewise.
19024         * modules/crypto/gc-hmac-sha512-tests: Likewise.
19025         * modules/crypto/hmac-sha256: Likewise.
19026         * modules/crypto/hmac-sha256-tests: Likewise.
19027         * modules/crypto/hmac-sha512: Likewise.
19028         * modules/crypto/hmac-sha512-tests: Likewise.
19029         * tests/test-gc-hmac-sha256.c: Likewise.
19030         * tests/test-gc-hmac-sha512.c: Likewise
19031         * tests/test-hmac-sha256.c: Likewise.
19032         * tests/test-hmac-sha512.c: Likewise
19034 2013-08-24  Daiki Ueno  <ueno@gnu.org>
19036         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
19037         of AC_CHECK_DECLS.
19039 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
19041         selinux-at: omit unnecessary include
19042         * lib/selinux-at.c: Don't include dosname.h; not needed, since
19043         this source file doesn't use its macros, and subsidiary files that
19044         use the macros already include it.
19046 2013-08-21  Eric Blake  <eblake@redhat.com>
19048         d-ino: avoid false negative on symlink
19049         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
19050         Reported by Stephane Chazelas.
19052 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
19054         bootstrap: port to OpenBSD sed
19055         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
19056         does not interpret `-' as a file argument to mean stdin.
19058 2013-08-15  Eric Blake  <eblake@redhat.com>
19060         warnings: minor optimization
19061         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
19063         warnings: check -Wfoo rather than -Wno-foo
19064         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
19065         -Wno-, test if the compiler recognizes the positive form instead.
19067 2013-08-15  Karl Berry  <karl@gnu.org>
19069         * config/srclist-update: add option "doclicense" to placate
19070         pulling *.texi files from Emacs.  Write terse usage
19071         documentation at the top.
19073 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
19075         xvasprintf-tests: port to GCC with hardening flags
19076         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
19077         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
19078         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
19080 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
19082         fpending: port to recent Cygwin change to stdio_ext.h
19083         Reported by LRN in
19084         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
19085         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
19086         just declare __fpending unless it's a macro.
19087         A duplicate decl shouldn't hurt.
19088         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
19089         call compiles and links, instead of separately checking for
19090         decl and lib function.
19091         * modules/fpending (configure-ac):
19092         Adjust to fpending.m4's renaming of shell variable.
19094 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
19096         sys_time: port to OpenBSD
19097         * lib/sys_time.in.h: Simply delegate to the system's header
19098         in the BSDish cases as well.  Problem reported by Mike Miller in
19099         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
19100         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
19101         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
19102         wider than time_t.
19104 2013-08-09  Pádraig Brady  <P@draigBrady.com>
19106         bootstrap: support checksum utils having -c but not --status
19107         * build-aux/bootstrap: Only look for sha1sum if updating po files.
19108         Add sha1 to the list of supported checksum utils since it's now
19109         supported through adjustments below.
19110         (update_po_files): Remove the use of --status
19111         in a way that will suppress all error messages, but since this is
19112         only used to minimize updates, it shouldn't cause an issue.
19113         Exit early if there is a problem updating the po file checksums.
19114         (find_tool): Remove the check for --version support as this
19115         is optional as per commit 86186b17.  Don't even check for the
19116         presence of the command as if that is needed, it's supported
19117         through configuring prerequisites in bootstrap.conf.
19118         Prompt that when a tool isn't found, one can define an environment
19119         variable to add to the hardcoded search list.
19121 2013-08-05  Jim Meyering  <meyering@fb.com>
19123         regex: port to non-glibc/lock-using systems
19124         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
19125         system with GNULIB_LOCK would fail due to absence of the
19126         included "glthread/lock.h".  This would affect any package
19127         for which the "lock" module is used only by the regex module,
19128         and not explicitly used.
19129         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
19130         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
19131         Add a dependency on the "lock" module.
19133 2013-07-20  Daiki Ueno  <ueno@gnu.org>
19135         localecharset: make locale_charset thread-safe on Mac OS X
19136         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
19137         instead of MB_CUR_MAX.
19139 2013-07-20  Daiki Ueno  <ueno@gnu.org>
19141         gettext: update to version 0.18.3
19142         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
19143         require AC_PROG_SED to allow user to specify custom sed command when
19144         generating en@quot PO file.
19146 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
19148         bootstrap: use correct source when copying build-aux files
19149         * build-aux/bootstrap (gnulib_extra_files): This variable is
19150         relative to upstream gnulib layout, not downstream.
19152 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
19154         tmpdir: fix bug in VMS port
19155         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
19156         See Steven M. Schweda in
19157         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
19159 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
19161         tmpdir: port to VMS, to // != /, and to long dirs
19162         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
19163         __secure_getenv, so that we're more like the glibc version.
19164         All uses changed.
19165         (path_search): Don't put slash after directory if __VMS.
19166         Problem reported by Steven M. Schweda in
19167         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
19168         Simplify code to add slash; no need for a loop.
19169         Do not remove trailing slash from "//".
19170         Do not assume dlen <= INT_MAX.
19172 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
19174         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
19175         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
19176         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
19177         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
19179         accept4, dup3, pipe2: port to Cygwin
19180         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
19181         * lib/accept4.c (accept4) [O_BINARY]:
19182         * lib/dup3.c (dup3) [O_BINARY]:
19183         * lib/pipe2.c (pipe2) [O_BINARY]:
19184         Use set_binary_mode, not setmode.
19185         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
19186         * modules/binary-io (Depends-on): Remove module indicator.
19187         These last two bits undo the previous change to pipe2 and binary-io.
19189 2013-07-09  Pádraig Brady  <P@draigBrady.com>
19191         mountlist: add support for deallocating returned list entries
19192         * lib/mountlist.c (free_mount_entry): A new exported function
19193         to deallocate a mount list entry.
19194         (read_file_system_list): Refactor to use the new deallocation function.
19195         Suggested by Anton Ovchinnikov.
19197 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
19199         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
19200         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
19201         * lib/stdalign.in.h (_Alignas, _Alignof):
19202         Port to FreeBSD 9.1, and to C11 and C++11.
19203         (_Alignas): Also support ICC.
19204         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
19205         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
19207 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
19209         fnmatch: don't goto over declaration
19210         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
19211         undefined behavior for goto over a declaration.
19212         Problem reported by Charlie Brown in
19213         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
19215         pipe2: decouple from binary-io a bit
19216         This is for Emacs, which needs pipe2 but not binary-io.
19217         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
19218         * modules/binary-io (Depends-on): Add module indicator.
19220 2013-07-03  Eric Blake  <eblake@redhat.com>
19222         mgetgroups: relax license to LGPLv2+
19223         * modules/getugroups (License): Change from GPLv3+.
19224         * modules/mgetgroups (License): Likewise.
19225         * modules/getgroups (License): Change from LGPLv3+.
19227         xalloc-oversized: relax license to LGPLv2+
19228         * modules/xalloc-oversized (License): Change from GPLv3+.
19230         nproc: relax license to LGPLv2+
19231         * modules/nproc (License): Change from LGPLv3+.
19233         bootstrap: honor --no-git
19234         * build-aux/bootstrap: Don't even try to use git when user is
19235         pointing to a static checkout.
19237 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
19239         ignore-value: port to gcc -pedantic
19240         * lib/ignore-value.h (ignore_value):
19241         Port to gcc -pedantic, by using __extension__.
19242         Reindent as per usual gnulib style nowadays.
19243         Simplify GCC version check.
19245 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19247         extern-inline: port to gcc -std=c89
19248         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
19249         Do not use __gnu_inline__ if pedantic and pre-C99.
19251 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
19253         doc: document extern-inline
19254         * doc/extern-inline.texi: New file.
19255         * doc/gnulib.texi (alloca-opt): Include it.
19256         * m4/extern-inline.m4: Move some comments to documentation,
19257         and others closer to what they describe.
19259         doc: chatter less
19260         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
19261         (updated-stamp): Use it.  This causes 'make' to output just
19262         one file name rather than zillions.
19264         fflush, fseeko: port to musl cross-compiles
19265         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
19266         on some implementation that (1) is not known to be buggy,
19267         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
19268         cross-compiled to so we can't easily check for lack of
19269         conformance.  This is for cross-compiling to musl.
19270         Reported by Rich Felker in
19271         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
19272         * m4/fclose.m4 (gl_FUNC_FCLOSE):
19273         * m4/fflush.m4 (gl_FUNC_FFLUSH):
19274         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
19275         Adjust to above change.
19276         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
19277         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
19278         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
19279         known not to work, or unknown.
19281 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
19283         msvc-inval: port to mingw-w64
19284         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
19285         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
19286         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
19288 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
19290         getcwd-lgpl: port to Tru64
19291         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
19292         Problem reported by Steven M. Schweda in
19293         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
19295         tests: port large-fd POSIX spawn tests to OS X
19296         Problem reported by Daiki Ueno in
19297         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
19298         * tests/test-posix_spawn_file_actions_addclose.c:
19299         * tests/test-posix_spawn_file_actions_adddup2.c:
19300         * tests/test-posix_spawn_file_actions_addopen.c:
19301         Include <limits.h>, for OPEN_MAX, if available.
19302         (big_fd): New static function.
19303         (main): Use it.
19305 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
19307         tests/nap.h: use an adaptive delay to avoid ctime update issues
19308         The recent change in nap.h (5191133e) decreased the probability of lost
19309         races to about a third, however such problems could still be observed
19310         in virtual machines and openSUSE's OBS.
19311         Before, nap() detected the needed time once empirically and then used
19312         that delay (together with a small correction multiplier) in further
19313         calls.  This problem has been reported and discussed several times,
19314         including guesses about possible kernel issues:
19315         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
19316         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
19317         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
19318         http://bugs.gnu.org/12820
19319         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
19320         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
19321         Now, nap() avoids the race alltogether by verifying on a reference
19322         file whether a timestamp difference has happened.
19323         * tests/nap.h (nap_fd): Define file descriptor variable for the
19324         witness file.
19325         (nap_works): Change return value to bool.  Change passing
19326         the old file's status by value instead of by reference as this function
19327         does no longer update that timestamp; rename the function argument from
19328         st to old_st.  Remove the local variables cdiff and mdiff because that
19329         function now returns true/false instead of the precise delay.
19330         (guess_delay): Remove function.
19331         (clear_tmp_file): Add new function to close and unlink the witness file.
19332         (nap): Instead of re-using the delay which has been calculated during
19333         the first call, avoid the race by actually verifying that a timestamp
19334         difference can be observed on the current file system.  Use an adaptive
19335         approach for the delay to minimize execution time.  Assert that the
19336         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
19337         = 2^31 - 1 = 2.1s.
19338         Use atexit to call clear_tmp_file when the process terminates.
19340 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19342         sig2str: port to C++
19343         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
19344         Reported by Daniel J Sebald in
19345         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
19347 2013-05-30  Eric Blake  <eblake@redhat.com>
19349         docs: mention cygwin shortcoming in <sys/un.h>
19350         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
19352         vasnprintf: silence mingw compiler warning
19353         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
19355 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19357         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
19358         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
19359         This fixes a porting bug I recently reintroduced in regex, and
19360         some other instances that I discovered while testing the fix.
19361         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
19362         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
19363         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
19364         with an empty argument if this is a pedantic pre-C99 GCC.
19365         * lib/verify.h: Do not use _Static_assert if this is a pedantic
19366         pre-C11 GCC.
19368         regex: adapt to locking regime instead of depending on pthread
19369         Instead of depending on pthread, adapt to whatever thread
19370         modules are in use.  Problem reported by Ludovic Courtès in
19371         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
19372         and by Mats Erik Andersson in
19373         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
19374         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19375         Support either the 'lock' module, or the 'pthread' module, or
19376         no module.
19377         (lock_lock, lock_unlock): New macros.
19378         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
19379         * modules/lock, modules/pthread (configure.ac): Add module indicator.
19380         * modules/regex (Depends-on): Remove pthread.
19382 2013-05-22  Eric Blake  <eblake@redhat.com>
19384         getgroups: document portability issues
19385         * doc/glibc-functions/initgroups.texi (initgroups): Mention
19386         multithread safety.
19387         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
19388         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
19389         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
19390         getugroups.
19391         * doc/posix-functions/getgroups.texi (getgroups): Mention
19392         multithread safety and mgetgroups.
19394 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
19396         test-lchown, test-chown: also skip test if chown fails with EPERM
19397         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
19398         skip this test, to handle FAT file systems.
19399         * tests/test-chown.h (test_chown): Likewise.
19401 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19403         regex: fix dfa race in multithreaded uses
19404         Problem reported by Ludovic Courtès in
19405         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
19406         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
19407         New macros.  All uses of __libc_lock_define, __libc_lock_init
19408         changed to use the first two of these.
19409         (__libc_lock_lock, __libc_lock_unlock): New macros, for
19410         non-glibc platforms.
19411         (struct re_dfa_t): Define the lock unconditionally.
19412         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
19413         '#ifdef _LIBC"s.
19414         * modules/regex (Depends-on): Add pthread, if we use the
19415         included regex.
19417         * lib/regcomp.c: Do actions that are not needed for glibc,
19418         but may be needed elsewhere.
19419         (regfree, re_compile_internal): Destroy the lock.
19420         (re_compile_internal): Check for lock-initialization failure.
19422         malloca: port to compilers that reject size-zero arrays
19423         This fixes a bug introduced in my previous patch.
19424         * lib/malloca.c (struct preliminary_header): Use an int
19425         rather than a character array of size int; that's simpler.
19426         (struct header): Remove, replacing with ...
19427         (union header): New type.  This avoids the need for declaring a
19428         character array of size zero, which is not allowed on some platforms.
19429         All uses changed.
19431 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
19433         parse-datetime, tests: don't use "string" + int
19434         Recent versions of 'clang' complain about C source code that
19435         uses expressions of the form '"string literal" + integer',
19436         I guess on the theory that it's confusing for readers who are
19437         used to C++.  On those grounds I suppose it's OK to make this
19438         minor style change.
19439         * lib/parse-datetime.y (parse_datetime):
19440         * tests/test-fchdir.c (main):
19441         * tests/test-snprintf-posix.h (test_function):
19442         * tests/test-snprintf.c (main):
19443         * tests/test-vasnprintf-posix.c (test_function):
19444         * tests/test-vasnprintf.c (test_function):
19445         * tests/test-vsnprintf.c (main):
19446         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
19447         Rewrite '"str" + E' to '&"str"[E]'.
19449 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
19451         argmatch: port to C++
19452         * lib/argmatch.h [__cplusplus]: Add extern "C".
19454         argp: typo fix
19455         * lib/argp-help.c: Typo in comment.
19457 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
19459         manywarnings: update for GCC 4.8.0
19460         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
19461         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
19462         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
19463         -Wmissing-noreturn, as they are duplicates of other warnings.
19464         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
19465         was documented to be flaky in earlier versions of GCC.
19467         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
19468         * tests/test-spawn.c (main):
19469         * tests/test-sys_socket.c (main):
19470         * tests/test-sys_wait.c (main):
19471         Don't have a switch value that isn't covered by a case.
19473         getaddrinfo-tests: port --enable-gcc-warnings to clang
19474         * tests/test-getaddrinfo.c (simple):
19475         Avoid casts from looser to stricter-aligned pointers.
19477         thread: port --enable-gcc-warnings to clang
19478         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
19479         Include <signal.h>, to pacify a warning about pthread_sigmask.
19481         stdio: use __REDIRECT for fwrite, fwrite_unlocked
19482         * lib/stdio.in.h (fwrite):
19483         When working around bug 11959, use __REDIRECT rather than '#define
19484         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
19485         fix the -Wunused-value issue with clang, and it works with GCC too.
19486         Problem with targeting reported by Eric Blake in
19487         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
19488         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
19489         debugging the fwrite issue.
19491         stdio: port --enable-gcc-warnings to clang
19492         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
19493         since the GCC workaround for fwrite does not pacify clang.
19495         sig2str: port --enable-gcc-warnings to clang
19496         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
19498         obstack: port --enable-gcc-warnings to clang
19499         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
19500         Avoid casts from looser to stricter-aligned pointers.
19502         memchr2: port --enable-gcc-warnings to clang
19503         * lib/memchr2.c (memchr2):
19504         Avoid casts from looser to stricter-aligned pointers.
19506         mbsstr: port --enable-gcc-warnings to clang
19507         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
19508         Avoid casts from looser to stricter-aligned pointers.
19510         malloca: port --enable-gcc-warnings to clang
19511         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
19512         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
19514         inttostr: port --enable-gcc-warnings to clang
19515         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
19517         warnings: port to clang
19518         Problem reported by Daniel P. Berrange via Eric Blake in
19519         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
19520         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
19521         (gl_WARN_ADD): Use it.
19523 2013-05-11  Jim Meyering  <meyering@fb.com>
19525         quotearg: do not read beyond end of buffer
19526         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
19527         end of an ARG for which no length was specified.  With an N-byte
19528         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
19529         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
19530         via coreutils' misc/sort-debug-keys.sh test and detected by running
19531         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
19532         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
19533         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
19534         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
19535         characters correctly."
19537 2013-05-11  Daiki Ueno  <ueno@gnu.org>
19539         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
19540         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
19541         compilation target is Mac OS X 10.6.
19542         Problem reported by parafin and Andoni Morales in
19543         <http://savannah.gnu.org/bugs/?37844> and
19544         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
19546 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
19548         mkdir-p: remove assumptions about umask and mode
19549         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
19550         umask is 0, or that MODE is a subset of MODE_BITS.
19552 2013-05-10  Eric Blake  <eblake@redhat.com>
19554         maint.mk: catch more abuse of HAVE_DECL in syntax-check
19555         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
19557 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
19559         deps: require Automake >= 1.9.6 in generated Makefile fragments
19561         That is the same minimal version required in the DEPENDENCIES file.
19562         Moreover, the old code generated a requirement of Automake >= 1.5,
19563         and that is an insanely outdated version.
19565         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
19566         * tests/havelib/rpathlx/Makefile.am: Likewise.
19567         * tests/havelib/rpathly/Makefile.am: Likewise.
19568         * tests/havelib/rpathlyx/Makefile.am: Likewise.
19569         * tests/havelib/rpathlz/Makefile.am: Likewise.
19570         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
19571         * tests/havelib/rpathx/Makefile.am: Likewise.
19572         * tests/havelib/rpathy/Makefile.am: Likewise.
19573         * tests/havelib/rpathz/Makefile.am: Likewise.
19575 2013-05-08  Eric Blake  <eblake@redhat.com>
19577         bootstrap: AC_INIT may have more than four parameters
19578         * build-aux/bootstrap (extract_package_name): Correctly extract
19579         non-empty tarname field.  Avoid range in regex.
19580         Based on a report by Sami Kerola <kerolasa@iki.fi>.
19582 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19584         qacl: port to MS-Windows port of GNU Emacs
19585         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
19586         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
19587         port of GNU Emacs.  Problem reported by Eli Zaretskii in
19588         <http://bugs.gnu.org/14295#14>.
19590 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
19592         acl: include quote.h
19593         * lib/copy-acl.c: Include quote.h.
19594         * lib/set-acl.c: Likewise.
19596 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
19598         fchownat, renameat, unlinkat: update statat dependencies
19599         These modules use statat and lstatat, not fstatat; so depend on
19600         the statat module, which was split out recently from fstatat.
19601         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
19602         * modules/renameat: Likewise.  Also delete fstat.
19603         URL: http://bugs.gentoo.org/468790
19605 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
19607         Assume gnulib is checked out from Git, not CVS
19609         In fact, access to the gnulib repository through CVS has been
19610         disabled, or more precisely, got broken and was never restored; see:
19611         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
19613         Note that support for CVS is not removed completely and unthinkingly
19614         by this change: only support for CVS checkouts of gnulib itself is
19615         removed.  For example, the 'bootstrap' script still cater to .cvsingore
19616         files and CVS directories, for the benefit of those poor gnulib clients
19617         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
19619         * gnulib-tool: Simplify accordingly.
19620         * posix-modules: Likewise.
19621         * MODULES.html.sh: Likewise.
19622         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
19623         repository.
19624         * doc/gnulib-intro.texi: Likewise.
19625         * doc/gnulib-readme.texi: Likewise.
19626         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
19627         sample '.gitignore' file rather than a sample '.cvsignore'.
19628         * NEWS: Update.
19629         * m4/extensions.m4: While at it, remove a comment mistakenly referring
19630         to "CVS Autoconf" rather than "git Autoconf".
19632 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
19634         utimensat-tests, etc.: try to fix some races
19635         Problem reported by Bernhard Voelker in
19636         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
19637         I don't know whether this patch fixes that race condition, but it
19638         fixes *some* race conditions, so it should be a win.
19639         * modules/chown-tests (Depends-on):
19640         * modules/fchownat-tests (Depends-on):
19641         * modules/fdutimensat-tests (Depends-on):
19642         * modules/futimens-tests (Depends-on):
19643         * modules/lchown-tests (Depends-on):
19644         * modules/stat-time-tests (Depends-on):
19645         * modules/utimens-tests (Depends-on):
19646         * modules/utimensat-tests (Depends-on):
19647         Depend on nanosleep, not usleep.
19648         * modules/chown-tests (test_chown_LDADD):
19649         * modules/lchown-tests (test_lchown_LDADD):
19650         * modules/stat-time-tests (test_stat_time_LDADD):
19651         New macro.
19652         * modules/fchownat-tests (test_fchownat_LDADD):
19653         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
19654         * modules/futimens-tests (test_futimens_LDADD):
19655         * modules/utimens-tests (test_utimens_LDADD):
19656         * modules/utimensat-tests (test_utimensat_LDADD):
19657         Add $(LIB_NANOSLEEP).
19658         * modules/stat-time-tests (Files): Add tests/nap.h.
19659         * tests/nap.h: Include <limits.h>, for INT_MAX.
19660         (lt_mtime): Remove.
19661         (diff_timespec): New function.
19662         (get_stat): Rename from get_mtime.  All callers changed.
19663         (nap_works): Determine the needed delay by inspecting the
19664         file system's timestamp jumps; this should be more reliable.
19665         Look at both mtime and ctime, and take the maximum of the two jumps.
19666         (nap_works, guess_delay):
19667         Return a nanosecond count, not a microsecond count.
19668         All callers changed.
19669         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
19670         failure.
19671         (nap): Multiply the guess by 1.125, to accommodate the case where
19672         the file system's clock is a bit slower than nanosleep's clock.
19673         * tests/test-stat-time.c (BASE): New macro.
19674         Include nap.h.
19675         (nap): Remove; nap.h now defines this.  This removes a duplicate
19676         implementation of 'nap'.
19678         utimens, utimensat: work around Solaris UTIME_OMIT bug
19679         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
19680         Linux kernel 2.6.32 does.  Work around it in the same way.
19681         * doc/posix-functions/futimens.texi (futimens):
19682         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
19683         * lib/utimens.c (fdutimens, lutimens):
19684         * lib/utimensat.c (rpl_utimensat): Work around the bug.
19686         gettext: now it's your responsibility to add -I$(top_builddir)/intl
19687         Formerly, it was your responsibility to do this for all Makefile.ams
19688         other than Gnulib's.  Now it's your responsibility to do it for
19689         Gnulib's Makefile.am, too.
19690         * NEWS: Document this.
19691         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
19693         acl: include errno.h to get errno
19694         Reported by Daiki Ueno in
19695         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
19696         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
19698 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
19700         tests: don't assume getdtablesize () <= 10000000
19701         * modules/cloexec-tests:
19702         * modules/dup2-tests:
19703         * modules/dup3-tests:
19704         * modules/nonblocking-tests:
19705         * modules/posix_spawn_file_actions_addclose-tests:
19706         * modules/posix_spawn_file_actions_adddup2-tests:
19707         * modules/posix_spawn_file_actions_addopen-tests:
19708         * modules/unistd-safer-tests:
19709         Depend on the getdtablesize module.
19710         * tests/test-cloexec.c:
19711         * tests/test-dup-safer.c:
19712         * tests/test-dup2.c:
19713         * tests/test-dup3.c:
19714         * tests/test-fcntl.c:
19715         * tests/test-nonblocking.c:
19716         * tests/test-posix_spawn_file_actions_addclose.c:
19717         * tests/test-posix_spawn_file_actions_adddup2.c:
19718         * tests/test-posix_spawn_file_actions_addopen.c:
19719         Don't assume getdtablesize () <= 10000000.
19721 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
19723         extern-inline: work around bug in Sun c99
19724         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
19725         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
19727 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
19729         qacl: new module, broken out from the acl module
19730         This is for GNU Emacs, which wants the acl functions but does
19731         not want 'error' invoked when they fail.
19732         * lib/acl-internal.h: Do not include error.h, quote.h.
19733         (ENOSYS, ENOTSUP): Remove; no longer needed.
19734         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
19735         * lib/acl.h: Include <stdbool.h>.
19736         (acl_errno_valid): New function.
19737         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
19738         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
19739         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
19740         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
19741         (ACL_INTERNAL_INLINE): Remove; no longer needed.
19742         * lib/file-has-acl.c (file_has_acl):
19743         * lib/qcopy-acl.c (qcopy_acl):
19744         * lib/qset-acl.c (qset_acl):
19745         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
19746         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
19747         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
19748         lib/file-has-acl.c, m4/acl.m4 to qacl module.
19749         Add lib/set-acl.c.
19750         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
19751         Add qacl.
19752         (configure.ac): Move gl_FUNC_ACL to qacl module.
19753         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
19754         Rename set-mode-acl.c to set-acl.c.
19755         * lib/acl-errno-valid.c: New file.
19756         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
19757         copy_acl function remains in copy-acl.c.
19758         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
19759         (_): Remove; not needed.
19760         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
19761         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
19762         * modules/qacl: New file, moved from the old modules/acl.
19763         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
19764         Remove set-mode-acl.c, copy-acl.c.
19765         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
19767         alignof, intprops, malloca: port better to IBM's C compiler
19768         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
19769         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
19770         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
19772 2013-04-25  Daiki Ueno  <ueno@gnu.org>
19774         wctype-h: fix gettext link error on mingw
19775         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
19776         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
19777         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
19778         rpl_towupper and rpl_towupper.
19780 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
19782         regex-tests, regex: allow glibc re_search behavior
19783         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
19784         re_search input data to make the multi-character collating element
19785         in it clearly visible, and treat re_search return code 0 as valid.
19786         * m4/regex.m4 (gl_REGEX): Likewise.
19788 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
19790         stdalign: doc fix
19791         * doc/posix-headers/stdalign.texi (stdalign.h):
19792         Gnulib doesn't support '_Alignof expr'.
19794 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
19796         stdalign: port to stricter ISO C11
19797         ISO C11 says that _Alignof's operand must be a parenthesized type.
19798         Problem reported by Eli Zaretskii in
19799         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
19800         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
19801         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
19803 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
19805         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
19806         Problem reported by Marco Atzeri in
19807         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
19808         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
19809         Simply delegate to the system <sys/select.h> in this case too.
19810         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
19811         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
19812         be needed on Solaris either.
19813         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
19814         Simply delegate to the system <sys/time.h> in this case.
19816 2013-03-19  Karl Berry  <karl@gnu.org>
19818         * build-aux/gnupload: check for erroneous (with gnupload) use of
19819         ftp-upload.gnu.org, tweak help.
19821 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
19823         copy-file, rpmatch: fix problems found by cppcheck
19824         Reported by Arno Onken in
19825         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
19826         * lib/rpmatch.c (try): Fix memory leak.
19827         * lib/copy-file.c: Include "ignore-value.h".
19828         (qcopy_file_preserving): Ignore chown value.
19829         * modules/copy-file (Depends-on): Add ignore-value.
19831 2013-01-27  Jim Meyering  <jim@meyering.net>
19833         prefix-gnulib-mk: give better diagnostics
19834         * build-aux/prefix-gnulib-mk: Don't just "die".
19835         Give better diagnostics upon failure.
19837 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
19839         putenv: port to Solaris 10
19840         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
19841         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
19842         is not what is wanted here.
19843         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
19844         declaration, not for its existence.
19846 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
19848         mktime: fix configure typo
19849         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
19851 2013-03-12  Eric Blake  <eblake@redhat.com>
19853         regex-tests: skip UTF-8 test on mingw
19854         * modules/regex-tests (Depends-on): Add localcharset.
19855         * tests/test-regex.c (main): Use it to skip test on mingw.
19857 2013-03-11  Eric Blake  <eblake@redhat.com>
19859         tests: make it easier to bypass alarm time in debugger
19860         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
19861         * tests/test-memmem.c (main): Likewise.
19862         * tests/test-passfd.c (main): Likewise.
19863         * tests/test-ptsname.c (main): Likewise.
19864         * tests/test-ptsname_r.c (main): Likewise.
19865         * tests/test-strcasestr.c (main): Likewise.
19866         * tests/test-strstr.c (main): Likewise.
19868         regex: port to mingw's recent addition of undeclared alarm
19869         * doc/posix-functions/alarm.texi (alarm): Document that alarm
19870         exists but still doesn't work in newer mingw.
19871         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
19872         not existence.  Ensure SIGALRM is not trapped.
19873         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
19874         * m4/regex.m4 (gl_REGEX): Likewise.
19875         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
19876         * tests/test-regex.c (main): Use correct probe for alarm.
19878         putenv: avoid compilation warning on mingw
19879         * lib/putenv.c (_unsetenv): Protect variable declaration.
19880         (putenv): Fix indentation.
19882 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
19884         unistd: don't prevent Tru64 Unix from using gnulib strtod.
19885         * lib/unistd.in.h: be careful not to include un-needed system
19886         stdlib.h from here, because that prevents gnulib stdlib.h from
19887         defining rpl_strtod correctly.
19889 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
19891         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
19892         changesets, but for the 'precision 0' test.
19893         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19894         round-to-even, since POSIX says rounding is implementation-defined
19895         and OS X 10.8.2 rounds 1.51 to 1 here.
19897         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
19898         changeset.
19899         * tests/test-vasprintf-posix.c (test_function): Don't insist on
19900         round-to-even, since POSIX says rounding is implementation-defined
19901         and OS X 10.8.2 rounds 1.5 to 1 here.
19903 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
19905         vasnprintf-posix-tests: allow rounding 1.5 to 1
19906         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
19907         round-to-even, since POSIX says rounding is implementation-defined
19908         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
19909         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
19911         bootstrap: port to FreeBSD
19912         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
19913         that treat '--' differently.  Reported by Mats Erik Andersson in
19914         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
19916 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
19918         regex: rename remaining __attribute calls to __attribute__.
19919         2012-02-25 changed definition of __attribute, but left some uses
19920         unchanged, preventing compilation of regex module on most non-gcc
19921         environments.
19922         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
19923         (lookup_collation_sequence_value, build_range_exp)
19924         (build_collating_symbol): Set attributes with newly renamed
19925         __attribute__ decorator.
19926         * lib/regex_internal.c (re_string_peek_byte_case)
19927         (re_node_set_compare, re_node_set_contains): Likewise.
19928         * lib/regexec.c (acquire_init_state_context): Likewise.
19930 2013-03-06  Bruno Haible  <bruno@clisp.org>
19932         execute: Revert last change, but use a different condition.
19933         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
19934         on Windows.
19936 2013-03-05  Eric Blake  <eblake@redhat.com>
19938         execute: drop dead code
19939         * lib/execute.c (nonintr_close, nonintr_open): Delete.
19941 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
19943         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
19944         * m4/non-recursive-gnulib-prefix-hack.m4
19945         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
19946         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
19947         <http://bugs.gnu.org/10305#237>.
19949 2013-03-04  Eric Blake  <eblake@redhat.com>
19951         test-getsockopt: avoid compiler warning
19952         * tests/test-getsockopt.c (includes): Ensure close is declared.
19954 2013-03-02  Bruno Haible  <bruno@clisp.org>
19956         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
19957         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
19959 2013-03-02  Bruno Haible  <bruno@clisp.org>
19961         gettext: Update to version 0.18.2.
19962         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
19963         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
19964                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
19966 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
19968         regex: merge patches from libc
19970         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19971         * lib/regex_internal.h (__attribute__): Rename from __attribute.
19972         All uses changed.
19973         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
19974         (re_string_wchar_at, re_string_elem_size_at):
19975         Mark function as possibly unused.
19977         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
19978         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
19979         elements compare against the byte sequence of it, not its name.
19981 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
19983         putenv: port better to native Windows
19984         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19985         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
19986         (_unsetenv): Use _putenv if available.
19987         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
19988         a bit less likely to cause damage.
19989         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
19990         Fix the wrong value with SetEnvironmentVariable.
19991         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
19992         code better.
19994 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
19996         regex: ignore old-style-definition warnings
19997         * lib/regex.c: Add pragma to ignore these warnings.
19998         Problem reported for GNU tar by Pavel Raiskup.
20000 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
20002         getcwd: support coreutils better
20003         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
20004         but this might not be correct in coreutils, which disables
20005         the raw decl checks.  Problem reported by Nagendra in
20006         <http://bugs.gnu.org/10305#192>.
20007         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
20008         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
20009         Test the getcwd function, not any macro, since getcwd.c wants the
20010         function.
20011         * m4/getcwd.m4 (gl_FUNC_GETCWD):
20012         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
20013         compile, as might happen if there's a macro but no function.
20015         strtod: support coreutils better
20016         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
20017         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
20018         disables the raw decl checks.  This assumes there is an underlying
20019         strtod, but that's a safe assumption these days.
20020         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
20022         mountlist: port to HP NonStop
20023         Reported by Joachim Schmitz in
20024         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
20025         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
20026         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
20028 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
20030         extern-inline: avoid compilation error with HP-UX cc
20031         Reported by Richard Lloyd in
20032         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
20033         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
20034         Suppress extern inline with HP-UX cc.  This should be safe,
20035         though it may hurt performance.  Perhaps someone with some HP-UX
20036         experience can come up with a higher-performance fix.
20038 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
20040         putenv: fix heap corruption with mixed putenv/_putenv
20041         Problem reported by Michael Goffioul in
20042         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
20043         * lib/putenv.c (putenv) [HAVE__PUTENV]:
20044         Rely on _putenv to allocate the new environment.
20045         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
20046         * modules/putenv (configure.ac): Use it.
20048 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
20050         unsetenv etc.: port to Solaris 11 + GNU Emacs
20051         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
20052         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
20053         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
20054         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
20055         idea but is too painful to fix right now), and without this gnulib
20056         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
20057         compiling unsetenv.c on Solaris 11.  Fix the problem for
20058         unsetenv.c, and fix other similar occurrences.
20060 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
20062         secure_getenv: fix C++ declaration typo
20063         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
20064         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
20065         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
20067 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
20069         careadlinkat: stop exporting careadlinkatcwd
20070         Only Emacs used it directly, and Emacs no longer needs it.
20071         * NEWS: Document this simplification.
20072         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
20073         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
20074         for readlink.
20075         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
20076         Don't include stdlib.h; no longer needed.
20077         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
20078         * lib/relocwrapper.c: Adjust comment to match new dependencies.
20079         * modules/areadlink (Depends-on): Add readlink.
20080         (Maintainer): Add self.
20081         * modules/careadlinkat (Depends-on): Remove readlink.
20083         extensions: port better to HP-UX
20084         This is merged from git Autoconf.
20085         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
20086         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
20087         so that it's compatible with the value used when compiling.
20089         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
20090         Problem reported by Mats Erik Andersson in
20091         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
20092         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
20093         openpty function exists, not merely when we intend to replace it.
20094         This corrects the 2013-01-31 patch, which mistakenly defined
20095         HAVE_OPENPTY even on hosts that lacked it.
20097 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
20099         secure_getenv: fix include typo
20100         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
20102         secure_getenv: port better to FreeBSD and Solaris
20103         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
20104         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
20105         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
20106         This works better on BSDish platforms.
20107         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
20108         Test for issetugid if __secure_getenv is missing.
20110 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
20112         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
20113         Some of these changes are merged in from git Autoconf.
20114         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
20115         When deciding whether to define _XOPEN_SOURCE, inspect the
20116         preprocessor macro __hpux instead of the more-heavyweight
20117         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
20118         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
20119         as the key for __EXTENSIONS__.
20121         unistd: avoid namespace pollution on non-glibc systems
20122         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
20123         This avoids namespace pollution on non-glibc systems, by causing
20124         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
20125         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
20126         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
20128 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20130         tmpdir: use secure_getenv
20131         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
20132         Define to secure_getenv, not getenv.
20133         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
20134         as that's now secure_getenv's job.
20135         * modules/tmpdir (Depends-on): Add secure_getenv.
20137         tempname: use secure_getenv
20138         * lib/tempname.c (__secure_getenv) [!_LIBC]:
20139         Define to secure_getenv, not getenv.
20140         * modules/tempname (Depends-on):
20141         Add secure_getenv.
20143         secure_getenv: new module
20144         * MODULES.html.sh (Extra functions based on ANSI C 89):
20145         Add secure_getenv.
20146         * doc/glibc-functions/secure_getenv.texi: New file.
20147         * doc/gnulib.texi: Include it.
20148         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
20149         New files.
20150         * lib/stdlib.in.h (secure_getenv): New decl.
20151         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
20152         * modules/stdlib (stdlib.h):
20153         Add secure_getenv checks.
20155 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
20157         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
20158         Reported for OS X 10.8.2 by Assaf Gordon in
20159         <http://bugs.gnu.org/13516>.
20160         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
20161         !HAVE_OPENAT && !HAVE_FDOPENDIR.
20162         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
20163         so that they can be kept in sync more easily.  Avoid PATH_MAX
20164         test on the Hurd.  Sync from test-getcwd.c for errno tests after
20165         mkdir or chdir failure.
20166         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
20167         lib/getcwd.c.
20168         (test_abort_bug): Do not test for the deep directory bug unless we
20169         have openat support.  Avoid PATH_MAX test on the Hurd.
20171         regex-tests, regex: fix bug: memset undeclared
20172         * tests/test-regex.c: Don't include regex.h twice.  Include
20173         string.h, to declare memset.  Christensen's report also mentioned
20174         this issue.
20175         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
20176         test-regex.c, to avoid future problems like this.  Remove
20177         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
20178         twice.
20180         regex-tests: fix link errors on older Solaris
20181         These need to link with @LIBINTL@ to get libintl_gettext.
20182         Problem reported by Tom G. Christensen in
20183         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
20184         * modules/regex-tests (test_regex_LDADD): New macro.
20186 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
20188         regex-tests: new module
20189         * modules/regex-tests, tests/test-regex.c: New files.
20191         regex: fix off-by-one error in configure test
20192         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
20194 2013-01-31  Eric Blake  <eblake@redhat.com>
20196         regex: avoid infinite configure test
20197         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
20199 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
20201         openpty: fix bug where HAVE_OPENPTY wasn't defined
20202         See the thread starting at:
20203         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
20204         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
20205         openpty function exists, not merely when we intend to replace it.
20207 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20209         sys_time: port to Solaris 2.6
20210         There is a circularity problem on Solaris 2.6, where <time.h> includes
20211         <sys/time.h> for struct timespec.  The include nesting is gnulib
20212         <time.h>, system <time.h>, gnulib <sys/time.h>, system
20213         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
20214         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
20215         <sys/siginfo.h>; the last, innermost file needs struct
20216         timestruc_t, which is defined in <sys/time.h>, which has not been
20217         fully parsed.  Problem reported by Tom G. Christensen in
20218         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
20219         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
20220         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
20221         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
20222         uses split double-inclusion guards.
20224 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20226         regex: test for buffer overrun
20227         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
20228         for the just-fixed regex bug.
20230 2013-01-29  Andreas Schwab  <schwab@suse.de>
20232         regex: fix buffer overrun in regexp matcher [BZ #15078]
20233         * lib/regexec.c (extend_buffers): Add parameter min_len.
20234         (check_matching): Pass minimum needed length.
20235         (clean_state_log_if_needed): Likewise.
20236         (get_subexp): Likewise.
20238 2013-01-28  Pádraig Brady  <P@draigBrady.com>
20240         mountlist: don't consider "devtmpfs" as dummy
20241         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
20242         as there is storage associcated with it.
20244 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
20246         futimens-tests, utimens-tests: Depend on gettext.
20247         This works around a problem introduced in my 2013-01-12 patch,
20248         which added @LIBINTL@ to these modules.
20249         * modules/futimens-tests (Depends-on):
20250         * modules/utimens-tests (Depends-on): Add gettext.
20252 2013-01-26  Eric Blake  <eblake@redhat.com>
20254         test-getpeername: fix typo
20255         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
20257 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
20259         bootstrap: remove the need for a sorted .gitignore file
20260         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
20261         rename to insert_if_absent(), so that we don't need or generate
20262         a sorted .gitignore file.  We do require a .gitignore with no
20263         existing duplicate entries and enforce that.
20264         (sort_patterns): Remove this function as we now use the simpler
20265         technigue of inserting blacklist entries at the top of the file,
20266         assuming gnulib won't be inserting !whitelist entries.
20268 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20270         readlinkat: don't depend on gl_FUNC_OPENAT
20271         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
20272         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
20273         renameat.m4, symlinkat.m4; but one thing at a time.
20275         statat: new module, split out from fstatat
20276         GNU Emacs needs the POSIX-specified fstatat, but not the
20277         gnulib-specified statat and lstat.  Split the latter two into a
20278         new module 'statat'.
20279         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
20280         * lib/openat.h, lib/statat.c (STATAT_INLINE):
20281         Rename from FSTATAT_INLINE. All uses changed.
20282         * modules/fstatat (Files): Remove lib/statat.c.
20283         (gl_MODULE_INDICATOR([fstatat])): Remove.
20284         (lib_SOURCES): Remove.
20285         (Maintainer): Add self.
20286         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
20287         * tests/test-fstatat.c (BASE): Don't define if already defined.
20288         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
20290 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20292         tests: don't assume fd 99 is closed
20293         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
20294         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
20295         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
20296         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
20297         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
20298         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
20299         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
20300         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
20301         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
20302         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
20303         * tests/test-fwrite.c, tests/test-getpeername.c:
20304         * tests/test-getsockname.c, tests/test-getsockopt.c:
20305         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
20306         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
20307         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
20308         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
20309         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
20310         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
20311         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
20312         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
20313         * tests/test-unlinkat.c, tests/test-unlockpt.c:
20314         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
20315         Close file descriptor 99, instead of assuming it's already closed.
20317 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20319         stpncpy: port to OS X 10.8
20320         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
20321         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
20323 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
20325         unistd: port to recent mingw
20326         * lib/unistd.in.h: Remove special invocation convention for mingw,
20327         which breaks for the latest mingw version.  See John W. Eaton in
20328         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
20330         largefile: port better to Mac OS X 10.5
20331         This patch is backported from Autoconf git.
20332         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
20333         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
20334         with ino_t size being different for configuration time versus
20335         build/run time.  Problem reported by PHO in
20336         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
20338 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
20340         doc: clarify -Werror
20341         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
20342         clarify that it's intended for developers, not for ordinary builds,
20343         and mention --enable-gcc-warnings as one possible use.
20345 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
20347         stdint: fix build with Android's Bionic fox x86
20348         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
20349         was already included as _SSIZE_T_DEFINED_ might also be defined
20350         in include/machine/_types.h, which is included by stdio.h
20352 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
20354         net_if-tests: port to Solaris 7 + GCC 3.4.6
20355         Problem reported by Tom G. Christensen in
20356         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
20357         * tests/test-net_if.c (ni): Move to next the code that uses it,
20358         so that it's declared only if needed.
20360 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20362         net_if-tests: port to older Solaris
20363         Problem reported by Tom G. Christensen in
20364         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20365         * modules/net_if-tests (NET_IF_LIB): New substitution.
20366         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
20367         (HAVE_IF_NAMEINDEX): New C macro.
20368         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
20370         system-quote-tests: port to older Solaris
20371         Problem reported by Tom G. Christensen in
20372         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20373         * tests/test-system-quote-child.c (fopen, fread): Undef.
20375         c-xvasprintf etc.: fix link errors on older Solaris
20376         These need to link with @LIBINTL@ to get libintl_gettext.
20377         Problem reported by Tom G. Christensen in
20378         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
20379         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
20380         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
20381         * modules/futimens-tests (test_futimens_LDADD):
20382         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
20384 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20386         locale: port to Solaris 2.6 and 7 + GNU gettext
20387         * lib/locale.in.h: Just include_next <locale.h> when
20388         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
20389         when combining the localename module with GNU gettext 0.18.2.
20390         Problem reported by Tom G. Christensen in
20391         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
20393 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
20395         stdlib: port to Solaris 2.6
20396         Also, the code worked on Solaris 7 through 9 only by accident.
20397         Problem reported by Tom G. Christensen in
20398         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
20399         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
20400         simply include the system stdlib.h.
20401         * lib/getopt.in.h (__need_system_stdlib_h):
20402         * lib/pthread.in.h (__need_system_stdlib_h):
20403         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
20404         Define when including <stdlib.h>, to avoid problems at least for
20405         the pthread case on Solaris 2.6 and 7.  These .h files can get by
20406         with the system stdlib.h.
20408 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
20410         doc: update main copyright year
20411         * doc/gnulib.texi: Update copyright date.
20413         doc: improve ISO 8601 discussion
20414         * doc/parse-datetime.texi (Combined date and time of day items):
20415         Specify more carefully what formats are supported and what is
20416         done with excess precision.
20418 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
20420         doc: avoid small caps
20421         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
20422         they're more trouble than they're worth.  Suggested by Karl Berry
20423         in <http://bugs.gnu.org/13360>.
20425         regex: conform to strict C
20426         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
20427         From Aharon Robbins.
20429         gnulib-tool: fix incompatibility with autopoint 0.18.2
20430         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
20431         Problem reported by Tom G. Christensen in
20432         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
20434 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
20436         fprintftime: bring back and reword fwrite comment
20437         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
20439         stdio: remove now-unnecessary stdio.c
20440         Since stdio.in.h no longer uses inline functions, we no longer
20441         need to compile the extern versions.
20442         * lib/stdio.c: Remove.
20443         * modules/stdio (Files): Remove lib/stdio.c.
20444         (lib_SOURCES): Remove.
20446         unicodeio: depend on stdio, not ignore-value
20447         * lib/unicodeio.c: Do not include ignore-value.h.
20448         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
20449         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
20451         fprintftime: depend on stdio, not ignore-value
20452         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
20453         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
20454         since the stdio module arranges to silence that warning now.
20455         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
20457 2012-10-04  Simon Josefsson  <simon@josefsson.org>
20459         stdint-tests: Fix expanded-before-required-warning.
20460         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
20462 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20464         fwrite: silence __wur only for older glibc versions
20465         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
20466         This will help us remove this workaround some time in the far future.
20468 2013-01-03  Eric Blake  <eblake@redhat.com>
20470         fwrite: silence __wur without using inline
20471         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
20472         just gcc, and in a way that avoids inline issues.
20473         * modules/stdio (Depends-on): Drop extern-inline.
20475 2013-01-03  Jim Meyering  <jim@meyering.net>
20477         update-copyright: avoid copyright notice date corruption
20478         Given a sequence of copyright year numbers in which the final
20479         one was a two-digit number that happened to be a substring of
20480         a preceding four-digit year number, we would mistakenly update
20481         the substring (from two- to four-digit) rather than the two-digit
20482         number at the end, which, combined with the addition of the current
20483         4-digit year number would yield two 5-digit year numbers, e.g.,
20484         here, it would convert the first "99" to "1999, 2013" rather than
20485         the final one:
20486           1991, 99
20487           11999, 20131, 1999
20488         * build-aux/update-copyright: Tighten a regexp.
20489         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
20490         Reported by Joseph Myers in
20491         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
20493 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20495         regex: omit needless signed-pointer casts
20496         * lib/regcomp.c (build_charclass, build_charclass_op):
20497         Use char *, not unsigned char *, for class name and extra.
20498         The char values are always nonnegative so there's no need to
20499         insist on unsigned char * here, and using char * removes the need
20500         for casts.  Reported by Aharon Robbins in
20501         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20503         regex: support Gawk, which never uses alloca
20504         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
20505         Do not include in this case.  Gawk doesn't supply a substitute
20506         alloca.h and doesn't need one.
20508         regex: port __libc_lock_define usage to C89
20509         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
20510         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
20511         does not conform to C89, as it has an empty macro argument.
20512         Reported by Aharon Robbins in
20513         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20515 2013-01-01  Eric Blake  <eblake@redhat.com>
20517         maint: update all copyright year number ranges
20518         Run "make update-copyright".
20520         version-etc: bump copyright year reported in --version
20521         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
20523 2012-12-31  Eric Blake  <eblake@redhat.com>
20525         sigprocmask-tests: skip test if pid is unexpectedly large
20526         * tests/test-sigprocmask.c (main): Add range check.
20528         git-version-gen: avoid test -z portability glitch
20529         * build-aux/git-version-gen: Prefer portable test spelling, since
20530         git-version-gen is run on more than just developer machines.
20532 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
20534         git-version-gen: add --fallback option to use if git is not present
20535         * build-aux/git-version-gen: Add support for the new option --fallback,
20536         which comes into play when there is no $tarball_version_file and
20537         git is not working.
20538         (scriptversion): Update.
20540         maint.mk: handle missing git with more grace
20541         * top/maint.mk (no-submodule-changes, public-submodule-commit):
20542         Quietly proceed if git is not present.
20544 2012-12-31  Eric Blake  <eblake@redhat.com>
20546         dup2: work around cygwin bug
20547         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
20548         * lib/dup2.c (rpl_dup2): Work around it.
20549         * doc/posix-functions/dup2.texi (dup2): Document it.
20551 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20553         regex: remove unnecessary dependency on localcharset.h
20554         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
20555         hasn't been needed for years.
20556         * modules/regex (Depends-on): Remove localcharset.
20558         regex: revert single-byte change
20559         * lib/regexec.c (check_node_accept_bytes): Revert previous change
20560         to this function.  This was alredy fixed in a different way, at
20561         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
20562         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
20563         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
20565         regex: simplify based on Gawk version
20566         * lib/regex_internal.c (re_dfa_add_node): Simplify.
20567         Reported by Aharon Robbins in
20568         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20570 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
20572         regex: check that pattern char is single-byte
20573         Reported by Aharon Robbins in
20574         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20575         * lib/regexec.c (check_node_accept_bytes):
20576         Return 0 if the pattern string has a multibyte character here.
20578         regex: implement rational ranges
20579         Reported by Aharon Robbins in
20580         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20581         * lib/regcomp.c (build_range_exp) [!_LIBC]:
20582         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
20583         Implement rational ranges.
20585         regex: avoid redefining __wctype
20586         Reported by Aharon Robbins in
20587         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20588         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
20589         #undef before defining.
20591         regex: port to hosts where malloc (0) == NULL
20592         Reported by Aharon Robbins in
20593         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20594         * lib/regex_internal.c (re_node_set_alloc):
20595         Don't assume that malloc (0) yields nonnull.
20596         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
20597         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
20598         * modules/regex (Files): Add m4/eealloc.m4.
20600         regex: port to C89
20601         Reported by Aharon Robbins in
20602         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
20603         * lib/regcomp.c (init_word_char): Declaration before statement.
20605         regex: merge glibc changes
20606         Also, copy the license wording from glibc.  This simplifies
20607         merging changes.  gnulib-tool will change the wording to GPL as
20608         appropriate, when importing it to other packages.  The only
20609         glibc change made since the last merge, which needs merging, is:
20610         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
20611         * lib/regex_internal.h (gettext): Remove use of INTUSE.
20613         * users.txt: Add Emacs.
20615         doc: omit mention of version when not needed
20616         * doc/gnulib-intro.texi (Portability and Application Code):
20617         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
20618         Don't mention particular dates or versions when not necessary, so
20619         that the documentation won't go out of date so quickly.
20621         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
20623 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
20625         bootstrap: pass --force to autoreconf.
20626         * build-aux/bootstrap (AUTORECONFFLAGS): New.
20627         Add "--force" so that Automake's ylwrap and other such tools
20628         be updated at each bootstrap invocation.
20629         Use it.
20631 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
20633         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
20634         The earlier patch forgot to update one of the #if conditions, causing
20635         a problem on Debian testing i386 reported by Mats Erik Andersson
20636         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
20637         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
20638         (__argp_fmtstream_puts, argp_fmtstream_puts)
20639         (__argp_fmtstream_write, argp_fmtstream_write)
20640         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
20642         * doc/gnulib-readme.texi: Minor fixups.
20643         (Portability guidelines): Modernize URLs.  Remove some repetition.
20644         (Indent with spaces not TABs): Reword to avoid too-long lines.
20645         Remove some '@ifset standalone' stuff that isn't used.
20647         * doc/gnulib-readme.texi (Portability guidelines):
20648         ctype.h, not ctime.h.
20650         Correct name of POSIX.1-2001.
20651         * doc/posix-functions/fgetc.texi (fgetc):
20652         * doc/posix-functions/fgets.texi (fgets):
20653         * doc/posix-functions/fread.texi (fread):
20654         * doc/posix-functions/fscanf.texi (fscanf):
20655         * doc/posix-functions/getc.texi (getc):
20656         * doc/posix-functions/getchar.texi (getchar):
20657         * doc/posix-functions/scanf.texi (scanf):
20658         POSIX.1-2001, not POSIX-2001.
20660         doc: move README into manual
20661         * README: Move contents to new file doc/gnulib-readme.texi.
20662         Replace with a one-line summary.
20663         * doc/gnulib.texi (Brief Overview): New section,
20664         with old intro preface.  Include gnulib-readme.texi for contents.
20665         (Philosophy): Rename from "Introduction", since this
20666         section no longer introduces the rest.  Write a new preface.
20667         * doc/gnulib-readme.texi: New file, with the old contents of
20668         README texinfo-ized.  This way, the README info appears
20669         in the online and printed manual.
20671 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
20673         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
20674         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
20675         c_vasprintf() prototype.
20677 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
20679         c-vasprintf: Fix "empty declaration" warning reported by GCC.
20680         * lib/c-vasprintf.h: Remove stray semicolon.
20682 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
20684         gettext: avoid obsolete macro AM_PROG_MKDIR_P
20685         It is obsolete and is planned to be removed from Automake 1.14; see
20686         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
20687         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
20688         (installdirs-data, installdirs-data-yes):
20689         Use $(MKDIR_P), not $(mkdir_p).
20690         * m4/intl.m4 (AM_INTL_SUBDIR):
20691         * m4/po.m4 (AM_PO_SUBDIRS):
20692         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
20694 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
20696         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
20697         On this platform, we are not optimizing but we are using
20698         the substitute for extern inlines, so compile as if
20699         C99-style extern inline, or a substitute, is available.
20700         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
20701         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
20702         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
20703         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
20704         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
20705         Declare as ARGP_FS_EI, not as extern.
20706         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
20707         (__option_is_short, _option_is_end, __option_is_end)
20708         [!_LIBC && __USE_EXTERN_INLINES]:
20709         Declare as ARGP_EI, not as extern.
20711 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
20713         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
20714         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
20715         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
20716         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
20717         ...), as the latter is fatal with older Autoconfs.
20718         Problem reported and fix suggested by Eric Blake in thread starting at
20719         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
20721 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
20723         AC_PROG_MKDIR_P: don't workaround if not buggy
20724         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
20725         Define only for Autoconf versions before 2.62.
20726         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
20727         undocumented m4_PACKAGE_VERSION, for consistency with the
20728         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
20729         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
20730         was introduced in 2.62.
20732 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
20734         New 'c-*printf' modules for formatted output in C locale.
20736         New module 'c-vasnprintf'.
20737         * modules/c-vasnprintf: New file.
20738         * lib/c-vasnprintf.c: New file.
20739         * lib/c-vasnprintf.h: New file.
20741         New module 'c-snprintf'.
20742         * modules/c-snprintf: New file.
20743         * modules/c-snprintf-tests: New file.
20744         * lib/c-snprintf.c: New file.
20745         * lib/c-snprintf.h: New file.
20746         * tests/test-c-snprintf.c: New file.
20747         * tests/test-c-snprintf.sh: New file.
20749         New module 'c-vsnprintf'.
20750         * modules/c-vsnprintf: New file.
20751         * modules/c-vsnprintf-tests: New file.
20752         * lib/c-vsnprintf.c: New file.
20753         * lib/c-vsnprintf.h: New file.
20754         * tests/test-c-vsnprintf.c: New file.
20755         * tests/test-c-vsnprintf.sh: New file.
20757         New module 'c-vasprintf'.
20758         * modules/c-vasprintf: New file.
20759         * modules/c-vasprintf-tests: New file.
20760         * lib/c-asprintf.c: New file.
20761         * lib/c-vasprintf.c: New file.
20762         * lib/c-vasprintf.h: New file.
20763         * tests/test-c-vasprintf.c  +: New file.
20764         * tests/test-c-vasprintf.sh: New file.
20766         New module 'c-xvasprintf'.
20767         * modules/c-xvasprintf: New file.
20768         * modules/c-xvasprintf-tests: New file.
20769         * lib/c-xasprintf.c: New file.
20770         * lib/c-xvasprintf.c: New file.
20771         * lib/c-xvasprintf.h: New file.
20772         * tests/test-c-xvasprintf.c: New file.
20773         * tests/test-c-xvasprintf.sh: New file.
20775 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
20777         argp: better 'inline'
20778         Use extern-inline module to declare extern inline functions.
20779         This avoids some bogus warning diagnostics.  Problem discovered
20780         when modifying GNU tar to use the manywarnings module.
20781         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
20782         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
20783         Define based on extern-inline.
20784         * modules/argp (Depends-on): Add extern-inline.
20786 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
20788         filemode, sys_stat: Handle MPX files a la AIX.
20789         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
20790         * lib/sys_stat.in.h (S_ISMPX): New macro.
20791         * tests/test-sys_stat.c: Add tests for MPX files.
20793 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
20795         x-to-1: honor $PERL
20796         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
20797         a chance to use his preferred version of Perl.  This is typically
20798         required by Darwin users whose default /usr/bin/perl does not have all
20799         the libraries required by help2man, and who need to use their MacPorts
20800         installation of Perl instead.
20802 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20804         gnu-web-doc-update: add all the new files, even in new directories
20805         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
20806         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
20807         Use it.
20808         (main): Don't use cvsutils to get the list of unknown files,
20809         just add all the existing files and directories.
20811 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
20813         gnu-web-doc-update: improve --help
20814         * build-aux/gnu-web-doc-update: Move comments into --help.
20816 2012-12-07  Eric Wong  <normalperson@yhbt.net>
20818         mountlist: recognize more "dummy" file systems
20819         * lib/mountlist.c (ME_DUMMY_0):
20820         Add these dummy FS names to the list:
20821         - "debugfs" virtual filesystem for kernel debugging
20822         - "devpts" PTY slave filesystem
20823         - "devtmpfs" device filesystem on top of tmpfs/ramfs
20824         - "fusectl" control filesystem for FUSE
20825         - "mqueue" enumerates POSIX message queues
20826         - "rpc_pipefs" kernel <-> userspace bridge for NFS
20827         - "sysfs" is for exporting kernel objects
20828         - "devfs" device filesystem for Linux 2.4 and FreeBSD
20830 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
20832         extern-inline: avoid incompatibility with Darwin Libc
20833         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
20834         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
20835         Problem reported by Akim Demaille in
20836         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
20838 2012-12-11  Simon Josefsson  <simon@josefsson.org>
20840         gnupload: Work with GnuPG using gpg-agent (for smartcards).
20841         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
20842         let it handle password prompting.
20844 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
20846         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
20847         * lib/canonicalize.c (canonicalize_filename_mode):
20848         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
20849         fetching the current directory.  Don't overrun the beginning of
20850         rpath if there's no slashes after the MS-Windows drive letter.
20852 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
20854         maint.mk: avoid extra forks
20855         * top/maint.mk (_cfg_mk): The GNU make manual documents that
20856         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
20857         So use that instead of "$(shell test -f FILE && echo FILE)".
20859 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
20861         vasnprintf: fix ASCII_ONLY typo
20862         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20863         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20864         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
20865         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
20866         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
20868 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
20870         list, oset, xlist, xoset: fix extern inline issue with C99
20871         This was introduced by my recent changes for 'inline'.
20872         Problem reported for gettext by Daiki Ueno in
20873         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
20874         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
20875         (gl_list_nx_create, gl_list_size, gl_list_node_value)
20876         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
20877         (gl_list_previous_node, gl_list_get_at)
20878         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
20879         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
20880         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
20881         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
20882         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
20883         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
20884         (gl_list_iterator_free, gl_sortedlist_search)
20885         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
20886         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
20887         (gl_sortedlist_remove):
20888         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
20889         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
20890         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
20891         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
20892         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
20893         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
20894         (gl_list_add_at, gl_sortedlist_add):
20895         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
20896         Wrap these extern decls inside "#if 0", because they are implemented
20897         as inline functions, and extern inline is not what's wanted here.
20898         It would simplify these .h files to remove the extern decls entirely,
20899         although a downside would be less-clear separation between
20900         specification and implementation.
20902 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
20904         sys_stat: no 'static inline'
20905         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
20906         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
20908         extern-inline: no 'static inline'
20909         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
20910         Do not require AC_C_INLINE.
20911         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
20912         'static inline', for older compilers.
20914         snippet/warn-on-use: no 'static inline'
20915         * build-aux/snippet/warn-on-use.h:
20916         Remove unnecessary 'inline' in comment.
20918         rbtree-list, rbtreehash-list: no 'static inline'
20919         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
20920         * lib/gl_anytree_list2.h (node_at):
20921         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
20922         (gl_oset_first, add_nodes_to_buckets):
20923         Now static, not static inline.
20925         regex: no 'static inline'
20926         * lib/regex_internal.c (calc_state_hash):
20927         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
20928         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
20929         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
20930         Now static, not static inline.
20931         (inline) [__GNUC__ < 3 && _LIBC]:
20932         Remove macro; no longer needed.
20934         xvasprintf: no 'static inline'
20935         * lib/xvasprintf.c (xstrcat):
20936         Now static, not static inline.
20937         * m4/xvasprintf.m4 (gl_XVASPRINTF):
20938         Do not require AC_C_INLINE.
20940         parse-datetime, parse-duration: no 'static inline'
20941         * lib/parse-datetime.y (to_uchar):
20942         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
20943         (scale_n_add):
20944         Now static, not static inline.
20945         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
20946         * modules/parse-duration (configure.ac):
20947         Do not require AC_C_INLINE.
20949         getaddrinfo: no 'static inline'
20950         * lib/getaddrinfo.c (validate_family):
20951         Now static, not static inline.
20952         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
20953         Do not require AC_C_INLINE.
20955         ftruncate, fts, lstat, openat, raise: no 'static inline'
20956         * lib/ftruncate.c (chsize_nothrow):
20957         * lib/fts.c (opendirat, diropen):
20958         * lib/lstat.c (orig_lstat):
20959         * lib/openat.c (orig_openat):
20960         * lib/raise.c (raise_nothrow):
20961         Now static, not static inline.
20962         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
20963         * m4/fts.m4 (gl_FUNC_FTS_CORE):
20964         * m4/lstat.m4 (gl_PREREQ_LSTAT):
20965         * m4/openat.m4 (gl_PREREQ_OPENAT):
20966         * m4/raise.m4 (gl_PREREQ_RAISE):
20967         Do not require AC_C_INLINE.
20969         fflush, stat: no 'static inline'
20970         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20971         (clear_ungetc_buffer, disable_seek_optimization)
20972         (restore_seek_optimization, update_fpos_cache):
20973         * lib/stat.c (orig_stat):
20974         Now static, not static inline.
20975         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
20976         (update_fpos_cache):
20977         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
20978         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
20979         * m4/stat.m4 (gl_PREREQ_STAT):
20980         Do not require AC_C_INLINE.
20982         error, filevercmp: no 'static inline'
20983         * lib/error.c (is_open, flush_stdout):
20984         * lib/filevercmp.c (order):
20985         Now static, not static inline.
20986         * m4/error.m4 (gl_PREREQ_ERROR):
20987         * modules/filevercmp (configure.ac):
20988         Do not require AC_C_INLINE.
20990         dup, execute, fatal-signal, etc.: no 'static inline'
20991         * lib/dup.c (dup_nothrow):
20992         * lib/execute.c (nonintr_close, nonintr_open):
20993         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
20994         * lib/fopen.c (orig_fopen):
20995         * lib/freadseek.c (freadptrinc):
20996         * lib/freopen.c (orig_freopen):
20997         * lib/fstat.c (orig_fstat, fstat_nothrow):
20998         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
20999         (get_rusage_as_via_iterator):
21000         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
21001         * lib/getdtablesize.c (_setmaxstdio_nothrow):
21002         * lib/isatty.c (_isatty_nothrow):
21003         * lib/open.c (orig_open):
21004         * lib/read.c (read_nothrow):
21005         * lib/sigprocmask.c (signal_nothrow):
21006         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
21007         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
21008         * lib/wait-process.c (unregister_slave_subprocess):
21009         * lib/write.c (write_nothrow):
21010         Now static, not static inline.
21011         * lib/spawn-pipe.c (nonintr_open): Define only if
21012         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
21013         * m4/dup.m4 (gl_PREREQ_DUP):
21014         * m4/execute.m4 (gl_EXECUTE):
21015         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
21016         * m4/fopen.m4 (gl_PREREQ_FOPEN):
21017         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
21018         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
21019         * m4/fstat.m4 (gl_PREREQ_FSTAT):
21020         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
21021         * m4/isatty.m4 (gl_PREREQ_ISATTY):
21022         * m4/open.m4 (gl_PREREQ_OPEN):
21023         * m4/read.m4 (gl_PREREQ_READ):
21024         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
21025         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
21026         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
21027         * m4/wait-process.m4 (gl_WAIT_PROCESS):
21028         * m4/write.m4 (gl_PREREQ_WRITE):
21029         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
21030         Do not require AC_C_INLINE.
21032         c-strtod, memcoll, readutmp: no 'static inline'
21033         * lib/c-strtod.c (c_locale):
21034         * lib/memcoll.c (strcoll_loop):
21035         * lib/readutmp.c (desirable_utmp_entry):
21036         Now static, not static inline.
21037         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
21038         * m4/memcoll.m4 (gl_MEMCOLL):
21039         * m4/readutmp.m4 (gl_READUTMP):
21040         Do not require AC_C_INLINE.
21042         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
21043         * lib/arctwo.c (to_uchar):
21044         * lib/md4.c (set_uint32):
21045         * lib/md5.c (set_uint32):
21046         * lib/sha1.c (set_uint32):
21047         * lib/sha256.c (set_uint32):
21048         * lib/sha512.c (set_uint64):
21049         Now static, not static inline.  This is a bit simpler, and doesn't
21050         affect performance with GCC and default optimization.
21051         * m4/arctwo.m4 (gl_ARCTWO):
21052         * m4/md4.m4 (gl_MD4):
21053         * m4/md5.m4 (gl_MD5):
21054         * m4/sha1.m4 (gl_SHA1):
21055         * m4/sha256.m4 (gl_SHA256):
21056         * m4/sha512.m4 (gl_SHA512):
21057         Do not require AC_C_INLINE.
21059         cond, lock, thread: better 'inline'
21060         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
21061         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
21062         New macros.  Use them instead of static inline, for header functions.
21063         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
21064         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
21065         * lib/glthread/lock.c (gl_waitqueue_init)
21066         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
21067         * lib/glthread/thread.c (get_current_thread_handle):
21068         Change 'static inline' to 'inline'.
21069         * lib/glthread/cond.h, lib/glthread/thread.h:
21070         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21071         * m4/cond.m4 (gl_COND):
21072         * m4/lock.m4 (gl_PREREQ_LOCK):
21073         * m4/thread.m4 (gl_THREAD):
21074         Do not require AC_C_INLINE.
21075         * modules/cond, modules/thread (Depends-on): Add extern-inline.
21077         chdir-long, cycle-check, savewd: better 'inline'
21078         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
21079         (find_non_slash):
21080         * lib/cycle-check.c (is_zero_or_power_of_two):
21081         * lib/savewd.c (savewd_delegating):
21082         Change 'static inline' to 'inline'.
21083         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
21084         Replace all remaining uses of 'static inline' with it.
21085         * lib/savewd.h:
21086         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21087         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
21088         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
21089         * m4/savewd.m4 (gl_SAVEWD):
21090         Do not require AC_C_INLINE.
21091         * modules/savewd (Depends-on): Add extern-inline.
21093         base32, base64: no need for 'inline'
21094         * lib/base32.c (to_uchar, get_8, decode_8):
21095         * lib/base64.c (to_uchar, get_4, decode_4):
21096         Change 'static inline' to 'inline'.
21097         * m4/base32.m4 (gl_PREREQ_BASE32):
21098         * m4/base64.m4 (gl_PREREQ_BASE64):
21099         Do not require AC_C_INLINE.
21101         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
21102         * lib/gl_array_oset.c (gl_array_nx_add_at):
21103         (gl_array_remove_at):
21104         * lib/gl_linkedhash_list.c (hash_resize_after_add)
21105         (add_to_bucket, remove_from_bucket):
21106         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
21107         Change 'static inline' to 'static', as it's simpler to omit
21108         'inline' unless there's a significant performance advantage.
21110         list, oset, xlist, xoset, xsublist: simplify via extern inline
21111         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
21112         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
21113         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
21114         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
21115         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
21116         New macro.  Replace all uses of 'static inline' with it.
21117         [HAVE_INLINE]: Implement functions as *_INLINE functions,
21118         instead of as macros FOO that are defined to static inline
21119         functions FOO_inline.
21120         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
21121         * lib/gl_xsublist.c:
21122         Reimplement from scratch, by defining the corresponding *_INLINE
21123         macro and including the corresponding .h file.  This is simpler.
21124         * modules/list, modules/oset, modules/xlist, modules/xoset:
21125         (Files): Remove m4/gl_list.m4.
21126         (configure.ac): Remove gl_LIST.
21127         * m4/gl_list.m4: Remove.
21128         * modules/list, modules/oset, modules/xlist, modules/xoset:
21129         * modules/xsublist:
21130         (Depends-on): Depend on extern-inline, not inline.
21132         xalloc: better 'inline'
21133         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
21134         New macro.  Replace all uses of 'static inline' with it.
21135         (static_inline): Remove.
21136         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21137         Let 'extern inline' do the work automatically, instead of doing
21138         it by hand.
21139         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
21140         Remove.  All uses removed.
21141         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
21143         gethrxtime: better 'inline'
21144         * lib/xtime.c: New file.
21145         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
21146         * lib/xtime.h (XTIME_INCLUDE):
21147         New macros.  Replace all uses of 'static inline' with them.
21148         * lib/gethrxtime.c (gethrxtime): Define only if
21149         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
21150         this source file is now always compiled, because of the extern inline.
21151         * lib/gethrxtime.h, lib/xtime.h:
21152         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21153         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
21154         if gethrtime works, as they're not needed in that case.
21155         (gl_XTIME): Do not require AC_C_INLINE.
21156         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
21157         compiled now.  Move the check into gl_GETHRXTIME.
21158         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
21159         (Depends-on): Add extern-inline.
21160         (configure.ac): gethrxtime is always compiled now.
21161         (lib_SOURCES): Add gethrxtime.c.
21163         wctype-h: better 'inline'
21164         * lib/wctype-h.c: New file.
21165         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
21166         New macro.  Replace all uses of 'static inline' with it.
21167         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21168         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
21169         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
21170         (Depends-on): Add extern-inline.
21172         unistd: better 'inline'
21173         * lib/unistd.c: New file.
21174         * lib/unistd.in.h (_GL_UNISTD_INLINE):
21175         New macro.  Replace all uses of 'static inline' with it.
21176         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21177         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
21178         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
21179         (Depends-on): Add extern-inline.
21181         sys_socket: better 'inline'
21182         * lib/sys_socket.c: New file.
21183         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
21184         New macro.  Replace all uses of 'static inline' with it.
21185         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21186         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
21187         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
21188         (Depends-on): Add extern-inline.
21190         stdio: better 'inline'
21191         * lib/stdio.c: New file.
21192         * lib/stdio.in.h (_GL_STDIO_INLINE):
21193         New macro.  Replace all uses of 'static inline' with it.
21194         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21195         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
21196         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
21197         (Depends-on): Add extern-inline.
21199         sigaction: better 'inline'
21200         * lib/sig-handler.c: New file.
21201         * lib/sig-handler.h (SIG_HANDLER_INLINE):
21202         New macro.  Replace all uses of 'static inline' with it.
21203         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21204         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
21205         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
21206         (Depends-on): Add extern-inline.
21208         selinux-h: better 'inline'
21209         * lib/se-context.c, lib/se-selinux.c: New files.
21210         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
21211         * lib/se-context.in.h (SE_CONTEXT_INLINE):
21212         New macro.  Replace all uses of 'static inline' with it.
21213         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21214         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
21215         New macro.  Replace all uses of 'static inline' with it.
21216         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21217         * modules/selinux-h (Files, lib_SOURCES):
21218         Add lib/se-context.c, lib/se-selinux.c.
21219         (Depends-on): Add extern-inline.
21220         (configure.ac): Do not require AC_C_INLINE.
21222         pthread: better 'inline'
21223         * lib/pthread.c: New file.
21224         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
21225         New macro.  Replace all uses of 'static inline' with it.
21226         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21227         * m4/pthread.m4 (gl_PTHREAD_CHECK):
21228         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
21229         * modules/pthread (Files): Add lib/pthread.c.
21230         (Depends-on): Add extern-inline.
21232         math: better 'inline'
21233         * lib/math.c: New file.
21234         * lib/math.in.h (_GL_MATH_INLINE):
21235         New macro.  Replace all uses of 'static inline' with it.
21236         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21237         * m4/math_h.m4 (gl_MATH_H):
21238         Do not require AC_C_INLINE.
21239         * modules/math (Files, lib_SOURCES):
21240         Add lib/math.c.
21241         (Depends-on): Add extern-inline.
21243         count-one-bits: better 'inline'
21244         * lib/count-one-bits.c: New file.
21245         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
21246         New macro.  Replace all uses of 'static inline' with it.
21247         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21248         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
21249         Do not require AC_C_INLINE.
21250         * modules/count-one-bits (Files, lib_SOURCES):
21251         Add lib/count-one-bits.c.
21252         (Depends-on): Add extern-inline.
21254         count-leading-zeros: better 'inline'
21255         * lib/count-leading-zeros.c: New file.
21256         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
21257         New macro.  Replace all uses of 'static inline' with it.
21258         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21259         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
21260         Do not require AC_C_INLINE.
21261         * modules/count-leading-zeros (Files, lib_SOURCES):
21262         Add lib/count-leading-zeros.c.
21263         (Depends-on): Add extern-inline.
21265         bitrotate: better 'inline'
21266         * lib/bitrotate.c: New file.
21267         * lib/bitrotate.h (BITROTATE_INLINE):
21268         New macros.
21269         Replace all uses of 'static inline' with them.
21270         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21271         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
21272         (Depends-on): Add extern-inline.
21273         (configure.ac): Do not require AC_C_INLINE.
21275 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
21277         maint.mk: avoid gratuitous failure
21278         Reported by Stefano Lattarini in
21279         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
21280         * top/maint.mk (public-submodule-commit): Quote more safely.
21282 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
21284         canonicalize, canonicalize-lgpl: support MS-Windows file names
21285         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
21286         for test cases, which it'd be nice to add at some point.
21287         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
21288         * lib/canonicalize.c (canonicalize_filename_mode):
21289         * lib/canonicalize-lgpl.c (__realpath):
21290         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
21291         slash is at the beginning of the file name.  Use ISSLASH, instead
21292         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
21293         the first character with '/'.  Test for
21294         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
21295         with a drive letter.
21296         * lib/canonicalize.c (SLASHES): New macro.
21297         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
21299 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
21301         fts: introduce FTS_VERBATIM
21302         * lib/fts_.h (FTS_VERBATIM): New bit flag.
21303         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
21304         * lib/fts.c (fts_open): Honor it.
21306 2012-11-09  Pádraig Brady  <P@draigBrady.com>
21308         getlogin-tests: allow errno == ENXIO
21309         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21310         with errno == ENXIO (No controlling tty).
21311         getlogin_r-tests: Likewise. Also allow errno == ENOENT
21312         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
21313         with errno == ENOENT.  This was reported to happen in various
21314         situations on GNU/Linux.
21316 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21318         getlogin-tests: allow errno == ENOENT
21319         * tests/test-getlogin.c (main): Skip tests if getlogin fails
21320         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
21321         when running a test in an Emacs shell buffer.
21323 2012-11-08  Jim Meyering  <jim@meyering.net>
21325         tests/nap.h: avoid warning about unused variable
21326         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
21328         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
21329         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
21330         white space before each of the special-cased file names, to avoid
21331         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
21332         in http://bugs.gnu.org/12830.
21334 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21336         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
21337         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
21338         fails with errno == EBADF when fd is opened with O_PATH.
21339         Reported by Jim Meyering in
21340         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
21341         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21342         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
21344 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21346         test-utimens: speed up by taking shorter naps
21347         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
21348         New functions.
21349         (nap): Use them, to do a better job of guessing the delay.
21350         On Fedora 17 with ext4 atop md atop hard disks, this made
21351         test-utimens run 10x faster, because the test napped for
21352         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
21353         <http://bugs.gnu.org/12820#11>.
21355 2012-11-07  Jim Meyering  <jim@meyering.net>
21357         mountlist.c: fix a compilation failure
21358         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
21359         I introduced while transforming commit v0.0-7683-g613bcb6
21361 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21363         errno: port to LynxOS 178 2.2.2
21364         Problem reported by Joel Brobecker in
21365         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
21366         * doc/posix-headers/errno.texi (errno.h): Document this.
21367         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
21368         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
21369         Supply a string for EILSEQ.
21370         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
21372 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21374         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
21375         Linux kernel 2.6.39 introduced O_PATH (see
21376         <http://lwn.net/Articles/433854/>) and this is a better fallback
21377         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
21378         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
21379         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
21380         * lib/fcntl.in.h (O_ACCMODE):
21381         * tests/test-fcntl-h.c (main):
21382         Do not reject O_ACCMODE merely because it has more than the
21383         minimal number of bits, as POSIX allows extensions here.
21385 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
21387         mountlist: do not classify a bind-mounted dir entry as "dummy"
21388         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
21389         the "none"-testing clause.
21390         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
21391         exception for bind-mounted directories.
21393 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
21395         quote: provide a means to escape strings with nul characters
21396         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
21397         (quote, quote_n): Rename formal arguments for consistency with
21398         quotearg.
21400 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21402         test-raise: don't assume 199 is an invalid signal
21403         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
21405         sh-quote-tests: port to Solaris 9
21406         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
21407         Problem reported by Dagobert Michelsen in
21408         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
21410 2012-10-28  Jim Meyering  <jim@meyering.net>
21412         maint.mk: rename a new configurable variable
21413         * top/maint.mk (_gl_translatable_string_re): Rename from
21414         translation-markers: _gl_ prefix to insulate from user Makefile code,
21415         and the _re suffix to inform that it's a regular expression.
21417 2012-10-26  Eric Blake  <eblake@redhat.com>
21419         maint.mk: let packages tweak sc_po_check pattern
21420         * top/maint.mk (sc_po_check): Add translation-markers, to allow
21421         finding files with other translation markers.
21423 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21425         euidaccess: speed up 'configure' on GNU hosts
21426         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
21427         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
21428         it's needed only in this case.  Use AC_CHECK_DECLS, not
21429         AC_CHECK_DECLS_ONCE.
21430         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
21431         or AC_REQUIRE for AC_FUNC_GETGROUPS.
21433         * lib/regexec.c (re_search_internal): Fix grammar in comment.
21435 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21437         fchmodat, fchownat, fstatat: port to non-inlining compilers
21438         Problem reported for FreeBSD 9 by Jim Meyering in
21439         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
21440         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
21441         New files, which define FCHMODAT_INLINE etc.
21442         * lib/fchmodat.c (FCHMODAT_INLINE):
21443         * lib/fchownat.c (FCHOWNAT_INLINE):
21444         * lib/fstatat.c (FSTATAT_INLINE):
21445         Remove, as chmodat.c etc. now do this.
21446         * modules/fchmodat (Files): Add lib/chmodat.c.
21447         * modules/fchownat (Files): Add lib/chownat.c.
21448         * modules/fstatat (Files): Add lib/statat.c.
21450 2012-10-15  Jim Meyering  <jim@meyering.net>
21452         fchmodat.c, fchownat.c: compile-impeding typos
21453         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
21454         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
21455         Introduced in commit v0.0-7636-gd202279.
21457 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
21459         fcntl-h: support GNU flags like O_IGNORE_CTTY
21460         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
21461         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
21462         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
21463         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
21464         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
21465         Define to 0 if not already defined.
21466         * tests/test-fcntl-h.c: Test these new flags.
21468 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
21470         faccessat, etc.: support AT_FDCWD-only use
21471         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
21472         this function only if its first argument is AT_FDCWD.
21473         Emacs wants faccessat for AT_EACCESS but not for any first-arg
21474         values other than AT_FDCWD, so it doesn't want all the openat
21475         machinery with fchdir etc.
21476         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
21477         * modules/fstatat, modules/mkdirat, modules/openat (Files):
21478         * modules/unlinkat (Files):
21479         Remove lib/openat-priv.h, as at-internal supplies this file.
21480         Removing this file here allows us to support programs like Emacs
21481         that avoid at-internal.
21483         faccessat: speed up 'configure' on mainstream hosts
21484         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
21485         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
21486         since it's only on unusual platforms that we need to check for
21487         'access', and it's better not to slow 'configure' down on all
21488         platforms.
21490         faccessat: port to Solaris 10
21491         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
21492         Needed on Solaris 10, which doesn't have AT_EACCESS,
21493         so we need the Gnulib fcntl.h, which defines it.
21495 2012-10-14  Pádraig Brady  <P@draigBrady.com>
21496         canonicalize: fix C89 compilation
21497         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
21498         declarations so C89 is supported.  Also remove the comment
21499         referencing memorty allocation as the suggested feature could
21500         not be implemented as suggested.
21501         Reported by Michael Goffioul.
21503 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21505         group-member: omit unnecessary dependencies
21506         This is for Emacs, which has its own allocator and where we
21507         don't want to use xalloc.
21508         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
21509         since we no longer use xmalloc.  Do not include stdbool.h, since
21510         the changes below happen to remove the only use of bool.
21511         (GROUPBUF_SIZE): New constant.
21512         (struct group_info): Remove n_groups member.  Add groupbuf member.
21513         This lets us get the groups without using malloc, usually.
21514         (free_group_info, get_group_info): Adjust to this.
21515         (get_group_info): Return the number of groups found, or -1 on error.
21516         Use plain malloc not xmalloc, and treat its failure as if there
21517         are no groups, as the user already loses in case of error.
21518         (group_member): Simplify, based on changes to get_group_info.
21519         * modules/group-member (Depends-on): Remove dependencies on
21520         xalloc and stdbool.  Add dependency on xalloc-oversized.
21522 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
21524         gethrxtime: port to C++
21525         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
21527 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
21529         ptsname: fix macro-name typo
21530         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
21532 2012-10-03  Simon Josefsson  <simon@josefsson.org>
21534         inttostr: Relax license.
21535         * modules/inttostr (License): Change from LGPL to LGPLv2+.
21537 2012-10-03  Eric Blake  <eblake@redhat.com>
21539         ptsname_r: support ptys returned by FreeBSD posix_openpt
21540         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
21541         lives in /dev/pts/.
21543 2012-10-02  Eric Blake  <eblake@redhat.com>
21545         pselect: reject invalid file descriptors
21546         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
21547         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
21548         * modules/pselect (Depends-on): Add dup2.
21549         * doc/posix-functions/pselect.texi (pselect): Document this.
21551         select: reject invalid file descriptors
21552         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
21553         * lib/select.c (rpl_select) [!win32]: Work around it.
21554         * modules/select (Depends-on): Add dup2.
21555         * doc/posix-functions/select.texi (select): Document this.
21557         select: enhance test
21558         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
21559         New functions.
21560         (test_function): Enhance test.
21561         (do_select_bad_fd): Avoid any stale errno values.
21563         ptsname: reject invalid file descriptors
21564         http://www.austingroupbugs.net/view.php?id=503
21565         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
21566         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
21567         * modules/stdlib (Makefile.am): Replace witness.
21568         * lib/stdlib.in.h (ptsname): Allow for replacement.
21569         * modules/ptsname (configure.ac): Trigger replacement.
21570         * doc/posix-functions/ptsname.texi (ptsname): Document this.
21572 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
21574         hash-pjw-bare: new module
21575         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
21576         * lib/hash-pjw-bare.h: Likewise.
21577         * modules/hash-pjw-bare: New file.
21578         * MODULES.html.sh (Misc): Add it.
21580 2012-10-02  Eric Blake  <eblake@redhat.com>
21582         manywarnings: cater to more gcc infelicities
21583         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
21584         -Wuninitialized without -O.
21586 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
21588         select, poll tests: Make setsockopt invocation effective.
21589         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
21590         the bind() call.
21591         * tests/test-select.h (open_server_socket): Likewise.
21593 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
21595         sockets, sys_stat: restore AC_C_INLINE
21596         This undoes the 2012-09-22 patch.
21597         * m4/sockets.m4 (gl_SOCKETS):
21598         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21599         Restore AC_C_INLINE, since MSVC requires __inline or _inline
21600         and does not support plain 'inline'.  Reported by Bruno Haible in
21601         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
21603 2012-09-30  Bruno Haible  <bruno@clisp.org>
21605         localeconv tests: Avoid test failure on OpenIndiana.
21606         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
21607         skip the 'grouping' and 'mon_grouping' tests.
21608         Reported by Jim Meyering.
21610 2012-09-30  Bruno Haible  <bruno@clisp.org>
21612         havelib: Follow libtool developments.
21613         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
21614         Suggested by Simon Josefsson.
21616 2012-09-29  Jim Meyering  <meyering@redhat.com>
21618         fstatat.c: fix a compile-impeding typo
21619         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
21620         Introduced in commit v0.0-7636-gd202279.
21621         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
21623 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
21625         extern-inline: provide a -Wundef safe config.h
21626         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
21627         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
21628         to produce a -Wundef warning free config.h.
21630 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21632         hash-pjw: relax license to LGPLv2+
21633         * modules/hash-pjw (License): Relax, with consent of author.
21635 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21637         maint.mk: fix strict vs. lazy variable issues with RELEASE
21638         * top/maint.mk (_equal): New function.
21639         (member_check): Strip the result to avoid spurious spaces.
21640         (url_dir_list): Do not use ifeq, which is strict, as it will
21641         require RELEASE_TYPE to be defined.
21642         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
21643         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
21644         (announcement_Cc_alpha,announcement_mail_headers_alpha)
21645         (announcement_Cc_beta,announcement_mail_headers_beta)
21646         (announcement_Cc_stable,announcement_mail_headers_stable): these.
21647         (release): Do not depend on $(release-type), as it forces its
21648         evaluation.  Bounce to it.
21650 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
21652         maint.mk: formatting changes
21653         * top/maint.mk: Indent bodies of if's.
21655 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
21657         maint.mk: factor the validation of RELEASE_TYPE
21658         With help from Jim Meyering.
21659         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
21660         * top/maint.mk (_empty, _sp): Move their definition earlier.
21661         (member-check, release-type): New.
21662         Use the latter instead of $(RELEASE_TYPE).
21663         Remove now useless local checks.
21665 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21667         maint.mk: provide "make upload" to ease uploading
21668         See
21669         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
21670         Do not depend simply on the current $(VERSION), as there may have been
21671         new commits since the tarball generation.  Rather, rely on $(RELEASE),
21672         as "make release-commit" already does.
21674         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
21675         "make TYPE".
21677         * top/maint.mk (upload_command, upload, release): New.
21678         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
21679         (VERSION): first word of $(RELEASE) is always right.
21680         (emit_upload_commands): Adjust.
21681         * top/README-release: Update.
21683 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
21685         maint.mk: silent rules
21686         With help from Stefano Lattarini.
21687         * top/maint.mk (writable-files): Use $(AM_V_GEN).
21688         (announcement): Use $(AM_V_at).
21690 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
21692         localename: port gl_locale_name_thread_unsafe to FreeBSD
21693         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
21694         and use the simpler FreeBSD implementation on Mac OS X as well.
21695         Original idea suggested by Ed Maste in
21696         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
21698 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21700         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
21701         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
21702         * lib/mbuiter.c, lib/xsize.c: New files.
21703         * lib/binary-io.h (BINARY_IO_INLINE):
21704         * lib/eealloc.h (EEALLOC_INLINE):
21705         * lib/mbfile.h (MBFILE_INLINE):
21706         * lib/mbiter.h (MBITER_INLINE):
21707         * lib/mbuiter.h (MBUITER_INLINE):
21708         * lib/xsize.h (XSIZE_INLINE):
21709         New macros.
21710         Replace all uses of 'static inline' with them.
21711         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21712         * m4/eealloc.m4 (gl_EEALLOC):
21713         * m4/mbfile.m4 (gl_MBFILE):
21714         * m4/mbiter.m4 (gl_MBITER):
21715         * m4/xsize.m4 (gl_XSIZE):
21716         Do not require AC_C_INLINE.
21717         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
21718         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
21719         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
21720         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
21721         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
21722         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
21723         * modules/binary-io, modules/eealloc, modules/mbfile:
21724         * modules/mbiter, modules/mbuiter:
21725         (Depends-on): Add extern-inline.
21727         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
21728         * lib/pipe-filter-aux.c: New file.
21729         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
21730         Replace all uses of 'static inline' with it.
21731         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21732         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
21733         (filter_retcode): No real need for inline here.
21734         * modules/pipe-filter-gi, modules/pipe-filter-ii:
21735         (Files): Add lib/pipe-filter-aux.c.
21736         (Depends-on): Add extern-inline.
21737         (configure.ac): Do not require AC_C_INLINE.
21738         (lib_SOURCES): Add pipe-filter-aux.c.
21740         fdutimensat: omit unnecessary AC_C_INLINE
21741         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
21743         fchmodat, fchownat, fstatat: use extern-inline
21744         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
21745         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
21746         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
21747         New macros.
21748         * lib/openat.h:
21749         Replace all uses of 'static inline' with them.
21750         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21751         * modules/fchmodat, modules/fchownat, modules/fstatat:
21752         * modules/openat-h:
21753         (Depends-on):
21754         Add extern-inline.
21755         (configure.ac): Remove AC_C_INLINE.
21757         acl, mbchar, priv-set: use extern-inline
21758         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
21759         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
21760         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
21761         New macros.
21762         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
21763         Replace all uses of 'static inline' with it.
21764         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
21765         * m4/acl.m4 (gl_FUNC_ACL):
21766         * m4/mbchar.m4 (gl_MBCHAR):
21767         * m4/priv-set.m4 (gl_PRIV_SET):
21768         Remove AC_C_INLINE, since 'inline' is no longer used directly.
21769         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
21770         Add extern-inline.
21772         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
21773         * m4/sockets.m4 (gl_SOCKETS):
21774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
21775         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
21776         environments where it's already guaranteed to work, so we needn't
21777         check for it at 'configure'-time.
21779         tls-tests: omit unnecessary 'inline'
21780         * tests/test-tls.c (perhaps_yield): No longer inline.
21781         Simplicity and portability trump efficiency in test cases.
21783         utimens-tests: avoid unnecessary 'inline'
21784         * modules/fdutimensat-tests (configure.ac):
21785         * modules/futimens-tests (configure.ac):
21786         * modules/utimens-tests (configure.ac):
21787         * modules/utimensat-tests (configure.ac):
21788         Remove AC_C_INLINE.
21789         * tests/test-utimens-common.h (ctime_compare):
21790         No longer inline.  Simplicity and portability trump efficiency here.
21792         misc: don't limit commentary to inline functions
21793         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
21794         * lib/xalloc-oversized.h, lib/xsize.h:
21795         Contrast macros to functions in general, not just to inline functions,
21796         when the commentary does not apply only to inline functions.
21798 2012-09-20  Jim Meyering  <meyering@redhat.com>
21800         non-recursive-gnulib-prefix-hack: new module
21801         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
21802         the file that originated in Bison.
21803         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
21804         largely copied from a snippet that resided in bison's configure.ac.
21805         * modules/non-recursive-gnulib-prefix-hack: New file.
21806         * MODULES.html.sh (Support for maintaining and releasing projects):
21807         Add it.
21809 2012-09-18  Jim Meyering  <meyering@redhat.com>
21811         maint.mk: generalize _gl_tight_scope for non-recursive make
21812         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
21813         that *.h would describe additional .h files in the directory
21814         specified by $(_gl_TS_dir).  I.e., add this...
21815         (_gl_TS_other_headers): New variable.
21817         maint.mk: exempt trailing blanks found in "binary" files
21818         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
21819         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
21820         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21822 2012-09-17  Jim Meyering  <meyering@redhat.com>
21824         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
21825         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
21826         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
21827         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21829 2012-09-17  Jim Meyering  <meyering@redhat.com>
21831         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
21832         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
21833         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
21834         It is not in the same category as "exit (0)" or "exit (1)", and
21835         besides, I know of no symbolic name for that 77.  Reported by
21836         Richard W.M. Jones in
21837         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21839 2012-09-17  Jim Meyering  <meyering@redhat.com>
21841         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
21842         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
21843         all uses of #define, not just those that start in column 1.
21844         Richard W.M. Jones reported a false positive in
21845         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
21847 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21849         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
21850         * lib/localcharset.c (locale_charset) [DARWIN7]:
21851         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
21852         as these two values are incompatible.  Problem reported by Max Horn.
21853         For more discussion, please see
21854         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
21856         doc: document sticky-EOF issue
21857         * doc/posix-functions/fgetc.texi (fgetc):
21858         * doc/posix-functions/fgets.texi (fgets):
21859         * doc/posix-functions/fread.texi (fread):
21860         * doc/posix-functions/fscanf.texi (fscanf):
21861         * doc/posix-functions/getc.texi (getc):
21862         * doc/posix-functions/getchar.texi (getchar):
21863         * doc/posix-functions/scanf.texi (scanf):
21864         Mention that glibc and default Solaris do not conform to
21865         C99 and POSIX-2001 or later, with respect to how getchar
21866         etc. behave when feof reports nonzero.
21868 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21870         poll: fix poll(0, NULL, msec)
21871         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
21872         but nfd is 0.  In that case poll should behave like select.
21874 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
21875             Paolo Bonzini  <bonzini@gnu.org>
21877         poll: fix for systems that can't recv() on a non-socket
21878         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
21879         is readable.  In this case POLLHUP will not be supported.
21880         * doc/posix-functions/poll.texi: Document this.
21882 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
21884         poll/select: document portability problems not fixed by Gnulib.
21885         * doc/posix-functions/poll.texi: poll does not work well on
21886         pipes under Windows.  It has the same limitations as select on
21887         BeOS.
21888         * doc/posix-functions/select.texi: select does not work well
21889         on pipes under Windows.
21891 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
21893         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
21894         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
21895         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
21896         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
21898 2012-09-06  Eric Blake  <eblake@redhat.com>
21900         net_if: give more details about the bug being fixed
21901         * doc/posix-headers/net_if.texi: Add clarification.
21903 2012-09-05  Eric Blake  <eblake@redhat.com>
21905         net_if: new module
21906         * modules/net_if: New module, borrowing ideas from netinet_in.
21907         * m4/net_if_h.m4: New file.
21908         * lib/net_if.in.h: Likewise.
21909         * doc/posix-headers/net_if.texi (net/if.h): Document it.
21910         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21911         * tests/test-net_if.c: Make function checks conditional.
21912         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
21914 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
21916         readutmp: fix non-portable UT_PID use
21917         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
21918         Use `UT_PID (u) > 0' as absolute condition.
21920 2012-09-04  Jim Meyering  <meyering@redhat.com>
21922         fts: reduce two or more trailing spaces to just one, usually
21923         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
21924         or more slashes, trim all but the final one.  But if a name consists
21925         solely of two slashes, don't modify it.  If it consists solely of
21926         three or more slashes, strip all but one.
21928         This is part of the solution to a minor problem with rm:
21929         it would print a bogus ELOOP diagnostic when failing to remove
21930         the slash-decorated name of a symlink-to-directory:
21932             $ mkdir d && ln -s d s && env rm -r s/
21933             rm: cannot remove 's': Too many levels of symbolic links
21935         With the change below and a trivial don't-trim-trailing-slashes
21936         adjustment to remove.c, it does this:
21938             $ env rm -r s/
21939             rm: cannot remove 's/': Not a directory
21941         Improved by: Eric Blake
21943         fts: when there is no risk of overlap, use memcpy, not memmove
21944         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
21946 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
21948         stdbool: be more compatible with mixed C/C++ compiles
21949         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
21950         Define to bool, true, false, respectively, as GCC's builtin
21951         stdbool.h does.  Problem reported by Michael Goffioul in
21952         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
21954 2012-08-28  Jim Meyering  <meyering@redhat.com>
21956         revert last change: it was not needed
21957         * tests/test-vc-list-files-git.sh: There's already a test for
21958         a working git, just below.
21960 2012-08-28  Jim Meyering  <meyering@redhat.com>
21962         tests: test-vc-list-files-git.sh: skip if git is not available
21963         * tests/test-vc-list-files-git.sh: Skip this test when git is
21964         not available.
21966 2012-08-26  Bruno Haible  <bruno@clisp.org>
21968         gnulib-tool: Remove no-op option --no-changelog.
21969         * gnulib-tool (func_usage): Don't mention --no-changelog.
21970         (do_changelog): Remove variable.
21971         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
21973 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21975         doc: remove fdl-1.2.texi
21976         It is no longer used or maintained, and its use of @acronym
21977         is problematic.  See the thread containing
21978         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
21979         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
21980         * doc/old-licenses/fdl-1.2.texi: Remove.
21982         execinfo: port to FreeBSD
21983         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
21984         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
21985         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
21986         * modules/execinfo (Link): Add $(LIB_EXECINFO).
21988 2012-08-23  Jim Meyering  <meyering@redhat.com>
21990         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
21991         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
21992         to placate gcc's -Wold-style-declaration.
21994 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
21996         doc: do not use @acronym
21997         * doc/inet_ntoa.texi (inet_ntoa):
21998         * doc/parse-datetime.texi (Seconds since the Epoch)
21999         (Specifying time zone rules):
22000         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
22001         Don't use @acronym.  Problem reported by John Darlington in
22002         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
22004 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22006         stdnoreturn: port to newer GCCs
22007         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
22008         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
22009         Problem reported by Jim Meyering in
22010         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
22011         Also, rename the 'test' function to a void a clash with the
22012         already-supplied 'main' function; this fixes a bug that incorrectly
22013         rejected GCC 4.7.1's <stdnoreturn.h>.
22014         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
22015         Document GCC problem.
22017 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
22019         pipe-filter: fix comment typo
22020         * lib/pipe-filter.h: Mention correct function.
22022 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22024         execinfo: new module
22025         This is for Emacs.  Currently, it provides a no-effect stub
22026         on all platforms where it does not already work.
22027         It already works on glibc-based systems, and on Solaris 11.
22028         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
22029         New files.
22030         * doc/glibc-headers/execinfo.texi (execinfo.h):
22031         * MODULES.html.sh (Misc): Document it.
22033 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22035         extern-inline: support old GCC 'inline'
22036         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
22037         if available.  This applies to GCC versions 2.7 through 4.2, or
22038         when newer GCC is using -fgnu89-inline.  The goal is to address
22039         some of the performance issues mentioned by Bruno Haible in
22040         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
22042 2012-08-20  Eric Blake  <eblake@redhat.com>
22044         maint.mk: avoid redundant file name in message
22045         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
22046         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
22047         (sc_makefile_path_separator_check): Remove bogus $(ME).
22049 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
22051         timer-time: fix link order when static linking on glibc
22052         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
22053         _after_ -lrt so that it's significant.
22055 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
22057         timespec: omit unnecessary AC_C_INLINE
22058         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
22060         stat-time: omit unnecessary AC_C_INLINE
22061         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
22062         Do not require AC_C_INLINE.
22064         ignore-value: omit unnecessary AC_C_INLINE
22065         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
22067         sys_select: avoid 'static inline'
22068         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
22070         mktime: avoid 'static inline'
22071         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
22072         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
22074 2012-08-19  Bruno Haible  <bruno@clisp.org>
22076         gnulib-tool: Improve coding style.
22077         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
22078         func_emit_lib_Makefile_am.
22079         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22081 2012-08-19  Bruno Haible  <bruno@clisp.org>
22083         gnulib-tool: Fix indentation.
22084         * gnulib-tool (func_import): Fix indentation.
22086 2012-08-19  Bruno Haible  <bruno@clisp.org>
22088         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
22089         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
22090         on the list of removed files.
22092 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
22094         test-parse-datetime: avoid glibc leap-second glitch
22095         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
22096         with the 2012 rules.  Problem reported by Bruce Dubbs in
22097         <http://bugs.gnu.org/12206>.
22099 2012-08-14  Bruno Haible  <bruno@clisp.org>
22101         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
22102         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
22103         from argument.
22104         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22106 2012-08-14  Eric Blake  <eblake@redhat.com>
22108         ldexp: relax license
22109         * modules/ldexp (License): Trivial relax, since the module only
22110         provides a permissively licensed m4 file.
22112 2012-08-13  Bruno Haible  <bruno@clisp.org>
22114         gnulib-tool: Fix persistence of --witness-c-macro option.
22115         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
22116         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
22118 2012-08-11  Eric Blake  <eblake@redhat.com>
22120         count-leading-zeros: use a lookup table on non-gcc compilers
22121         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
22122         alternate implementation, suggested by Jim Meyering.
22124 2012-08-10  Eric Blake  <eblake@redhat.com>
22126         count-leading-zeros: new module
22127         * modules/count-leading-zeros: New module.
22128         * m4/count-leading-zeros.m4: New file.
22129         * lib/count-leading-zeros.h: Likewise.
22130         * modules/count-leading-zeros-tests: New test.
22131         * tests/test-count-leading-zeros.c: New file.
22132         * MODULES.html.sh (Integer arithmetic functions): Document it.
22134 2012-08-07  Simon Josefsson  <simon@josefsson.org>
22135             Jim Meyering  <meyering@redhat.com>
22137         maintainer-makefile: Fix syntax error with dash.
22138         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
22139         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
22141 2012-08-05  Jim Meyering  <meyering@redhat.com>
22143         extern-inline: also ignore -Wmissing-declarations
22144         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
22145         required with gcc-4.8.0-to-be.
22147         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
22148         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
22149         for /error ?([^,]*)/.  This avoids false-positives for strings like
22150         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
22152 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
22154         gnumakefile: better interaction with Automake-NG
22155         * modules/gnumakefile [Makefile.am]: The makefiles generated by
22156         Automake-NG always contain a definition of VPATH, even in non-VPATH
22157         builds (its value being simply '.' in that case).  So, in the
22158         'clean-GNUmakefile' rule, to determine whether running under a
22159         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
22160         '$(VPATH)' expands to the empty string.
22162 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
22164         base64: Use extern C scope in header file, for C++.
22165         * lib/base64.h: Add C++ namespace protection.
22167 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22169         stat-time, timespec, u64: support naive out-of-dir builds
22170         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
22171         Use '#include "foo.h"', not '#include <foo.h>', when including
22172         one's own interface.  This works better when configuring with
22173         out-of-directory builds, since packages need not add an
22174         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
22176 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22178         utimens: use extern-inline
22179         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
22180         * lib/utimens.h: Add copyright notice, since this is now large enough
22181         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22182         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
22183         * modules/utimens (Depends-on): Add extern-inline.
22185         u64: use extern-inline
22186         * lib/u64.c: New file.
22187         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22188         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
22189         * modules/u64 (Files): Add lib/u64.c.
22190         (Depends-on): Add extern-inline.
22191         (configure.ac): No need to require AC_C_INLINE, since extern-inline
22192         does that now.
22193         (lib_SOURCES): Add u64.c.
22195         timespec: use extern-inline
22196         * lib/timespec.c: New file.
22197         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22198         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
22199         * modules/timespec (Files): Add lib/timespec.c.
22200         (Depends-on): Add extern-inline.
22201         (lib_SOURCES): Add timespec.c.
22203         stat-time: use extern-inline
22204         * lib/stat-time.c: New file.
22205         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
22206         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
22207         * modules/stat-time (Files): Add lib/stat-time.c.
22208         (Depends-on): Add extern-inline.
22209         (lib_SOURCES): Add stat-time.c.
22211         extern-inline: new module
22212         * modules/extern-inline, m4/extern-inline.m4: New files.
22213         This is for better support of 'extern inline' a la ISO C99,
22214         with a portable alternative on compilers that do not support
22215         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
22216         of the Emacs executable, when compiled with debugging disabled,
22217         which is a typical way that Emacs is built while developing.
22219 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
22221         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
22222         * build-aux/do-release-commit-and-tag: Move variable definitions
22223         together.
22224         ($branch): Instead of defaulting to "master", default to the current
22225         branch (as gnu-web-doc-update does).
22226         (help): Display the current values of the option arguments.
22227         * top/maint.mk (release-commit): New.
22228         * top/README-release: Simplify the corresponding step.
22230 2012-07-30  Eric Blake  <eblake@redhat.com>
22232         passfd: fix comment on recvfd
22233         * lib/passfd.c (recvfd): Fix comment.
22234         Reported by Jann Horn <jannhorn@googlemail.com>.
22236 2012-07-30  Jim Meyering  <meyering@redhat.com>
22238         maint.mk: avoid a sub-shell
22239         * top/maint.mk (release-prep): Remove unneeded sub-shell.
22241 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22243         maint.mk: use silent-rules support from Automake
22244         * top/maint.mk (news-check, vc-diff-check, announcement)
22245         (no-submodule-changes, alpha beta stable, release-prep)
22246         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
22248 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22250         maint.mk: provide a web-manual-update target
22251         * top/maint.mk: here.
22252         * top/README-release: Use it to simplify the web manual update step.
22254 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22256         README-release: shorten the circuit to post a news
22257         * top/README-release: Point directly to the news submission form.
22259 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22261         gnu-web-doc-update: fix --help
22262         * build-aux/gnu-web-doc-update: The information "top level" was written
22263         twice.
22265 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
22267         maint.mk: absolute VPATH issue
22268         * top/maint.mk (release-prep): Help Git find .git/.
22269         From Jim Meyering.
22271 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22273         gitlog-to-changelog: fix previous change
22274         * build-aux/gitlog-to-changelog: Fix condition.
22275         Add missing ";".
22277 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22279         gitlog-to-changelog: don't expect .git to be in $srcdir
22280         Reported by Bruno Haible.
22281         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
22282         * build-aux/gitlog-to-changelog (&git_dir_option): New.
22283         Use it.
22285 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
22287         maint.mk: absolute VPATH build fix
22288         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
22289         $(srcdir) is not a parent of $(builddir).
22291 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
22293         clean-temp: Fix memory leak.
22294         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
22295         'files' members of tmpdir.
22297 2012-07-27  Jim Meyering  <meyering@redhat.com>
22299         maint.mk: new rule: refresh-gnulib-patches
22300         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
22301         Use this rule to refresh them.
22302         * top/maint.mk (refresh-gnulib-patches): New rule.
22304 2012-07-24  Bruno Haible  <bruno@clisp.org>
22306         gnulib-tool: Fix handling of inctests variable.
22307         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
22308         Reported by Nick Bowler <nbowler@elliptictech.com>.
22310 2012-07-22  Bruno Haible  <bruno@clisp.org>
22312         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
22313         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
22314         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22315         Remove exemption for getpass.h.
22316         Suggested by Eric Blake.
22318 2012-07-20  Eric Blake  <eblake@redhat.com>
22320         verify: document conflict with -Wnested-externs
22321         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
22323         maint.mk: forbid exit(-1)
22324         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
22326 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
22328         fsusage: port back to Solaris
22329         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
22330         error (fsd not declared) on Solaris 10.  Reported privately by
22331         Andrew Borodin.
22333 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
22335         gnu-web-doc-update: fix error messages
22336         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
22338         gnu-web-doc-update: check the requirements.
22339         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
22340         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
22341         * build-aux/bootstrap (find_tool): Comment change.
22343 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
22345         maint.mk: minor simplication.
22346         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
22347         for default values.
22349 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
22351         gitlog-to-changelog: VPATH build issues
22352         If builddir is not a subdirectory of srcdir, running git from it will
22353         fail.
22354         * build-aux/gitlog-to-changelog (--srcdir): New option.
22356 2012-07-15  Bruno Haible  <bruno@clisp.org>
22358         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
22359         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
22360         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
22361         Remove exemption for fpending.h.
22362         Suggested by Eric Blake.
22364 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
22366         pthread_sigmask: fix bug on FreeBSD 9
22367         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
22368         Include string.h.
22369         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
22370         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
22371         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
22372         but pthread_sigmask (1729, NULL, NULL) returns zero.
22373         See <http://bugs.gnu.org/11884>.
22374         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
22375         by inspecting whether the main call changed the old mask.
22377 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
22379         README-release: make it more legible
22380         * top/README-release: Improve typography slightly.
22382 2012-07-15  Jim Meyering  <meyering@redhat.com>
22384         maint: require that each sc_... command start with "@"
22385         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
22386         "make sc_maint" helps us avoid this nit.
22388 2012-07-15  Jim Meyering  <meyering@redhat.com>
22390         maint.mk: add leading "@" to quiet new "make syntax-check" rule
22391         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
22393 2012-07-13  Eric Blake  <eblake@redhat.com>
22395         maint.mk: new syntax check for HAVE_DECL checks
22396         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
22397         * cfg.mk
22398         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
22399         Exempt some false positives.
22400         Based on a report by Karel Zak.
22402         argp: make HAVE_DECL usage consistent
22403         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
22404         macros, not whether they are defined.
22405         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
22406         convention with other declaration checks.
22407         Reported by Karel Zak, with suggestions from Paul Eggert.
22409         stat-time: relax license to LGPLv2+
22410         * modules/stat-time (License): Relax, with consent of all authors.
22412         strndup: fix m4 usage error
22413         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
22414         defined, to either 0 or 1.
22415         Reported by Karel Zak.
22417 2012-07-11  Jim Meyering  <meyering@redhat.com>
22419         maint: enable the sc_avoid_if_before_free syntax-check rule
22420         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
22421         (if_before_free_offenders_): Define.
22422         (if_before_free_basename_re_): Define.
22423         Exempt current files with useless if-before-free.
22425 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
22427         gettext: do not assume '#define ... defined ...' behavior
22428         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
22429         Do not use '#define FOO ... defined BAR ...', as the C standard says
22430         it's not portable to expect that this works after macro expansion.
22431         Problem reported for gzip by Steven M. Schweda in
22432         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
22434 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22436         getloadavg: clean out old Emacs and Autoconf cruft
22437         See Glenn Morris in <http://bugs.gnu.org/11905>.
22438         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
22439         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
22440         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
22441         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
22443 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
22445         bootstrap: let warn be like tests/init.sh's warn_
22446         Reported by Jim Meyering.
22447         * build-aux/bootstrap (warn): Remove, replaced by...
22448         (warnf_, warn_): these.
22449         Adjust callers.
22450         Shorten messages that no longer fit in 80 columns.
22452 2012-07-09  Bruno Haible  <bruno@clisp.org>
22454         getopt: Simplify after Emacs changed.
22455         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
22456         (gl_GETOPT_IFELSE): Remove macro.
22458 2012-07-09  Jim Meyering  <meyering@redhat.com>
22460         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
22461         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
22463         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
22464         Bugs in both of those conspired to make the
22465         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
22466         _sc_search_regexp's handling of non-empty $in_files would filter
22467         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
22468         choice of in_files value meant there would be no match in most
22469         projects, due to the presence of two or more Makefile.in files.
22470         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
22471         Fix a bug in how a non-empty $$in_files was processed:
22472         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
22473         in spite of the name, it's a regexp, not a list of file names.
22475 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
22477         getloadavg, getopt: fix commentary re configure.in
22478         Autoconf is deprecating the name 'configure.in', so change it to
22479         to the new name 'configure.ac' in a couple of places.
22480         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
22481         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
22482         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
22483         Emacs has renamed it to configure.ac, and it no longer refers
22484         to these macros anyway.
22486         timespec: mark functions with const attributes
22487         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
22488         Mark with _GL_ATTRIBUTE_CONST.
22490 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22492         canonicalize[-lgpl]: handle "guessing" values when cross-building
22493         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
22494         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
22495         matches "*yes" instead of just "yes".  Regression introduced in commit
22496         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
22498 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
22499             Bruno Haible  <bruno@clisp.org>
22501         canonicalize: make the right guess when cross-compiling to GNU
22502         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
22503         determine whether cross-compiling to glibc systems, so as to
22504         include GNU/Hurd.
22506 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
22508         timespec-sub: avoid duplicate include
22509         * lib/timespec-sub.c: Do not include <config.h> twice.
22510         Reported by Juanma Barranquero.
22512 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
22514         bootstrap: use a more consistent error reporting scheme
22515         * build-aux/bootstrap (warn, die): New.
22516         Use them.
22518 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
22520         sys_time: allow too-wide tv_sec
22521         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
22522         timeval even if tv_sec is wider than time_t.  This allows
22523         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
22524         as without this patch gnulib replaces struct timeval
22525         and OpenBSD futimes therefore has a type mismatch.
22526         * doc/posix-headers/sys_time.texi: Mention this.
22528         pthread: check for both pthread_create and pthread_join
22529         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
22530         alter the check so that it tests for both pthread_create and
22531         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
22532         Suggested by Bruno Haible and Richard Yao in
22533         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
22535         parse-datetime: doc tuneup
22536         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
22537         spacing issues.
22539 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
22541         do-release-commit-and-tag: fix the previous commit
22542         * build-aux/do-release-commit-and-tag: Actually the test was right,
22543         but the comment and the error message were misleading.
22544         Fix comment, and improve error message.
22545         Perform check first, so that NEWS is not modified uselessly.
22547         do-release-commit-and-tag: fix typo
22548         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
22549         _not_ start with a stub.
22551 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
22553         pthread: check for pthread_create, not pthread_join
22554         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
22555         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
22556         pthread_join in libc.  I hope this removes the need for all the
22557         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
22558         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
22560 2012-07-04  Jim Meyering  <meyering@redhat.com>
22562         parse-datetime: fix failure to diagnose invalid input
22563         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
22564         rather than diagnosing the invalid input.  Now it reports this:
22565         date: invalid date '\260'
22566         * lib/parse-datetime.y (to_uchar): Define.
22567         (yylex): Don't sign-extend "other" bytes.
22568         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
22569         Thanks to Bruno Haible for the patch to this file.
22570         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
22571         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
22573 2012-07-03  Jim Meyering  <meyering@redhat.com>
22575         bootstrap: do not require now-removed build-aux/missing
22576         Now that build-aux/missing is, er, missing, bootstrap would
22577         silently fail.
22578         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
22579         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
22580         no longer part of gnulib.
22581         Diagnose the failure.
22583 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
22585         alloca: add support for HP NonStop TNS/E native
22586         * lib/alloca.in.h (alloca): Support the new host.
22587         From a suggestion by Joachim Schmitz in
22588         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
22590 2012-07-02  Pádraig Brady  <P@draigBrady.com>
22592         fsusage: remove code not needed on non GNU/Linux systems.
22594         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22595         Don't include headers no longer needed in this case.
22596         * lib/fsusage.c [STAT_STATVFS &&
22597         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
22598         STAT_STATFS2_FRSIZE to exclude code not used in this case.
22600 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22602         fsusage: include files needed for glibc 2.6 fallback
22603         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
22604         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
22605         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
22606         Problem reported by Ludovic Courtès in
22607         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
22609         fsusage: avoid needless check on GNU/Linux
22610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
22611         on GNU/Linux systems, since it can't possibly work.
22613 2012-07-01  Bruno Haible  <bruno@clisp.org>
22615         log: Fix an autoconf >= 2.64 warning.
22616         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
22617         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22619 2012-06-28  Bruno Haible  <bruno@clisp.org>
22621         log10f: Fix possible configuration problem.
22622         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
22623         $LOGF_LIBM.
22624         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22626 2012-06-28  Bruno Haible  <bruno@clisp.org>
22628         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
22629         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
22630         not gl_cv_func_unlink_works.
22631         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
22633 2012-06-27  Eric Blake  <eblake@redhat.com>
22635         config: drop scripts that automake says are not independent
22636         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
22637         * build-aux/elisp-comp: Delete.
22638         * build-aux/missing: Likewise.
22639         * build-aux/ylwrap: Likewise.
22640         * modules/elisp-comp: Likewise.
22641         * MODULES.html.sh: Drop mention of elisp-comp.
22642         * NEWS: Mention this.
22644 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
22646         root-uid: new module
22647         This is for portability to Tandem's NonStop Kernel.
22648         * lib/root-uid.h, modules/root-uid: New files.
22649         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
22650         * lib/write-any-file.c, tests/test-sethostname2.c:
22651         Include "root-uid.h".
22652         * lib/euidaccess.c (euidaccess):
22653         * lib/pt_chown.c (main):
22654         * lib/unlinkdir.c (cannot_unlink_dir):
22655         * lib/write-any-file.c (can_write_any_file):
22656         * m4/mknod.m4 (gl_FUNC_MKNOD):
22657         * tests/test-sethostname2.c (geteuid, main):
22658         Don't assume ROOT_UID == 0.
22659         * modules/euidaccess (Depends-on):
22660         * modules/pt_chown (Depends-on):
22661         * modules/sethostname-tests (Depends-on):
22662         * modules/unlinkdir (Depends-on):
22663         * modules/write-any-file (Depends-on):
22664         Add root-uid.
22666         regex: use locale-independent comparison for codeset name
22667         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
22668         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
22669         for codeset name.
22670         * lib/regex_internal.h: Do not include <strings.h>, since we
22671         no longer use strcasecmp.
22672         * modules/regex (Depends-on): Remove strcase.
22674 2012-06-23  Bruno Haible  <bruno@clisp.org>
22676         getopt-posix: No longer guarantee that option processing is resettable.
22677         * doc/posix-functions/getopt.texi: Drop description of problem with
22678         internal state. Fix info about mingw and msvc9.
22679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
22680         option processing by getopt(). Run three test programs instead of one.
22681         Simplify cross-compilation guess.
22682         * NEWS: Mention the change.
22683         Reported by Rich Felker <dalias@aerifal.cx>.
22685 2012-06-26  Bruno Haible  <bruno@clisp.org>
22687         argp, regex: Ensure strcasecmp gets declared.
22688         * lib/argp-help.c: Include <strings.h>.
22689         * lib/regex_internal.h: Likewise.
22690         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
22692 2012-06-24  Bruno Haible  <bruno@clisp.org>
22694         ptsname_r: Make it consistent with ptsname on AIX.
22695         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
22696         implementation as for OSF/1.
22697         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
22698         a pty master.
22700         ptsname_r: Make it consistent with ptsname on OSF/1.
22701         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22702         OSF/1.
22704 2012-06-24  Bruno Haible  <bruno@clisp.org>
22706         ttyname_r: Fix result on OSF/1, Solaris.
22707         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
22709 2012-06-24  Bruno Haible  <bruno@clisp.org>
22711         ptsname_r: Add support for Solaris.
22712         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
22713         Solaris.
22715         ptsname_r: Fix test failure on native Windows.
22716         * modules/ptsname_r (Depends-on): Add isatty.
22718         ptsname_r: Fix test failures on IRIX, Solaris.
22719         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
22720         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
22721         accordingly.
22722         * lib/ptsname_r.c: Include <fcntl.h>.
22723         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
22724         set errno if fd is invalid.
22725         * tests/test-isatty.c (main): Update comments.
22727 2012-06-24  Bruno Haible  <bruno@clisp.org>
22729         ptsname test: Extend test.
22730         * tests/test-ptsname.c: Include <errno.h>.
22731         (main): Test behaviour with invalid file descriptor.
22733 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22735         time: fix obsolete comment
22736         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
22737         reference to HAVE_STRUCT_TIMESPEC in comment.
22739 2012-06-23  Bruno Haible  <bruno@clisp.org>
22741         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
22742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
22743         does not handle abbreviated long options with equivalent
22744         disambiguations, set gl_replace_getopt to yes.
22745         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
22747 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
22749         time_r: fix typo that always overrode localtime_r decl
22750         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
22751         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
22752         not in a standard include.
22754 2012-06-22  Bruno Haible  <bruno@clisp.org>
22756         Write "Mac OS X" instead of "MacOS X".
22757         * README: Write "Mac OS X" instead of "MacOS X".
22758         * build-aux/bootstrap: Likewise.
22759         * build-aux/install-reloc: Likewise.
22760         * lib/acl-internal.h: Likewise.
22761         * lib/acl_entries.c: Likewise.
22762         * lib/argp-ba.c: Likewise.
22763         * lib/argp-pv.c: Likewise.
22764         * lib/config.charset: Likewise.
22765         * lib/copy-acl.c: Likewise.
22766         * lib/csharpexec.c: Likewise.
22767         * lib/euidaccess.c: Likewise.
22768         * lib/fbufmode.c: Likewise.
22769         * lib/fflush.c: Likewise.
22770         * lib/file-has-acl.c: Likewise.
22771         * lib/filemode.h: Likewise.
22772         * lib/fpurge.c: Likewise.
22773         * lib/freadable.c: Likewise.
22774         * lib/freadahead.c: Likewise.
22775         * lib/freading.c: Likewise.
22776         * lib/freadptr.c: Likewise.
22777         * lib/freadseek.c: Likewise.
22778         * lib/fseeko.c: Likewise.
22779         * lib/fseterr.c: Likewise.
22780         * lib/fsusage.c: Likewise.
22781         * lib/fwritable.c: Likewise.
22782         * lib/fwriting.c: Likewise.
22783         * lib/get-rusage-as.c: Likewise.
22784         * lib/get-rusage-data.c: Likewise.
22785         * lib/getdomainname.c: Likewise.
22786         * lib/idpriv-drop.c: Likewise.
22787         * lib/idpriv-droptemp.c: Likewise.
22788         * lib/localcharset.c: Likewise.
22789         * lib/locale.in.h: Likewise.
22790         * lib/localename.c: Likewise.
22791         * lib/mbsrtowcs-state.c: Likewise.
22792         * lib/nproc.c: Likewise.
22793         * lib/passfd.c: Likewise.
22794         * lib/posix_openpt.c: Likewise.
22795         * lib/printf-parse.c: Likewise.
22796         * lib/progreloc.c: Likewise.
22797         * lib/safe-read.h: Likewise.
22798         * lib/safe-write.h: Likewise.
22799         * lib/sched.in.h: Likewise.
22800         * lib/set-mode-acl.c: Likewise.
22801         * lib/signal.in.h: Likewise.
22802         * lib/stdint.in.h: Likewise.
22803         * lib/stdio-impl.h: Likewise.
22804         * lib/stdlib.in.h: Likewise.
22805         * lib/strtod.c: Likewise.
22806         * lib/sys_select.in.h: Likewise.
22807         * lib/tcgetsid.c: Likewise.
22808         * lib/unistd.in.h: Likewise.
22809         * lib/unlockpt.c: Likewise.
22810         * lib/vasnprintf.c: Likewise.
22811         * lib/vma-iter.c: Likewise.
22812         * lib/wcsrtombs-state.c: Likewise.
22813         * m4/acl.m4: Likewise.
22814         * m4/acosl.m4: Likewise.
22815         * m4/asinl.m4: Likewise.
22816         * m4/atanl.m4: Likewise.
22817         * m4/c-stack.m4: Likewise.
22818         * m4/cosl.m4: Likewise.
22819         * m4/expl.m4: Likewise.
22820         * m4/extensions.m4: Likewise.
22821         * m4/fdatasync.m4: Likewise.
22822         * m4/fmal.m4: Likewise.
22823         * m4/frexp.m4: Likewise.
22824         * m4/frexpf.m4: Likewise.
22825         * m4/frexpl.m4: Likewise.
22826         * m4/fsusage.m4: Likewise.
22827         * m4/getdomainname.m4: Likewise.
22828         * m4/getloadavg.m4: Likewise.
22829         * m4/getopt.m4: Likewise.
22830         * m4/gettext.m4: Likewise.
22831         * m4/gnulib-common.m4: Likewise.
22832         * m4/intdiv0.m4: Likewise.
22833         * m4/intlmacosx.m4: Likewise.
22834         * m4/largefile.m4: Likewise.
22835         * m4/ldexpl.m4: Likewise.
22836         * m4/link-follow.m4: Likewise.
22837         * m4/locale-ar.m4: Likewise.
22838         * m4/locale-fr.m4: Likewise.
22839         * m4/locale-ja.m4: Likewise.
22840         * m4/locale-tr.m4: Likewise.
22841         * m4/locale-zh.m4: Likewise.
22842         * m4/locale_h.m4: Likewise.
22843         * m4/lock.m4: Likewise.
22844         * m4/logl.m4: Likewise.
22845         * m4/mathfunc.m4: Likewise.
22846         * m4/minus-zero.m4: Likewise.
22847         * m4/mktime.m4: Likewise.
22848         * m4/mmap-anon.m4: Likewise.
22849         * m4/multiarch.m4: Likewise.
22850         * m4/nanosleep.m4: Likewise.
22851         * m4/nocrash.m4: Likewise.
22852         * m4/poll.m4: Likewise.
22853         * m4/printf-frexpl.m4: Likewise.
22854         * m4/printf.m4: Likewise.
22855         * m4/signbit.m4: Likewise.
22856         * m4/sinl.m4: Likewise.
22857         * m4/sqrtl.m4: Likewise.
22858         * m4/strerror_r.m4: Likewise.
22859         * m4/tanl.m4: Likewise.
22860         * m4/threadlib.m4: Likewise.
22861         * m4/ttyname_r.m4: Likewise.
22862         * m4/unlink.m4: Likewise.
22863         * m4/visibility.m4: Likewise.
22864         * m4/wcwidth.m4: Likewise.
22865         * tests/minus-zero.h: Likewise.
22866         * tests/test-alloca-opt.c: Likewise.
22867         * tests/test-copy-acl.sh: Likewise.
22868         * tests/test-copy-file.sh: Likewise.
22869         * tests/test-fdatasync.c: Likewise.
22870         * tests/test-file-has-acl.sh: Likewise.
22871         * tests/test-flock.c: Likewise.
22872         * tests/test-fsync.c: Likewise.
22873         * tests/test-localename.c: Likewise.
22874         * tests/test-malloca.c: Likewise.
22875         * tests/test-nonblocking-pipe.h: Likewise.
22876         * tests/test-nonblocking-socket.h: Likewise.
22877         * tests/test-openpty.c: Likewise.
22878         * tests/test-posix_openpt.c: Likewise.
22879         * tests/test-ptsname.c: Likewise.
22880         * tests/test-ptsname_r.c: Likewise.
22881         * tests/test-sameacls.c: Likewise.
22882         * tests/test-select.h: Likewise.
22883         * tests/test-set-mode-acl.sh: Likewise.
22884         * tests/test-snprintf-posix.h: Likewise.
22885         * tests/test-sprintf-posix.h: Likewise.
22886         * tests/test-strtod.c: Likewise.
22887         * tests/test-time.c: Likewise.
22888         * tests/test-vasnprintf-posix.c: Likewise.
22889         * tests/test-vasprintf-posix.c: Likewise.
22890         * doc/acl-resources.txt: Likewise.
22891         * doc/**/*.texi: Likewise.
22892         Reported by Max Horn <max@quendi.de>.
22894 2012-06-22  Bruno Haible  <bruno@clisp.org>
22896         grantpt: Relax requirement regarding invalid file descriptors.
22897         * lib/grantpt.c: Don't include <fcntl.h>.
22898         (grantpt): Don't verify the validity of the file descriptor.
22899         * modules/grantpt (Depends-on): Remove fcntl-h.
22900         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
22901         file descriptors.
22902         * doc/posix-functions/grantpt.texi: Document more platforms on which
22903         grantpt succeeds for invalid file descriptors.
22904         Reported by Rich Felker <dalias@aerifal.cx>.
22906 2012-06-22  Bruno Haible  <bruno@clisp.org>
22908         fbufmode test: Don't test unportable behaviour.
22909         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
22910         (main): Invoke it three times.
22911         Reported by Szabolcs Nagy <nsz@port70.net>
22912         and Rich Felker <dalias@aerifal.cx>.
22914 2012-06-21  Bruno Haible  <bruno@clisp.org>
22916         gnulib-tool: Refactor inctests variable.
22917         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
22918         (func_modules_transitive_closure,
22919         func_modules_transitive_closure_separately,
22920         func_import, func_create_testdir): Update.
22922         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
22923         * gnulib-tool: Accept option --without-tests.
22924         (func_usage): Document --without-tests option. Rearrange.
22925         (inctests): Normalize according to the mode.
22926         * NEWS: Mention the change.
22927         Suggested by Simon Josefsson.
22929 2012-06-21  Bruce Korb  <bkorb@gnu.org>
22931         parse-duration test: Avoid spurious output.
22932         * tests/test-parse-duration.sh: Reindent with leading tabs.
22934 2012-06-21  Jim Meyering  <meyering@redhat.com>
22936         maint: disable the strncpy prohibition
22937         * cfg.mk: Do not prohibit strncpy here.
22939 2012-06-21  Bruno Haible  <bruno@clisp.org>
22941         nonblocking: Avoid compilation error on mingw64.
22942         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
22943         fscanf.
22944         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
22945         * modules/vfscanf (configure.ac): Likewise.
22946         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
22947         definition only if stdio.h has prepared it.
22948         Reported by Daniel P. Berrange <berrange@redhat.com>.
22950 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
22952         gnulib-tool: Use readlink if it is available.
22953         * gnulib-tool (func_readlink): Choose function more appropriately.
22955 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22957         posixtm-tests: port to buggy compiler
22958         Problem reported by Simon Josefsson in
22959         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
22960         * modules/posixtm-tests (Depends-on): Add stdint.
22961         * tests/test-posixtm.c (struct posixtm_test.t_expected):
22962         Now of type int_least64_t, not int64_t, both because that's
22963         what INT64_C returns and because int_least64_t works even
22964         on 72-bit hosts.
22965         (T): Use INT64_C on constants outside the traditional int range,
22966         to work around compiler bug noted by Simon.
22968         mktime: fix integer overflow in 'configure'-time test
22969         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
22970         after integer overflow.  Problem reported by Rich Felker in
22971         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
22972         Also, don't look for further instances of a bug if we've already
22973         found one instance; this helps 'configure' run faster.
22975 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
22977         tmpfile, clean-temp: Fix invocation of GetVersionEx.
22978         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
22979         GetVersionEx correctly.
22980         * lib/clean-temp.c (supports_delete_on_close): Likewise.
22982 2012-06-20  Bruno Haible  <bruno@clisp.org>
22984         fdopen: Allow implementations that don't reject invalid fd arguments.
22985         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
22986         succeeds.
22987         Reported by Rich Felker <dalias@aerifal.cx>.
22989 2012-06-20  Simon Josefsson  <simon@josefsson.org>
22991         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
22992         bring in LIBINTL.
22994 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22996         init.sh: do not rely on autoupated PWD
22997         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
22998         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
22999         Although Nelson's bug was not necessarily fixed by this patch,
23000         it seems wise to make the change for safety.
23001         * tests/init.sh (path_prepend_): Do not rely on PWD updating
23002         automagically after 'cd'; this is not reliable on older shells.
23003         (setup_): Fail if we cannot cd to temporary directory.
23005 2012-06-19  Bruno Haible  <bruno@clisp.org>
23007         stat, fstat: Avoid warnings on mingw64.
23008         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
23009         redefining.
23010         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
23011         Reported by Daniel P. Berrange <berrange@redhat.com>.
23013 2012-06-19  Bruno Haible  <bruno@clisp.org>
23015         stdioext: Add support for musl libc.
23017         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
23018         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
23020         * m4/fseterr.m4: New file.
23021         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
23022         function exists.
23023         * modules/fseterr (Files): Add m4/fseterr.m4.
23024         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
23025         __fseterr does not exist.
23026         (Makefile.am): Remove fseterr.c from lib_SOURCES.
23028         * lib/freadable.h: Update comment.
23030         * lib/fwritable.h: Update comment.
23032         * lib/freading.h: Update comment.
23034         * lib/fwriting.h: Update comment.
23036         * m4/freadahead.m4: New file.
23037         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
23038         that function exists.
23039         * modules/freadahead (Files): Add m4/freadahead.m4.
23040         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
23041         __freadahead does not exist.
23042         (Makefile.am): Remove freadahead.c from lib_SOURCES.
23044         * m4/freadptr.m4: New file.
23045         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
23046         function exists.
23047         * modules/freadptr (Files): Add m4/freadptr.m4.
23048         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
23049         __freadptr does not exist.
23050         (Makefile.am): Remove freadptr.c from lib_SOURCES.
23052         * m4/freadseek.m4: New file.
23053         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
23054         exists.
23055         * modules/freadseek (Files): Add m4/freadseek.m4.
23056         (configure.ac): Invoke gl_FUNC_FREADSEEK.
23058         * lib/fpurge.c (fpurge): Update comment.
23060         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
23062 2012-06-19  Bruno Haible  <bruno@clisp.org>
23064         *printf-posix: Put more info into config.log.
23065         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
23066         exit code into config.log.
23068 2012-06-19  Bruno Haible  <bruno@clisp.org>
23070         getopt-gnu: Fix exit code overflow in autoconf test.
23071         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
23072         to keep them below < 128.
23074 2012-06-17  Jim Meyering  <meyering@redhat.com>
23076         maint.mk: fix typo in code to derive GPG key at release time
23077         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
23079 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23081         regex: avoid warning when pointers are not long
23082         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
23083         and uintptr_t, not long, for portability to hosts where pointers and
23084         long have different sizes.  Issue noted by Daniel P. Berrange in
23085         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
23086         and fix suggested by Bruno Haible in
23087         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
23089 2012-06-17  Bruno Haible  <bruno@clisp.org>
23091         dummy: Relicense into the public domain.
23092         * modules/dummy (License): Set to "public domain".
23093         Suggested by Reuben Thomas.
23095 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
23097         announce-gen: VPATH issues
23098         * build-aux/announce-gen (--srcdir): New option, used to trim the
23099         $srcdir part of the path from $builddir to NEWS.
23100         * top/maint.mk (announcement): Adjust.
23102 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
23104         gnu-web-doc-update: VPATH builds
23105         * build-aux/gnu-web-doc-update (--builddir): New option.
23106         Revamp the handling of options.
23107         Prefer $(...) to `...`.
23108         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
23109         the template, and it is GNU mktemp specific.
23110         Prefer set -e to long series of &&.
23111         Restore the initial git branch, not "master".
23112         Properly initialize submodules (don't rely only on bootstrap).
23113         Do not reconfigure blindly, use config.status.
23114         * top/README-release: Update instructions for gnu-web-doc-update.
23116 2012-06-11  Jim Meyering  <meyering@redhat.com>
23118         maint.mk: revert most of the previous change re "all these"
23119         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
23120         For rationale, see the discussion at
23121         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
23123 2012-06-10  Karl Berry  <karl@gnu.org>
23125         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
23127         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
23129 2012-06-10  Bruce Korb  <bkorb@gnu.org>
23131         parse-duration: Relicense under LGPLv2+.
23132         * modules/parse-duration (License): Change to LGPLv2+.
23134 2012-06-10  Jim Meyering  <meyering@redhat.com>
23136         maint.mk: prohibit common grammar error: "all these"
23137         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
23138         the list of prohibited word sequences.  It should be "all of these".
23139         * lib/tempname.c (__gen_tempname): Fix one of them.
23141 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23143         do-release-commit-and-tag: support VPATH builds
23144         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
23145         (noteworthy): Defined earlier to factor its value.
23146         (noteworthy_stub): New.
23147         Use it to factor.
23148         (help_version): Split into...
23149         (help, version): these.
23150         Adjust the option processing part.
23151         Support "--option=value" in addition to "--option value".
23152         (builddir): New.
23153         (--builddir): New option.
23154         * top/README-release: Document this.
23155         Reword slightly so that the reader cannot understand that he
23156         has to do these steps before calling do-release-commit-and-tag.
23158 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23160         readme-release: also require announce-gen and maintainer-makefile
23161         * modules/readme-release (Depends-on): here.
23162         * modules/announce-gen, modules/do-release-commit-and-tag,
23163         modules/gnu-web-doc-update, modules/maintainer-makefile
23164         (Description): Point to readme-release.
23166 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
23168         maint.mk: fix VPATH issues.
23169         * top/maint.mk (news-check): GNU Make understand $< very well.
23170         (release-prep): NEWS is in $(srcdir).
23172 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
23174         readme-release: require the promoted modules.
23175         * modules/readme-release (Depends-on): Add
23176         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
23177         in this text.
23179 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23180             Bruno Haible  <bruno@clisp.org>
23182         error, strerror-override: Support mingw64 from Fedora 17.
23183         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
23184         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
23185         EINPROGRESS.
23186         * lib/strerror-override.h (strerror_override): Test it.
23187         * lib/strerror-override.c (strerror_override): Likewise.
23188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
23190 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23191             Bruno Haible  <bruno@clisp.org>
23193         error, strerror-override: Support mingw64 from Fedora 17.
23194         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
23195         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
23196         * lib/strerror-override.h (strerror_override): Test it.
23197         * lib/strerror-override.c (strerror_override): Likewise.
23199 2012-06-03  Bruno Haible  <bruno@clisp.org>
23201         error, strerror-override: Support new errno values from POSIX:2008.
23202         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
23203         ENOTRECOVERABLE.
23204         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
23205         platforms.
23206         * lib/strerror-override.c (strerror_override): Conditionalize the
23207         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
23208         * lib/strerror-override.h (strerror_override): Declare also if
23209         GNULIB_defined_EOWNERDEAD is defined.
23210         * tests/test-errno.c (e130, e131): New variables.
23211         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
23212         ENOTRECOVERABLE.
23213         Reported by Paolo Bonzini.
23215 2012-05-31  Jim Meyering  <meyering@redhat.com>
23217         savewd: add missing dependency on sys_wait module
23218         * modules/savewd (Depends-on): Add sys_wait, needed at least
23219         for MSVC.  Report and suggested change by Michael Goffioul.
23221 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
23223         system-quote-tests: port to CentOS 5
23224         Problem reported by Tom G. Christensen in
23225         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
23226         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
23228 2012-05-29  Jim Meyering  <meyering@redhat.com>
23230         maint: fix typos in comments and ChangeLog
23231         Culprits identified and fixed mostly automatically using these commands:
23232         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
23233         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
23234         using http://github.com/lyda/misspell-check
23235         * ChangeLog: Fix typos.
23236         * doc/solaris-versions: Likewise.
23237         * lib/regexec.c (re_search_stub): Likewise.
23238         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23240 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
23242         manywarnings: remove duplicate -Wmultichar entry
23243         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
23244         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
23245         so keep the entry marked as documented.
23247 2012-05-27  Karl Berry  <karl@gnu.org>
23249         * config/srclist.txt (mktime.c): remove last libc sync,
23250         perhaps just temporarily.
23252 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
23254         regex: don't assume uint64_t or uint32_t
23255         * lib/regcomp.c (init_word_char): Don't assume that the types
23256         uint64_t and uint32_t exist.  The C standard doesn't guarantee
23257         them, and on some 32-bit compilers there is no uint64_t.
23258         Problem reported by Gianluigi Tiesi in
23259         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
23261 2012-05-25  Jim Meyering  <meyering@redhat.com>
23263         maint.mk: add strncpy-prohibiting syntax-check rule
23264         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
23266 2012-05-24  Jim Meyering  <meyering@redhat.com>
23268         maint.mk: compute $(gpg_key_ID) more portably
23269         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
23270         That use of sed is not portable to some fringe systems.
23271         Reported by Paul Eggert in
23272         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
23274 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
23276         mktime: sync from glibc
23277         * config/srclist.txt: Uncomment mktime.c.
23278         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
23279         First, indent with tabs, since glibc uses tabs and doesn't want to
23280         change and we'd rather be identical to glibc.  Also, two small
23281         coding changes:
23282         (isdst_differ): Use &&, not &, as && is the usual style.
23283         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
23284         for clarity.
23286 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23288         announce-gen: du -h is more portable than du --human
23289         * build-aux/announce-gen (sizes): Invoke du with -h instead
23290         of --human.  Accept leading white space in its output.
23292 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23294         announce-gen: Improve diagnostics.
23295         * build-aux/announce-gen: When parsing command line options,
23296         prefer "announce-gen: option --release-type requires an argument"
23297         to "Option release-type requires an argument".
23299 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
23301         maint.mk: gpg_key_ID: use sed more portably
23302         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
23303         the closing brace.
23304         (refresh-po): Fuse two sed invocations into one.
23306 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
23308         gitlog-to-changelog: support the log message format used in Bison.
23309         * build-aux/gitlog-to-changelog: Support --strip-tab and
23310         --strip-cherry-picked.
23312 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
23314         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
23315         the rest of the current time slice to another thread in the current
23316         process. So if the thread that feeds the file decscriptor we're
23317         polling is not in the current process, we get busy-waiting.
23318         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
23319         Patch from Theodore Leblond.
23320         * lib/select.c: Split polling out of the loop that sets the output
23321         fd_sets.  Check for zero result and loop if the wait timeout is
23322         infinite.
23324 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23326         select: Fix build error on IRIX 6.5.
23327         * lib/select.c: Include stddef.h for NULL.
23329 2012-05-21  Simon Josefsson  <simon@josefsson.org>
23331         gc: fix libgcrypt detection on older machines.
23332         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
23333         copyright years because the file has been distributed every year
23334         since it was created.
23336 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
23338         crypto: fix bug in large buffer handling
23339         Problem reported by Serge Belyshev for glibc in
23340         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
23341         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
23342         * lib/md4.c (md4_process_block):
23343         * lib/md5.c (md5_process_block):
23344         * lib/sha1.c (sha1_process_block):
23345         * lib/sha256.c (sha256_process_block):
23346         Don't assume the buffer length is less than 2**32.
23347         * lib/sha512.c (sha512_process_block): Likewise.
23348         Here, the bug is present only in the rare case where the host does
23349         not support uint64_t or where size_t is wider than 64 bits.
23350         Use u64size to work around the problems.
23351         * lib/u64.h (u64size): New macro.
23353 2012-05-15  Pádraig Brady  <P@draigBrady.com>
23355         fsusage: fix block size returned on older Linux 2.6
23357         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
23358         which is available since Linux 2.6.
23359         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
23360         when the member is available so it can be used as a fallback.
23361         * doc/posix-functions/statvfs.texi: Mention the hang issue
23362         on Linux < 2.6.36.
23364 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23366         bootstrap: suppress stderr chatter
23367         * build-aux/bootstrap (insert_sorted_if_absent, main program):
23368         Omit unnecessary chatter to stderr.  The main program chatter
23369         was there only inadvertantly.
23371         bootstrap: .gitignore files created by autopoint, libtool
23372         I ran into this problem when bootstrapping the latest diffutils.
23373         After './bootstrap', 'git status' reported lots of untracked files
23374         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
23375         autopoint and do not need to be version-controlled.
23376         * build-aux/bootstrap: Put into .gitignore the files that
23377         autopoint and libtool create, by keeping track of files that exist
23378         after but not before these programs are run.
23379         (version_controlled_file): Move up.  2nd arg is now full file
23380         name, not base name; this is more convenient.  Put CVS at the end,
23381         as it's now somewhat deprecated.
23383 2012-05-14  Jim Meyering  <meyering@redhat.com>
23385         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
23386         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
23387         definition.  Reported by Bruno Haible.
23389 2012-05-13  Bruno Haible  <bruno@clisp.org>
23390             Paul Eggert  <eggert@cs.ucla.edu>
23392         binary-io: Define set_binary_mode function.
23393         * lib/binary-io.h (set_binary_mode): New function.
23394         (SET_BINARY): Define in terms of set_binary_mode.
23395         * modules/binary-io (configure.ac): Require AC_C_INLINE.
23396         * tests/test-binary-io.c (main): Accept an argument, and test either
23397         set_binary_mode or SET_BINARY depending on the argument.
23398         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
23399         argument. Clean up also t-bin-out0.tmp.
23401 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
23403         bootstrap: take advantage of POSIX shell features
23405         The 'bootstrap' script offered by Gnulib script already uses POSIX
23406         shell features (like $((...)) arithmetic expansions) that are not
23407         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
23408         means that bootstrap must already be run using a proper POSIX shell,
23409         which will thus provide more features, like ${var#pattern} parameter
23410         expansion or inversion of a command exit status with '!'.  We can
23411         thus use these features to improve the clarity and the performances
23412         of the bootstrap script.
23414         Suggested by Eric Blake.
23416         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
23417         of sed/expr plus command substitutions, to save some forks.  While
23418         we are at it, prefer the POSIX $(...) form of command substitution,
23419         rather than the legacy form `...` (since the former is visually
23420         clearer and interacts better with quoting), and prefer the idiom:
23421           "if ! CMD; then ACTION ..."
23422         over the idiom:
23423           "if CMD; then :; else ACTION ..."
23424         which was required by legacy Bourne shells not supporting '!'.
23426 2012-05-12  Bruno Haible  <bruno@clisp.org>
23428         system-quote: Add more comments.
23429         * lib/system-quote.h: Add more comments about wilcards and limitations.
23430         Suggested by Eli Zaretskii <eliz@gnu.org>.
23432         sh-quote, system-quote: Add comments about wildcards.
23433         * lib/sh-quote.h: Clarify what happens with wildcard characters.
23434         * lib/system-quote.h: Likewise.
23435         Reported by Eli Zaretskii <eliz@gnu.org>.
23437 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23439         fsusage: check for GNU/Linux statvfs problem dynamically
23440         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
23441         Define STAT_STATFS2_BSIZE too, since in this case the code now
23442         checks dynamically whether statvfs is reliable, falling back on
23443         Linux-style statfs otherwise.
23444         (statvfs_works): New function, for dynamically testing statvfs.
23445         (get_fs_usage) [STAT_STATVFS]: Use it.
23446         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
23447         statvfs on GNU/Linux hosts, since it's now done dynamically.
23449 2012-05-10  Bruno Haible  <bruno@clisp.org>
23451         system-quote, execute, spawn-pipe: Escape '?' on Windows.
23452         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
23453         '?' character.
23454         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
23455         * tests/test-system-quote-main.c (check_all): Check also strings like
23456         "??????????".
23457         Reported by Eli Zaretskii <eliz@gnu.org>.
23459 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
23461         _Noreturn: port config.h to gcc -Wundef
23462         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
23463         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
23464         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
23466 2012-05-10  Bruno Haible  <bruno@clisp.org>
23468         system-quote: Refactor.
23469         * lib/system-quote.h (system_quote_copy): Fix comment.
23470         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
23471         New functions, extracted from system_quote_copy.
23472         (system_quote_length, system_quote_copy): Use these functions.
23473         Reported by Paul Eggert.
23475 2012-05-08  Bruno Haible  <bruno@clisp.org>
23477         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
23478         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
23480 2012-05-08  Bruno Haible  <bruno@clisp.org>
23482         Tests for module 'system-quote'.
23483         * modules/system-quote-tests: New file.
23484         * tests/test-system-quote.sh: New file.
23485         * tests/test-system-quote-main.c: New file.
23486         * tests/test-system-quote-child.c: New file.
23488         New module 'system-quote'.
23489         * lib/system-quote.h: New file.
23490         * lib/system-quote.c: New file.
23491         * modules/system-quote: New file.
23493 2012-05-08  Bruno Haible  <bruno@clisp.org>
23495         sh-quote: Make C++ safe and allow multiple inclusion.
23496         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
23497         declarations in extern "C".
23499 2012-05-08  Bruno Haible  <bruno@clisp.org>
23501         sh-quote tests: Make tests stricter.
23502         * tests/test-sh-quote.c (check_one): Check the return value of
23503         shell_quote_copy.
23504         (main): Check a string with a CR character. Check a string that
23505         contains UCHAR_MAX.
23507 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
23509         warnings.m4: provide a means to specify the program to compile.
23510         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
23511         (gl_WARN_ADD): here.
23512         Use gl_AS_VAR_APPEND.
23513         Support an argument to specify the program to compile.
23514         (gl_WARN_ADD): Accept an argument to specify the program to compile.
23515         AC_SUBST the WARN_CFLAGS when they are used.
23516         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
23517         leave this to gl_WARN_ADD.
23519 2012-05-08  Eric Blake  <eblake@redhat.com>
23521         doc: recommendations on gettext version
23522         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
23523         choice between versions.
23524         * DEPENDENCIES (gettext): Cover both approaches.
23526 2012-05-08  Jim Meyering  <meyering@redhat.com>
23528         init.sh: explain why EXEEXT support uses aliases rather than functions
23529         * tests/init.sh: Add a comment.
23531         init.sh: don't let bash aliases interfere with tests
23532         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
23533         is bash.  This avoids problems for those who alias standard commands to
23534         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
23535         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
23537 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
23539         stdint: be more consistent with glibc, SunOS libc
23540         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
23541         (gl_int_fast16_t, gl_uint_fast16_t)
23542         (gl_int_fast32_t, gl_uint_fast32_t)
23543         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
23544         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
23545         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
23546         Be consistent with glibc by default, and with SunOS 5.10 and later
23547         if __sun is defined.  This lessens the likelihood of clashes if
23548         code compiled for older hosts is combined with code compiled for
23549         newer ones.  Problem reported by Niels Möller in
23550         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
23552 2012-05-07  Eric Blake  <eblake@redhat.com>
23554         isatty: relax license to LGPLv2+
23555         * modules/isatty (License): Relax license.
23557 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23559         stat-size: comment fix
23560         * lib/stat-size.h: Remove obsolete comment about indenting.
23562 2012-05-06  Bruno Haible  <bruno@clisp.org>
23564         Tests for module 'sh-quote'.
23565         * modules/sh-quote-tests: New file.
23566         * tests/test-sh-quote.c: New file.
23568 2012-05-06  Bruno Haible  <bruno@clisp.org>
23570         sh-quote: Improve shell_quote_argv's signature.
23571         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
23572         * lib/sh-quote.c (shell_quote_argv): Likewise.
23574 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
23576         stdint: document issues with int_fast8_t etc.
23577         * doc/posix-headers/stdint.texi (stdint.h): Say that other
23578         stdint.h substitutes may define these types differently.  See
23579         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
23581 2012-05-05  Bruno Haible  <bruno@clisp.org>
23583         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
23584         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
23585         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
23586         or 'guessing no (mishandles large arguments)'.
23588 2012-05-05  Bruno Haible  <bruno@clisp.org>
23590         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
23591         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
23592         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23593         set gl_cv_func_link_follows_symlink to "guessing no".
23595 2012-05-05  Bruno Haible  <bruno@clisp.org>
23597         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
23598         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
23599         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
23600         "guessing no".
23601         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
23603 2012-05-05  Bruno Haible  <bruno@clisp.org>
23605         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
23606         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
23607         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
23608         set gl_cv_struct_dirent_d_ino to "guessing yes".
23610 2012-05-05  Bruno Haible  <bruno@clisp.org>
23612         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
23613         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
23614         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
23615         "guessing yes".
23617 2012-05-05  Bruno Haible  <bruno@clisp.org>
23619         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
23620         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
23621         compiling to a glibc system, set gl_cv_func_signbit and
23622         gl_cv_func_signbit_gcc to "guessing yes".
23624 2012-05-05  Bruno Haible  <bruno@clisp.org>
23626         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
23627         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
23628         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
23629         to "guessing yes".
23630         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
23631         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
23633 2012-05-05  Bruno Haible  <bruno@clisp.org>
23635         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
23636         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
23637         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
23638         gl_cv_func_realpath_works to "guessing yes".
23640 2012-05-05  Bruno Haible  <bruno@clisp.org>
23642         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
23643         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
23644         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
23646 2012-05-04  Bruno Haible  <bruno@clisp.org>
23648         Tweak last commit.
23649         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
23650         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23652 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
23654         unistd_h: make it easier to avoid sys_types_h
23655         This is useful for Emacs, which has its own method of porting to
23656         Windows, and which therefore does not need the sys_types_h module.
23657         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
23658         code moved here from gl_SYS_TYPES_H.
23659         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
23660         using the code directly.
23661         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
23662         gl_SYS_TYPES_H.
23663         * modules/sys_types (Files):
23664         * modules/unistd (Files): Add m4/off_t.m4.
23666 2012-05-03  Bruno Haible  <bruno@clisp.org>
23668         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
23669         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
23670         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
23671         "guessing yes" or "guessing no".
23672         (gl_FUNC_LSTAT): Update.
23673         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
23674         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
23675         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
23677 2012-05-03  Bruno Haible  <bruno@clisp.org>
23679         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
23680         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
23681         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
23682         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
23683         cross-compiling, choose the first alternative on glibc systems.
23684         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
23686 2012-05-03  Bruno Haible  <bruno@clisp.org>
23688         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
23689         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
23690         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
23692 2012-05-03  Bruno Haible  <bruno@clisp.org>
23694         chown: Avoid "guessing no" when cross-compiling to glibc systems.
23695         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
23697 2012-05-03  Bruno Haible  <bruno@clisp.org>
23699         Avoid "guessing no" guesses when cross-compiling to glibc systems.
23700         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
23701         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
23702         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
23703         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
23704         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
23705         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
23706         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
23707         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
23708         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
23709         compiling to glibc systems, set gl_cv_func_chown_slash_works,
23710         gl_cv_func_chown_ctime_works to "guessing yes".
23711         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
23712         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
23713         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
23714         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
23715         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
23716         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
23717         compiling to glibc systems, set gl_cv_func_open_directory_works to
23718         "guessing yes".
23719         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
23720         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
23721         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
23722         "guessing yes".
23723         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
23724         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
23725         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
23726         compiling to glibc systems, set gl_cv_func_floorf_ieee to
23727         "guessing yes".
23728         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
23729         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
23730         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
23731         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
23732         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
23733         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
23734         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
23735         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
23736         "guessing yes".
23737         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
23738         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
23739         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
23740         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
23741         "guessing yes".
23742         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
23743         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
23744         "guessing yes".
23745         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
23746         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
23747         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
23748         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
23749         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
23750         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
23751         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
23752         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
23753         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
23754         compiling to glibc systems, set gl_cv_func_log10f_ieee to
23755         "guessing yes".
23756         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
23757         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
23758         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
23759         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
23760         "guessing yes".
23761         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
23762         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
23763         "guessing yes".
23764         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
23765         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
23766         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
23767         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
23768         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
23769         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
23770         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
23771         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
23772         compiling to glibc systems, set gl_cv_func_mkfifo_works to
23773         "guessing yes".
23774         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
23775         compiling to glibc systems, set gl_cv_func_mknod_works to
23776         "guessing yes".
23777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
23778         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
23779         "guessing yes".
23780         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
23781         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
23782         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
23783         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
23784         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
23785         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
23786         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
23787         compiling to glibc systems, set gl_cv_func_svid_putenv to
23788         "guessing yes".
23789         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
23790         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
23791         "guessing yes".
23792         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
23793         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
23794         "guessing yes".
23795         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
23796         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
23797         to "guessing yes".
23798         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
23799         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
23800         to "guessing yes".
23801         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
23802         compiling to glibc systems, set gl_cv_func_rmdir_works to
23803         "guessing yes".
23804         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
23805         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
23806         gl_cv_func_unlink_parent_fails to "guessing yes".
23807         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
23808         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
23809         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
23810         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
23811         gl_cv_func_rename_dest_works to "guessing yes".
23812         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
23813         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
23814         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
23815         compiling to glibc systems, set gl_cv_func_roundf_ieee to
23816         "guessing yes".
23817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
23818         compiling to glibc systems, set gl_cv_func_roundl_ieee to
23819         "guessing yes".
23820         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
23821         compiling to glibc systems, set gl_cv_func_setenv_works to
23822         "guessing yes".
23823         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
23824         compiling to glibc systems, set gl_cv_func_unsetenv_works to
23825         "guessing yes".
23826         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
23827         compiling to glibc systems, set gl_cv_func_sleep_works to
23828         "guessing yes".
23829         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
23830         compiling to glibc systems, set gl_cv_func_stat_file_slash to
23831         "guessing yes".
23832         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
23833         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
23834         "guessing yes".
23835         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
23836         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
23837         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
23838         compiling to glibc systems, set gl_cv_func_truncf_ieee to
23839         "guessing yes".
23840         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
23841         compiling to glibc systems, set gl_cv_func_truncl_ieee to
23842         "guessing yes".
23843         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
23844         compiling to glibc systems, set gl_cv_func_usleep_works to
23845         "guessing yes".
23846         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
23847         compiling to glibc systems, set gl_cv_func_futimesat_works to
23848         "guessing yes".
23850 2012-05-03  Bruno Haible  <bruno@clisp.org>
23852         Say "guessing yes" or "guessing no" when cross-compiling.
23853         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
23854         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
23855         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
23856         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
23857         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
23858         am_cv_func_working_getline to "guessing yes" or "guessing no".
23859         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
23860         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
23861         (gl_FUNC_MEMMEM): When cross-compiling, set
23862         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
23863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
23864         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
23865         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
23866         set gl_cv_func_strcasestr_works_always to "guessing yes" or
23867         "guessing no".
23868         (gl_FUNC_STRCASESTR): When cross-compiling, set
23869         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
23870         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
23871         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
23872         (gl_FUNC_STRSTR): When cross-compiling, set
23873         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
23874         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
23875         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
23876         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
23877         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
23879 2012-05-01  Bruno Haible  <bruno@clisp.org>
23881         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
23882         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
23883         * build-aux/reloc-ldflags: Likewise.
23884         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
23886 2012-05-01  Bruno Haible  <bruno@clisp.org>
23888         gnulib-tool: Remove transitional code.
23889         * gnulib-tool: Don't warn about --import with 0 arguments any more.
23890         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
23892 2012-05-01  Bruno Haible  <bruno@clisp.org>
23894         getcwd: Fix misindentation.
23895         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
23897 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
23899         exclude: process exclude and include directives in order
23900         This restores the pre-2009 behavior, and is part of a fix of a
23901         grep bug reported by Quentin Arce in
23902         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
23903         * lib/exclude.c (struct exclude): Remove 'tail' member.
23904         (new_exclude_segment): Prepend the new segment instead of appending.
23905         Return void, since that's now more convenient.
23906         (file_pattern_matches): Renamed from excluded_file_pattern_p.
23907         (file_name_matches): Renamed from excluded_file_name_p.
23908         (file_pattern_matches, file_name_matches):
23909         Return true if the pattern matches, not if it excludes.
23910         All callers changed.
23911         (excluded_file_name): Process the list in reverse order;
23912         since the list is now reversed this restores the pre-2009 behavior.
23913         (add_exclude): Adjust to new reversed-order list.  Use local var
23914         rather than macro, for clarity.
23915         * tests/test-exclude7.sh: Adjust to corrected behavior.
23917         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
23918         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
23919         it's not possible here.  Handle the case of \ at end of pattern
23920         without dumping core.
23921         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
23923         _Noreturn: future-proof non-GNU and non-MSVC compilers
23924         * build-aux/snippet/_Noreturn.h (_Noreturn):
23925         * m4/gnulib-common.m4 (gl_COMMON_BODY):
23926         Do not define _Noreturn if __STDC_VERSION__ indicates this is
23927         C11 or later.  This is more likely to work with random future C
23928         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
23929         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
23931         exclude: handle wildcards with FNM_EXTMATCH
23932         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
23933         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
23934         comment that "has wildcards" really means "has or may have
23935         wildcards".  Simplify by avoiding the need to call strcspn.
23937 2012-04-29  Bruno Haible  <bruno@clisp.org>
23939         gnulib-tool: Fix list of authors.
23940         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
23942 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
23944         bootstrap: support Automake-NG in $buildreq
23945         * bootstrap (check_versions): Handle automake and aclocal from
23946         Automake-NG specially.  They can be specified as respectively
23947         the "automake-ng" and "aclocal-ng" requirements.
23949 2012-04-25  Eric Blake  <eblake@redhat.com>
23951         bootstrap: only force latest Makefile.in.in for gettext module
23952         * build-aux/bootstrap (with_gettext): Only install latest
23953         Makefile.in.in for projects requesting bleeding edge gettext.
23955 2012-04-22  Bruno Haible  <bruno@clisp.org>
23957         doc: Mention reason for replacement on glibc/Linux systems.
23958         * doc/posix-functions/dprintf.texi: Mention the problem with special
23959         'long double' values.
23960         * doc/posix-functions/fprintf.texi: Likewise.
23961         * doc/posix-functions/printf.texi: Likewise.
23962         * doc/posix-functions/snprintf.texi: Likewise.
23963         * doc/posix-functions/sprintf.texi: Likewise.
23964         * doc/posix-functions/vdprintf.texi: Likewise.
23965         * doc/posix-functions/vfprintf.texi: Likewise.
23966         * doc/posix-functions/vprintf.texi: Likewise.
23967         * doc/posix-functions/vsnprintf.texi: Likewise.
23968         * doc/posix-functions/vsprintf.texi: Likewise.
23969         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
23970         platforms with F_DUPFD_CLOEXEC problems.
23971         * doc/posix-functions/glob.texi: Mention which platforms are affected
23972         by the problem with symbolic links.
23973         * doc/posix-functions/linkat.texi: Mention the problem with
23974         AT_SYMLINK_FOLLOW on Linux.
23976 2012-04-22  Bruno Haible  <bruno@clisp.org>
23978         pwrite: Don't replace on all platforms.
23979         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
23981 2012-04-22  Bruno Haible  <bruno@clisp.org>
23983         rint* tests: Avoid gcc warnings.
23984         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
23985         * tests/test-rintf.c (INFINITY, NAN): Likewise.
23986         * tests/test-rintl.c (INFINITY, NAN): Likewise.
23988 2012-04-21  Bruno Haible  <bruno@clisp.org>
23990         users.txt: Update.
23991         * users.txt: Add freedink, wdiff. Update URLs for projects that have
23992         switched from CVS to git, bzr, or svn.
23994 2012-04-21  Bruno Haible  <bruno@clisp.org>
23996         Large File Support for native Windows platforms.
23998         * m4/largefile.m4 (gl_LARGEFILE): New macro.
23999         * modules/largefile (configure.ac): Require gl_LARGEFILE.
24001         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
24002         type.
24003         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
24004         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
24005         * doc/posix-headers/sys_types.texi: Mention the effect of the
24006         'largefile' module.
24008         * lib/fcntl.in.h: Add comments about off_t.
24009         * modules/fcntl-h (Depends-on): Add sys_types.
24011         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
24012         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
24013         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
24014         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
24015         * modules/unistd (Depends-on): Add sys_types.
24016         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
24018         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
24019         instead of lseek.
24020         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
24021         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
24022         * modules/lseek (Depends-on): Add sys_types.
24024         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
24025         msvc-nothrow.h.
24026         (SetFileSize): New function.
24027         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
24028         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
24029         if Large File Support is requested.
24030         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
24031         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
24033         * lib/stdio.in.h: Add comments about off_t.
24034         * modules/stdio (Depends-on): Add sys_types.
24036         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
24037         instead of ftello.
24038         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
24039         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
24040         (gl_PREREQ_FTELLO): New macro.
24041         * modules/ftello (Depends-on): Add sys_types.
24042         (configure.ac): Incoke gl_PREREQ_FTELLO.
24044         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
24045         instead of fseeko.
24046         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
24047         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
24048         (gl_PREREQ_FSEEKO): New macro.
24049         * modules/fseeko (Depends-on): Add sys_types.
24050         (configure.ac): Invoke gl_PREREQ_FSEEKO.
24052         * lib/sys_stat.in.h: Add comments about off_t.
24053         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
24054         64-bit integer for st_size in 'struct stat'.
24055         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
24056         Define _GL_WINDOWS_64_BIT_ST_SIZE.
24057         * modules/sys_stat (Depends-on): Add sys_types.
24058         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
24060         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
24061         instead of stat or _stat.
24063         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
24064         'struct _stati64' instead of fstat and 'struct stat'.
24065         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
24066         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
24068         Reported by Ray Satiro <raysatiro@yahoo.com>.
24070 2012-04-19  Eric Blake  <eblake@redhat.com>
24072         bootstrap: accommodate older libtool
24073         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
24074         Reported by Daniel P. Berrange.
24076 2012-04-19  Jim Meyering  <meyering@redhat.com>
24078         announce-gen: avoid failure due to lack of Digest::SHA1
24079         Even with the preferred Digest::SHA available, this script
24080         would fail when the backup module, Digest::SHA1, was not installed.
24081         * build-aux/announce-gen: Quote the conditional use of "use".
24082         Reported by Reuben Thomas in:
24083         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
24085         bootstrap: don't let a user's CDPATH setting affect this script
24086         When CDPATH is set, cd will sometimes generate output.
24087         When "cd" is run in a subshell whose output matters, that
24088         surprising-to-some output can cause malfunction.
24089         Unsetting CDPATH turns off this shell "feature."
24090         * build-aux/bootstrap (CDPATH): Unset.
24091         Reported by Reuben Thomas in:
24092         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
24093         and inspired by his patch here:
24094         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
24096 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
24097         and Jim Meyering  <meyering@redhat.com>
24099         maint.mk: catch "see @xref{}" and similar
24100         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
24101         prohibit "See also @xref{", "Also see @pxref{", and similar.
24103 2012-04-16  Jim Meyering  <meyering@redhat.com>
24105         bootstrap: really use gnulib's po/Makefile.in.in
24106         * build-aux/bootstrap: Correct the source file name in previous change.
24107         Reported by Akim Demaille.
24109         configmake: correct minor inconsistency in Makefile rule
24110         * modules/configmake (Makefile.am): All other rules like this one
24111         run the final "mv -f ..." in the same backslash-continued command
24112         as the one that does everything else.  This one put the mv -f ...
24113         command on a separate, non-backslash-continued line.
24114         Make it like the others.
24116         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
24117         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
24118         the one from gettext.  Reported by Akim Demaille.
24120 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
24122         Fix recursion of install-* into po directories.
24123         Bison's install-pdf bug reported by Hans Aberg at
24124         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
24125         * build-aux/po/Makefile.in.in (install-dvi, install-html)
24126         (install-info, install-pdf, install-ps): New targets.
24128 2012-04-16  Jim Meyering  <meyering@redhat.com>
24130         maint: avoid spurious "make sc_maint" failure
24131         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
24132         exempt all *.class file names, for lib/javaversion.class.
24134 2012-04-15  Bruno Haible  <bruno@clisp.org>
24136         lseek: Make configure test independent of environment.
24137         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
24138         Windows, we know that lseek() on pipes is broken; skip the runtime
24139         test.
24141 2012-04-14  Bruno Haible  <bruno@clisp.org>
24143         stat: Bypass buggy override in mingw64.
24144         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
24145         * lib/stat.c (stat) [mingw64]: Define to _stat.
24146         * doc/posix-functions/stat.texi: Mention mingw64 bug.
24148 2012-04-14  Bruno Haible  <bruno@clisp.org>
24150         pathmax: Fix compilation error on MSVC 9.
24151         * modules/pathmax (Depends-on): Add unistd.
24153 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
24155         README: document pointer comparison assumption
24156         * README (Portability guidelines): Document assumption about
24157         pointer comparisons, in response to a recent bug-gnulib comment by
24158         Jeffrey Kegler.
24160 2012-04-12  Bruno Haible  <bruno@clisp.org>
24162         Tests for module 'getrusage'.
24163         * modules/getrusage-tests: New file.
24164         * tests/test-getrusage.c: New file.
24166         New module 'getrusage'.
24167         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
24168         warn-on-use.h.
24169         (getrusage): New declaration.
24170         * lib/getrusage.c: New file.
24171         * m4/getrusage.m4: New file.
24172         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
24173         is declared.
24174         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
24175         HAVE_GETRUSAGE.
24176         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
24177         snippet/c++defs, snippet/warn-on-use.
24178         (Makefile.am): Update generation of sys/resource.h. Substitute
24179         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
24180         * modules/getrusage: New file.
24181         * doc/posix-functions/getrusage.texi: Mention the new module.
24183 2012-04-12  Bruno Haible  <bruno@clisp.org>
24185         Tests for module 'sys_resource'.
24186         * modules/sys_resource-tests: New file.
24187         * tests/test-sys_resource.c: New file.
24189         New module 'sys_resource'.
24190         * lib/sys_resource.in.h: New file.
24191         * m4/sys_resource_h.m4: New file.
24192         * modules/sys_resource: New file.
24193         * doc/posix-headers/sys_resource.texi: Mention the new module.
24195 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
24197         ioctl: Fix compilation error on mingw.
24198         * lib/ioctl.c: Include <windows.h>.
24199         Also reported by Ray Satiro <raysatiro@yahoo.com>.
24201 2012-04-04  Jim Meyering  <meyering@redhat.com>
24203         regex: correct #pragma guard expression
24204         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
24205         not 4.3.  Correct its cpp guard expression.
24207 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24209         regex: remove unnecessary type punning
24210         Problem reported by Vladimir Serbinenko in
24211         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
24212         * lib/regex.h (struct re_pattern_buffer): Change the type of
24213         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
24214         Fix comment to match code.
24215         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
24216         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
24217         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
24218         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
24219         (set_regs):
24220         Omit no-longer-necessary casts.
24222 2012-04-03  Bruno Haible  <bruno@clisp.org>
24224         Tests for module 'ilogbl'.
24225         * modules/ilogbl-tests: New file.
24226         * tests/test-ilogbl.c: New file.
24228         New module 'ilogbl'.
24229         * lib/math.in.h (ilogbl): New declaration.
24230         * lib/ilogbl.c: New file.
24231         * m4/ilogbl.m4: New file.
24232         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
24233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
24234         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
24235         Split sed invocation, to avoid the limit of 100 substitutions of
24236         HP-UX 'sed'.
24237         * modules/ilogbl: New file.
24238         * tests/test-math-c++.cc: Check the declaration of ilogbl.
24239         * doc/posix-functions/ilogbl.texi: Mention the new module.
24241 2012-04-03  Bruno Haible  <bruno@clisp.org>
24243         Tests for module 'ilogbf'.
24244         * modules/ilogbf-tests: New file.
24245         * tests/test-ilogbf.c: New file.
24247         New module 'ilogbf'.
24248         * lib/math.in.h (ilogbf): New declaration.
24249         * lib/ilogbf.c: New file.
24250         * m4/ilogbf.m4: New file.
24251         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
24252         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
24253         REPLACE_ILOGBF.
24254         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
24255         REPLACE_ILOGBF.
24256         * modules/ilogbf: New file.
24257         * tests/test-math-c++.cc: Check the declaration of ilogbf.
24258         * doc/posix-functions/ilogbf.texi: Mention the new module.
24260 2012-04-03  Bruno Haible  <bruno@clisp.org>
24262         Tests for module 'ilogb'.
24263         * modules/ilogb-tests: New file.
24264         * tests/test-ilogb.c: New file.
24265         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
24266         tests/test-logb-ieee.h.
24268         New module 'ilogb'.
24269         * lib/math.in.h (ilogb): New declaration.
24270         * lib/ilogb.c: New file.
24271         * m4/ilogb.m4: New file.
24272         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
24273         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
24274         REPLACE_ILOGB.
24275         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
24276         REPLACE_ILOGB.
24277         * modules/ilogb: New file.
24278         * tests/test-math-c++.cc: Check the declaration of ilogb.
24279         * doc/posix-functions/ilogb.texi: Mention the new module.
24281 2012-04-03  Bruno Haible  <bruno@clisp.org>
24283         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
24284         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
24285         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
24286         (main): Check their values.
24287         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
24288         problem.
24290 2012-04-03  Bruno Haible  <bruno@clisp.org>
24292         Tests for module 'logbl-ieee'.
24293         * modules/logbl-ieee-tests: New file.
24294         * tests/test-logbl-ieee.c: New file.
24296         New module 'logbl-ieee'.
24297         * modules/logbl-ieee: New file.
24299         Tests for module 'logb-ieee'.
24300         * modules/logb-ieee-tests: New file.
24301         * tests/test-logb-ieee.c: New file.
24303         New module 'logb-ieee'.
24304         * modules/logb-ieee: New file.
24306         Tests for module 'logbf-ieee'.
24307         * modules/logbf-ieee-tests: New file.
24308         * tests/test-logbf-ieee.c: New file.
24309         * tests/test-logb-ieee.h: New file.
24311         New module 'logbf-ieee'.
24312         * modules/logbf-ieee: New file.
24314 2012-04-03  Bruno Haible  <bruno@clisp.org>
24316         Tests for module 'logbl'.
24317         * modules/logbl-tests: New file.
24318         * tests/test-logbl.c: New file.
24320         New module 'logbl'.
24321         * lib/math.in.h (logbl): New declaration.
24322         * lib/logbl.c: New file.
24323         * m4/logbl.m4: New file.
24324         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
24325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
24326         REPLACE_LOGBL.
24327         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
24328         REPLACE_LOGBL.
24329         * modules/logbl: New file.
24330         * tests/test-math-c++.cc: Check the declaration of logbl.
24331         * doc/posix-functions/logbl.texi: Mention the new module.
24333 2012-04-02  Bruno Haible  <bruno@clisp.org>
24335         Tests for module 'logbf'.
24336         * modules/logbf-tests: New file.
24337         * tests/test-logbf.c: New file.
24339         New module 'logbf'.
24340         * lib/math.in.h (logbf): New declaration.
24341         * lib/logbf.c: New file.
24342         * m4/logbf.m4: New file.
24343         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
24344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
24345         REPLACE_LOGBF.
24346         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
24347         REPLACE_LOGBF.
24348         * modules/logbf: New file.
24349         * tests/test-math-c++.cc: Check the declaration of logbf.
24350         * doc/posix-functions/logbf.texi: Mention the new module.
24352 2012-04-02  Bruno Haible  <bruno@clisp.org>
24354         logb tests: More tests.
24355         * tests/test-logb.h: New file, based on tests/test-logb.c and
24356         tests/test-frexp.h.
24357         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
24358         (main): Just invoke test_function.
24359         * modules/logb-tests (Files): Add tests/test-logb.h,
24360         tests/minus-zero.h, tests/randomd.c.
24361         (Makefile.am): Add randomd.c to test_logb_SOURCES.
24363         logb: Provide replacement and workarounds.
24364         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
24365         is 1.
24366         * lib/logb.c: New file.
24367         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
24368         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
24369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
24370         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
24371         * modules/logb (Files): Add lib/logb.c.
24372         (Depends-on): Add isfinite, frexp, isnand.
24373         (configure.ac): Compile the replacement code logb.c if needed.
24374         * tests/test-math-c++.cc: Check the declaration of logb.
24375         * doc/posix-functions/logb.texi: Mention the replacement and the bug
24376         with subnormal numbers.
24378 2012-04-02  Bruno Haible  <bruno@clisp.org>
24380         log10* tests: Speed up.
24381         * tests/test-log10.h (test_function): Reduce amount of random numbers
24382         to test.
24384 2012-04-01  Bruno Haible  <bruno@clisp.org>
24386         logf-ieee: Fix test whether logf works.
24387         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
24389 2012-04-01  Bruno Haible  <bruno@clisp.org>
24391         log10l: Work around log10l-ieee test failure on IRIX 6.5.
24392         * lib/log10l.c: Include <float.h>
24393         (log10l): On IRIX, normalize the +Infinity value.
24394         * modules/log10l (Depends-on): Add 'float'.
24395         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
24396         +Infinity.
24398         log10f-ieee: Work around test failure on NetBSD 5.1.
24399         * m4/log10f-ieee.m4: New file.
24400         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
24401         test whether log10f works with a negative argument. Replace it if not.
24402         * lib/log10f.c (log10f): For negative arguments, return NaN.
24403         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
24404         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
24405         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
24407         log10f-ieee: Work around test failure on Solaris 9.
24408         * modules/log10f-ieee (Depends-on): Add log10-ieee.
24409         (configure.ac): Require gl_FUNC_LOG10F.
24411         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
24412         * m4/log10-ieee.m4: New file.
24413         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
24414         whether log10 works with a negative argument. Replace it if not.
24415         * lib/log10.c (log10): For negative arguments, return NaN.
24416         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
24417         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
24418         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
24420         Tests for module 'log10l-ieee'.
24421         * modules/log10l-ieee-tests: New file.
24422         * tests/test-log10l-ieee.c: New file.
24424         New module 'log10l-ieee'.
24425         * modules/log10l-ieee: New file.
24427         Tests for module 'log10-ieee'.
24428         * modules/log10-ieee-tests: New file.
24429         * tests/test-log10-ieee.c: New file.
24431         New module 'log10-ieee'.
24432         * modules/log10-ieee: New file.
24434         Tests for module 'log10f-ieee'.
24435         * modules/log10f-ieee-tests: New file.
24436         * tests/test-log10f-ieee.c: New file.
24437         * tests/test-log10-ieee.h: New file.
24439         New module 'log10f-ieee'.
24440         * modules/log10f-ieee: New file.
24442 2012-04-01  Bruno Haible  <bruno@clisp.org>
24444         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
24445         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
24446         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
24447         workaround.
24448         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
24449         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
24450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
24451         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
24452         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
24453         (Depends-on): Update conditions.
24454         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
24455         IRIX 6.5, OSF/1 5.1 problems.
24457 2012-04-01  Bruno Haible  <bruno@clisp.org>
24459         log10f: Work around OSF/1 5.1 bug.
24460         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
24461         * lib/log10f.c (log10f): If logf exists, use it and provide just the
24462         workaround.
24463         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
24464         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
24465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
24466         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
24467         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
24468         (Depends-on): Update conditions.
24469         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
24471 2012-04-01  Bruno Haible  <bruno@clisp.org>
24473         log10: Work around OSF/1 5.1 bug.
24474         * lib/math.in.h (log10): New declaration.
24475         * lib/log10.c: New file.
24476         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
24477         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
24478         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
24479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
24480         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
24481         * modules/log10 (Files): Add lib/log10.c.
24482         (Depends-on): Add math.
24483         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
24484         * tests/test-math-c++.cc: Check the declaration of log10.
24485         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
24487 2012-03-31  Bruno Haible  <bruno@clisp.org>
24489         log10l tests: More tests.
24490         * modules/log10l-tests (Files): Add tests/test-log10l.h,
24491         tests/minus-zero.h, tests/randoml.c.
24492         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
24493         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
24494         (main): Invoke test_function.
24496         log10f tests: More tests.
24497         * modules/log10f-tests (Files): Add tests/test-log10.h,
24498         tests/minus-zero.h, tests/randomf.c.
24499         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
24500         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
24501         (main): Invoke test_function.
24503         log10 tests: More tests.
24504         * tests/test-log10.h: New file.
24505         * modules/log10-tests (Files): Add tests/test-log10.h,
24506         tests/minus-zero.h, tests/randomd.c.
24507         (Makefile.am): Add randomd.c to test_log10_SOURCES.
24508         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
24509         (main): Invoke test_function.
24511 2012-03-31  Simon Josefsson  <simon@josefsson.org>
24513         fflush: Fix syntax error.
24514         * lib/fflush.c: Include unused-parameter.h, needed for
24515         _GL_UNUSED_PARAMETER.
24516         * modules/fflush (Depends-on): Add snippet/unused-parameter.
24518 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24520         regex: pacify GCC when compiling GRUB
24521         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
24522         a diagnostic.  Reported by Vladimir Serbinenko in
24523         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
24525 2012-03-29  Eric Blake  <eblake@redhat.com>
24527         stdio: don't assume gets any more
24528         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
24529         support.
24530         * modules/stdio (Makefile.am): Likewise.
24531         * lib/stdio-read.c (gets): Likewise.
24532         * tests/test-stdio-c++.cc: Likewise.
24533         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24534         * lib/stdio.in.h (gets): Make warning occur in more places.
24535         * doc/posix-functions/gets.texi (gets): Update documentation.
24536         Reported by Christer Solskogen.
24538         maint.mk: fix syntax checks without exclusions
24539         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
24540         Reported by Daniel P. Berrange.
24542         strerror_r: avoid compiler warning
24543         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
24544         level.
24546         fflush: avoid compiler warning
24547         * lib/fflush.c (update_fpos_cache): Mark variables that are
24548         potentially unused.
24550 2012-03-25  Bruno Haible  <bruno@clisp.org>
24552         Tests for module 'localeconv'.
24553         * modules/localeconv-tests: New file.
24554         * tests/test-localeconv.c: New file.
24556         New module 'localeconv'.
24557         * lib/locale.in.h (localeconv): New declaration.
24558         * lib/localeconv.c: New file.
24559         * m4/localeconv.m4: New file.
24560         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
24561         REPLACE_LOCALECONV.
24562         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
24563         REPLACE_LOCALECONV.
24564         * modules/localeconv: New file.
24565         * modules/nl_langinfo (Depends-on): Add localeconv.
24566         * modules/human (Depends-on): Likewise.
24567         * doc/posix-functions/localeconv.texi: Mention the new module.
24569 2012-03-25  Bruno Haible  <bruno@clisp.org>
24571         locale: Provide a complete 'struct lconv'.
24572         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24573         'struct lconv' does not contain int_p_cs_precedes.
24574         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24575         * doc/posix-headers/locale.texi: Update.
24577         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
24578         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
24579         * doc/posix-headers/locale.texi: Update.
24581         locale: Provide a working 'struct lconv'.
24582         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
24583         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
24584         'struct lconv' does not even contain decimal_point.
24585         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
24586         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
24587         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
24588         * doc/posix-headers/locale.texi: Mention the problems with
24589         'struct lconv'.
24590         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24592 2012-03-24  Bruno Haible  <bruno@clisp.org>
24594         Enable common subexpression optimization in GCC.
24595         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
24596         macros.
24597         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
24598         GCC attribute 'const'.
24599         (uc_locale_language): Declare with GCC attribute 'pure'.
24600         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
24601         with GCC attribute 'const'.
24602         * lib/unictype.in.h (uc_is_general_category_withtable,
24603         uc_combining_class, uc_combining_class_name,
24604         uc_combining_class_long_name, uc_bidi_class_name,
24605         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
24606         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
24607         uc_decimal_value, uc_digit_value, uc_numeric_value,
24608         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
24609         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
24610         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
24611         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
24612         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
24613         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
24614         Declare with GCC attribute 'const'.
24615         (uc_general_category_name, uc_general_category_long_name,
24616         uc_general_category_byname, uc_general_category,
24617         uc_is_general_category, uc_combining_class_byname,
24618         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
24619         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
24620         Declare with GCC attribute 'pure'.
24621         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
24622         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
24623         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
24624         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
24625         with GCC attribute 'pure'.
24626         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
24627         'const'.
24628         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
24629         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
24630         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
24631         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
24632         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
24633         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
24634         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
24635         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
24636         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
24637         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
24638         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
24639         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
24640         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
24641         GCC attribute 'pure'.
24642         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
24643         'const'.
24644         * lib/uniwidth.in.h (uc_width): Simplify declaration.
24645         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
24646         u32_strwidth): Declare with GCC attribute 'pure'.
24648         Enable common subexpression optimization in GCC.
24649         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24650         (alphasort): Declare with GCC attribute 'pure'.
24651         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24652         (atoll): Declare with GCC attribute 'pure'.
24653         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
24654         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
24655         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
24656         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
24657         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
24658         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
24659         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
24661 2012-03-24  Bruno Haible  <bruno@clisp.org>
24663         gnulib-tool: Avoid unintended error output from 'cmp'.
24664         * gnulib-tool (func_add_file, func_update_file, func_import): Use
24665         "cmp -s", not "cmp > /dev/null".
24667 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
24669         gnulib-tool: fix imprecise comments w.r.t. an automake bug
24671         It's not just Automake versions < 1.9b that creates an empty
24672         pkgdatadir at installation time if pkgdata_DATA is specified
24673         to empty; modern automake versions do this as well, at least
24674         until automake 1.11.4 (not yet released at the moment of writing,
24675         but soon to appear).  That behaviour was generally considered a
24676         feature rather than a bug, at least until this discussion:
24677         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
24679         See also automake bugs #10997 and #11030.
24681         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
24682         reference to relevant automake bug numbers.
24683         (func_emit_tests_Makefile_am): Likewise.
24685 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24687         announce-gen: use Digest::SHA when possible
24688         * build-aux/announce-gen: Use Digest::SHA when possible, falling
24689         back to Digest::SHA1 if necessary.
24691 2012-03-20  Jim Meyering  <meyering@redhat.com>
24693         tests: avoid gcc warnings about argv vs. const initializers
24694         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
24695         warnings about discarding 'const' qualifier from pointer target type.
24696         * tests/test-posix_spawn2.c (main): Likewise.
24698 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
24700         README-release: simplify slightly
24701         * top/README-release: Run "git checkout master" only once.
24703 2012-03-15  Mark Wielaard  <mark@klomp.org>
24705         git-merge-changelog: add specific example on how to use with hg.
24706         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
24708 2012-03-18  Mark Wielaard  <mark@klomp.org>
24710         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
24712 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
24714         git-version-gen: don't let "prefix" envvar cause trouble
24715         * build-aux/git-version-gen (prefix): Initialize properly,
24716         so as not to use a value specified via the environment.
24717         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
24719 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24721         regex: diagnose too-large repeat counts in EREs
24722         Previously, the code did not diagnose the too-large repeat count
24723         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
24724         as if it were 'b\{1000000000}', which is unexpected.
24725         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
24726         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
24727         is a reasonable one for this problem.  Another option would be to
24728         create a new REG_OVERFLOW error for repeat counts that are too large.
24729         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
24730         count is too large, so that the caller can distinguish the two cases.
24731         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
24732         "Too large" return code, and that repeat counts are one example of this.
24734 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
24736         doc: some glibc x32 integer width issues
24737         * doc/posix-headers/sys_types.texi (sys/types.h):
24738         * doc/posix-headers/time.texi (time.h):
24739         Mention that glibc x32 does not conform to POSIX in a couple of
24740         areas related to integer widths.
24742 2012-03-15  Bruno Haible  <bruno@clisp.org>
24744         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
24745         * lib/fma.c (VOLATILE): New macro.
24746         (FUNC): Use it to work around a GCC compiler bug.
24748 2012-03-13  Bruno Haible  <bruno@clisp.org>
24750         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24751         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
24752         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
24753         REPLACE_HYPOTL to 1.
24754         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
24756 2012-03-13  Bruno Haible  <bruno@clisp.org>
24758         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24759         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
24760         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
24761         REPLACE_REMAINDERL to 1.
24762         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
24763         bug.
24765 2012-03-13  Bruno Haible  <bruno@clisp.org>
24767         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24768         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
24769         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
24770         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
24771         too big rounding errors.
24772         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
24773         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
24774         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
24775         (Depends-on): Update conditions.
24776         * tests/test-sqrtl.c (my_ldexpl): New function.
24777         (main): Add test of a particular value.
24778         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24780 2012-03-13  Pádraig Brady  <P@draigBrady.com>
24782         doc: Update timer_* platform portability notes.
24783         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
24784         that always return ENOSYS.
24785         * doc/posix-functions/timer_delete.texi: Likewise.
24786         * doc/posix-functions/timer_gettime.texi: Likewise.
24787         * doc/posix-functions/timer_settime.texi: Likewise.
24789 2012-03-13  Bruno Haible  <bruno@clisp.org>
24791         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
24792         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
24793         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
24794         REPLACE_CBRTL to 1.
24795         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
24797 2012-03-13  Bruno Haible  <bruno@clisp.org>
24799         remainderl: Avoid compilation error on AIX >= 5.2.
24800         * lib/math.in.h (remainderl): Undefine macro from the system header.
24802 2012-03-13  Bruno Haible  <bruno@clisp.org>
24804         Avoid compilation errors with MSVC option -fp:strict.
24805         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
24806         * lib/cbrtf.c: Likewise.
24807         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
24809 2012-03-12  Bruno Haible  <bruno@clisp.org>
24811         uninorm: Don't crash in out-of-memory conditions.
24812         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
24813         gracefully.
24814         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
24815         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
24817 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
24819         quote: fix syntax-check
24820         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
24821         also exports quote_quoting_options.
24823 2012-03-12  Simon Josefsson  <simon@josefsson.org>
24825         Collapse list of copyright years to ranges.  See
24826         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
24827         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
24828         build-aux/csharpexec.sh.in, build-aux/gnupload,
24829         build-aux/install-reloc, build-aux/javacomp.sh.in,
24830         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
24831         build-aux/move-if-change, build-aux/reloc-ldflags,
24832         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
24834 2012-03-11  Bruno Haible  <bruno@clisp.org>
24836         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24837         * m4/log2f-ieee.m4: New file.
24838         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
24839         whether log2f works with a minus zero argument. Replace it if not.
24840         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
24841         (Depends-on): Add log2-ieee.
24842         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
24843         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
24845         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
24846         * m4/log2-ieee.m4: New file.
24847         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
24848         whether log2 works with a minus zero argument. Replace it if not.
24849         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
24850         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
24851         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
24853         Tests for module 'log2l-ieee'.
24854         * modules/log2l-ieee-tests: New file.
24855         * tests/test-log2l-ieee.c: New file.
24857         New module 'log2l-ieee'.
24858         * modules/log2l-ieee: New file.
24860         Tests for module 'log2-ieee'.
24861         * modules/log2-ieee-tests: New file.
24862         * tests/test-log2-ieee.c: New file.
24864         New module 'log2-ieee'.
24865         * modules/log2-ieee: New file.
24867         Tests for module 'log2f-ieee'.
24868         * modules/log2f-ieee-tests: New file.
24869         * tests/test-log2f-ieee.c: New file.
24870         * tests/test-log2-ieee.h: New file.
24872         New module 'log2f-ieee'.
24873         * modules/log2f-ieee: New file.
24875 2012-03-11  Bruno Haible  <bruno@clisp.org>
24877         Tests for module 'log2l'.
24878         * modules/log2l-tests: New file.
24879         * tests/test-log2l.c: New file.
24881         New module 'log2l'.
24882         * lib/math.in.h (log2l): New declaration.
24883         * lib/log2l.c: New file.
24884         * m4/log2l.m4: New file.
24885         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
24886         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
24887         REPLACE_LOG2L.
24888         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
24889         REPLACE_LOG2L.
24890         * modules/log2l: New file.
24891         * tests/test-math-c++.cc: Check the declaration of log2l.
24892         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
24893         and OSF/1 problems.
24895 2012-03-11  Bruno Haible  <bruno@clisp.org>
24897         Tests for module 'log2f'.
24898         * modules/log2f-tests: New file.
24899         * tests/test-log2f.c: New file.
24901         New module 'log2f'.
24902         * lib/math.in.h (log2f): New declaration.
24903         * lib/log2f.c: New file.
24904         * m4/log2f.m4: New file.
24905         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
24906         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
24907         REPLACE_LOG2F.
24908         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
24909         REPLACE_LOG2F.
24910         * modules/log2f: New file.
24911         * tests/test-math-c++.cc: Check the declaration of log2f.
24912         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
24913         and OSF/1 and Cygwin problems.
24915 2012-03-11  Bruno Haible  <bruno@clisp.org>
24917         Tests for module 'log2'.
24918         * modules/log2-tests: New file.
24919         * tests/test-log2.c: New file.
24920         * tests/test-log2.h: New file.
24922         New module 'log2'.
24923         * lib/math.in.h (log2): New declaration.
24924         * lib/log2.c: New file.
24925         * m4/log2.m4: New file.
24926         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
24927         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
24928         REPLACE_LOG2.
24929         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
24930         REPLACE_LOG2.
24931         * modules/log2: New file.
24932         * tests/test-math-c++.cc: Check the declaration of log2.
24933         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
24934         and OSF/1 and Cygwin problems.
24936 2012-03-11  Bruno Haible  <bruno@clisp.org>
24938         exp2* tests: More tests.
24939         * tests/test-exp2.h (test_function): Test all integral arguments that
24940         don't need to overflow or denormalized numbers.
24941         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
24942         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
24943         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
24945 2012-03-10  Bruno Haible  <bruno@clisp.org>
24947         log1pl-ieee: Work around test failure on AIX 7.1.
24948         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
24950         log1pl-ieee: Work around test failure on IRIX 6.5.
24951         * m4/log1pl-ieee.m4: New file.
24952         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
24953         test whether log1pl works with a minus zero argument. Replace it if
24954         not.
24955         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
24956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
24957         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
24958         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
24959         (Depends-on): Update conditions.
24960         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24961         m4/signbit.m4.
24962         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
24963         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
24965         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
24966         * m4/log1pf-ieee.m4: New file.
24967         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
24968         test whether log1pf works with a minus zero argument. Replace it if
24969         not.
24970         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
24971         m4/signbit.m4.
24972         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
24973         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
24975         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
24976         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
24977         (configure.ac): Require gl_FUNC_LOG1PF.
24979         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
24980         * m4/log1p-ieee.m4: New file.
24981         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
24982         whether log1p works with a minus zero argument. Replace it if not.
24983         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
24984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
24985         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
24986         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
24987         (Depends-on): Update conditions.
24988         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
24989         m4/signbit.m4.
24990         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
24991         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
24993         Tests for module 'log1pl-ieee'.
24994         * modules/log1pl-ieee-tests: New file.
24995         * tests/test-log1pl-ieee.c: New file.
24997         New module 'log1pl-ieee'.
24998         * modules/log1pl-ieee: New file.
25000         Tests for module 'log1p-ieee'.
25001         * modules/log1p-ieee-tests: New file.
25002         * tests/test-log1p-ieee.c: New file.
25004         New module 'log1p-ieee'.
25005         * modules/log1p-ieee: New file.
25007         Tests for module 'log1pf-ieee'.
25008         * modules/log1pf-ieee-tests: New file.
25009         * tests/test-log1pf-ieee.c: New file.
25010         * tests/test-log1p-ieee.h: New file.
25012         New module 'log1pf-ieee'.
25013         * modules/log1pf-ieee: New file.
25015 2012-03-10  Bruno Haible  <bruno@clisp.org>
25017         Tests for module 'log1pl'.
25018         * modules/log1pl-tests: New file.
25019         * tests/test-log1pl.c: New file.
25021         New module 'log1pl'.
25022         * lib/math.in.h (log1pl): New declaration.
25023         * lib/log1pl.c: New file.
25024         * m4/log1pl.m4: New file.
25025         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
25026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
25027         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
25028         * modules/log1pl: New file.
25029         * tests/test-math-c++.cc: Check the declaration of log1pl.
25030         * doc/posix-functions/log1pl.texi: Mention the new module.
25032 2012-03-10  Bruno Haible  <bruno@clisp.org>
25034         Tests for module 'log1pf'.
25035         * modules/log1pf-tests: New file.
25036         * tests/test-log1pf.c: New file.
25038         New module 'log1pf'.
25039         * lib/math.in.h (log1pf): New declaration.
25040         * lib/log1pf.c: New file.
25041         * m4/log1pf.m4: New file.
25042         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
25043         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
25044         REPLACE_LOG1PF.
25045         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
25046         REPLACE_LOG1PF.
25047         * modules/log1pf: New file.
25048         * tests/test-math-c++.cc: Check the declaration of log1pf.
25049         * doc/posix-functions/log1pf.texi: Mention the new module.
25051 2012-03-10  Bruno Haible  <bruno@clisp.org>
25053         log1p tests: More tests.
25054         * tests/test-log1p.h: New file.
25055         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
25056         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
25057         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
25058         (main): Invoke test_function.
25060         log1p: Provide replacement for Minix and MSVC.
25061         * lib/math.in.h (log1p): New declaration.
25062         * lib/log1p.c: New file.
25063         * m4/log1p.m4: New file.
25064         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
25065         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
25066         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
25067         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
25068         (Depends-on): Add math, isnand, log, round.
25069         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
25070         HAVE_LOG1P is 0.
25071         * tests/test-math-c++.cc: Check the declaration of log1p.
25072         * doc/posix-functions/log1p.texi: Mention the replacement.
25074 2012-03-10  Bruno Haible  <bruno@clisp.org>
25076         math tests: Small simplification.
25077         * tests/test-exp.h (test_function): Use the same err_bound for
25078         'double' on platforms with sizeof (long double) == sizeof (double)
25079         than on platforms with sizeof (long double) > sizeof (double).
25080         * tests/test-exp2.h (test_function): Likewise.
25081         * tests/test-expm1.h (test_function): Likewise.
25082         * tests/test-log.h (test_function): Likewise.
25084 2012-03-10  Bruno Haible  <bruno@clisp.org>
25086         Fix some comments.
25087         * lib/expl.c: Fix an ambiguous comment.
25088         * lib/expm1.c: Likewise.
25089         * lib/expm1l.c: Likewise.
25090         * lib/exp2.c: Likewise.
25091         * lib/exp2l.c: Likewise.
25093 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
25095         regex: allow inclusion of <regex.h> before <limits.h>
25096         Without this patch, portable programs had to include <limits.h> before
25097         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
25098         I ran into this problem with a test version of GNU grep on Solaris 8.
25099         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
25100         This is done conditionally so that this change can be merged
25101         back to glibc.
25102         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
25103         using the included regex.
25105         fts: depend on fdopendir
25106         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
25107         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
25108         problem was introduced when fdopendir was split out.
25110 2012-03-10  Bruno Haible  <bruno@clisp.org>
25112         Remove unused variables.
25113         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
25114         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25116 2012-03-10  Bruno Haible  <bruno@clisp.org>
25118         isnanf-nolibm: Fix last commit.
25119         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
25121         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
25122         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
25124 2012-03-10  Bruno Haible  <bruno@clisp.org>
25126         logf-ieee: Work around test failure on NetBSD 5.1.
25127         * m4/logf-ieee.m4: New file.
25128         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
25129         whether logf works with a negative argument. Replace it if not.
25130         * lib/logf.c (logf): For negative arguments, return NaN.
25131         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
25132         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
25133         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
25135         logf-ieee: Work around test failure on Solaris 9.
25136         * modules/logf-ieee (Depends-on): Add log-ieee.
25137         (configure.ac): Require gl_FUNC_LOGF.
25139         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
25140         * m4/log-ieee.m4: New file.
25141         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
25142         log works with a negative argument. Replace it if not.
25143         * lib/log.c (log): For negative arguments, return NaN.
25144         * modules/log-ieee (Files): Add m4/log-ieee.m4.
25145         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
25146         * doc/posix-functions/log.texi: Mention the log-ieee module.
25148         Tests for module 'logl-ieee'.
25149         * modules/logl-ieee-tests: New file.
25150         * tests/test-logl-ieee.c: New file.
25152         New module 'logl-ieee'.
25153         * modules/logl-ieee: New file.
25155         Tests for module 'log-ieee'.
25156         * modules/log-ieee-tests: New file.
25157         * tests/test-log-ieee.c: New file.
25159         New module 'log-ieee'.
25160         * modules/log-ieee: New file.
25162         Tests for module 'logf-ieee'.
25163         * modules/logf-ieee-tests: New file.
25164         * tests/test-logf-ieee.c: New file.
25165         * tests/test-log-ieee.h: New file.
25167         New module 'logf-ieee'.
25168         * modules/logf-ieee: New file.
25170 2012-03-10  Bruno Haible  <bruno@clisp.org>
25172         log: Fix bug introduced on 2012-03-09.
25173         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
25175 2012-03-10  Pádraig Brady  <P@draigBrady.com>
25177         timer-time: link explicitly with pthreads on glibc
25178         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
25179         to support static linking, when newer glibc is
25180         detected, as that contains pthread emulation of
25181         POSIX timer functions where required.
25182         * modules/timer-time: Depend on threadlib to
25183         pull in the appropriate library to link.
25185 2012-03-10  Bruno Haible  <bruno@clisp.org>
25187         log* tests: More tests.
25188         * tests/test-log.h: New file.
25189         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
25190         (main): Invoke test_function.
25191         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
25192         (main): Invoke test_function.
25193         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
25194         (main): Invoke test_function.
25195         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25196         tests/randomd.c.
25197         (Makefile.am): Add randomd.c to test_log_SOURCES.
25198         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25199         tests/randomf.c.
25200         (Makefile.am): Add randomf.c to test_logf_SOURCES.
25201         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
25202         tests/randoml.c.
25203         (Depends-on): Add 'float'.
25204         (Makefile.am): Add randoml.c to test_logl_SOURCES.
25206 2012-03-09  Bruno Haible  <bruno@clisp.org>
25208         logl: Work around OSF/1 5.1 bug.
25209         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
25210         * lib/logl.c (logl): If logl exists, use it and provide just the
25211         workaround.
25212         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
25213         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
25214         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
25215         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
25216         * modules/logl (configure.ac): Consider REPLACE_LOGL.
25217         (Depends-on): Update conditions.
25218         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
25220 2012-03-09  Bruno Haible  <bruno@clisp.org>
25222         logf: Work around OSF/1 5.1 bug.
25223         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
25224         * lib/logf.c (logf): If logf exists, use it and provide just the
25225         workaround.
25226         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
25227         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
25228         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
25229         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
25230         * modules/logf (configure.ac): Consider REPLACE_LOGF.
25231         (Depends-on): Update conditions.
25232         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
25234 2012-03-09  Bruno Haible  <bruno@clisp.org>
25236         log: Work around OSF/1 5.1 bug.
25237         * lib/math.in.h (log): New declaration.
25238         * lib/log.c: New file.
25239         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
25240         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
25241         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
25242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
25243         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
25244         * modules/log (Files): Add lib/log.c.
25245         (Depends-on): Add math.
25246         (configure.ac): If REPLACE_LOG is 1, compile an override.
25247         * tests/test-math-c++.cc: Check the declaration of log.
25248         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
25250 2012-03-09  Jim Meyering  <meyering@redhat.com>
25252         readtokens.c: adjust wording in a comment
25253         * lib/readtokens.c: Insert omitted "that" in a comment.
25255 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25257         modechange: add notations +40, 00440, etc.
25258         * lib/modechange.c (mode_compile): Support new notations
25259         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
25261 2012-03-08  Bruno Haible  <bruno@clisp.org>
25263         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
25264         * m4/exp2l-ieee.m4: New file.
25265         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
25266         test whether exp2l works with a NaN argument and with a negative
25267         infinity argument. Replace it if not.
25268         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
25269         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
25270         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
25271         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
25272         (Depends-on): Update conditions.
25273         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
25274         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
25275         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
25277         Tests for module 'exp2l-ieee'.
25278         * modules/exp2l-ieee-tests: New file.
25279         * tests/test-exp2l-ieee.c: New file.
25281         New module 'exp2l-ieee'.
25282         * modules/exp2l-ieee: New file.
25284         Tests for module 'exp2-ieee'.
25285         * modules/exp2-ieee-tests: New file.
25286         * tests/test-exp2-ieee.c: New file.
25288         New module 'exp2-ieee'.
25289         * modules/exp2-ieee: New file.
25291         Tests for module 'exp2f-ieee'.
25292         * modules/exp2f-ieee-tests: New file.
25293         * tests/test-exp2f-ieee.c: New file.
25294         * tests/test-exp2-ieee.h: New file.
25296         New module 'exp2f-ieee'.
25297         * modules/exp2f-ieee: New file.
25299 2012-03-08  Bruno Haible  <bruno@clisp.org>
25301         Tests for module 'exp2l'.
25302         * modules/exp2l-tests: New file.
25303         * tests/test-exp2l.c: New file.
25305         New module 'exp2l'.
25306         * lib/math.in.h (exp2l): New declaration.
25307         * lib/exp2l.c: New file.
25308         * lib/expl-table.c: New file, extracted from lib/expl.c.
25309         * lib/expl.c (gl_expl_table): New declaration.
25310         (expl): Remove expl_table. Update reference.
25311         * m4/exp2l.m4: New file.
25312         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
25313         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
25314         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
25315         * modules/exp2l: New file.
25316         * modules/expl (Files): Add lib/expl-table.c.
25317         (configure.ac): Compile also expl-table.c.
25318         * tests/test-math-c++.cc: Check the declaration of exp2l.
25319         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
25320         problem.
25322 2012-03-08  Bruno Haible  <bruno@clisp.org>
25324         Tests for module 'exp2f'.
25325         * modules/exp2f-tests: New file.
25326         * tests/test-exp2f.c: New file.
25328         New module 'exp2f'.
25329         * lib/math.in.h (exp2f): New declaration.
25330         * lib/exp2f.c: New file.
25331         * m4/exp2f.m4: New file.
25332         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
25333         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
25334         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
25335         * modules/exp2f: New file.
25336         * tests/test-math-c++.cc: Check the declaration of exp2f.
25337         * doc/posix-functions/exp2f.texi: Mention the new module and the
25338         IRIX problem.
25340 2012-03-08  Bruno Haible  <bruno@clisp.org>
25342         Tests for module 'exp2'.
25343         * modules/exp2-tests: New file.
25344         * tests/test-exp2.c: New file.
25345         * tests/test-exp2.h: New file.
25347         New module 'exp2'.
25348         * lib/math.in.h (exp2): New declaration.
25349         * lib/exp2.c: New file.
25350         * m4/exp2.m4: New file.
25351         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
25352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
25353         REPLACE_EXP2.
25354         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
25355         REPLACE_EXP2.
25356         * modules/exp2: New file.
25357         * tests/test-math-c++.cc: Check the declaration of exp2.
25358         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
25359         and OpenBSD problems.
25361 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
25363         savedir: fix comment typo
25364         * lib/savedir.c (savedirstream): Fix typo in comment.
25366 2012-03-08  Bruno Haible  <bruno@clisp.org>
25368         test-readtokens.c: use const; remove unwarranted cast
25369         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
25371 2012-03-08  Bruno Haible  <bruno@clisp.org>
25373         fmal: Avoid compilation error on AIX.
25374         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
25375         AIX 5.2..7.1.
25377 2012-03-08  Bruno Haible  <bruno@clisp.org>
25379         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
25380         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
25381         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
25382         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
25383         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
25384         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
25385         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
25387 2012-03-08  Bruno Haible  <bruno@clisp.org>
25389         remainderf: Override buggy system function on IRIX 6.5.
25390         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
25391         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
25392         when it exists.
25393         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
25395 2012-03-08  Jim Meyering  <meyering@redhat.com>
25397         test-readtokens.c: avoid const-related compilation warnings
25398         * tests/test-readtokens.c: Avoid const-related compilation warnings.
25400 2012-03-07  Jim Meyering  <meyering@redhat.com>
25401             Bruno Haible  <bruno@clisp.org>
25403         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
25404         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
25405         tests/randomd.c.
25406         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
25407         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
25408         tests/randoml.c.
25409         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
25411 2012-03-07  Bruno Haible  <bruno@clisp.org>
25413         expm1l: Avoid compilation error on AIX.
25414         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
25415         AIX 5.2..7.1.
25417 2012-03-07  Bruno Haible  <bruno@clisp.org>
25419         expm1l: Don't override undeclared system function on IRIX 6.5.
25420         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
25421         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
25422         it exists. Set HAVE_DECL_EXPM1L.
25423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
25424         HAVE_EXPM1L.
25425         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
25426         HAVE_EXPM1L.
25427         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
25429 2012-03-07  Bruno Haible  <bruno@clisp.org>
25431         remainderl: Don't override undeclared system function on IRIX 6.5.
25432         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
25433         HAVE_REMAINDERL.
25434         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
25435         declared when it exists. Set HAVE_DECL_REMAINDERL.
25436         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
25437         not HAVE_REMAINDERL.
25438         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
25439         HAVE_REMAINDERL.
25440         * doc/posix-functions/remainderl.texi: Mention missing declaration
25441         problem.
25443 2012-03-07  Bruno Haible  <bruno@clisp.org>
25445         rintf: Don't override undeclared system function on IRIX 6.5.
25446         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
25447         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
25448         exists. Set HAVE_DECL_RINTF.
25449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
25450         HAVE_RINTF.
25451         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
25452         HAVE_RINTF.
25453         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
25455 2012-03-07  Bruno Haible  <bruno@clisp.org>
25457         roundl: Avoid compilation error on AIX.
25458         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
25459         AIX 5.2..7.1.
25461 2012-03-07  Bruno Haible  <bruno@clisp.org>
25463         roundl: Don't override undeclared system function on IRIX 6.5.
25464         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
25465         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
25466         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25467         * modules/roundl (configure.ac): For replacement code, test
25468         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
25469         (Depends-on): Update conditions.
25470         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
25472 2012-03-07  Bruno Haible  <bruno@clisp.org>
25474         roundf: Don't override undeclared system function on IRIX 6.5.
25475         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
25476         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
25477         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25478         * modules/roundf (configure.ac): For replacement code, test
25479         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
25480         (Depends-on): Update conditions.
25481         * modules/roundf-ieee (Depends-on): Update conditions.
25482         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
25484 2012-03-07  Bruno Haible  <bruno@clisp.org>
25486         round: Don't override undeclared system function on IRIX 6.5.
25487         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
25488         argument.
25489         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
25490         also when it is not declared. Set HAVE_ROUND. For replacement code,
25491         test HAVE_ROUND, not HAVE_DECL_ROUND.
25492         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
25493         not HAVE_DECL_ROUND.
25494         (Depends-on): Update conditions.
25495         * modules/round-ieee (Depends-on): Update conditions.
25496         * doc/posix-functions/round.texi: Mention the IRIX problem.
25498 2012-03-07  Bruno Haible  <bruno@clisp.org>
25500         copysignf: Don't override undeclared system function on IRIX 6.5.
25501         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
25502         HAVE_COPYSIGNF.
25503         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
25504         declared when it exists. Set HAVE_DECL_COPYSIGNF.
25505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
25506         not HAVE_COPYSIGNF.
25507         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
25508         HAVE_COPYSIGNF.
25509         * doc/posix-functions/copysignf.texi: Mention missing declaration
25510         problem.
25512 2012-03-07  Jim Meyering  <meyering@redhat.com>
25514         readtokens: add tests
25515         * modules/readtokens-tests: New file.
25516         * tests/test-readtokens.c: New file.
25518 2012-03-07  Jim Meyering  <meyering@redhat.com>
25520         quotearg: the module must now include quote.h
25521         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
25522         So must the module.
25523         * modules/quotearg (Files): Add quote.h.
25525 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
25527         readtokens: avoid core dumps with unusual calling patterns
25528         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
25529         * lib/readtokens.c: Include limits.h.
25530         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
25531         (readtoken): Don't cache the delimiters; the cache code was buggy
25532         if !delim && saved_delim, or if the new n_delim differs from the old.
25533         Also, it wasn't thread-safe.
25535 2012-03-07  Bruno Haible  <bruno@clisp.org>
25537         quote: Adhere to common module description layout.
25538         * modules/quote (Makefile.am): Add back empty section.
25540 2012-03-06  Akim Demaille  <demaille@gostai.com>
25542         quote: fuse into quotearg
25543         This patch is made for the benefit of Bison.
25544         quote does not leave the choice of the quoting style to the user.
25545         quoting_style provides poor customizability, yet quoting_options,
25546         which is very rich, is hidden inside quotearg.c.  So in order to
25547         allow quote customization, move its implementation to quotearg.c.
25548         * lib/quote.c: Remove.
25549         * modules/quote: Adjust.
25550         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
25551         warning: provide all the members of literal structs.
25552         (quote_quoting_options): New.
25553         (quote, quote_n): Import implementation from quote.c.
25554         * lib/quote.h: Import the comments from quote.c.
25555         (quote_quoting_options): New.
25557 2012-03-06  Bruno Haible  <bruno@clisp.org>
25559         Tests for module 'expm1l-ieee'.
25560         * modules/expm1l-ieee-tests: New file.
25561         * tests/test-expm1l-ieee.c: New file.
25563         New module 'expm1l-ieee'.
25564         * modules/expm1l-ieee: New file.
25566         Tests for module 'expm1f-ieee'.
25567         * modules/expm1f-ieee-tests: New file.
25568         * tests/test-expm1f-ieee.c: New file.
25570         New module 'expm1f-ieee'.
25571         * modules/expm1f-ieee: New file.
25573         Tests for module 'expm1-ieee'.
25574         * modules/expm1-ieee-tests: New file.
25575         * tests/test-expm1-ieee.c: New file.
25576         * tests/test-expm1-ieee.h: New file.
25578         New module 'expm1-ieee'.
25579         * modules/expm1-ieee: New file.
25580         * m4/expm1-ieee.m4: New file.
25581         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
25582         whether expm1 works with a minus zero argument. Replace it if not.
25583         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
25584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
25585         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
25586         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
25587         (Depends-on): Update conditions.
25588         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
25589         AIX problem.
25591 2012-03-06  Bruno Haible  <bruno@clisp.org>
25593         Work around expm1f bug on IRIX 6.5.
25594         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
25595         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
25596         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
25597         not work.
25598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
25599         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
25600         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
25601         (Depends-on): Update conditions.
25602         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
25604 2012-03-06  Bruno Haible  <bruno@clisp.org>
25606         Tests for module 'expm1l'.
25607         * modules/expm1l-tests: New file.
25608         * tests/test-expm1l.c: New file.
25610         New module 'expm1l'.
25611         * lib/math.in.h (expm1l): New declaration.
25612         * lib/expm1l.c: New file.
25613         * m4/expm1l.m4: New file.
25614         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
25615         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
25616         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
25617         * modules/expm1l: New file.
25618         * tests/test-math-c++.cc: Check the declaration of expm1l.
25619         * doc/posix-functions/expm1l.texi: Mention the new module.
25621 2012-03-06  Bruno Haible  <bruno@clisp.org>
25623         Tests for module 'expm1f'.
25624         * modules/expm1f-tests: New file.
25625         * tests/test-expm1f.c: New file.
25627         New module 'expm1f'.
25628         * lib/math.in.h (expm1f): New declaration.
25629         * lib/expm1f.c: New file.
25630         * m4/expm1f.m4: New file.
25631         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
25632         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
25633         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
25634         * modules/expm1f: New file.
25635         * tests/test-math-c++.cc: Check the declaration of expm1f.
25636         * doc/posix-functions/expm1f.texi: Mention the new module.
25638 2012-03-06  Bruno Haible  <bruno@clisp.org>
25640         Tests for module 'expm1'.
25641         * modules/expm1-tests: New file.
25642         * tests/test-expm1.c: New file.
25643         * tests/test-expm1.h: New file.
25645         New module 'expm1'.
25646         * lib/math.in.h (expm1): New declaration.
25647         * lib/expm1.c: New file.
25648         * m4/expm1.m4: New file.
25649         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
25650         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
25651         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
25652         * modules/expm1: New file.
25653         * tests/test-math-c++.cc: Check the declaration of expm1.
25654         * doc/posix-functions/expm1.texi: Mention the new module.
25656 2012-03-06  Bruno Haible  <bruno@clisp.org>
25658         math: Ensure declarations of math functions.
25659         * modules/acosf (Depends-on): Add 'extensions'.
25660         * modules/asinf (Depends-on): Likewise.
25661         * modules/atan2f (Depends-on): Likewise.
25662         * modules/atanf (Depends-on): Likewise.
25663         * modules/cbrt (Depends-on): Likewise.
25664         * modules/cbrtf (Depends-on): Likewise.
25665         * modules/cbrtl (Depends-on): Likewise.
25666         * modules/copysignf (Depends-on): Likewise.
25667         * modules/copysignl (Depends-on): Likewise.
25668         * modules/cosf (Depends-on): Likewise.
25669         * modules/coshf (Depends-on): Likewise.
25670         * modules/expf (Depends-on): Likewise.
25671         * modules/fabsf (Depends-on): Likewise.
25672         * modules/fabsl (Depends-on): Likewise.
25673         * modules/fmaf (Depends-on): Likewise.
25674         * modules/fmal (Depends-on): Likewise.
25675         * modules/fmodf (Depends-on): Likewise.
25676         * modules/fmodl (Depends-on): Likewise.
25677         * modules/frexpf (Depends-on): Likewise.
25678         * modules/frexpl (Depends-on): Likewise.
25679         * modules/hypot (Depends-on): Likewise.
25680         * modules/hypotf (Depends-on): Likewise.
25681         * modules/hypotl (Depends-on): Likewise.
25682         * modules/ldexpf (Depends-on): Likewise.
25683         * modules/ldexpl (Depends-on): Likewise.
25684         * modules/log10f (Depends-on): Likewise.
25685         * modules/log10l (Depends-on): Likewise.
25686         * modules/log1p (Depends-on): Likewise.
25687         * modules/logb (Depends-on): Likewise.
25688         * modules/logf (Depends-on): Likewise.
25689         * modules/modff (Depends-on): Likewise.
25690         * modules/modfl (Depends-on): Likewise.
25691         * modules/powf (Depends-on): Likewise.
25692         * modules/remainderf (Depends-on): Likewise.
25693         * modules/remainderl (Depends-on): Likewise.
25694         * modules/rintf (Depends-on): Likewise.
25695         * modules/rintl (Depends-on): Likewise.
25696         * modules/sinf (Depends-on): Likewise.
25697         * modules/sinhf (Depends-on): Likewise.
25698         * modules/sqrtf (Depends-on): Likewise.
25699         * modules/tanf (Depends-on): Likewise.
25700         * modules/tanhf (Depends-on): Likewise.
25701         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
25702         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
25703         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
25704         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
25705         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
25706         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
25707         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
25708         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
25709         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
25710         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
25711         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
25712         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
25713         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
25714         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
25715         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
25716         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
25717         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
25718         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
25719         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
25720         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
25721         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
25722         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
25723         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
25724         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
25725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
25726         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
25727         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
25728         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25729         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
25730         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
25731         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
25732         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
25733         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
25734         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
25735         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
25736         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
25737         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
25738         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
25739         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
25740         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
25741         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
25743 2012-03-06  Bruno Haible  <bruno@clisp.org>
25745         math: Update module names in warnings.
25746         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
25747         tanl): Use specific module name in warn-on-use warning.
25749 2012-03-06  Bruno Haible  <bruno@clisp.org>
25751         expl: Simplify computation.
25752         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
25754 2012-03-05  Bruno Haible  <bruno@clisp.org>
25756         exp* tests: More tests.
25757         * tests/test-exp.h: New file.
25758         * tests/test-exp.c: Include <float.h> and test-exp.h.
25759         (main): Invoke test_function.
25760         * tests/test-expf.c: Include <float.h> and test-exp.h.
25761         (main): Invoke test_function.
25762         * tests/test-expl.c: Include <float.h> and test-exp.h.
25763         (main): Invoke test_function.
25764         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
25765         (Makefile.am): Add randomd.c to test_exp_SOURCES.
25766         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
25767         (Makefile.am): Add randomf.c to test_expf_SOURCES.
25768         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
25769         (Depends-on): Add 'float'.
25770         (Makefile.am): Add randoml.c to test_expl_SOURCES.
25772         expl: Fix precision of computed result.
25773         * lib/expl.c: Completely rewritten.
25774         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
25775         (Maintainer): Add me.
25776         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
25778 2012-03-05  Bruno Haible  <bruno@clisp.org>
25780         cbrt* tests: More tests.
25781         * tests/test-cbrt.h: New file.
25782         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
25783         (main): Invoke test_function.
25784         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
25785         (main): Invoke test_function.
25786         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
25787         (main): Invoke test_function.
25788         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
25789         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
25790         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
25791         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
25792         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
25793         (Depends-on): Add 'float'.
25794         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
25796 2012-03-05  Bruno Haible  <bruno@clisp.org>
25798         hypot* tests: More tests.
25799         * tests/test-hypot.h: New file, partially extracted from
25800         tests/test-hypotl.c.
25801         * tests/test-hypot.c: Include test-hypot.h.
25802         (main): Invoke test_function.
25803         * tests/test-hypotf.c: Include test-hypot.h.
25804         (main): Invoke test_function.
25805         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
25806         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
25807         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
25808         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
25809         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
25810         tests/randomf.c.
25811         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
25812         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
25813         tests/randoml.c.
25814         (Depends-on): Add 'fpucw', 'float'.
25815         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
25817 2012-03-05  Bruno Haible  <bruno@clisp.org>
25819         fpucw: Doc about FreeBSD.
25820         * lib/fpucw.h: Mention FreeBSD in comments.
25822 2012-03-04  Bruno Haible  <bruno@clisp.org>
25824         sqrt* tests: More tests.
25825         * tests/test-sqrt.h: New file.
25826         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
25827         (main): Invoke test_function.
25828         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
25829         (main): Invoke test_function.
25830         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
25831         (main): Invoke test_function.
25832         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
25833         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
25834         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
25835         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
25836         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
25837         (Depends-on): Add 'float'.
25838         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
25840 2012-03-04  Bruno Haible  <bruno@clisp.org>
25842         remainder* tests: More tests.
25843         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
25844         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
25845         (main): Invoke test_function.
25846         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
25847         (main): Invoke test_function.
25848         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
25849         (main): Invoke test_function.
25850         * modules/remainder-tests (Files): Add tests/test-remainder.h,
25851         tests/randomd.c.
25852         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
25853         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
25854         tests/randomf.c.
25855         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
25856         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
25857         tests/randoml.c.
25858         (Depends-on): Add 'float'.
25859         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
25861 2012-03-04  Bruno Haible  <bruno@clisp.org>
25863         remainder, remainderf, remainderl: Fix computation for large quotients.
25864         * lib/remainder.c: Completely rewritten.
25865         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
25866         USE_FLOAT.
25867         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
25868         USE_LONG_DOUBLE.
25869         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
25870         isnand, isinf. Remove round, fma.
25871         * modules/remainderf (Files): Add lib/remainder.c.
25872         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
25873         Remove roundf, fmaf.
25874         * modules/remainderl (Files): Add lib/remainder.c.
25875         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
25876         isinf. Remove roundl, fmal.
25877         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
25878         REMAINDER_LIBM.
25879         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
25880         REMAINDERF_LIBM.
25881         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
25882         REMAINDERL_LIBM.
25884 2012-03-04  Bruno Haible  <bruno@clisp.org>
25886         fmod* tests: More tests.
25887         * tests/test-fmod.h (my_ldexp): New function.
25888         (test_function): Reduce amount of random numbers to test. Add tests
25889         of very large quotients x / y.
25890         * tests/test-fmod.c (MAX_EXP): New macro.
25891         * tests/test-fmodf.c (MAX_EXP): Likewise.
25892         * tests/test-fmodl.c (MAX_EXP): Likewise.
25894 2012-03-04  Bruno Haible  <bruno@clisp.org>
25896         fmod, fmodl: Fix computation for large quotients x / y.
25897         * lib/fmod.c: Completely rewritten.
25898         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
25899         USE_LONG_DOUBLE.
25900         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
25901         isnand. Remove fma.
25902         * modules/fmodl (Files): Add lib/fmod.c.
25903         (Depends-on): Add float, isfinite, signbit, fabsl,
25904         frexpl, ldexpl, isnanl. Remove fma.
25905         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
25906         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
25908 2012-03-03  Bruno Haible  <bruno@clisp.org>
25910         fmod* tests: More tests.
25911         * tests/test-fmod.h: New file.
25912         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
25913         (main): Invoke test_function.
25914         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
25915         (main): Invoke test_function.
25916         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
25917         (main): Invoke test_function.
25918         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
25919         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
25920         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
25921         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
25922         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
25923         (Depends-on): Add 'float'.
25924         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
25926 2012-03-03  Bruno Haible  <bruno@clisp.org>
25928         rint* tests: More tests.
25929         * tests/test-rint.h: New file, partially extracted from
25930         tests/test-rintl.c.
25931         * tests/test-rint.c: Include test-rint.h.
25932         (main): Invoke test_function.
25933         * tests/test-rintf.c: Include test-rint.h.
25934         (main): Invoke test_function.
25935         * tests/test-rintl.c: Include test-rint.h.
25936         (main): Invoke test_function.
25937         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
25938         (Makefile.am): Add randomd.c to test_rint_SOURCES.
25939         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
25940         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
25941         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
25942         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
25944 2012-03-03  Bruno Haible  <bruno@clisp.org>
25946         modf* tests: More tests.
25947         * tests/test-modf.h: New file.
25948         * tests/test-modf.c: Include <float.h> and test-modf.h.
25949         (main): Invoke test_function.
25950         * tests/test-modff.c: Include <float.h> and test-modf.h.
25951         (main): Invoke test_function.
25952         * tests/test-modfl.c: Include <float.h> and test-modf.h.
25953         (main): Invoke test_function.
25954         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
25955         (Makefile.am): Add randomd.c to test_modf_SOURCES.
25956         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
25957         (Makefile.am): Add randomf.c to test_modff_SOURCES.
25958         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
25959         (Depends-on): Add 'float'.
25960         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
25962 2012-03-03  Bruno Haible  <bruno@clisp.org>
25964         fabs* tests: More tests.
25965         * tests/test-fabs.h: New file, partially extracted from
25966         tests/test-fabsl.c.
25967         * tests/test-fabs.c (RANDOM): New macro.
25968         * tests/test-fabsf.c (RANDOM): New macro.
25969         * tests/test-fabsl.c (RANDOM): New macro.
25970         * modules/fabs-tests (Files): Add tests/randomd.c.
25971         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
25972         * modules/fabsf-tests (Files): Add tests/randomf.c.
25973         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
25974         * modules/fabsl-tests (Files): Add tests/randoml.c.
25975         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
25977 2012-03-03  Bruno Haible  <bruno@clisp.org>
25979         ldexp* tests: More tests.
25980         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
25981         * tests/test-ldexp.c (RANDOM): New macro.
25982         * tests/test-ldexpf.c (RANDOM): New macro.
25983         * tests/test-ldexpl.c (RANDOM): New macro.
25984         * modules/ldexp-tests (Files): Add tests/randomd.c.
25985         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
25986         * modules/ldexpf-tests (Files): Add tests/randomf.c.
25987         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
25988         * modules/ldexpl-tests (Files): Add tests/randoml.c.
25989         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
25991 2012-03-03  Bruno Haible  <bruno@clisp.org>
25993         frexp* tests: More tests.
25994         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
25995         * tests/test-frexp.c (RANDOM): New macro.
25996         * tests/test-frexpf.c (RANDOM): New macro.
25997         * tests/test-frexpl.c (RANDOM): New macro.
25998         * modules/frexp-tests (Files): Add tests/randomd.c.
25999         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
26000         * modules/frexpf-tests (Files): Add tests/randomf.c.
26001         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
26002         * modules/frexpl-tests (Files): Add tests/randoml.c.
26003         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
26005 2012-03-03  Bruno Haible  <bruno@clisp.org>
26007         Support for pseudo-random numbers in tests.
26008         * tests/randomf.c: New file.
26009         * tests/randomd.c: New file.
26010         * tests/randoml.c: New file.
26011         * tests/macros.h (randomf, randomd, randoml): New declarations.
26013 2012-03-03  Bruno Haible  <bruno@clisp.org>
26015         frexp* tests: Refactor.
26016         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
26017         * tests/test-frexp.c: Include and use it.
26018         * tests/test-frexpf.c: Likewise.
26019         * tests/test-frexpl.c: Likewise.
26020         * modules/frexp-tests (Files): Add tests/test-frexp.h.
26021         * modules/frexpf-tests (Files): Likewise.
26022         * modules/frexpl-tests (Files): Likewise.
26024 2012-03-02  Jim Meyering  <meyering@redhat.com>
26026         maint: don't specify XZ_OPT=-9ev in dist-related rule
26027         Using xz's -9 option is warranted only if you have a very large
26028         tarball (see xz's documentation for the sizes vs. presets), and
26029         requires 64MiB of memory at decompression time.
26030         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
26031         Automake's default of just "-e" is fine.  Override on a
26032         per-package basis by setting XZ_OPT e.g., in cfg.mk.
26034 2012-03-01  Eric Blake  <eblake@redhat.com>
26036         maint.mk: allow announcement for non-gnulib project
26037         * maint.mk (announcement): Skip gnulib version if not used.
26039 2012-03-01  Jim Meyering  <meyering@redhat.com>
26041         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
26042         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
26043         envvar settings cannot interfere.  Otherwise, setting envvars like
26044         prohibit=foo require=bar, etc. would cause spurious test failures.
26046 2012-03-01  Eric Blake  <eblake@redhat.com>
26048         maint.mk: add per-line exclusions to prohibitions
26049         * maint.mk (_sc_search_regexp): Add $exclude parameter.
26050         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
26051         (sc_const_long_option): Use it.
26053 2012-03-01  Bruno Haible  <bruno@clisp.org>
26055         Tests for module 'expl-ieee'.
26056         * modules/expl-ieee-tests: New file.
26057         * tests/test-expl-ieee.c: New file.
26059         New module 'expl-ieee'.
26060         * modules/expl-ieee: New file.
26062         Tests for module 'exp-ieee'.
26063         * modules/exp-ieee-tests: New file.
26064         * tests/test-exp-ieee.c: New file.
26066         New module 'exp-ieee'.
26067         * modules/exp-ieee: New file.
26069         Tests for module 'expf-ieee'.
26070         * modules/expf-ieee-tests: New file.
26071         * tests/test-expf-ieee.c: New file.
26072         * tests/test-exp-ieee.h: New file.
26074         New module 'expf-ieee'.
26075         * modules/expf-ieee: New file.
26077 2012-02-29  Bruno Haible  <bruno@clisp.org>
26079         cbrtl-ieee: Work around test failure on IRIX 6.5.
26080         * m4/cbrtl-ieee.m4: New file.
26081         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
26082         test whether cbrtl works with a minus zero argument. Replace it if not.
26083         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
26084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
26085         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
26086         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
26087         (Depends-on): Update conditions.
26088         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
26089         m4/signbit.m4.
26090         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
26091         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
26092         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
26094         Tests for module 'cbrtl-ieee'.
26095         * modules/cbrtl-ieee-tests: New file.
26096         * tests/test-cbrtl-ieee.c: New file.
26098         New module 'cbrtl-ieee'.
26099         * modules/cbrtl-ieee: New file.
26101         Tests for module 'cbrt-ieee'.
26102         * modules/cbrt-ieee-tests: New file.
26103         * tests/test-cbrt-ieee.c: New file.
26105         New module 'cbrt-ieee'.
26106         * modules/cbrt-ieee: New file.
26108         Tests for module 'cbrtf-ieee'.
26109         * modules/cbrtf-ieee-tests: New file.
26110         * tests/test-cbrtf-ieee.c: New file.
26111         * tests/test-cbrt-ieee.h: New file.
26113         New module 'cbrtf-ieee'.
26114         * modules/cbrtf-ieee: New file.
26116 2012-02-29  Bruno Haible  <bruno@clisp.org>
26118         cbrtf: Work around bug in IRIX 6.5 system function.
26119         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
26120         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
26121         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
26122         work.
26123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
26124         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
26125         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
26126         (Depends-on): Update conditions.
26127         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
26129 2012-02-29  Bruno Haible  <bruno@clisp.org>
26131         Tests for module 'cbrtl'.
26132         * modules/cbrtl-tests: New file.
26133         * tests/test-cbrtl.c: New file.
26135         New module 'cbrtl'.
26136         * lib/math.in.h (cbrtl): New declaration.
26137         * lib/cbrtl.c: New file.
26138         * m4/cbrtl.m4: New file.
26139         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
26140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
26141         HAVE_DECL_CBRTL.
26142         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
26143         HAVE_DECL_CBRTL.
26144         * modules/cbrtl: New file.
26145         * tests/test-math-c++.cc: Check the declaration of cbrtl.
26146         * doc/posix-functions/cbrtl.texi: Mention the new module.
26148 2012-02-29  Bruno Haible  <bruno@clisp.org>
26150         Tests for module 'cbrtf'.
26151         * modules/cbrtf-tests: New file.
26152         * tests/test-cbrtf.c: New file.
26154         New module 'cbrtf'.
26155         * lib/math.in.h (cbrtf): New declaration.
26156         * lib/cbrtf.c: New file.
26157         * m4/cbrtf.m4: New file.
26158         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
26159         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
26160         HAVE_DECL_CBRTF.
26161         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
26162         HAVE_DECL_CBRTF.
26163         * modules/cbrtf: New file.
26164         * tests/test-math-c++.cc: Check the declaration of cbrtf.
26165         * doc/posix-functions/cbrtf.texi: Mention the new module.
26167 2012-02-29  Bruno Haible  <bruno@clisp.org>
26169         cbrt: Provide replacement on MSVC and Minix.
26170         * lib/math.in.h (cbrt): New declaration.
26171         * lib/cbrt.c: New file.
26172         * m4/cbrt.m4: New file.
26173         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
26174         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
26175         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
26176         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
26177         (Depends-on): Add dependencies.
26178         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
26179         * tests/test-math-c++.cc: Check the declaration of cbrt.
26180         * doc/posix-functions/cbrt.texi: Mention that the module provides a
26181         replacement.
26183 2012-02-29  Bruno Haible  <bruno@clisp.org>
26185         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
26186         * m4/hypotl-ieee.m4: New file.
26187         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
26188         test whether hypotl works with mixed NaN and Infinity arguments.
26189         Replace it if not.
26190         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
26191         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
26192         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
26193         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
26194         (Depends-on): Update conditions.
26195         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
26196         (Depends-on): Add hypot-ieee.
26197         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
26198         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
26200         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
26201         * m4/hypotf-ieee.m4: New file.
26202         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
26203         test whether hypotf works with mixed NaN and Infinity arguments.
26204         Replace it if not.
26205         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
26206         (Depends-on): Add hypot-ieee.
26207         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
26208         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
26210         hypot-ieee: Work around test failure on OSF/1 and native Windows.
26211         * lib/math.in.h (hypot): New declaration.
26212         * lib/hypot.c: New file.
26213         * m4/hypot-ieee.m4: New file.
26214         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
26215         whether hypot works with mixed NaN and Infinity arguments. Replace it
26216         if not.
26217         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
26218         REPLACE_HYPOT.
26219         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
26220         * modules/hypot (Files): Add lib/hypot.c.
26221         (Depends-on): Add dependencies.
26222         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
26223         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
26224         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
26225         * tests/test-math-c++.cc: Check the declaration of hypot.
26226         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
26228         Tests for module 'hypotl-ieee'.
26229         * modules/hypotl-ieee-tests: New file.
26230         * tests/test-hypotl-ieee.c: New file.
26232         New module 'hypotl-ieee'.
26233         * modules/hypotl-ieee: New file.
26235         Tests for module 'hypot-ieee'.
26236         * modules/hypot-ieee-tests: New file.
26237         * tests/test-hypot-ieee.c: New file.
26239         New module 'hypot-ieee'.
26240         * modules/hypot-ieee: New file.
26242         Tests for module 'hypotf-ieee'.
26243         * modules/hypotf-ieee-tests: New file.
26244         * tests/test-hypotf-ieee.c: New file.
26245         * tests/test-hypot-ieee.h: New file.
26247         New module 'hypotf-ieee'.
26248         * modules/hypotf-ieee: New file.
26250 2012-02-29  Bruno Haible  <bruno@clisp.org>
26252         Remove unused variables.
26253         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
26254         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
26255         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
26256         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
26258 2012-02-29  Eric Blake  <eblake@redhat.com>
26260         termios: fix pid_t always, not just for tcgetsid
26261         * doc/posix-headers/termios.texi (termios.h): Mention problem.
26262         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
26263         just when building tcgetsid.
26265 2012-02-29  Bruno Haible  <bruno@clisp.org>
26267         Tests for module 'hypotl'.
26268         * modules/hypotl-tests: New file.
26269         * tests/test-hypotl.c: New file.
26271         New module 'hypotl'.
26272         * lib/math.in.h (hypotl): New declaration.
26273         * lib/hypotl.c: New file.
26274         * m4/hypotl.m4: New file.
26275         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
26277         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
26278         * modules/hypotl: New file.
26279         * tests/test-math-c++.cc: Check the hypotl declaration.
26280         * doc/posix-functions/hypotl.texi: Mention the new module.
26282 2012-02-29  Eric Blake  <eblake@redhat.com>
26284         tcgetsid: fix cygwin header bug
26285         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
26287         docs: update cygwin progress
26288         * doc/posix-functions/llround.texi (llround): Added in cygwin
26289         1.7.8.
26290         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
26291         * doc/glibc-functions/program_invocation_name.texi
26292         (program_invocation_name): Likewise.
26293         * doc/glibc-functions/program_invocation_short_name.texi
26294         (program_invocation_short_name): Likewise.
26295         * doc/glibc-functions/madvise.texi (madvise): Likewise.
26296         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
26297         Likewise.
26298         * doc/posix-functions/pthread_spin_destroy.texi
26299         (pthread_spin_destroy): Added in cygwin 1.7.10.
26300         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
26301         Likewise.
26302         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
26303         Likewise.
26304         * doc/posix-functions/pthread_spin_trylock.texi
26305         (pthread_spin_trylock): Likewise.
26306         * doc/posix-functions/pthread_spin_unlock.texi
26307         (pthread_spin_unlock): Likewise.
26308         * doc/posix-functions/pthread_setschedprio.texi
26309         (pthread_setschedprio): Likewise.
26310         * doc/posix-functions/pthread_attr_getstack.texi
26311         (pthread_attr_getstack): Likewise.
26312         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
26313         (pthread_attr_getstackaddr): Likewise.
26314         * doc/glibc-functions/pthread_getattr_np.texi
26315         (pthread_getattr_np): Likewise.
26316         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
26317         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
26318         * doc/posix-functions/clock_settime.texi (clock_settime):
26319         Likewise.
26320         * doc/posix-functions/pthread_attr_getguardsize.texi
26321         (pthread_attr_getguardsize): Likewise.
26322         * doc/posix-functions/pthread_attr_setguardsize.texi
26323         (pthread_attr_setguardsize): Likewise.
26324         * doc/posix-functions/pthread_attr_setstack.texi
26325         (pthread_attr_setstack): Likewise.
26326         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
26327         (pthread_attr_setstackaddr): Likewise.
26328         * doc/posix-functions/clock_getcpuclockid.texi
26329         (clock_getcpuclockid): Likewise.
26330         * doc/posix-functions/pthread_getcpuclockid.texi
26331         (pthread_getcpuclockid): Likewise.
26332         * doc/glibc-functions/error.texi (error): Likewise.
26333         * doc/glibc-functions/error_at_line.texi (error_at_line):
26334         Likewise.
26335         * doc/glibc-functions/error_message_count.texi
26336         (error_message_count): Likewise.
26337         * doc/glibc-functions/error_one_per_line.texi
26338         (error_one_per_line): Likewise.
26339         * doc/glibc-functions/error_print_progname.texi
26340         (error_print_progname): Likewise.
26341         * doc/posix-functions/pthread_condattr_getclock.texi
26342         (pthread_condattr_getclock): Likewise.
26343         * doc/posix-functions/pthread_condattr_setclock.texi
26344         (pthread_condattr_setclock): Likewise.
26345         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
26346         Likewise.
26347         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
26348         * doc/glibc-functions/getpt.texi (getpt): Likewise.
26349         * doc/glibc-functions/get_current_dir_name.texi
26350         (get_current_dir_name): Likewise.
26351         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
26352         Likewise.
26353         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
26354         wrong return type.
26355         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
26356         1.7.11.
26358 2012-02-29  Bruno Haible  <bruno@clisp.org>
26360         Tests for module 'hypotf'.
26361         * modules/hypotf-tests: New file.
26362         * tests/test-hypotf.c: New file.
26364         New module 'hypotf'.
26365         * lib/math.in.h (hypotf): New declaration.
26366         * lib/hypotf.c: New file.
26367         * m4/hypotf.m4: New file.
26368         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
26369         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
26370         REPLACE_HYPOTF.
26371         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
26372         REPLACE_HYPOTF.
26373         * modules/hypotf: New file.
26374         * tests/test-math-c++.cc: Check the hypotf declaration.
26375         * doc/posix-functions/hypotf.texi: Mention the new module.
26377         hypot: Prepare for hypotf module.
26378         * m4/hypot.m4: New file.
26379         * modules/hypot (Files): Add m4/hypot.m4.
26380         (configure.ac): Invoke gl_FUNC_HYPOT.
26382 2012-02-29  Bruno Haible  <bruno@clisp.org>
26384         hypot tests: More tests.
26385         * tests/test-hypot.c: Include <float.h>.
26386         (main): Add tests about overflow and underflow.
26388 2012-02-29  Bruno Haible  <bruno@clisp.org>
26390         math code: Add comments.
26391         * lib/acosl.c: Add comment about related glibc source files.
26392         * lib/asinl.c: Likewise.
26393         * lib/atanl.c: Likewise.
26394         * lib/expl.c: Likewise.
26395         * lib/logl.c: Likewise.
26396         * lib/sincosl.c: Likewise.
26397         * lib/sinl.c: Likewise.
26398         * lib/tanl.c: Likewise.
26399         * lib/trigl.c: Likewise.
26400         * lib/cosl.c: Likewise. Fix comments.
26402 2012-02-28  Bruno Haible  <bruno@clisp.org>
26404         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
26405         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
26406         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
26407         HUGE_VALL are defined.
26408         (numeric_equald): Renamed from numeric_equal.
26409         (numeric_equalf, numeric_equall): New functions.
26410         (main): Check also HUGE_VALF, HUGE_VALL.
26411         * modules/math-tests (Files): Add tests/macros.h.
26412         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
26413         HUGE_VALL.
26415 2012-02-28  Bruno Haible  <bruno@clisp.org>
26417         doc: Move ISO C11 feature notes into POSIX chapters.
26418         * doc/posix-functions/aligned_alloc.texi: Renamed from
26419         doc/glibc-functions/aligned_alloc.texi.
26420         * doc/posix-functions/quick_exit.texi: Renamed from
26421         doc/glibc-functions/quick_exit.texi.
26422         * doc/posix-headers/uchar.texi: Renamed from
26423         doc/glibc-headers/uchar.texi.
26424         * doc/posix-functions/c16rtomb.texi: Renamed from
26425         doc/glibc-functions/c16rtomb.texi.
26426         * doc/posix-functions/c32rtomb.texi: Renamed from
26427         doc/glibc-functions/c32rtomb.texi.
26428         * doc/posix-functions/mbrtoc16.texi: Renamed from
26429         doc/glibc-functions/mbrtoc16.texi.
26430         * doc/posix-functions/mbrtoc32.texi: Renamed from
26431         doc/glibc-functions/mbrtoc32.texi.
26432         * doc/gnulib.texi: Update.
26433         (Glibc uchar.h): Remove section.
26434         Suggested by Eric Blake.
26436 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
26438         stdnoreturn: port to MSVC better
26439         MSVC standard headers use __declspec(noreturn), so #define noreturn
26440         to empty on that platform.  Reported by Bruno Haible in
26441         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
26442         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
26443         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
26445 2012-02-28  Bruno Haible  <bruno@clisp.org>
26447         doc: Mention new glibc headers and functions.
26448         * doc/glibc-headers/uchar.texi: New file.
26449         * doc/glibc-functions/aligned_alloc.texi: New file.
26450         * doc/glibc-functions/c16rtomb.texi: New file.
26451         * doc/glibc-functions/c32rtomb.texi: New file.
26452         * doc/glibc-functions/clock_adjtime.texi: New file.
26453         * doc/glibc-functions/fanotify_init.texi: New file.
26454         * doc/glibc-functions/fanotify_mark.texi: New file.
26455         * doc/glibc-functions/inet6_opt_append.texi: New file.
26456         * doc/glibc-functions/inet6_opt_find.texi: New file.
26457         * doc/glibc-functions/inet6_opt_finish.texi: New file.
26458         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
26459         * doc/glibc-functions/inet6_opt_init.texi: New file.
26460         * doc/glibc-functions/inet6_opt_next.texi: New file.
26461         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
26462         * doc/glibc-functions/inet6_rth_add.texi: New file.
26463         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
26464         * doc/glibc-functions/inet6_rth_init.texi: New file.
26465         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
26466         * doc/glibc-functions/inet6_rth_segments.texi: New file.
26467         * doc/glibc-functions/inet6_rth_space.texi: New file.
26468         * doc/glibc-functions/login.texi: New file.
26469         * doc/glibc-functions/mbrtoc16.texi: New file.
26470         * doc/glibc-functions/mbrtoc32.texi: New file.
26471         * doc/glibc-functions/name_to_handle_at.texi: New file.
26472         * doc/glibc-functions/ntp_gettimex.texi: New file.
26473         * doc/glibc-functions/open_by_handle_at.texi: New file.
26474         * doc/glibc-functions/prlimit.texi: New file.
26475         * doc/glibc-functions/process_vm_readv.texi: New file.
26476         * doc/glibc-functions/process_vm_writev.texi: New file.
26477         * doc/glibc-functions/recvmmsg.texi: New file.
26478         * doc/glibc-functions/scandirat.texi: New file.
26479         * doc/glibc-functions/sendmmsg.texi: New file.
26480         * doc/glibc-functions/setns.texi: New file.
26481         * doc/glibc-functions/timespec_get.texi: New file.
26482         * doc/gnulib.texi: Include them.
26483         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
26484         sections.
26485         Reported by Eric Blake.
26487 2012-02-28  Bruno Haible  <bruno@clisp.org>
26489         Avoid compilation errors with MSVC option -fp:strict.
26490         * lib/floor.c: Use MSVC specific pragma fenv_access.
26491         * lib/ceil.c: Likewise.
26492         * lib/trunc.c: Likewise.
26493         * lib/round.c: Likewise.
26494         * lib/rint.c: Likewise.
26495         * lib/fma.c: Likewise.
26496         * lib/integer_length.c: Likewise.
26497         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
26498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
26499         * tests/test-floor2.c: Likewise.
26500         * tests/test-floorf2.c: Likewise.
26501         * tests/test-ceil2.c: Likewise.
26502         * tests/test-ceilf2.c: Likewise.
26503         * tests/test-trunc2.c: Likewise.
26504         * tests/test-truncf2.c: Likewise.
26505         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
26507 2012-02-27  Bruno Haible  <bruno@clisp.org>
26509         Tests for module 'sqrtl-ieee'.
26510         * modules/sqrtl-ieee-tests: New file.
26511         * tests/test-sqrtl-ieee.c: New file.
26513         New module 'sqrtl-ieee'.
26514         * modules/sqrtl-ieee: New file.
26516         Tests for module 'sqrt-ieee'.
26517         * modules/sqrt-ieee-tests: New file.
26518         * tests/test-sqrt-ieee.c: New file.
26520         New module 'sqrt-ieee'.
26521         * modules/sqrt-ieee: New file.
26523         Tests for module 'sqrtf-ieee'.
26524         * modules/sqrtf-ieee-tests: New file.
26525         * tests/test-sqrtf-ieee.c: New file.
26526         * tests/test-sqrt-ieee.h: New file.
26528         New module 'sqrtf-ieee'.
26529         * modules/sqrtf-ieee: New file.
26531 2012-02-27  Bruno Haible  <bruno@clisp.org>
26533         remainderl-ieee: Work around test failure on OSF/1.
26534         * m4/remainderl-ieee.m4: New file.
26535         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
26536         present, test whether remainderl works with a zero second argument.
26537         Replace it if not.
26538         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
26539         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
26540         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
26541         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
26542         (Depends-on): Update conditions.
26543         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
26544         (Depends-on): Add remainder-ieee.
26545         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
26546         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
26547         module.
26549         remainderf-ieee: Work around test failure on OSF/1.
26550         * m4/remainderf-ieee.m4: New file.
26551         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
26552         present, test whether remainderf works with a zero second argument.
26553         Replace it if not.
26554         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
26555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
26556         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
26557         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
26558         (Depends-on): Update conditions.
26559         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
26560         (Depends-on): Add remainder-ieee.
26561         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
26562         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
26563         module.
26565         remainder-ieee: Work around test failure on OSF/1.
26566         * m4/remainder-ieee.m4: New file.
26567         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
26568         present, test whether remainder works with a zero second argument.
26569         Replace it if not.
26570         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
26571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
26572         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
26573         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
26574         (Depends-on): Update dependencies.
26575         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
26576         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
26577         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
26579         Tests for module 'remainderl-ieee'.
26580         * modules/remainderl-ieee-tests: New file.
26581         * tests/test-remainderl-ieee.c: New file.
26583         New module 'remainderl-ieee'.
26584         * modules/remainderl-ieee: New file.
26586         Tests for module 'remainder-ieee'.
26587         * modules/remainder-ieee-tests: New file.
26588         * tests/test-remainder-ieee.c: New file.
26590         New module 'remainder-ieee'.
26591         * modules/remainder-ieee: New file.
26593         Tests for module 'remainderf-ieee'.
26594         * modules/remainderf-ieee-tests: New file.
26595         * tests/test-remainderf-ieee.c: New file.
26596         * tests/test-remainder-ieee.h: New file.
26598         New module 'remainderf-ieee'.
26599         * modules/remainderf-ieee: New file.
26601 2012-02-27  Bruno Haible  <bruno@clisp.org>
26603         modff, modfl: Fix configure syntax error.
26604         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
26605         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
26607 2012-02-27  Bruno Haible  <bruno@clisp.org>
26609         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
26610         * m4/fmodl-ieee.m4: New file.
26611         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
26612         whether fmodl works with zero arguments. Replace it if not.
26613         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
26614         (Depends-on): Add fmod-ieee.
26615         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
26616         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
26618         fmodf-ieee: Work around test failure on OSF/1.
26619         * m4/fmodf-ieee.m4: New file.
26620         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
26621         whether fmodf works with zero arguments. Replace it if not.
26622         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
26623         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
26624         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
26625         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
26626         (Depends-on): Update dependencies.
26627         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
26628         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
26629         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
26631         fmodf-ieee: Work around test failure on MSVC 9.
26632         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
26633         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
26635         fmod-ieee: Work around test failures on OSF/1, mingw.
26636         * m4/fmod-ieee.m4: New file.
26637         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
26638         whether fmod works with zero arguments. Replace it if not.
26639         * lib/math.in.h (fmod): New declaration.
26640         * lib/fmod.c: New file.
26641         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
26642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
26643         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
26644         * modules/fmod (Files): Add lib/fmod.c.
26645         (Depends-on): Add math, isinf, trunc, fma.
26646         (configure.ac): Arrange to compile lib/fmod.c if needed.
26647         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
26648         m4/signbit.m4.
26649         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
26650         * tests/test-math-c++.cc: Check the declaration of fmod.
26651         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
26653         fmodl-ieee: Fix test failures.
26654         * lib/fmodl.c (fmodl): Treat Inf specially.
26655         * modules/fmodl (Depends-on): Add isinf.
26657         Tests for module 'fmodl-ieee'.
26658         * modules/fmodl-ieee-tests: New file.
26659         * tests/test-fmodl-ieee.c: New file.
26661         New module 'fmodl-ieee'.
26662         * modules/fmodl-ieee: New file.
26664         Tests for module 'fmod-ieee'.
26665         * modules/fmod-ieee-tests: New file.
26666         * tests/test-fmod-ieee.c: New file.
26668         New module 'fmod-ieee'.
26669         * modules/fmod-ieee: New file.
26671         Tests for module 'fmodf-ieee'.
26672         * modules/fmodf-ieee-tests: New file.
26673         * tests/test-fmodf-ieee.c: New file.
26674         * tests/test-fmod-ieee.h: New file.
26676         New module 'fmodf-ieee'.
26677         * modules/fmodf-ieee: New file.
26679 2012-02-27  Bruno Haible  <bruno@clisp.org>
26681         Tests for module 'rintl-ieee'.
26682         * modules/rintl-ieee-tests: New file.
26683         * tests/test-rintl-ieee.c: New file.
26685         New module 'rintl-ieee'.
26686         * modules/rintl-ieee: New file.
26688         Tests for module 'rint-ieee'.
26689         * modules/rint-ieee-tests: New file.
26690         * tests/test-rint-ieee.c: New file.
26692         New module 'rint-ieee'.
26693         * modules/rint-ieee: New file.
26695         Tests for module 'rintf-ieee'.
26696         * modules/rintf-ieee-tests: New file.
26697         * tests/test-rintf-ieee.c: New file.
26698         * tests/test-rint-ieee.h: New file.
26700         New module 'rintf-ieee'.
26701         * modules/rintf-ieee: New file.
26703 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
26705         regex: re_search etc. should return -2 when memory exhausted
26706         This bug was uncovered when testing 'grep'.  Without the fix,
26707         re_search and friends return -1 when memory is exhausted, but -1
26708         means no match, and this causes grep to falsely report no-match
26709         instead of memory-exhaustion.  See
26710         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
26711         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
26712         trouble; this can occur if re_search_internal ran out of memory.
26714 2012-02-26  Bruno Haible  <bruno@clisp.org>
26716         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
26717         * m4/modfl-ieee.m4: New file.
26718         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
26719         whether modfl works with Inf. Replace it if not.
26720         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
26721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
26722         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
26723         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
26724         (Depends-on): Update dependencies.
26725         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
26726         m4/signbit.m4.
26727         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
26728         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
26730         modfl-ieee: Fix dependencies.
26731         * modules/modfl-ieee (Depends-on): Add modf-ieee.
26733         modfl-ieee: Fix test failures.
26734         * lib/modfl.c (modfl): Treat NaN and Inf specially.
26735         * modules/modfl (Depends-on): Add isfinite, isinf.
26737         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
26738         * m4/modff-ieee.m4: New file.
26739         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
26740         whether modff works with NaN and Inf. Replace it if not.
26741         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
26742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
26743         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
26744         * modules/modff (configure.ac): Consider REPLACE_MODFF.
26745         (Depends-on): Update dependencies.
26746         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
26747         m4/signbit.m4.
26748         (Depends-on): Add modf-ieee.
26749         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
26750         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
26752         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
26753         * m4/modf-ieee.m4: New file.
26754         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
26755         whether modf works with NaN and Inf. Replace it if not.
26756         * lib/math.in.h (modf): New declaration.
26757         * lib/modf.c: New file.
26758         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
26759         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
26760         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
26761         * modules/modf (Files): Add lib/modf.c.
26762         (Depends-on): Add math, isfinite, trunc, isinf.
26763         (configure.ac): Addrange to compile lib/modf.c if needed.
26764         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
26765         m4/signbit.m4.
26766         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
26767         * tests/test-math-c++.cc: Check the declaration of modf.
26768         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
26770         Tests for module 'modfl-ieee'.
26771         * modules/modfl-ieee-tests: New file.
26772         * tests/test-modfl-ieee.c: New file.
26774         New module 'modfl-ieee'.
26775         * modules/modfl-ieee: New file.
26777         Tests for module 'modf-ieee'.
26778         * modules/modf-ieee-tests: New file.
26779         * tests/test-modf-ieee.c: New file.
26781         New module 'modf-ieee'.
26782         * modules/modf-ieee: New file.
26784         Tests for module 'modff-ieee'.
26785         * modules/modff-ieee-tests: New file.
26786         * tests/test-modff-ieee.c: New file.
26787         * tests/test-modf-ieee.h: New file.
26789         New module 'modff-ieee'.
26790         * modules/modff-ieee: New file.
26792 2012-02-26  Bruno Haible  <bruno@clisp.org>
26794         Tests for module 'fabsl-ieee'.
26795         * modules/fabsl-ieee-tests: New file.
26796         * tests/test-fabsl-ieee.c: New file.
26798         New module 'fabsl-ieee'.
26799         * modules/fabsl-ieee: New file.
26801         Tests for module 'fabs-ieee'.
26802         * modules/fabs-ieee-tests: New file.
26803         * tests/test-fabs-ieee.c: New file.
26805         New module 'fabs-ieee'.
26806         * modules/fabs-ieee: New file.
26808         Tests for module 'fabsf-ieee'.
26809         * modules/fabsf-ieee-tests: New file.
26810         * tests/test-fabsf-ieee.c: New file.
26811         * tests/test-fabs-ieee.h: New file.
26813         New module 'fabsf-ieee'.
26814         * modules/fabsf-ieee: New file.
26816 2012-02-26  Bruno Haible  <bruno@clisp.org>
26818         Tests for module 'fmal-ieee'.
26819         * modules/fmal-ieee-tests: New file.
26820         * tests/test-fmal-ieee.c: New file.
26822         New module 'fmal-ieee'.
26823         * modules/fmal-ieee: New file.
26825         Tests for module 'fma-ieee'.
26826         * modules/fma-ieee-tests: New file.
26827         * tests/test-fma-ieee.c: New file.
26829         New module 'fma-ieee'.
26830         * modules/fma-ieee: New file.
26832         Tests for module 'fmaf-ieee'.
26833         * modules/fmaf-ieee-tests: New file.
26834         * tests/test-fmaf-ieee.c: New file.
26835         * tests/test-fma-ieee.h: New file.
26837         New module 'fmaf-ieee'.
26838         * modules/fmaf-ieee: New file.
26840 2012-02-26  Bruno Haible  <bruno@clisp.org>
26842         Tests for module 'ldexpl-ieee'.
26843         * modules/ldexpl-ieee-tests: New file.
26844         * tests/test-ldexpl-ieee.c: New file.
26846         New module 'ldexpl-ieee'.
26847         * modules/ldexpl-ieee: New file.
26849         Tests for module 'ldexp-ieee'.
26850         * modules/ldexp-ieee-tests: New file.
26851         * tests/test-ldexp-ieee.c: New file.
26853         New module 'ldexp-ieee'.
26854         * modules/ldexp-ieee: New file.
26856         Tests for module 'ldexpf-ieee'.
26857         * modules/ldexpf-ieee-tests: New file.
26858         * tests/test-ldexpf-ieee.c: New file.
26859         * tests/test-ldexp-ieee.h: New file.
26861         New module 'ldexpf-ieee'.
26862         * modules/ldexpf-ieee: New file.
26864 2012-02-26  Bruno Haible  <bruno@clisp.org>
26866         Refactor frexp*-ieee tests.
26867         * tests/test-frexp-ieee.h: New file.
26868         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
26869         (main): Just call test_function.
26870         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
26871         (main): Just call test_function.
26872         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
26873         (main): Just call test_function.
26874         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
26875         * modules/frexp-ieee-tests (Files): Likewise.
26876         * modules/frexpl-ieee-tests (Files): Likewise.
26878         Tests for module 'frexpl-ieee'.
26879         * modules/frexpl-ieee-tests: New file.
26880         * tests/test-frexpl-ieee.c: New file.
26882         New module 'frexpl-ieee'.
26883         * modules/frexpl-ieee: New file.
26885         Tests for module 'frexp-ieee'.
26886         * modules/frexp-ieee-tests: New file.
26887         * tests/test-frexp-ieee.c: New file.
26889         New module 'frexp-ieee'.
26890         * modules/frexp-ieee: New file.
26892         Tests for module 'frexpf-ieee'.
26893         * modules/frexpf-ieee-tests: New file.
26894         * tests/test-frexpf-ieee.c: New file.
26896         New module 'frexpf-ieee'.
26897         * modules/frexpf-ieee: New file.
26899 2012-02-26  Bruno Haible  <bruno@clisp.org>
26901         roundl-ieee tests: More tests.
26902         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26903         (main): Add tests for [MX] shaded specification in POSIX.
26904         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26905         (Depends-on): Add isnanl-nolibm.
26907         round-ieee tests: More tests.
26908         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26909         (main): Add tests for [MX] shaded specification in POSIX.
26910         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26911         (Depends-on): Add isnand-nolibm.
26913         roundf-ieee tests: More tests.
26914         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26915         (main): Add tests for [MX] shaded specification in POSIX.
26916         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26917         (Depends-on): Add isnanf-nolibm.
26919         truncl-ieee tests: More tests.
26920         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26921         (main): Add tests for [MX] shaded specification in POSIX.
26922         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26923         (Depends-on): Add isnanl-nolibm.
26925         trunc-ieee tests: More tests.
26926         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26927         (main): Add tests for [MX] shaded specification in POSIX.
26928         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26929         (Depends-on): Add isnand-nolibm.
26931         truncf-ieee tests: More tests.
26932         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26933         (main): Add tests for [MX] shaded specification in POSIX.
26934         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26935         (Depends-on): Add isnanf-nolibm.
26937         ceill-ieee tests: More tests.
26938         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26939         (main): Add tests for [MX] shaded specification in POSIX.
26940         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26941         (Depends-on): Add isnanl-nolibm.
26943         ceil-ieee tests: More tests.
26944         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26945         (main): Add tests for [MX] shaded specification in POSIX.
26946         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26947         (Depends-on): Add isnand-nolibm.
26949         ceilf-ieee tests: More tests.
26950         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26951         (main): Add tests for [MX] shaded specification in POSIX.
26952         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26953         (Depends-on): Add isnanf-nolibm.
26955         floorl-ieee tests: More tests.
26956         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
26957         (main): Add tests for [MX] shaded specification in POSIX.
26958         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26959         (Depends-on): Add isnanl-nolibm.
26961         floor-ieee tests: More tests.
26962         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
26963         (main): Add tests for [MX] shaded specification in POSIX.
26964         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26965         (Depends-on): Add isnand-nolibm.
26967         floorf-ieee tests: More tests.
26968         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
26969         (main): Add tests for [MX] shaded specification in POSIX.
26970         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
26971         (Depends-on): Add isnanf-nolibm.
26973 2012-02-26  Bruno Haible  <bruno@clisp.org>
26975         fpieee: More comments.
26976         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
26978 2012-02-25  Bruno Haible  <bruno@clisp.org>
26980         Tests for module 'log10l'.
26981         * modules/log10l-tests: New file.
26982         * tests/test-log10l.c: New file.
26983         * tests/test-math-c++.cc: Check the declaration of log10l.
26985         New module 'log10l'.
26986         * lib/math.in.h (log10l): New declaration.
26987         * lib/log10l.c: New file.
26988         * m4/log10l.m4: New file.
26989         * modules/log10l: New file.
26990         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
26991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
26992         HAVE_DECL_LOG10L.
26993         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
26994         HAVE_DECL_LOG10L.
26995         * doc/posix-functions/log10l.texi: Mention the new module.
26997 2012-02-25  Bruno Haible  <bruno@clisp.org>
26999         fmodl, remainder*: Avoid wrong results due to rounding errors.
27000         * lib/fmodl.c (fmodl): Correct the result if it is not within the
27001         expected bounds.
27002         * lib/remainderf.c (remainderf): Likewise.
27003         * lib/remainder.c (remainder): Likewise.
27004         * lib/remainderl.c (remainderl): Likewise.
27006 2012-02-25  Bruno Haible  <bruno@clisp.org>
27008         Tests for module 'remainderl'.
27009         * modules/remainderl-tests: New file.
27010         * tests/test-remainderl.c: New file.
27011         * tests/test-math-c++.cc: Check the declaration of remainderl.
27013         New module 'remainderl'.
27014         * lib/math.in.h (remainderl): New declaration.
27015         * lib/remainderl.c: New file.
27016         * m4/remainderl.m4: New file.
27017         * modules/remainderl: New file.
27018         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
27019         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
27020         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
27021         HAVE_REMAINDERL.
27022         * doc/posix-functions/remainderl.texi: Mention the new module.
27024 2012-02-25  Bruno Haible  <bruno@clisp.org>
27026         Tests for module 'remainderf'.
27027         * modules/remainderf-tests: New file.
27028         * tests/test-remainderf.c: New file.
27029         * tests/test-math-c++.cc: Check the declaration of remainderf.
27031         New module 'remainderf'.
27032         * lib/math.in.h (remainderf): New declaration.
27033         * lib/remainderf.c: New file.
27034         * m4/remainderf.m4: New file.
27035         * modules/remainderf: New file.
27036         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
27037         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
27038         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
27039         HAVE_REMAINDERF.
27040         * doc/posix-functions/remainderf.texi: Mention the new module.
27042 2012-02-25  Bruno Haible  <bruno@clisp.org>
27044         remainder: Support for MSVC.
27045         * lib/math.in.h (remainder): New declaration.
27046         * lib/remainder.c: New file.
27047         * m4/remainder.m4: New file.
27048         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
27049         (Depends-on): Add math, round, fma.
27050         (configure.ac): Use results of gl_FUNC_REMAINDER.
27051         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
27052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
27053         HAVE_DECL_REMAINDER.
27054         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
27055         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
27056         * tests/test-math-c++.cc: Check the declaration of remainder.
27057         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
27058         problems are fixed.
27060 2012-02-25  Bruno Haible  <bruno@clisp.org>
27062         Tests for module 'fmodl'.
27063         * modules/fmodl-tests: New file.
27064         * tests/test-fmodl.c: New file.
27065         * tests/test-math-c++.cc: Check the declaration of fmodl.
27067         New module 'fmodl'.
27068         * lib/math.in.h (fmodl): New declaration.
27069         * lib/fmodl.c: New file.
27070         * m4/fmodl.m4: New file.
27071         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
27072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
27073         REPLACE_FMODL.
27074         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
27075         REPLACE_FMODL.
27076         * modules/fmodl: New file.
27077         * doc/posix-functions/fmodl.texi: Mention the new module.
27079 2012-02-25  Bruno Haible  <bruno@clisp.org>
27081         Tests for module 'modfl'.
27082         * modules/modfl-tests: New file.
27083         * tests/test-modfl.c: New file.
27084         * tests/test-math-c++.cc: Check the declaration of modfl.
27086         New module 'modfl'.
27087         * lib/math.in.h (modfl): New declaration.
27088         * lib/modfl.c: New file.
27089         * m4/modfl.m4: New file.
27090         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
27091         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
27092         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
27093         * modules/modfl: New file.
27094         * doc/posix-functions/modfl.texi: Mention the new module.
27096 2012-02-25  Bruno Haible  <bruno@clisp.org>
27098         Tests for module 'fabsl'.
27099         * modules/fabsl-tests: New file.
27100         * tests/test-fabsl.c: New file.
27101         * tests/test-math-c++.cc: Check the declaration of fabsl.
27103         New module 'fabsl'.
27104         * lib/math.in.h (fabsl): New declaration.
27105         * lib/fabsl.c: New file.
27106         * m4/fabsl.m4: New file.
27107         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
27108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
27109         REPLACE_FABSL.
27110         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
27111         REPLACE_FABSL.
27112         * modules/fabsl: New file.
27113         * doc/posix-functions/fabsl.texi: Mention the new module.
27115 2012-02-25  Bruno Haible  <bruno@clisp.org>
27117         fabs tests: More tests.
27118         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
27119         (zero): New variable.
27120         (main): Add tests for signed zero.
27121         * modules/fabs-tests (Files): Add tests/minus-zero.h.
27123         fabsf tests: More tests.
27124         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
27125         (zero): New variable.
27126         (main): Add tests for signed zero.
27127         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
27129 2012-02-24  Bruno Haible  <bruno@clisp.org>
27131         atanl: Provide function definition on MSVC.
27132         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
27133         function pointer.
27134         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
27136 2012-02-24  Bruno Haible  <bruno@clisp.org>
27138         acosl: Provide function definition on MSVC.
27139         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
27140         function pointer.
27141         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
27143 2012-02-24  Bruno Haible  <bruno@clisp.org>
27145         asinl: Provide function definition on MSVC.
27146         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
27147         function pointer.
27148         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
27150 2012-02-24  Bruno Haible  <bruno@clisp.org>
27152         tanl: Provide function definition on MSVC.
27153         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
27154         function pointer.
27155         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
27157 2012-02-24  Bruno Haible  <bruno@clisp.org>
27159         cosl: Provide function definition on MSVC.
27160         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
27161         function pointer.
27162         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
27164 2012-02-24  Bruno Haible  <bruno@clisp.org>
27166         sinl: Provide function definition on MSVC.
27167         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
27168         function pointer.
27169         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
27171 2012-02-24  Bruno Haible  <bruno@clisp.org>
27173         logl: Provide function definition on MSVC.
27174         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
27175         function pointer.
27176         * lib/math.in.h (logl): Undefine if it does not exist as a function.
27178 2012-02-24  Bruno Haible  <bruno@clisp.org>
27180         expl: Provide function definition on MSVC.
27181         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
27182         function pointer.
27183         * lib/math.in.h (expl): Undefine if it does not exist as a function.
27185 2012-02-24  Bruno Haible  <bruno@clisp.org>
27187         sqrtl: Provide function definition on MSVC.
27188         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
27189         a function pointer.
27190         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
27192 2012-02-24  Bruno Haible  <bruno@clisp.org>
27194         ceill: Provide function definition on MSVC.
27195         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
27196         used as a function pointer.
27197         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
27199 2012-02-24  Bruno Haible  <bruno@clisp.org>
27201         floorl: Provide function definition on MSVC.
27202         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
27203         used as a function pointer.
27204         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
27206 2012-02-24  Bruno Haible  <bruno@clisp.org>
27208         ceilf: Provide function definition on MSVC.
27209         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
27210         used as a function pointer.
27211         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
27213 2012-02-24  Bruno Haible  <bruno@clisp.org>
27215         floorf: Provide function definition on MSVC.
27216         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
27217         used as a function pointer.
27218         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
27220 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
27222         stdnoreturn: new module
27223         This implements a replacement for C11's <stdnoreturn.h>.
27224         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
27225         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
27226         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
27227         * tests/test-stdnoreturn.c: New files.
27229 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
27231         regex: fix false multibyte matches in some regular expressions
27232         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
27233         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
27234         * lib/regex_internal.c (re_string_skip_chars):
27235         Fix miscomputation of remain_len that may cause incomplete
27236         multi-byte character and false match.
27238 2012-02-24  Jim Meyering  <meyering@redhat.com>
27240         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
27241         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
27242         uses with "==" *before* the call, e.g., 0 == strcmp (...)
27243         Remove now-unnecessary str''cmp obfuscation.
27244         Suggested by Akim Demaille.
27246 2012-02-24  Bruno Haible  <bruno@clisp.org>
27248         streq: Rename macro.
27249         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
27250         * NEWS: Mention the change.
27251         * lib/mbrtowc.c (mbrtowc): Update.
27252         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
27253         * lib/wcwidth.c (wcwidth): Update.
27254         Suggested by Akim Demaille and Jim Meyering.
27256 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
27258         regex: fix typo in definition of MIN
27259         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
27260         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
27262 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27263             Bruno Haible  <bruno@clisp.org>
27265         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
27266         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
27267         entries into a stack-allocated buffer directly.
27268         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
27270 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
27271             Bruno Haible  <bruno@clisp.org>
27273         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
27275          - There were several instances of this pattern:
27277              for (;;) {
27278                n = acl (f, GETACLCNT, 0, NULL);
27279                [ allocate an array A of size N ]
27280                if (acl (f, GETACL, n, a) == n)
27281                  break;
27282              }
27284            This loop might never terminate if some other process is constantly
27285            manipulating the file's ACL.  The loop should be rewritten to
27286            terminate.
27288          - The acl (... GETACLNT ...) call is merely an optimization; its value
27289            is merely a hint as to how big to make the array.  A better
27290            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
27291            and just guess a reasonably-big size, growing the size and trying
27292            again if it's not large enough.  This guarantees termination, and
27293            saves a system call.
27295         * lib/acl-internal.h: Include <limits.h>.
27296         (MIN, SIZE_MAX): New macros.
27297         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
27298         a stack-allocated buffer, and use malloc if it does not fit. Don't
27299         use GETACLCNT.
27300         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27302 2012-02-19  Bruno Haible  <bruno@clisp.org>
27304         acl: Fix endless loop on Solaris with vxfs.
27305         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
27306         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
27307         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
27308         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
27309         * tests/test-sameacls.c (main)[Solaris]: Likewise.
27310         Reported by Bill Jones in
27311         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
27313 2012-02-19  Bruno Haible  <bruno@clisp.org>
27315         acl: Fix copy-acl test failure on Solaris 11.0.
27316         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
27317         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
27318         that this function returns 0 in some more cases.
27320 2012-02-19  Bruno Haible  <bruno@clisp.org>
27322         acl: Update doc references.
27323         * doc/acl-resources.txt: Update links to Solaris documentation.
27325 2012-02-19  Bruno Haible  <bruno@clisp.org>
27327         Fix test failure in many locales on Solaris 11.
27328         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
27329         'tr' arguments.
27330         * tests/test-pipe-filter-ii1.c (main): Likewise.
27331         * build-aux/bootstrap (check_versions): Run 'tr' command with range
27332         expressions in the C locale.
27333         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27334         * m4/host-os.m4 (gl_HOST_OS): Likewise.
27336 2012-02-19  Bruno Haible  <bruno@clisp.org>
27338         gnulib-tool: Improve usage message.
27339         * gnulib-tool (func_usage): Move doc of --help and --version to the
27340         section "Operation modes".
27342 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
27344         README-release: make it easier to execute commands
27345         * top/README-release: break commands out on to separate lines.
27347 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
27349         GNUmakefile: simplify detection of unconfigured trees
27350         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
27351         whether the tree make is being run from is already configured or
27352         not.  Related simplifications.
27354 2012-02-13  Simon Josefsson  <simon@josefsson.org>
27356         * gnulib-tool (func_usage): Document --help and --version.
27358 2012-02-11  Jim Meyering  <meyering@redhat.com>
27360         bootstrap: don't exit 0 upon gnulib-tool failure
27361         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
27362         its exit status, not 0.
27364 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
27366         README-release: various improvements
27367         * top/README-release: Give a command to push changes for the
27368         release.  Add "distcheck" to list of other pre-release checks.
27369         Fix instance of "make stable" which should be "make TYPE".
27371 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27373         maint: replace FSF snail-mail addresses with URLs
27374         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
27375         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
27376         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
27377         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
27378         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
27379         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
27380         * lib/check-version.c, lib/check-version.h, lib/config.charset:
27381         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
27382         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
27383         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
27384         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
27385         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
27386         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
27387         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
27388         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
27389         * lib/glthread/thread.c, lib/glthread/thread.h:
27390         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
27391         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
27392         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
27393         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
27394         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
27395         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
27396         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
27397         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
27398         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
27399         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
27400         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
27401         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
27402         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
27403         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
27404         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
27405         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
27406         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
27407         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
27408         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
27409         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
27410         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
27411         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
27412         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
27413         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
27414         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
27415         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
27416         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
27417         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
27418         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
27419         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
27420         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
27421         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
27422         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
27423         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
27424         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
27425         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
27426         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
27427         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
27428         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
27429         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
27430         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
27431         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
27432         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
27433         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
27434         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
27435         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
27436         * tests/test-poll.c, tests/test-quotearg-simple.c:
27437         * tests/test-quotearg.c, tests/test-quotearg.h:
27438         * tests/test-round-ieee.c, tests/test-round1.c:
27439         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
27440         * tests/test-roundl-ieee.c, tests/test-roundl.c:
27441         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
27442         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
27443         * tests/test-strerror.c, tests/test-strerror_r.c:
27444         * tests/test-strsignal.c, tests/test-strverscmp.c:
27445         * tests/test-xmemdup0.c:
27446         Replace FSF snail mail addresses with URLs, as per GNU coding
27447         standards.  See glibc bug
27448         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
27450 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
27452         README-release: capitalize a word and split a line
27453         * top/README-release: Fix punctuation and spacing.
27455 2012-02-08  Akim Demaille  <demaille@gostai.com>
27457         fatal-signal: use C prototypes (with explicit void).
27458         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
27459         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
27461 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27463         regex: spelling fix
27464         * lib/regexec.c: spelling fix
27466         regex: rely on stdint.h for SIZE_MAX
27467         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
27469 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
27471         regex: merge glibc changes
27473         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
27474         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
27475         (init_word_char): Work even if bitset words are not exactly 32 or
27476         64 bits wide.  Don't assume there are no padding bits.
27477         * lib/regex.c [_LIBC]: Do not include <config.h>.
27478         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
27479         and -Wtype-limits.
27480         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
27481         needless disagreement with glibc.  All uses changed.  Define it to
27482         1 only if _GNU_SOURCE, to match glibc.
27483         (_REG_RM_NAME): Remove; no longer needed, since the names in
27484         question are now all protected by __USE_GNU.
27485         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
27486         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
27487         * lib/regex_internal.h (MIN): New macro.
27489         2012-01-03 Ulrich Drepper <drepper@gmail.com>
27490         * lib/regcomp.c (init_word_char): Optimize regex a bit.
27492         2011-12-30 Jakub Jelinek <jakub@redhat.com>
27493         * lib/regex_internal.c (re_string_fetch_byte_case):
27494         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
27495         is miscompiled, and it turns out it is because of an incorrect
27496         attribute on re_string_fetch_byte_case.  Unlike
27497         re_string_peek_byte_case, this one is really not pure, it modifies
27498         memory (increments pstr->cur_idx), and with the pure attribute GCC
27499         assumed it doesn't and it cached the presumed value of
27500         regexp->cur_idx in a variable across the
27501          for (;; ++i)
27502            {
27503              if (i >= BRACKET_NAME_BUF_SIZE)
27504                return REG_EBRACK;
27505              if (token->type == OP_OPEN_CHAR_CLASS)
27506                ch = re_string_fetch_byte_case (regexp);
27507              else
27508                ch = re_string_fetch_byte (regexp);
27509              if (re_string_eoi(regexp))
27510                return REG_EBRACK;
27511              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
27512                break;
27513              elem->opr.name[i] = ch;
27514            }
27516         2011-11-29 Andreas Schwab <schwab@redhat.com>
27517         * lib/regcomp.c (build_equiv_class):
27518         Fix access after end of search string in regex matcher.
27520         2011-11-12 Ulrich Drepper <drepper@redhat.com>
27521         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
27523         2011-10-12 Ulrich Drepper <drepper@redhat.com>
27524         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
27526         2011-10-11 Ulrich Drepper <drepper@redhat.com>
27527         * lib/regcomp.c (parse_branch, parse_sub_exp):
27528         More regex memory leak fixes and tests.
27529         (parse_sub_exp, parse_bracket_exp):
27530         Fix memory leak for some invalid regular expressions.
27532         2011-05-28 Ulrich Drepper <drepper@gmail.com>
27533         * lib/regex_internal.c, lib/regexec.c:
27534         Fix unnecessary overallocation due to incomplete character.  When
27535         incomplete characters are found at the end of a string the code
27536         ran amok and allocated lots of memory.  Stricter limits are now in
27537         place.
27539         2011-05-20 Reuben Thomas <rrt@sc3d.org>
27540         * lib/regex.h: Update documentation.
27542         2011-05-16 Aharon Robbins <arnold@skeeve.com>
27543         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
27545         2010-05-05 Andreas Schwab <schwab@redhat.com>
27546         * lib/regexec.c (find_collation_sequence_value):
27547         Fix lookup of collation sequence value during regexp matching.
27549         2010-01-22 Ulrich Drepper <drepper@redhat.com>
27550         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
27552         2008-01-16 Ulrich Drepper <drepper@redhat.com>
27553         * lib/regex.h: Cleanup namespace.
27555         2007-11-26 Ulrich Drepper <drepper@redhat.com>
27556         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
27558         2007-08-26 Ulrich Drepper <drepper@redhat.com>
27559         * lib/regex_internal.h: Prevent some declarations and definitions
27560         to be seen when used in tests.
27562         2005-05-06 Ulrich Drepper <drepper@redhat.com>
27563         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
27564         __libc_lock_* macros if not _LIBC.
27565         (struct re_dfa_t): Add lock.
27567 2012-02-07  Eric Blake  <eblake@redhat.com>
27569         maint.mk: also prohibit lower-case @var@
27570         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
27571         lower case, like @top_srcdir@.
27573 2012-02-04  Eric Blake  <eblake@redhat.com>
27575         canonicalize: avoid uninitialized memory use
27576         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
27577         random '/' left in dest.
27578         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
27580 2012-02-04  Bruno Haible  <bruno@clisp.org>
27582         isatty: Fix test failure of ptsname_r on native Windows.
27583         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
27584         and don't set errno.
27585         (isatty): Test first whether fd is valid. Set errno when returning 0.
27587 2012-02-04  Bruno Haible  <bruno@clisp.org>
27589         spawn-pipe tests: Fix a NULL program name in a diagnostic.
27590         * tests/test-spawn-pipe-main.c: Include progname.h.
27591         (main): Invoke set_program_name.
27592         * modules/spawn-pipe-tests (Depends-on): Add progname.
27594         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
27595         * tests/test-nonblocking-socket-main.c: Include progname.h.
27596         (main): Invoke set_program_name.
27597         * modules/nonblocking-socket-tests (Depends-on): Add progname.
27599         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
27600         * tests/test-nonblocking-pipe-main.c: Include progname.h.
27601         (main): Invoke set_program_name.
27602         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
27604 2012-02-04  Eric Blake  <eblake@redhat.com>
27606         canonicalize-lgpl: fix // handling
27607         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
27609         canonicalize: fix // handling
27610         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
27611         /// to //, since only // is special.
27613 2012-02-04  Bruno Haible  <bruno@clisp.org>
27615         ioctl: Fix test failure on native Windows.
27616         * lib/ioctl.c: Include msvc-nothrow.h.
27617         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
27619 2012-02-04  Bruno Haible  <bruno@clisp.org>
27621         fsync: Avoid test failure on native Windows.
27622         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
27623         read-only.
27625 2012-02-04  Bruno Haible  <bruno@clisp.org>
27627         sys_select: Avoid syntax error on OpenBSD 5.0.
27628         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
27629         currently being included, just include the system's <sys/select.h>.
27631 2012-02-04  Bruno Haible  <bruno@clisp.org>
27633         sys_select: Avoid syntax error on OpenBSD 5.0.
27634         * lib/sys_select.in.h: Include <signal.h> only after the include_next
27635         <sys/select.h>, not before.
27636         Reported by Jiri B <jirib@devio.us>.
27638 2012-02-04  Bruno Haible  <bruno@clisp.org>
27640         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
27641         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
27642         global variables.
27643         * tests/test-get-rusage-data.c (main): Likewise.
27644         Reported by Jim Meyering.
27646 2012-02-04  Bruno Haible  <bruno@clisp.org>
27648         stdioext: Fix last commit.
27649         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
27651 2012-02-03  Bruno Haible  <bruno@clisp.org>
27653         stdioext: Add tentative support for Plan9.
27654         * lib/stdio-impl.h: Include <errno.h>.
27655         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
27656         * lib/freadable.c (freadable): Likewise.
27657         * lib/fwritable.c (fwritable): Likewise.
27658         * lib/fbufmode.c (fbufmode): Likewise.
27659         * lib/freading.c (freading): Likewise.
27660         * lib/fwriting.c (fwriting): Likewise.
27661         * lib/freadptr.c (freadptr): Likewise.
27662         * lib/freadseek.c (freadptrinc): Likewise.
27663         * lib/freadahead.c (freadahead): Likewise.
27664         * lib/fpurge.c (fpurge): Likewise.
27665         * lib/fseeko.c (rpl_fseeko): Likewise.
27666         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
27667         Reported by Jens Staal <staal1978@gmail.com>.
27669 2012-02-02  Jim Meyering  <meyering@redhat.com>
27671         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
27672         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
27673         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
27674         not even to try to add the attribute.  Instead, add a pragma to suppress
27675         the suggestion/warning.
27677 2012-01-31  Karl Berry  <karl@gnu.org>
27679         setstate doc: typo.
27680         * doc/posix-functions/setstate.texi (setstate): { not (.
27682 2012-01-31  Bruno Haible  <bruno@clisp.org>
27684         popen: Make more robust on Windows.
27685         * lib/popen.c: On native Windows, use the _popen based code even if
27686         HAVE_POPEN is set.
27687         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
27688         environment variable on native Windows.
27690 2012-01-30  Bruno Haible  <bruno@clisp.org>
27692         pclose: Fix typo.
27693         * lib/stdio.in.h (pclose): Fix typo in warning message.
27695 2012-01-30  Bruno Haible  <bruno@clisp.org>
27697         doc about getlogin_r, setstate.
27698         * doc/posix-functions/getlogin_r.texi: List the incompatible
27699         declaration problem under "not fixed by gnulib".
27700         * doc/posix-functions/setstate.texi: Mention incompatible declaration
27701         problem on Solaris 11 and other platforms.
27703 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
27704             Bruno Haible  <bruno@clisp.org>
27706         poll tests: Make test more robust.
27707         * tests/test-poll.c: Include macros.h.
27708         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
27709         return value of various I/O operations.
27710         * modules/poll-tests (Files): Add tests/macros.h.
27712 2012-01-30  Bruno Haible  <bruno@clisp.org>
27714         sys_stat: Fix support for mingw64 and MSVC.
27715         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
27716         header files already do it.
27717         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
27718         stat itself.
27719         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27721 2012-01-30  Bruno Haible  <bruno@clisp.org>
27723         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
27724         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
27725         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
27727 2012-01-29  Bruno Haible  <bruno@clisp.org>
27729         quotearg: Fix test failure on MacOS X 10.5.
27730         * tests/test-quotearg-simple.c: Include localcharset.h.
27731         (main): If the locale encoding is not ASCII, bypass the tests of
27732         locale_quoting_style and clocale_quoting_style.
27733         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
27735 2012-01-29  Jim Meyering  <meyering@redhat.com>
27737         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
27738         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
27739         detect uses of canonicalize_file_name.
27741 2012-01-28  Bruno Haible  <bruno@clisp.org>
27743         test-framework-sh: Fix test failure with AIX 7.1 diff.
27744         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
27745         in column 1, like 'diff -c' does.
27746         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
27747         whether 'diff -u' is used. Instead, test whether the output contains
27748         some '@' character.
27750 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27752         strtoimax: eliminate need for stdint.h, inttypes.h checks
27753         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
27754         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
27755         the prerequisites for a recently-introduced strtoimax test.
27756         I guess this might cause strtoimax to be replaced when not
27757         strictly necessary on older hosts, but this shouldn't introduce
27758         any bugs and it should make Emacs 'configure' faster on typical
27759         modern hosts.  Problem discovered when importing the latest gnulib
27760         to an Emacs test version.
27761         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
27763 2012-01-28  Bruno Haible  <bruno@clisp.org>
27765         sys_time: Override 'struct timeval' on some native Windows platforms.
27766         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
27767         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
27768         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
27769         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
27770         needs to be overridden.
27771         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
27772         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
27773         * tests/test-sys_select.c: Check that the tv_sec member has the same
27774         size as a 'time_t'.
27775         * tests/test-sys_time.c: Likewise.
27776         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
27777         is set, set also REPLACE_GETTIMEOFDAY.
27778         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
27779         convert the resulting 'struct timeval' before returning.
27780         * lib/select.c: Include <sys/time.h>.
27781         (select, timeval): Undefine at the right place.
27782         * modules/select (Depends-on): Add sys_time.
27783         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
27784         some Windows platforms.
27785         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
27787 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27789         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
27790         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
27791         an integer.
27792         * lib/fcntl.c (dupfd): Likewise.
27793         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
27795 2012-01-28  Bruno Haible  <bruno@clisp.org>
27797         fcntl: Avoid compilation error on native Windows.
27798         * modules/fcntl (Depends-on): Add 'close'.
27800 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27802         select, poll, isatty: Avoid warnings on x86_64 mingw64.
27803         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
27804         pointer to an integer.
27805         * lib/poll.c (IsConsoleHandle): Likewise.
27806         * lib/isatty.c (IsConsoleHandle): Likewise.
27808 2012-01-28  Jim Meyering  <meyering@redhat.com>
27810         doc: clarify README-release
27811         * top/README-release: Clarify: you should make a point to have
27812         the latest stable versions of build tools in your PATH, and the
27813         reference to buildreq is solely for its list of tool names, not
27814         for its minimal-functional version numbers.
27815         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
27817         maint.mk: use more readable (yet functionally equivalent) quoting
27818         It is common to quote a single quote in a single quoted string like
27819         this:  '...'\''...'.  Unless you know the idiom, that looks like
27820         gibberish, so prefer to double-quote the string when possible.
27821         Then you can use a more readable, lone single quote: "...'..."
27822         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
27823         "don't" is more readable than the equivalent 'don'\''t'.
27824         (sc_cast_of_x_alloc_return_value): Likewise.
27825         (sc_cast_of_alloca_return_value): Likewise.
27826         (sc_makefile_path_separator_check): Similar: use ":" in '...',
27827         rather than '\'':'\''.
27829 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27831         stdalign: relax _Alignof and tighten _Alignas test
27832         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
27833         as it was too strict: alignof must divide offsetof, but it need
27834         not equal offsetof.  Inspired by Joseph S. Myers's comment
27835         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
27836         Conversely, tighten the _Alignas test a bit, as the resulting
27837         alignment must be exactly 8.
27839 2012-01-27  Bruno Haible  <bruno@clisp.org>
27841         stdalign: Document the last change.
27842         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
27844 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
27846         stdalign: check that alignof and offsetof are consistent
27847         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
27848         Problem reported for gnulib by Richard W.M. Jones in
27849         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
27851 2012-01-27  Jim Meyering  <meyering@redhat.com>
27853         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
27854         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
27855         convert a sequence with gaps to the minimal containing range.
27856         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
27857         * tests/test-update-copyright.sh: Test for this.
27858         The FSF confirmed it is ok to do this, assuming there is at
27859         least one significant change per year in the affected range:
27860         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
27862 2012-01-26  Bruno Haible  <bruno@clisp.org>
27864         pipe2: refine doc about thread-safety
27865         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
27866         multithread-safety problem.
27867         * doc/glibc-functions/accept4.texi: Likewise.
27869 2012-01-26  Bruno Haible  <bruno@clisp.org>
27871         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
27872         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
27873         In the test program, include <fcntl.h>, for O_RDONLY.
27875 2012-01-26  Eric Blake  <eblake@redhat.com>
27877         pipe2: document lack of thread-safety in replacement
27878         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
27879         issue in replacement.
27880         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27881         Based on a report by Eric Wong.
27883 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
27884             Bruno Haible  <bruno@clisp.org>
27886         malloca: Avoid warnings on x86_64 mingw64.
27887         * lib/malloca.c: Include <stdint.h>.
27888         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
27889         * modules/malloca (Depends-on): Add stdint.
27890         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
27892 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
27894         obstack: remove __STDC__ conditionals
27895         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
27896         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
27897         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
27898         m4/include_next.m4 as the only gnulib-maintained places that still
27899         refer to __STDC__.
27901 2012-01-24  Bruno Haible  <bruno@clisp.org>
27903         havelib: Modern quoting.
27904         * build-aux/config.rpath: Quote 'like this', not `like this', as per
27905         the recent change to the GNU coding standards.
27907 2012-01-24  Bruno Haible  <bruno@clisp.org>
27909         stdint: Improve support for Android.
27910         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
27911         Reported by Simon Josefsson <simon@josefsson.org>.
27913 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
27915         doc: omit trailing empty lines from INSTALL etc.
27916         * doc/Makefile (INSTALL): Omit trailing empty lines.
27917         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
27918         omit trailing empty lines.  This simplifies the build procedure.
27920 2012-01-23  Jim Meyering  <meyering@redhat.com>
27922         tests: avoid spurious warnings about gl_sockets_startup
27923         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
27924         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
27925         reporting a "statement with no effect".
27926         * tests/test-accept.c (main): Mark as "(void)".
27927         * tests/test-accept4.c (main): Likewise.
27928         * tests/test-bind.c (main): Likewise.
27929         * tests/test-connect.c (main): Likewise.
27930         * tests/test-getpeername.c (main): Likewise.
27931         * tests/test-getsockname.c (main): Likewise.
27932         * tests/test-getsockopt.c (main): Likewise.
27933         * tests/test-listen.c (main): Likewise.
27934         * tests/test-recv.c (main): Likewise.
27935         * tests/test-recvfrom.c (main): Likewise.
27936         * tests/test-send.c (main): Likewise.
27937         * tests/test-sendto.c (main): Likewise.
27938         * tests/test-setsockopt.c (main): Likewise.
27939         * tests/test-shutdown.c (main): Likewise.
27941 2012-01-21  Bruno Haible  <bruno@clisp.org>
27943         locale-fr.m4: Fix for Android.
27944         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
27945         failure of the test program on Bionic libc.
27947 2012-01-21  Jim Meyering  <meyering@redhat.com>
27949         bootstrap: fail when bootstrap_post_import_hook fails
27950         Otherwise, it's far too easy to miss diagnostics emitted
27951         between gnulib-tool's output and that of running configure.
27952         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
27954 2012-01-17  Jim Meyering  <meyering@redhat.com>
27956         maint: enable sc_trailing_blank
27957         * build-aux/pmccabe.css: Remove trailing blanks.
27958         * doc/acl-cygwin.txt: Likewise.
27959         * doc/gnu-oids.texi: Likewise
27960         * cfg.mk: Enable sc_trailing_blank.
27961         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
27963 2012-01-17  Jim Meyering  <meyering@redhat.com>
27965         maint: enable sc_prohibit_openat_without_use
27966         * cfg.mk: Enable sc_prohibit_openat_without_use.
27967         Exempt lib/selinux-at.c.
27969 2012-01-17  Jim Meyering  <meyering@redhat.com>
27971         maint: enable sc_prohibit_cloexec_without_use
27972         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
27973         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
27975 2012-01-17  Jim Meyering  <meyering@redhat.com>
27977         maint: enable sc_prohibit_intprops_without_use
27978         * cfg.mk: Enable sc_prohibit_intprops_without_use
27979         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
27981 2012-01-17  Jim Meyering  <meyering@redhat.com>
27983         maint: enable sc_prohibit_hash_pjw_without_use
27984         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
27985         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
27986         to match any use of \<hash_pjw\>, i.e., not necessarily with a
27987         following " (".
27989 2012-01-17  Jim Meyering  <meyering@redhat.com>
27991         maint: enable double-word-prohibiting rule
27992         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
27993         Exempt three files.
27995 2012-01-17  Jim Meyering  <meyering@redhat.com>
27997         maint: remove empty lines at EOF, but excluding modules/*
27998         Apply syntax rules at home as well as abroad.  Most changes
27999         were induced by running this:
28000           make srcdir=. _build-aux=build-aux -f top/maint.mk \
28001             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
28002             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
28003         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
28004         Exempt modules/* and two binary files.
28005         Also exempt doc/INSTALL*, per request from Bruno Haible.
28006         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
28007         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
28008         * doc/Copyright/request-assign.future: Likewise.
28009         * doc/Copyright/request-disclaim.changes: Likewise.
28010         * doc/INSTALL: Likewise.
28011         * doc/INSTALL.ISO: Likewise.
28012         * doc/INSTALL.UTF-8: Likewise.
28013         * doc/acl-cygwin.txt: Likewise.
28014         * doc/acl-resources.txt: Likewise.
28015         * doc/fdl-1.2.texi: Likewise.
28016         * doc/fdl-1.3.texi: Likewise.
28017         * doc/fdl.texi: Likewise.
28018         * lib/argp-pin.c: Likewise.
28019         * lib/round.c: Likewise.
28020         * lib/unicase/u16-totitle.c: Likewise.
28021         * lib/unictype/block_test.c: Likewise.
28022         * lib/uninorm/canonical-decomposition.c: Likewise.
28023         * m4/README: Likewise.
28024         * m4/relocatable-lib.m4: Likewise.
28025         * tests/test-isnand-nolibm.c: Likewise.
28026         * tests/test-isnand.c: Likewise.
28027         * tests/uninorm/NormalizationTest.txt: Likewise.
28029 2012-01-17  Jim Meyering  <meyering@redhat.com>
28031         maint: add framework to run syntax-check rules against gnulib sources
28032         * cfg.mk: New file, to disable all currently-failing tests.
28033         We'll enable them one by one, as they are made to pass.
28034         * Makefile (sc_maint): New rule.
28036 2012-01-21  Bruno Haible  <bruno@clisp.org>
28038         stdint: Add support for Android.
28039         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
28040         include the system's <stdint.h>.
28041         Reported by Simon Josefsson <simon@josefsson.org>.
28043 2012-01-19  Jim Meyering  <meyering@redhat.com>
28045         bootstrap: add bootstrap_post_import_hook
28046         Bison does still need something like the gnulib_mk_hook whose
28047         invocation I had to remove along with slurp in commit 767ccd40.
28048         Technically, we could get along without it, but doing so would
28049         have required living with a warning and a mandatory post-bootstrap
28050         automake rerun.
28051         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
28052         (bootstrap_post_import_hook): New function.
28053         Invoke it after gnulib-tool --import and before autoreconf.
28055 2012-01-18  Jim Meyering  <meyering@redhat.com>
28057         gitlog-to-changelog: don't use "no_"-prefixed variable name
28058         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
28059         to enable both --cluster and --no-cluster.  Change variable name,
28060         s/\$no_cluster/$cluster/, and reverse usage to match.
28062         gitlog-to-changelog: use "||", not "or" in expressions
28063         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
28064         expressions.
28066 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
28068         gitlog-to-changelog: new option --no-cluster
28069         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
28070         clustering of adjacent commit messages.
28072 2012-01-17  Jim Meyering  <meyering@redhat.com>
28074         maint: spell file systems with two words, not one
28075         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
28076         two words, not one.
28078 2012-01-16  Jim Meyering  <meyering@redhat.com>
28080         bootstrap: add a FIXME comment to ensure we eventually remove the hack
28081         * build-aux/bootstrap (gnulib_tool_options): Add comment.
28083 2012-01-16  Eric Blake  <eblake@redhat.com>
28085         bootstrap: cater to autoconf 2.59
28086         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
28087         is not available.
28089         bootstrap: properly check for libtool
28090         * build-aux/bootstrap (libtoolize): Also run libtool when older
28091         usage is detected.
28093 2012-01-15  Bruno Haible  <bruno@clisp.org>
28095         Improve support for MSVC 9.
28096         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
28097         clashes on MSVC.
28098         * lib/fcntl.in.h: Likewise.
28099         * lib/stdlib.in.h: Likewise.
28100         * lib/sys_stat.in.h: Likewise.
28102 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
28104         gnupload: we hold the master copy of this script now
28105         For motivation and more information, see:
28106         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
28107         * build-aux/gnupload: Make it clear in the heading comments that the
28108         master copy of this file is maintained by gnulib.  Since we are at
28109         it, bump its copyright year and ...
28110         ($scriptversion): ... the date in its version.
28111         ($usage): Patches and bug reports should be sent to the gnulib list,
28112         not the automake one.
28113         * config/srclist.txt: Don't try to sync 'gnupload' from automake
28114         anymore.
28116 2012-01-15  Bruno Haible  <bruno@clisp.org>
28118         Fix module 'random'.
28119         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
28120         initstate, setstate are declared.
28122 2012-01-14  Bruno Haible  <bruno@clisp.org>
28124         Tests for module 'random'.
28125         * modules/random-tests: New file.
28126         * tests/test-random.c: New file, based on tests/test-random_r.c.
28128         New module 'random'.
28129         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
28130         declarations.
28131         * lib/random.c: New file, based on glibc/stdlib/random.c.
28132         * m4/random.m4: New file.
28133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
28134         HAVE_RANDOM.
28135         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
28136         * modules/random: New file.
28137         * config/srclist.txt: Add an entry for random.c.
28138         * doc/posix-functions/random.texi: Mention the 'random' module.
28139         * doc/posix-functions/initstate.texi: Likewise.
28140         * doc/posix-functions/setstate.texi: Likewise.
28141         * doc/posix-functions/srandom.texi: Likewise.
28143 2012-01-12  Bruno Haible  <bruno@clisp.org>
28145         random_r: Use common idioms.
28146         * lib/random_r.c: Include <stdlib.h> first.
28148         random_r: Override incompatible API on AIX, OSF/1.
28149         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
28150         Override the system function if REPLACE_RANDOM_R is 1.
28151         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
28152         and OSF/1, set REPLACE_RANDOM_R.
28153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
28154         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
28155         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
28156         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
28157         * doc/glibc-functions/random_r.texi: Likewise.
28158         * doc/glibc-functions/setstate_r.texi: Likewise.
28160         random_r: Support for MSVC 9.
28161         * lib/random_r.c: Include stdint.h, not inttypes.h.
28163 2012-01-12  Eric Blake  <eblake@redhat.com>
28165         inet_ntop: guard extra work by IF_LINT
28166         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
28167         better code generation when not checking for warnings.
28168         Suggested by Paul Eggert and Jim Meyering.
28170         strptime: fix regression on mingw
28171         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
28172         Fix regression.  Reported by Bruno Haible.
28174 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
28175             Bruno Haible  <bruno@clisp.org>
28177         copy-file: add error-code-returning variant.
28178         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
28179         (qcopy_file_preserving): New declaration.
28180         * lib/copy-file.c (qcopy_file_preserving): Renamed from
28181         copy_file_preserving. Change return type to 'int'. Don't emit an error
28182         message here.
28183         (copy_file_preserving): New function.
28184         * tests/test-copy-file.c: Include <stdlib.h>.
28185         (main): Test qcopy_file_preserving if the environment variable
28186         NO_STDERR_OUTPUT is set.
28187         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
28188         with NO_STDERR_OUTPUT
28189         * tests/test-copy-file-2.sh: Likewise.
28191 2012-01-10  Bruno Haible  <bruno@clisp.org>
28193         copy-file: Use 'quote' module consistently.
28194         * lib/copy-file.c (copy_file_preserving): Use quote().
28196         copy-file: Refactor.
28197         * lib/copy-file.c: Include quote.h.
28198         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
28199         message here.
28200         * modules/copy-file (Depends-on): Add quote.
28202         acl: Export qcopy_acl.
28203         * lib/acl.h (qcopy_acl): New declaration.
28204         * lib/copy-acl.c (qcopy_acl): Make non-static.
28206         acl: Rename a local variable.
28207         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
28209         acl: Align return values of copy_acl and qcopy_acl.
28210         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
28211         maybe < -1.
28213 2012-01-11  Eric Blake  <eblake@redhat.com>
28215         strptime: silence gcc warnings
28216         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
28217         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
28218         Reported by Daniel P. Berrange.
28220         inet_ntop: silence gcc warning
28221         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
28222         Reported by Daniel P. Berrange.
28224 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
28226         getloadavg test: skip the test on GNU/Linux without /proc mounted
28227         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
28228         file.  When /proc is not mounted, it always fails with ENOENT.
28229         * tests/test-getloadavg.c (main): Treat ENOENT return code from
28230         getloadavg(3) the same way as ENOSYS and ENOTSUP.
28232 2012-01-10  Bruno Haible  <bruno@clisp.org>
28234         regex: Avoid link error on MSVC 9.
28235         * modules/regex (Depends-on): Add wctype.
28237 2012-01-10  Bruno Haible  <bruno@clisp.org>
28239         doc: Mention --with-tests option.
28240         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
28241         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
28242         --with-tests.
28243         Reported by Reuben Thomas.
28245 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
28247         users.txt: order package names lexicographically.
28248         * users.txt: Order package names lexicographically.
28250 2012-01-10  Jim Meyering  <meyering@redhat.com>
28252         maint.mk: fix description in comment
28253         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
28255         ignore-value: remove deprecated ignore_ptr function
28256         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
28257         * NEWS: Note this.
28259 2012-01-09  Jim Meyering  <meyering@redhat.com>
28261         test-init.sh: avoid a subshell
28262         * tests/test-init.sh: Remove protective subshell.
28263         Suggested by Bernhard Voelker.  While a subshell is normally
28264         required to protect against older shells (Solaris, FreeBSD) that
28265         warn about a missing program before performing redirection, the
28266         shell-selection tests performed by init.sh probably exclude any
28267         offending shell.
28269 2012-01-08  Bruno Haible  <bruno@clisp.org>
28271         setlocale tests: Avoid test failure on Solaris 11.0.
28272         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
28273         variable.
28275 2012-01-08  Bruno Haible  <bruno@clisp.org>
28277         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
28278         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28279         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28280         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
28281         macro.
28282         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
28283         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28284         * lib/spawn_faction_addopen.c: Add workaround implementation if
28285         HAVE_WORKING_POSIX_SPAWN.
28286         * modules/spawn (Makefile): Substitute
28287         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
28288         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
28289         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
28290         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
28291         (Depends-on): Update conditions.
28292         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
28293         the Solaris 11 bug.
28295 2012-01-08  Bruno Haible  <bruno@clisp.org>
28297         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
28298         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28299         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28300         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
28301         macro.
28302         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
28303         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28304         * lib/spawn_faction_adddup2.c: Add workaround implementation if
28305         HAVE_WORKING_POSIX_SPAWN.
28306         * modules/spawn (Makefile): Substitute
28307         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
28308         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
28309         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
28310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
28311         (Depends-on): Update conditions.
28312         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
28313         the Solaris 11 bug.
28315 2012-01-08  Bruno Haible  <bruno@clisp.org>
28317         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
28318         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
28319         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28320         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
28321         HAVE_WORKING_POSIX_SPAWN.
28322         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
28323         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
28324         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28325         * lib/spawn_faction_addclose.c: Add workaround implementation if
28326         HAVE_WORKING_POSIX_SPAWN.
28327         * modules/spawn (Makefile): Substitute
28328         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
28329         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
28330         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
28331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
28332         (Depends-on): Update conditions.
28333         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
28334         the Solaris 11 bug.
28336 2012-01-08  Bruno Haible  <bruno@clisp.org>
28338         doc: Update for Solaris 11.0.
28339         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
28340         * m4/printf.m4: Update comments.
28342 2012-01-08  Bruno Haible  <bruno@clisp.org>
28344         mktime: Avoid compilation error on Solaris 11.
28345         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
28347 2012-01-08  Bruno Haible  <bruno@clisp.org>
28349         doc: Small fix.
28350         * doc/posix-headers/nl_types.texi: Correct platforms list.
28352 2012-01-08  Simon Josefsson  <simon@josefsson.org>
28354         Add lgpl-3.0 module.
28355         * MODULES.html.sh (Support for building documentation): Add
28356         lgpl-3.0.
28357         * modules/lgpl-3.0: New file.
28359 2012-01-08  Jim Meyering  <meyering@redhat.com>
28361         select.c: indent with spaces, not TABs
28362         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
28364 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28366         quotearg: do not use grave accent for left quote
28367         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
28368         locale_quoting_style.
28369         (quotearg_buffer_restyled): Fix example.
28370         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
28372 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28374         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
28375         Most programs do not have translation catalogs for English and much
28376         less separate catalogs for British and American English.  Drop the
28377         suggestion to translators about these two, and provide it
28378         automatically for Unicode locales.  Like most programs, even those
28379         using American English, we use single quotation marks.  This conflicts
28380         with the American typographic convention, but works better when you
28381         cite the entire error message within double quotes.  It also tries not
28382         to clash with established practice and with what non-gnulib programs
28383         will usually do.
28384         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
28385         using an UTF-8 or GB-18030 locale.  The list of other locales with
28386         quotes was provided by Bruno Haible.
28387         (quotearg_buffer_restyled): Adjust instructions to translators.
28388         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
28389         text, since this would be wrong when using Unicode.
28390         * modules/quotearg: Depend on c-strcaseeq.
28392 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
28394         quotearg: fix Wikipedia link
28395         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
28397 2012-01-07  Simon Josefsson  <simon@josefsson.org>
28399         Fix for mingw with MSVC9.
28400         * m4/ld-version-script.m4: Check that compiler rejects version
28401         scripts with syntax errors.  Reported by Bruno Haible
28402         <bruno@clisp.org>.
28404 2012-01-06  Bruno Haible  <bruno@clisp.org>
28406         Talk about "native Windows API", not "Woe32".
28407         * lib/accept4.c: Update comments to mention native Windows.
28408         * lib/execute.c: Likewise.
28409         * lib/fatal-signal.c: Likewise.
28410         * lib/localcharset.c: Likewise.
28411         * lib/nanosleep.c: Likewise.
28412         * lib/nl_langinfo.c: Likewise.
28413         * lib/pclose.c: Likewise.
28414         * lib/pipe-filter-gi.c: Likewise.
28415         * lib/pipe-filter-ii.c: Likewise.
28416         * lib/pipe.c: Likewise.
28417         * lib/pipe2.c: Likewise.
28418         * lib/popen.c: Likewise.
28419         * lib/progreloc.c: Likewise.
28420         * lib/relocatable.c: Likewise.
28421         * lib/sigaction.c: Likewise.
28422         * lib/sigprocmask.c: Likewise.
28423         * lib/spawn-pipe.h: Likewise.
28424         * lib/spawn-pipe.c: Likewise.
28425         * lib/spawni.c: Likewise.
28426         * lib/stat-time.h: Likewise.
28427         * lib/w32spawn.h: Likewise.
28428         * tests/test-isatty.c: Likewise.
28429         * lib/config.charset: More comments.
28430         * doc/gnulib-intro.texi: Mention native Windows.
28431         * doc/posix-functions/_Exit_C99.texi: Likewise.
28432         * doc/posix-headers/fcntl.texi: Likewise.
28434 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
28436         argp: Avoid crash if translator uses % characters in a translation.
28437         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
28438         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28440 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
28442         doc: C11 and C++11 are now official
28443         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
28444         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
28445         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
28446         * modules/stdalign:
28447         Replace references to draft C1X to C11, and to draft C++0X to C++11.
28449 2012-01-06  Bruno Haible  <bruno@clisp.org>
28451         uc-is-grapheme-break tests: Tweak.
28452         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
28453         message.
28455 2012-01-06  Bruno Haible  <bruno@clisp.org>
28457         test-init.sh: correct the test for diff -u
28458         * tests/test-init.sh: Also redirect stdout to /dev/null.
28460 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
28462         Use ', not `, for quoting output.
28463         * build-aux/announce-gen (usage, sizes, print_news_deltas)
28464         (print_changelog_deltas, get_tool_versions, main program):
28465         * build-aux/git-version-gen:
28466         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
28467         * build-aux/move-if-change (help):
28468         * build-aux/useless-if-before-free (usage, main program):
28469         * check-module (parse_module_file, usage)
28470         (find_included_lib_files, check_module):
28471         * lib/argmatch.c (main) [TEST]:
28472         * lib/argp-help.c (_help):
28473         * lib/getopt1.c (main) [TEST]:
28474         * lib/git-merge-changelog.c (usage):
28475         * lib/xstrtol-error.c (xstrtol_error):
28476         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
28477         * m4/argz.m4 (gl_FUNC_ARGZ):
28478         * m4/bison.m4 (gl_BISON):
28479         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
28480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
28481         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
28482         * m4/fpending.m4 (gl_PREREQ_FPENDING):
28483         * m4/gc-random.m4 (gl_GC_RANDOM):
28484         * m4/intl.m4 (gt_CHECK_DECL):
28485         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
28486         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
28487         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
28488         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
28489         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
28490         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
28491         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
28492         * tests/test-dirname.c (main):
28493         * tests/test-getpass.c (main):
28494         * tests/test-iconvme.c (main):
28495         * tests/test-parse-datetime.c (LOG):
28496         * tests/test-xstrtoimax.sh:
28497         * tests/test-xstrtol.sh:
28498         * tests/test-xstrtoll.sh:
28499         * tests/test-xstrtoumax.sh:
28500         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
28501         * top/GNUmakefile (abort-due-to-no-makefile):
28502         Quote 'like this', not `like this', as per the recent change to
28503         the GNU coding standards.
28505 2012-01-05  Bruno Haible  <bruno@clisp.org>
28507         strtoimax: Don't force a replacement on systems where intmax_t is int.
28508         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
28509         'intmax_t' is not larger than 'int'.
28510         Reported by Pádraig Brady <P@draigBrady.com>.
28512 2012-01-05  Bruno Haible  <bruno@clisp.org>
28514         doc: Mention NetBSD bugs.
28515         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
28516         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
28518 2012-01-05  Bruno Haible  <bruno@clisp.org>
28520         strtoumax tests: Enhance tests.
28521         * tests/test-strtoumax.c (main): Add tests for large values.
28523 2012-01-05  Bruno Haible  <bruno@clisp.org>
28525         strtoimax: Work around AIX 5.1 bug.
28526         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
28527         definition.
28528         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
28529         Set HAVE_STRTOIMAX.
28530         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
28531         REPLACE_STRTOIMAX.
28532         * modules/inttypes-incomplete (Makefile.am): Substitute
28533         REPLACE_STRTOIMAX.
28534         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
28535         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
28536         (Depends-on): Update conditions.
28537         * tests/test-strtoimax.c (main): Add tests for large values.
28538         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
28540 2012-01-05  Bruno Haible  <bruno@clisp.org>
28542         inttypes: Modernize.
28543         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
28544         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
28545         (Makefile.am): Update inttypes.h rule.
28547 2012-01-05  Jim Meyering  <meyering@redhat.com>
28549         init.sh: don't waste a subshell just to redirect stderr
28550         * tests/init.sh: In testing for diff -u and diff -c, use a
28551         stderr-redirecting exec inside `...` rather than a subshell.
28553         test-init.sh: avoid failure on HP-UX 11.00
28554         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
28555         resolves to diff -c or cmp.  Reported by Bruno Haible.
28557 2012-01-05  Bruno Haible  <bruno@clisp.org>
28559         Tests for module 'strtoull'.
28560         * modules/strtoull-tests: New file.
28561         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
28563 2012-01-05  Bruno Haible  <bruno@clisp.org>
28565         Tests for module 'strtoll'.
28566         * modules/strtoll-tests: New file.
28567         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
28569 2012-01-05  Bruno Haible  <bruno@clisp.org>
28571         Tests for module 'strtoul'.
28572         * modules/strtoul-tests: New file.
28573         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
28575 2012-01-05  Bruno Haible  <bruno@clisp.org>
28577         Tests for module 'strtol'.
28578         * modules/strtol-tests: New file.
28579         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
28581 2012-01-04  Jim Meyering  <meyering@redhat.com>
28583         test-init.sh: accommodate Solaris 5.10's different diff -u output
28584         * tests/test-init.sh: Also exempt @@ lines from the comparison
28585         of diff output, since Solaris 5.10 and GNU diff formats differ.
28586         Reported by Stefano Lattarini.
28588 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
28590         test-posixtm: don't assume signed integer wraparound
28591         * tests/test-posixtm.c (main): Don't assume wraparound semantics
28592         after signed integer overflow.  Inspired by (though it may not
28593         fix) Bruno Haible's bug report in
28594         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
28596         Spell out "Windows 9x" and "Windows XP".
28597         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
28598         "Windows 9x" and "WinXP" with "Windows XP".
28600 2012-01-04  Jim Meyering  <meyering@redhat.com>
28602         test-vc-list-files-cvs.sh: remove obsolete comment
28603         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
28604         double exit.  Now that's all encapsulated via skip_ and Exit.
28606 2012-01-04  Bruno Haible  <bruno@clisp.org>
28608         Talk about "native Windows API", not "Win32".
28609         * lib/classpath.c: Update comments to mention native Windows.
28610         * lib/csharpexec.c: Likewise.
28611         * lib/dup2.c: Likewise.
28612         * lib/error.c: Likewise.
28613         * lib/fcntl.c: Likewise.
28614         * lib/filename.h: Likewise.
28615         * lib/findprog.c: Likewise.
28616         * lib/get-rusage-as.c: Likewise.
28617         * lib/get-rusage-data.c: Likewise.
28618         * lib/getpagesize.c: Likewise.
28619         * lib/javaexec.c: Likewise.
28620         * lib/msvc-inval.c: Likewise.
28621         * lib/msvc-nothrow.c: Likewise.
28622         * lib/nanosleep.c: Likewise.
28623         * lib/nonblocking.c: Likewise.
28624         * lib/printf-parse.c: Likewise.
28625         * lib/setlocale.c: Likewise.
28626         * lib/sigaction.c: Likewise.
28627         * lib/strerror_r.c: Likewise.
28628         * lib/tmpdir.c: Likewise.
28629         * lib/vasnprintf.c: Likewise.
28630         * lib/w32spawn.h: Likewise.
28631         * lib/waitpid.c: Likewise.
28632         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
28633         * m4/locale-ar.m4: Likewise.
28634         * m4/locale-fr.m4: Likewise.
28635         * m4/locale-ja.m4: Likewise.
28636         * m4/locale-tr.m4: Likewise.
28637         * m4/locale-zh.m4: Likewise.
28638         * m4/printf.m4: Likewise.
28639         * tests/test-cloexec.c: Likewise.
28640         * tests/test-copy-acl.sh: Likewise.
28641         * tests/test-copy-file.sh: Likewise.
28642         * tests/test-file-has-acl.sh: Likewise.
28643         * tests/test-set-mode-acl.sh: Likewise.
28644         * tests/test-dup-safer.c: Likewise.
28645         * tests/test-dup2.c: Likewise.
28646         * tests/test-dup3.c: Likewise.
28647         * tests/test-fcntl.c: Likewise.
28648         * tests/test-nonblocking-pipe.h: Likewise.
28649         * tests/test-nonblocking-socket.h: Likewise.
28650         * tests/test-pipe.c: Likewise.
28651         * tests/test-pipe2.c: Likewise.
28652         * tests/test-spawn-pipe-child.c: Likewise.
28653         * doc/acl-resources.txt: Likewise.
28654         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28655         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
28656         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
28657         * lib/localcharset.c: Update comments to mention native Windows.
28658         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28659         * lib/localename.c: Likewise.
28660         * lib/progreloc.c: Likewise.
28661         * lib/relocatable.c: Likewise.
28662         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
28663         (windows_compute_revents): Renamed from win32_compute_revents.
28664         (windows_compute_revents_socket): Renamed from
28665         win32_compute_revents_socket.
28666         * lib/select.c: Update comments to mention native Windows.
28667         (windows_poll_handle): Renamed from win32_poll_handle.
28668         * m4/threadlib.m4: Update comments to mention native Windows.
28669         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
28670         --enable-threads=windows instead of --enable-threads=win32. Set
28671         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
28672         * lib/glthread/lock.h: Update comments to mention native Windows.
28673         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
28674         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
28675         USE_WIN32_THREADS.
28676         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
28677         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
28678         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
28679         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
28680         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
28681         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
28682         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
28683         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
28684         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
28685         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
28686         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
28687         * tests/test-tls.c: Likewise.
28688         Rationale:
28689         Microsoft renamed the "Win32 API" to "Windows API", as it is available
28690         on both 32-bit and 64-bit Windows systems.
28691         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
28692         line of distinction is between "native Windows" on one side and Unix/
28693         POSIX systems on the other side. More details in
28694         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
28695         Suggested by Paul Eggert.
28697 2012-01-03  Bruno Haible  <bruno@clisp.org>
28699         isatty: Support for MSVC 9.
28700         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
28701         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
28702         (_isatty_nothrow): New function.
28703         (isatty): Use it instead of _isatty.
28704         (IsConsoleHandle): Add comment, from Paolo Bonzini.
28705         * lib/poll.c (IsConsoleHandle): Likewise.
28706         * lib/select.c (IsConsoleHandle): Likewise.
28707         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
28708         (gl_PREREQ_ISATTY): New macro.
28709         * modules/isatty (Depends-on): Add msvc-inval.
28710         (configure.ac): Invoke gl_PREREQ_ISATTY.
28712 2012-01-03  Jim Meyering  <meyering@redhat.com>
28714         maint.mk: remove temporary transition aid from over 1.5 years ago
28715         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
28716         purpose was to aid in the transition (avoiding silent malfunction)
28717         from that old name to the new _sc_search_regexp.  This shim was
28718         added by commit 219c504b.
28720         init.sh: do not try to accommodate compare arguments starting with "-"
28721         * tests/init.sh (compare_dev_null_): Do not try to accommodate
28722         compare arguments that start with "-".  Besides, we do not worry
28723         about this when invoking diff or cmp; why start now with sed?
28724         Using "--" to separate options from argument would trigger sed
28725         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
28726         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
28728 2012-01-02  Bruno Haible  <bruno@clisp.org>
28730         Enhance tests for module 'isatty'.
28731         * modules/isatty-tests (Depends-on): Add pipe-posix.
28732         * tests/test-isatty.c: Include <fcntl.h>.
28733         (DEV_NULL): New macro.
28734         (main): Test the resut of isatty() also on regular files, pipes, and
28735         /dev/null.
28737         New module 'isatty'.
28738         * lib/unistd.in.h (isatty): New declaration.
28739         * lib/isatty.c: New file, based on an idea of
28740         Bastien Roucariès <roucaries.bastien@gmail.com>.
28741         * m4/isatty.m4: New file.
28742         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
28743         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
28744         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
28745         REPLACE_ISATTY.
28746         * modules/isatty: New file.
28747         * doc/posix-functions/isatty.texi: Mention the new module.
28748         Suggested by Paolo Bonzini.
28750 2012-01-02  Bruno Haible  <bruno@clisp.org>
28752         canonicalize: Tweak 2011-12-29 commit.
28753         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
28754         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
28756 2012-01-02  Jim Meyering  <meyering@redhat.com>
28758         gitlog-to-changelog: describe input syntax in --help output
28759         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
28761         gitlog-to-changelog: fix typo in --help: show backslash before email @
28762         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
28763         in sources, but not in actual output.
28765 2011-12-30  Jim Meyering  <meyering@redhat.com>
28767         gitlog-to-changelog: don't malfunction when name contains %-directive
28768         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
28769         in a name string cause trouble.  E.g., with a user name of "%s",
28770         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
28772 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
28774         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
28775         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
28776         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
28777         the "  (tiny change)" notation that is appended to the standard
28778         ChangeLog "date  name  email" header line.
28780 2012-01-01  Jim Meyering  <meyering@redhat.com>
28782         test-framework-sh: init.sh: fix "make dist" failure
28783         When using gnulib-tool's --with-tests option and any module that
28784         depends on test-framework-sh, "make dist" would fail due to the
28785         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
28786         in the gltests directory, and not in the gllib/ directory.
28787         One way to work around that is to move the EXTRA_DIST += init.sh
28788         from the primary module to the -tests one:
28789         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
28790         * modules/test-framework-sh (Makefile.am): ...not here.
28791         Reported by Tom G. Christensen in
28792         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
28794         version-etc: update copyright year reported by --version
28795         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
28797 2011-12-31  Pádraig Brady  <P@draigBrady.com>
28799         canonicalize: only stat() if required
28800         * lib/canonicalize.c (canonicalize_filename_mode):
28801         Avoid calling l?stat() when both CAN_MISSING,
28802         and CAN_NOLINKS are set, as we neither need
28803         to resolve symlinks or test component existence.
28805 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
28807         doc: cover st_ino issues once; add OpenVMS etc.
28808         * doc/posix-functions/stat.texi (stat):
28809         * doc/posix-functions/lstat.texi (lstat):
28810         * doc/posix-functions/fstatat.texi (fstatat):
28811         * doc/posix-functions/fstat.texi (fstat):
28812         Move general 'struct stat' stuff to sys_stat.texi,
28813         leaving behind a pointer.
28814         * doc/posix-headers/sys_stat.texi (sys/stat.h):
28815         Merge duplicate info about 'struct stat' problems into here.
28816         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
28817         and suggest partial workarounds.
28819         same-inode: port to OpenVMS
28820         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
28821         three st_ino values.
28823 2011-12-30  Pádraig Brady  <P@draigBrady.com>
28825         canonicalize: fix references to stat() and lstat()
28826         * lib/canonicalize.c (canonicalize_filename_mode):
28827         Ensure references always resolve to a replacement
28828         function if required (even via a macro).
28830 2011-12-30  Jim Meyering  <meyering@redhat.com>
28832         gitlog-to-changelog: remove a little duplication
28833         * build-aux/gitlog-to-changelog (main): Grep @lines once,
28834         rather than twice.
28836 2011-12-29  Pádraig Brady  <P@draigBrady.com>
28838         canonicalize: add support for not resolving symlinks
28839         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
28840         indicate we don't want to follow symlinks.  Also
28841         provide CAN_MODE_MASK to aid setting these existing
28842         mutually exclusive values.
28843         * lib/canonicalize.c (canonicalize_filename_mode):
28844         Extract the flags from can_mode parameter, which
28845         are currently just used to select between stat()
28846         and lstat().  Also ensure that mutually exclusive
28847         values are flagged immediately as invalid.
28848         * tests/test-canonicalize.c: Verify symlinks are
28849         not followed, and that invalid flag combinations
28850         are diagnosed.
28852 2011-12-25  Jim Meyering  <meyering@redhat.com>
28854         gitlog-to-changelog: do not clump multi-paragraph entries
28855         Identical header lines (date,name,email+coauthors) are suppressed,
28856         thus putting all entries with those same characteristics under
28857         a single header.  However, when a log entry consists of two or
28858         more paragraphs, it may not be clear where it starts and ends.
28859         This change makes it so that such an entry is always separated
28860         from others by a header line, even when that header would
28861         otherwise be suppressed.
28862         * build-aux/gitlog-to-changelog: Implement the above.
28863         Inspired by a related request from Stefano Lattarini in
28864         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
28866 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
28868         announce-gen: fix `cmd' typo in diagnostic
28869         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
28870         diagnostic: a missing '$' meant that the command was not output.
28872 2011-12-23  Jim Meyering  <meyering@redhat.com>
28874         test-framework-sh: distribute init.sh
28875         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
28876         Otherwise, "make -C gnulib-tests check" (at least in grep) would
28877         fail due to the lack of init.sh.
28879         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
28880         * modules/atexit-tests: Rather than listing tests/init.sh,
28881         now that there's a module for it, simply depend on that new module.
28882         * modules/closein-tests: Likewise.
28883         * modules/exclude-tests: Likewise.
28884         * modules/getcwd-tests: Likewise.
28885         * modules/perror-tests: Likewise.
28886         * modules/pread-tests: Likewise.
28887         * modules/pwrite-tests: Likewise.
28888         * modules/vc-list-files-tests: Likewise.
28889         * modules/verify-tests: Likewise.
28890         * modules/xalloc-die-tests: Likewise.
28891         * modules/xstrtoimax-tests: Likewise.
28892         * modules/xstrtol-tests: Likewise.
28893         * modules/xstrtoll-tests: Likewise.
28894         * modules/xstrtoumax-tests: Likewise.
28895         * modules/yesno-tests: Likewise.
28897 2011-12-22  Jim Meyering  <meyering@redhat.com>
28899         test-framework-sh: add minimal tests of init.sh's compare function
28900         * modules/test-framework-sh-tests: New file.
28901         * tests/test-init.sh: New file.
28903         test-framework-sh: new module
28904         * modules/test-framework-sh: New file.
28905         * MODULES.html.sh (Support for maintaining and releasing projects):
28906         List it.
28908         init.sh: do not emit simulated diff output to stderr
28909         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
28911 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
28913         .gitignore: ignore gnulib.dvi and regex.info
28914         * doc/.gitignore:add gnulib.dvi and regex.info
28916 2011-12-22  Jim Meyering  <meyering@redhat.com>
28918         init.sh: correct previous change
28919         * tests/init.sh (compare): My previous change was wrong.
28920         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
28922         init.sh: avoid unwarranted test failure when using "set -e"
28923         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
28924         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
28925         a use like "compare exp out" would get evoke an unconditional failure.
28927 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
28929         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
28930         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
28931         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
28932         autoreconf that did not.
28933         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
28934         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
28936 2011-12-17  Jim Meyering  <meyering@redhat.com>
28938         bootstrap: remove some now-unneeded code
28939         This script arose back when gnulib-tool was young.
28940         Since then, it has seen improvements that render much of this
28941         script unnecessary.  In particular, it can now make symlinks
28942         to the files it uses.  Also, I no longer see as much value in
28943         marking files as read-only via comments.
28944         If you relied on the symlink-creation feature of the preceding
28945         version of this script, you can get most of that functionality
28946         by adding the --symlink option to the definition of
28947         gnulib_tool_option_extras in your bootstrap.conf file.
28948         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
28949         Run autopoint and libtoolize *before* gnulib-tool.
28950         After it, run an abbreviated autoreconf, rather than a loop around
28951         all tools.
28952         (slirp, bt_mark_as_generated): Remove functions.
28954 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
28956         ftoastr: fix typo
28957         * lib/ftoastr.h: Fix misspelling in comment.
28959 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
28961         * top/README-release: fix punctuation.
28963 2011-12-17  Jim Meyering  <meyering@redhat.com>
28965         bootstrap: correct the recent buildreq change
28966         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
28967         had no effect.
28968         * build-aux/bootstrap (buildreq): Bracket each search term with
28969         "*...*", so that the shell "case" statement works as intended.
28970         Add comments.
28972 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
28974         build: let bootstrap resort to wget when downloading .po files
28975         * build-aux/bootstrap (download_po_files): Fallback to wget when
28976         downloading the .po files via rsync fails.  This is necessary to
28977         bootstrap from behind a strict firewall.
28979 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28981         stdint: don't assume C++11 when compiling with g++
28982         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
28983         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
28984         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
28985         work also in C++ before C++11, as that improperly inhibits
28986         generating a substitute stdint.h for that case.
28988 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
28990         alloca: protect comment from gnulib-tool
28991         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
28992         that gnulib-tool doesn't think it's a license, and munge it to
28993         say "GCC version 3".
28995 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
28997         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
28998         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
28999         $(abs_top_builddir) instead of $(top_builddir).
29001 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
29003         strftime-tests: also test nanoseconds
29004         * tests/test-strftime.c (T): Add a test of %N.
29006 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
29008         inttypes, stdint: add C++11 support
29009         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
29010         when including inttypes.h and stdint.h.  Support this change to
29011         the standard.
29012         * doc/posix-headers/inttypes.texi (inttypes.h):
29013         * doc/posix-headers/stdint.texi (stdint.h): Document this.
29014         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
29015         Define if not defined already, for the benefit of pre-C++11 hosts.
29016         Define the standard format macros (e.g., PRId8) always.
29017         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
29018         Likewise, if __cpluspus.  Define the standard constant and limit
29019         macros (e.g., INT8_C, INT8_MAX) always.
29020         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
29021         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
29022         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
29023         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
29024         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
29025         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
29026         Likewise.
29028 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
29030         nonblocking tests: Fix test failure on Linux/PPC.
29031         Suggested by Prerna Saxena in
29032         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
29033         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
29034         Set to 1100000.
29036 2011-12-12  Jim Meyering  <meyering@redhat.com>
29038         argmatch: don't hard-code `' when listing valid option arguments
29039         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
29040         use the quote function to add quotes.  Use fputs rather than
29041         fprintf for the format string with no format directive.
29043 2011-12-07  Eric Blake  <eblake@redhat.com>
29045         bootstrap: detect tools required by gnulib-tool
29046         * build-aux/bootstrap (buildreq): Provide minimum implicit
29047         dependencies.
29048         * DEPENDENCIES: Mention patch as a prereq.
29050 2011-12-04  Bruno Haible  <bruno@clisp.org>
29052         sethostname: Port to Windows platforms.
29053         * lib/sethostname.c: Provide an alternate implementation for Windows
29054         platforms.
29055         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
29056         (main): Skip the test if sethostname() fails with EPERM. On Windows
29057         platforms, don't check the result of gethostname().
29059 2011-12-04  Bruno Haible  <bruno@clisp.org>
29060             Jim Meyering  <meyering@redhat.com>
29062         tests: Avoid spurious error message on platforms without mktemp program.
29063         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
29065 2011-12-04  Bruno Haible  <bruno@clisp.org>
29067         sethostname: Fix documentation.
29068         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
29069         "not fixed" section.
29071 2011-12-03  Bruno Haible  <bruno@clisp.org>
29073         gnulib-tool: Verify that the License field is present and non-empty.
29074         * gnulib-tool (func_get_license_raw): New function, extracted from
29075         func_get_license.
29076         (func_get_license): Use it. Warn if the module is not a test module and
29077         has no license.
29078         Suggested by Jim Meyering.
29080 2011-12-03  Bruno Haible  <bruno@clisp.org>
29082         sethostname tests: Fix link error on mingw.
29083         * tests/test-sethostname1.c: New file, extracted from
29084         tests/test-sethostname.c.
29085         * tests/test-sethostname2.c: New file, extracted from
29086         tests/test-sethostname.c.
29087         * tests/test-sethostname.c: Remove file.
29088         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
29089         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
29090         (Depends-on): Add gethostname.
29091         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
29092         Link the latter with $(GETHOSTNAME_LIB).
29094         sethostname tests: Fix compilation error on mingw.
29095         * tests/test-sethostname.c: Don't include <sys/types.h>.
29096         (geteuid): Use a dummy value without uid_t.
29097         * modules/sethostname-tests (Depends-on): Remove sys_types.
29099         sethostname tests: Avoid a gcc warning.
29100         * tests/test-sethostname.c (main): Remove an unused variable.
29102         Tweak last commit.
29103         * modules/sethostname-tests (Files): Sort by decreasing importance.
29104         (configure.ac): Check for geteuid.
29105         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
29106         the test when there's nothing to test. Drop an unnecessary cast.
29107         Improve an error message. Verify that the final sethostname() call
29108         succeeds.
29110 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29112         Add a test suite for the sethostname module.
29113         * modules/sethostname-tests: New file.  A test program
29114         for the sethostname module.
29115         * tests/test-sethostname.c: Likewise.
29117 2011-12-03  Bruno Haible  <bruno@clisp.org>
29119         Tweak last commit.
29120         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
29121         Fix preprocessor directives indentation. Fix typos.
29122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
29123         * modules/unistd (Makefile): Likewise.
29125 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29127         Integrate the sethostname module into unistd.
29128         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
29129         into the unistd.h header.
29130         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
29131         preprocessor directives.
29132         * modules/unistd: Setup the Makefile substitutions of the
29133         SETHOSTNAME preprocessor directives.
29135 2011-12-03  Bruno Haible  <bruno@clisp.org>
29137         Tweak last commit.
29138         * lib/sethostname.c: Don't include <string.h>.
29139         (sethostname): No need to copy the argument string to the stack. Don't
29140         call clearerr. Preserve errno when fprintf failed.
29141         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
29142         Don't invoke AC_REPLACE_FUNCS.
29143         * modules/sethostname (Link): Remove empty section.
29144         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
29145         failure problem.
29147 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29149         New module 'sethostname'.
29150         * lib/sethostname.c (sethostname): New file.  Provide sethostname
29151         for systems that lack it.
29152         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
29153         sethostname declaration and function.
29154         * modules/sethostname: New file.  Define the sethostname module.
29156 2011-12-03  Bruno Haible  <bruno@clisp.org>
29158         Tweak last commit.
29159         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
29161 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
29163         Split the HOST_NAME_MAX detection into a separate m4 macro.
29164         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
29165         macro so it can be used by the pending sethostname module.
29167 2011-12-03  Bruno Haible  <bruno@clisp.org>
29169         Fix module descriptions syntax.
29170         * modules/argv-iter (License): Fix syntax.
29171         * modules/di-set (License): Likewise.
29172         * modules/ino-map (License): Likewise.
29173         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
29175 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29177         stdalign: port to Clang 3.0
29178         Problem reported by Simon Josefsson in
29179         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
29180         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
29181         which has <stdalign.h> but which does not define alignof.
29182         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
29184 2011-12-01  Eric Blake  <eblake@redhat.com>
29186         mktempd: silence dd usage
29187         * build-aux/mktempd (rand_bytes): Silence dd.
29189 2011-11-30  Simon Josefsson  <simon@josefsson.org>
29191         manywarnings: Don't mention gcc version in docstring.
29192         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
29193         Jim Meyering <meyering@redhat.com>.
29195 2011-11-30  Jim Meyering  <meyering@redhat.com>
29197         hash: mark a few floating point constants with "f" suffix
29198         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
29199         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
29200         floating point constants with "f", since they're destined to be
29201         saved/used as "float"s.
29203 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
29205         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
29206         * tests/test-float.c (test_long_double): Correct and re-enable the
29207         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
29209 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
29211         Avoid subtracting two pointers that don't point into the same block.
29212         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
29213         only pointers into the same memory block are subtracted. We cannot
29214         assume that sizeof (ptrdiff_t) == sizeof (void *).
29216 2011-11-29  Eric Blake  <eblake@redhat.com>
29218         maint.mk: add syntax check for use of compare from init.sh
29219         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
29220         moved here from coreutils.
29222         manywarnings: drop -Wunsuffixed-float-constants
29223         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
29224         '1.0D', which is the only way to silence this warning for 'double'.
29226 2011-11-29  Jim Meyering  <meyering@redhat.com>
29228         hash: mark compute_bucket_size with the pure attribute
29229         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
29231         quotearg, propername: correct pragma guard expression
29232         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
29233         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
29235 2011-11-28  Jim Meyering  <meyering@redhat.com>
29237         propername: do not mark proper_name with the const attribute
29238         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
29239         since it examines data pointed to by its parameter.
29240         * lib/propername.c (proper_name): Instead, add a pragma to suppress
29241         the suggestion from -Wsuggest-attribute=const.
29243         propername: mark one more function as const
29244         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
29246 2011-11-27  Jim Meyering  <meyering@redhat.com>
29248         mark functions with const and pure attributes
29250         Mark functions per suggestions from gcc-4.6 when using these options:
29251         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
29252         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
29253         Follow these guidelines: when possible, apply the attribute to
29254         an extern declaration, not to its definition.  Apply it to the
29255         definition only when the definition is static.
29256         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
29257         * lib/argv-iter.h (argv_iter_n_args): Likewise.
29258         * lib/base64.h (isbase64): Likewise.
29259         * lib/basename-lgpl.c (last_component, base_len): Likewise.
29260         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
29261         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
29262         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
29263         (c_tolower, c_toupper): Likewise.
29264         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
29265         * lib/chdir-long.c (find_non_slash): Likewise.
29266         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
29267         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
29268         * lib/file-type.h (file_type): Likewise.
29269         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
29270         * lib/filevercmp.c (verrevcmp): Likewise.
29271         * lib/freadahead.h (freadahead): Likewise.
29272         * lib/fts.c (fts_maxarglen): Likewise.
29273         * lib/hash-pjw.h (hash_pjw): Likewise.
29274         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
29275         * lib/hash.c (is_prime, next_prime): Likewise.
29276         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
29277         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
29278         (hash_table_ok, hash_get_first, hash_string): Likewise.
29279         (compute_bucket_size): Likewise.
29280         * lib/i-ring.h (i_ring_empty): Likewise.
29281         * lib/isnan.c (isnanl): Likewise.
29282         * lib/math.h (isnanl, rpl_isnanl): Likewise.
29283         * lib/memcasecmp.h (memcasecmp): Likewise.
29284         * lib/memchr2.h (memchr2): Likewise.
29285         * lib/memcmp2.h (memcmp2): Likewise.
29286         * lib/parse-datetime.y (lookup_zone): Likewise.
29287         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
29288         [!WINDOWS_SOCKETS]: Likewise.
29289         * lib/strnlen1.h (strnlen1): Likewise.
29290         * lib/uniwidth.in.h (uc_width): Likewise.
29291         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
29292         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
29293         (quoting_options_from_style): Add a comment.
29294         * lib/propername.h (proper_name): Add a comment.
29296 2011-11-27  Bruno Haible  <bruno@clisp.org>
29298         Remove unused macros from !_LIBC code in glibc-borrowed files.
29299         * lib/fnmatch.c (STRCOLL): Remove macro.
29300         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
29301         * lib/glob.c (__stat, __readdir64): Remove macros.
29302         * lib/tempname.c (__open64, __xstat64): Remove macros.
29303         Suggested by Paul Eggert.
29305 2011-11-27  Bruno Haible  <bruno@clisp.org>
29307         getcwd: Fix link error on MSVC 9.
29308         * modules/getcwd (Depends-on): Add readdir, rewinddir.
29310 2011-11-27  Bruno Haible  <bruno@clisp.org>
29312         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
29313         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
29314         HAVE_OPENDIR is 0.
29315         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
29316         HAVE_CLOSEDIR is 0.
29317         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
29318         is 0.
29319         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
29321 2011-11-27  Bruno Haible  <bruno@clisp.org>
29323         getcwd: Fix bug from 2011-08-17.
29324         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
29325         platforms that need it.
29326         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
29327         code of 4 to be a failure, not a success. This ensures that
29328         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
29330 2011-11-27  Bruno Haible  <bruno@clisp.org>
29332         binary-io tests: Avoid test failure on mingw when libtool is used.
29333         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
29334         Don't verify the size of t-bin-out1.tmp here.
29335         * tests/test-binary-io.sh: Verify it here.
29336         Reported by Simon Josefsson.
29338 2011-11-26  Bruno Haible  <bruno@clisp.org>
29340         Fix conflict between two instantiations of module 'unistd'.
29341         * gnulib-tool (func_emit_autoconf_snippet): Substitute
29342         ${include_guard_prefix} also in the autoconf snippet.
29343         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
29344         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
29345         GNULIB_UNISTD_H_GETOPT.
29346         * modules/getopt-posix (configure.ac): Set the
29347         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
29348         * modules/getopt-gnu (configure.ac): Likewise.
29349         * modules/unistd (Makefile.am): Change the substitution value of
29350         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
29351         Reported by Simon Josefsson.
29353 2011-11-25  Bruno Haible  <bruno@clisp.org>
29355         pagealign_alloc: Doc and comments.
29356         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
29357         module.
29358         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
29360 2011-11-25  Jim Meyering  <meyering@redhat.com>
29362         test-update-copyright.sh: avoid false-positive failure
29363         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
29364         around false positive failure on Cygwin/Windows.  The latter was
29365         matching erroneously-created files with names like
29366         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
29368 2011-11-25  Simon Josefsson  <simon@josefsson.org>
29370         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
29371         * m4/valgrind-tests.m4: Check that the parameters that will be
29372         used works, not just a subset of them.  Reported by Bruno Haible
29373         <bruno@clisp.org>.
29375 2011-11-24  Jim Meyering  <meyering@redhat.com>
29377         test-stdalign.c: comment out long double tests
29378         * tests/test-stdalign.c: Don't try to reduce alignment of long double
29379         variables.  That provokes errors like this from gcc-4.7.0 20111124:
29380         error: '_Alignas' specifiers cannot reduce alignment of \
29381         'static_longdouble_alignas'.
29383 2011-11-22  Jim Meyering  <meyering@redhat.com>
29385         init.sh: make "compare /dev/null FILE" output more readable
29386         * tests/init.sh (compare_): Document the preferred order of arguments.
29387         (emit_diff_u_header_): New function.
29388         (compare_dev_null_): Emit a simulated diff, rather than just the
29389         contents of the unexpected file.  Suggestion from Bruno Haible.
29391 2011-11-21  Jim Meyering  <meyering@redhat.com>
29392             Eric Blake  <eblake@redhat.com>
29394         init.sh: work around OSF/1 5.1's mishandling of /dev/null
29395         * tests/init.sh: Make our compare function slightly more portable.
29396         Reported by Bruno Haible in
29397         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
29399 2011-11-21  Simon Josefsson  <simon@josefsson.org>
29401         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
29402         before using it, in code that ends up in config.h.
29404 2011-11-20  Bruno Haible  <bruno@clisp.org>
29406         getcwd: Work around getcwd bug on AIX 5..7.
29407         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
29408         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
29409         Use a different value for gl_cv_func_getcwd_path_max. Move the
29410         definition of HAVE_PARTLY_WORKING_GETCWD from here...
29411         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
29412         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
29413         Define HAVE_MINIMALLY_WORKING_GETCWD.
29414         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
29415         where it is not even minimally working, that is, on AIX.
29416         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
29417         m4/getcwd-path-max.m4.
29418         (main): Update exit code computation.
29419         * doc/posix-functions/getcwd.texi: Mention list of platforms where
29420         getcwd does not handle long file names.
29422 2011-11-20  Bruno Haible  <bruno@clisp.org>
29424         getcwd: Fix bug from 2009-09-10.
29425         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
29426         like "no".
29428 2011-11-20  Simon Josefsson  <simon@josefsson.org>
29430         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
29432 2011-11-20  Bruno Haible  <bruno@clisp.org>
29434         fma tests: Avoid shadowing local variables.
29435         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
29436         expected.
29438 2011-11-20  Bruno Haible  <bruno@clisp.org>
29440         copysignf tests: Fix.
29441         * tests/test-copysignf.c: Fix signature check.
29443 2011-11-20  Bruno Haible  <bruno@clisp.org>
29445         fma: Remove unused code.
29446         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
29447         unused macros.
29449 2011-11-20  Bruno Haible  <bruno@clisp.org>
29451         sethostname: Fix doc about AIX.
29452         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
29453         sethostname; it has it.
29455         sethostname: Mention more portability problems.
29456         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
29457         problem.
29458         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
29460 2011-11-19  Bruno Haible  <bruno@clisp.org>
29462         Depend on module fcntl-h when AT_FDCWD is used.
29463         * modules/utimens (Depends-on): Add fcntl-h.
29464         * modules/areadlinkat (Depends-on): Likewise.
29465         * modules/areadlinkat-with-size (Depends-on): Likewise.
29466         * modules/faccessat (Depends-on): Likewise.
29467         * modules/fchmodat (Depends-on): Likewise.
29468         * modules/fchownat (Depends-on): Likewise.
29469         * modules/getcwd (Depends-on): Likewise.
29470         * modules/mkdirat (Depends-on): Likewise.
29471         * modules/mkfifoat (Depends-on): Likewise.
29472         * modules/readlinkat (Depends-on): Likewise.
29473         * modules/symlinkat (Depends-on): Likewise.
29474         * modules/dup2-tests (Depends-on): Likewise.
29475         * modules/fdutimensat-tests (Depends-on): Likewise.
29476         * modules/futimens-tests (Depends-on): Likewise.
29478 2011-11-19  Bruno Haible  <bruno@clisp.org>
29480         euidaccess: Update a comment.
29481         * lib/euidaccess.c: Update comment about platforms with faccessat.
29483 2011-11-19  Bruno Haible  <bruno@clisp.org>
29485         openat: Fix file list.
29486         * modules/openat (Files): Remove lib/at-func.c.
29488 2011-11-19  Bruno Haible  <bruno@clisp.org>
29490         fstatat: Simplify.
29491         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
29492         gnulib should define rpl_fstatat, there is a
29493         "#define fstatat rpl_fstatat" in <sys/stat.h>.
29495 2011-11-19  Bruno Haible  <bruno@clisp.org>
29497         Ensure 'inline' can be used in tests/test-utimens-common.h.
29498         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
29499         * modules/futimens-tests (configure.ac): Likewise.
29500         * modules/utimens-tests (configure.ac): Likewise.
29501         * modules/utimensat-tests (configure.ac): Likewise.
29503 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29505         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
29506         not hash_insert0.
29507         (hash_insert_if_absent): Doc fix.
29509 2011-11-19  Simon Josefsson  <simon@josefsson.org>
29511         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
29513 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
29515         test-getcwd: disambiguate exit status
29516         * tests/test-getcwd.c (test_long_name): Return 0..7.
29517         (main): Exit with an unambiguous exit status.  The old
29518         code yielded a mysterious mixture of two failure codes.
29520         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
29521         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
29522         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
29523         rpl_fstatat or fstatat.  This should fix the other problem
29524         reported by Kai Habel in
29525         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29526         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
29527         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
29528         and I reproduced it on a Solaris 8 host we still have in production.
29530 2011-11-18  Jim Meyering  <meyering@redhat.com>
29532         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
29533         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
29534         Add a sentence to the comment.
29535         (hash_insert0): New function that simply calls hash_insert_if_absent.
29536         * lib/hash.h (hash_insert_if_absent): Declare it.
29537         (hash_insert0): Add deprecation attribute.
29538         (_GL_ATTRIBUTE_DEPRECATED): Define.
29539         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
29540         not hash_insert0.
29541         * NEWS: Mention it, even though it's not really an incompatible change.
29543 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
29545         openat: avoid compilation failure due to lack of <errno.h> inclusion
29546         * lib/openat.c: Include <errno.h>.
29548 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29550         * modules/getcwd (Depends-on): Add fdopendir.
29551         This fixes one of the two problems reported by Kai Habel in
29552         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
29554         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
29555         stdalign problem reported by Ian Beckwith in
29556         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
29557         * modules/crypto/gc-arcfour (Depends-on):
29558         Depend conditionally on crypto/arcfour.
29559         * modules/crypto/gc-arctwo (Depends-on):
29560         Depend conditionally on crypto/arctwo.
29561         * modules/crypto/gc-des (Depends-on):
29562         Depend conditionally on crypto/des.
29563         * modules/crypto/gc-hmac-md5 (Depends-on):
29564         Depend conditionally on crypto/hmac-md5.
29565         * modules/crypto/gc-hmac-sha1 (Depends-on):
29566         Depend conditionally on crypto/hmac-sha1.
29567         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
29568         * modules/crypto/gc-md4 (Depends-on):
29569         Depend conditionally on crypto/md4.
29570         * modules/crypto/gc-md5 (Depends-on):
29571         Depend conditionally on crypto/md5.
29572         * modules/crypto/gc-rijndael (Depends-on):
29573         Depend conditionally on crypto/rijndael.
29574         * modules/crypto/gc-sha1 (Depends-on):
29575         Depend conditionally on crypto/sha1.
29576         * modules/crypto/gc-arcfour:
29577         * modules/crypto/gc-arctwo:
29578         * modules/crypto/gc-des:
29579         * modules/crypto/gc-hmac-md5:
29580         * modules/crypto/gc-hmac-sha1:
29581         * modules/crypto/gc-md2:
29582         * modules/crypto/gc-md4:
29583         * modules/crypto/gc-md5:
29584         * modules/crypto/gc-rijndael:
29585         * modules/crypto/gc-sha1:
29586         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
29587         now that the conditional dependencies do the work for us.
29589 2011-11-17  Jim Meyering  <meyering@redhat.com>
29591         tests: factor st_ctime-comparison out of two headers
29592         * tests/test-utimens-common.h (ctime_compare): Define.
29593         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
29594         * tests/test-lutimens.h (test_lutimens): Likewise.
29595         * tests/test-utimens.h (test_utimens): Likewise.
29597         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
29598         Invoke the test program via an init.sh-using wrapper.
29599         * tests/test-getcwd.sh: New file.
29600         * modules/getcwd-tests (Files): Add it.
29601         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
29603 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
29605         gitlog-to-changelog: support multi-author commits.
29606         The FSF cares about keeping track of all authors of patches to its
29607         projects, but Git doesn't provide obvious support for multi-author
29608         changesets. Consensus seems to be forming around the use of extra
29609         Signed-off-by inspired lines in the log message formatted as
29610         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
29611         multi-author commits between version control systems.
29612         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
29613         log message and output in standard ChangeLog multi-author format.
29614         Reported by Peter Rosin <peda@lysator.liu.se>
29616 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
29617             Bruno Haible  <bruno@clisp.org>
29619         Fix some modules' file list.
29620         * modules/fstatat (Files): Add m4/lstat.m4.
29621         * modules/openat (Files): Likewise.
29622         * modules/unlinkat (Files): Likewise.
29624 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
29626         maint.mk: fix tight-scope.mk generation in VPATH builds.
29627         * top/maint.mk (tight-scope.mk): Make sure to prefix file
29628         reference with $(srcdir) so that the file is found correctly even
29629         when running `make syntax-check' in a VPATH build.
29631 2011-11-13  Bruno Haible  <bruno@clisp.org>
29632             Jim Meyering  <meyering@redhat.com>
29634         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
29635         * tests/init.sh (compare): Remove "No differences encountered" or
29636         synonymous output from the 'diff' program.
29638 2011-11-13  Bruno Haible  <bruno@clisp.org>
29640         Makefile: Tweak indentation.
29641         * Makefile: Use tab as first character in every line that contains rule
29642         commands.
29644 2011-11-13  Bruno Haible  <bruno@clisp.org>
29646         Syntax check for copyright statements.
29647         * check-copyright: New file.
29648         * Makefile (sc_check_copyright): New rule.
29650 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29652         * build-aux/git-version-gen: Add --prefix to configure the tag
29653         match string.
29655 2011-11-13  Simon Josefsson  <simon@josefsson.org>
29657         * build-aux/git-version-gen: Add --help and --version.
29659 2011-11-12  Jim Meyering  <meyering@redhat.com>
29661         revamp the other test-exclude?.sh scripts to use init.sh, too
29662         * tests/test-exclude1.sh: Use init.sh.
29663         * tests/test-exclude2.sh: Likewise.
29664         * tests/test-exclude3.sh: Likewise.
29665         * tests/test-exclude4.sh: Likewise.
29666         * tests/test-exclude5.sh: Likewise.
29667         * tests/test-exclude6.sh: Likewise.
29668         * tests/test-exclude7.sh: Likewise.
29669         * tests/test-exclude8.sh: Likewise.
29670         * modules/exclude-tests (Files): List init.sh.
29672         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
29673         These shell scripts ignored failure of the binary test-exclude,
29674         so making the latter return 77 didn't cause them to be skipped.
29675         * tests/test-exclude5.sh: Exit with test-exclude's error status
29676         when that program fails.  Revamp to use init.sh.
29677         * tests/test-exclude2.sh: Likewise.
29679         test-exclude: fix a typo
29680         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
29682 2011-11-11  Bruno Haible  <bruno@clisp.org>
29684         obstack: Fix compilation error on MSVC 9.
29685         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
29687 2011-11-11  Jim Meyering  <meyering@redhat.com>
29689         test-exclude: skip tests rather than failing on deficient systems
29690         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
29691         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
29692         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
29693         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
29695 2011-11-10  Bruno Haible  <bruno@clisp.org>
29697         ptsname_r test: Avoid gcc warning on glibc systems.
29698         * tests/test-ptsname_r.c (null_ptr): New function.
29699         (test_errors): Use it.
29701 2011-11-10  Bruno Haible  <bruno@clisp.org>
29703         ptsname_r: Avoid compilation error on OSF/1 5.1.
29704         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
29705         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
29706         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
29707         function is not declared or incompatibly declared.
29708         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
29709         * modules/ptsname_r (Depends-on, configure.ac): Update.
29710         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
29712 2011-11-10  Bruno Haible  <bruno@clisp.org>
29714         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
29715         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
29716         When cross-compiling, guess yes on all platforms except AIX.
29717         Reported by Ludovic Courtès <ludo@gnu.org>.
29719 2011-11-09  Bruno Haible  <bruno@clisp.org>
29721         ptsname_r tests: Fix bugs.
29722         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
29723         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
29725 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
29727         fstatat: work with cross-compilation
29728         Problem reported by Ludovic Courtès in
29729         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
29730         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
29731         "cross-compiling" and assume the bug is present.  Replace
29732         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
29733         an inverted sense, to be more conservative about our assumptions.
29734         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
29736 2011-11-09  Bruno Haible  <bruno@clisp.org>
29738         Improve MODULES.html output.
29739         * modules/mkfifoat (Description): Use the word "function".
29740         * modules/readlinkat (Description): Likewise.
29741         * modules/symlinkat (Description): Likewise.
29743 2011-11-09  Eric Blake  <eblake@redhat.com>
29745         ptsname_r-tests: new test module
29746         * modules/ptsname_r-tests: New module.
29747         * tests/test-ptsname_r.c: New file.
29749         ptsname_r: new module
29750         * modules/ptsname_r: New module.
29751         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
29752         * lib/ptsname.c (__ptsname_r): Split...
29753         * lib/ptsname_r.c: ...into new file.
29754         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
29755         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
29756         * modules/stdlib (Makefile.am): Substitute witnesses.
29757         * lib/stdlib.in.h (ptsname_r): Declare it.
29758         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
29759         * MODULES.html.sh (Misc): Likewise.
29760         * modules/ptsname (Depends-on): Alter dependency.
29761         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
29763 2011-11-09  Jim Meyering  <meyering@redhat.com>
29765         announce-gen: be more concise when there's only one URL+tarball
29766         * build-aux/announce-gen (get_tool_versions): When you distribute
29767         only one type of tarball, combine the first two "Here are..."
29768         sections and make the key-checking grammar independent of
29769         how many tarballs there are.
29771 2011-11-09  Eric Blake  <eblake@redhat.com>
29773         openpty: provide a stub on mingw
29774         * lib/pty.in.h (includes): Provide forward declarations.
29775         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
29777         raise: fix mingw handling of SIGPIPE
29778         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
29780 2011-11-08  Bruno Haible  <bruno@clisp.org>
29782         More conditional dependencies.
29783         * modules/faccessat (Depends-on): Add conditions.
29784         * modules/fchmodat (Depends-on): Likewise.
29785         * modules/fchownat (Depends-on): Likewise.
29786         * modules/fstatat (Depends-on): Likewise.
29787         * modules/mkfifoat (Depends-on): Likewise.
29788         * modules/readlinkat (Depends-on): Likewise.
29789         * modules/symlinkat (Depends-on): Likewise.
29790         * modules/unlinkat (Depends-on): Likewise.
29791         * modules/utimensat (Depends-on): Likewise.
29792         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
29793         * modules/linkat (Depends-on): Refine the conditions.
29794         * modules/renameat (Depends-on): Likewise.
29796 2011-11-08  Bruno Haible  <bruno@clisp.org>
29798         faccessat: Move AC_LIBOBJ invocation to module description.
29799         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
29800         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
29801         invocation from here...
29802         * modules/faccessat (configure.ac): ... to here. Invoke
29803         gl_PREREQ_FACCESSAT.
29805 2011-11-08  Bruno Haible  <bruno@clisp.org>
29807         faccessat: Simplify autoconf macro.
29808         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
29809         gl_FUNC_EUIDACCESS.
29811 2011-11-08  Bruno Haible  <bruno@clisp.org>
29813         renameat: Fix dependencies.
29814         * modules/renameat (Depends-on): Add stdbool.
29816 2011-11-08  Bruno Haible  <bruno@clisp.org>
29818         mkfifoat: Fix module description.
29819         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
29820         not gl_UNISTD_MODULE_INDICATOR.
29822 2011-11-08  Bruno Haible  <bruno@clisp.org>
29824         fstatat: Remove unused dependency.
29825         * modules/fstatat (Depends-on): Remove fstat.
29827 2011-11-08  Simon Josefsson  <simon@josefsson.org>
29829         GNUmakefile: behave when Makefile is missing.
29830         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
29832 2011-11-08  Bruno Haible  <bruno@clisp.org>
29834         openat: Conditionalize dependencies.
29835         * lib/openat.c: Reduce the scope of some #includes.
29836         * modules/openat (Depends-on): Add conditions.
29838 2011-11-07  Jim Meyering  <meyering@redhat.com>
29840         maint.mk: extract GPG key ID without using a temporary file
29841         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
29842         without using a temporary file.  Based on a suggestion from Werner Koch
29843         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
29845 2011-11-07  Eric Blake  <eblake@redhat.com>
29847         grantpt: fix typo
29848         * lib/stdlib.in.h (grantpt): Check correct function.
29850         maint.mk: silence new syntax check
29851         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
29853 2011-11-06  Bruno Haible  <bruno@clisp.org>
29855         Doc about floating-point and math API.
29856         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
29857         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
29859 2011-11-06  Bruno Haible  <bruno@clisp.org>
29861         stdalign tests: Skip the test when compiled by Sun C.
29862         * tests/test-stdalign.c (main): Skip the test on Sun C.
29864 2011-11-06  Bruno Haible  <bruno@clisp.org>
29866         ansi-c++-opt: Complete the 2011-06-05 change.
29867         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
29868         does not support namespaces, set the variable to "no", not to ":".
29870 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
29872         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
29874 2011-11-06  Bruno Haible  <bruno@clisp.org>
29876         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
29877         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
29878         (minus_zerol) [HP-UX]: New macro.
29879         (unary_minus) [HP-UX]: New function.
29880         (copysignl) [HP-UX]: Use unary_minus function.
29882 2011-11-06  Bruno Haible  <bruno@clisp.org>
29884         ldexp, ldexpf, ldexpl: Enhance tests.
29885         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
29886         and tests/test-ldexpl.c.
29887         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
29888         LDEXP, MIN_EXP, MAX_EXP): New macros.
29889         Include test-ldexp.h.
29890         (main): Just call test_function.
29891         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
29892         infinity.h, nan.h.
29893         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29894         MAX_EXP): New macros.
29895         Include test-ldexp.h.
29896         (x, y): Remove variables.
29897         (main): Just call test_function.
29898         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
29899         infinity.h, nan.h.
29900         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
29901         MAX_EXP): New macros.
29902         Include test-ldexp.h.
29903         (x, y): Remove variables.
29904         (main): Just call test_function.
29905         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
29906         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
29907         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29908         (Depends-on): Add isnand-nolibm, signbit, float.
29909         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
29910         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
29911         (Depends-on): Add isnanf-nolibm, signbit, float.
29913 2011-11-06  Bruno Haible  <bruno@clisp.org>
29915         math tests: Cosmetics.
29916         * tests/test-math-c++.cc: Reorder declarations.
29918 2011-11-05  Bruno Haible  <bruno@clisp.org>
29920         fma*: Simplify test.
29921         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
29922         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
29924         Tests for module 'fmal'.
29925         * modules/fmal-tests: New file.
29926         * tests/test-fmal1.c: New file.
29927         * tests/test-fmal2.c: New file.
29929         New module 'fmal'.
29930         * lib/math.in.h (fmal): New declaration.
29931         * lib/fmal.c: New file.
29932         * m4/fmal.m4: New file.
29933         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
29934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
29935         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
29936         REPLACE_FMAL.
29937         * modules/fmal: New file.
29938         * doc/posix-functions/fmal.texi: Mention the new module and the various
29939         bugs.
29941         Tests for module 'fmaf'.
29942         * modules/fmaf-tests: New file.
29943         * tests/test-fmaf1.c: New file.
29944         * tests/test-fmaf2.c: New file.
29946         New module 'fmaf'.
29947         * lib/math.in.h (fmaf): New declaration.
29948         * lib/fmaf.c: New file.
29949         * m4/fmaf.m4: New file.
29950         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
29951         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
29952         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
29953         REPLACE_FMAF.
29954         * modules/fmaf: New file.
29955         * doc/posix-functions/fmaf.texi: Mention the new module and the various
29956         bugs.
29958         Tests for module 'fma'.
29959         * modules/fma-tests: New file.
29960         * tests/test-fma1.c: New file.
29961         * tests/test-fma1.h: New file.
29962         * tests/test-fma2.c: New file.
29963         * tests/test-fma2.h: New file.
29965         New module 'fma'.
29966         * lib/math.in.h (fma): New declaration.
29967         * lib/fma.c: New file.
29968         * m4/fma.m4: New file.
29969         * m4/fegetround.m4: New file.
29970         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
29971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
29972         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
29973         REPLACE_FMA.
29974         * modules/fma: New file.
29975         * doc/posix-functions/fma.texi: Mention the new module and the various
29976         bugs.
29978         Extend gl_MATHFUNC.
29979         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
29980         Support 'void' as argument type.
29981         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
29983 2011-11-05  Jim Meyering  <meyering@redhat.com>
29985         maint.mk: also prohibit inclusion of dirent.h without use
29986         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
29988 2011-11-05  Bruno Haible  <bruno@clisp.org>
29990         ldexpl tests: Avoid test failure on MSVC 9.
29991         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
29992         value. Needed in order to enforce the conversion from a value greater
29993         than LDBL_MAX to Infinity.
29995 2011-11-05  Bruno Haible  <bruno@clisp.org>
29997         New modules 'at-internal', 'openat-h', split off from module 'openat'.
29998         * modules/at-internal: New file, extracted from modules/openat.
29999         * modules/openat-h: New file.
30000         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
30001         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
30002         * modules/openat (Description): Add reference to POSIX function.
30003         (Files): Remove lib/openat.h, lib/openat-proc.c.
30004         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
30005         intprops, unistd.
30006         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
30007         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
30008         gl_FCNTL_MODULE_INDICATOR.
30009         (Include): Remove unistd.h, openat.h.
30010         * modules/areadlinkat (Files): Add lib/at-func.c.
30011         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
30012         openat-die, openat-h, save-cwd.
30013         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
30014         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
30015         openat-die, openat-h, save-cwd, unistd.
30016         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
30017         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
30018         openat-h, save-cwd. Remove fcntl-h, openat.
30019         * modules/fchmodat (Files): Remove lib/openat.h.
30020         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
30021         openat, stdbool, unistd.
30022         * modules/fchownat (Files): Remove lib/openat.h.
30023         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
30024         openat, stdbool, sys_stat.
30025         * modules/fdopendir (Files): Remove lib/openat-priv.h,
30026         lib/openat-proc.c.
30027         (Depends-on): Add at-internal.
30028         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
30029         * modules/fstatat (Files): Remove lib/openat.h.
30030         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
30031         stdbool, unistd.
30032         * modules/fts (Depends-on): Add openat-h.
30033         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
30034         openat.
30035         * modules/mkdirat (Files): Remove lib/openat.h.
30036         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
30037         openat, stdbool, sys_stat.
30038         * modules/mkfifoat (Files): Add lib/at-func.c.
30039         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
30040         openat-h, save-cwd. Remove fcntl-h, openat.
30041         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
30042         * modules/readlinkat (Files): Add lib/at-func.c.
30043         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
30044         openat-h, save-cwd. Remove fcntl-h, openat.
30045         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
30046         openat.
30047         * modules/selinux-at (Files): Add lib/at-func.c.
30048         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
30049         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
30050         * modules/symlinkat (Files): Add lib/at-func.c.
30051         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
30052         openat-h, save-cwd. Remove fcntl-h, openat.
30053         * modules/unlinkat (Files): Remove lib/openat.h.
30054         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
30055         stdbool.
30056         * modules/utimensat (Files): Add lib/at-func.c.
30057         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
30058         openat-die, openat-h, save-cwd.
30059         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
30060         * modules/fdutimensat-tests (Depends-on): Add openat.
30061         * modules/fstatat-tests (Depends-on): Add openat-h.
30062         * modules/readlinkat-tests (Depends-on): Add openat.
30063         * modules/symlinkat-tests (Depends-on): Add openat.
30065 2011-11-05  Bruno Haible  <bruno@clisp.org>
30067         openat: Include <stdbool.h>.
30068         * lib/openat.c: Include <stdbool.h>.
30070 2011-11-04  Bruno Haible  <bruno@clisp.org>
30072         fchownat, renameat, unlinkat: Fix dependencies.
30073         * modules/fchownat (Depends-on): Add fstatat.
30074         * modules/renameat (Depends-on): Likewise.
30075         * modules/unlinkat (Depends-on): Likewise.
30077 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
30079         openat: remove direct dependency on dirent
30080         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
30081         and hasn't been needed ever since fdopendir was split into its own
30082         module on 2009-08-31.
30083         * modules/openat (Depends-on): Remove dirent.
30085 2011-11-04  Bruno Haible  <bruno@clisp.org>
30087         renameat: Optimize code size.
30088         * modules/renameat (configure.ac): Don't compile at-func2.c if
30089         REPLACE_RENAMEAT is 1.
30091 2011-11-04  Bruno Haible  <bruno@clisp.org>
30093         openat tests: Fix file list.
30094         * modules/openat-tests (Files): Add tests/test-open.h.
30096 2011-11-04  Bruno Haible  <bruno@clisp.org>
30098         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
30099         * modules/fchmodat (Depends-on): Add openat-die.
30100         * modules/fchownat (Depends-on): Likewise.
30101         * modules/linkat (Depends-on): Likewise.
30102         * modules/renameat (Depends-on): Likewise.
30103         * modules/openat (Depends-on): Add dirent.
30105 2011-11-04  Jim Meyering  <meyering@redhat.com>
30107         at-func*.c: fix comments
30108         * lib/at-func2.c: Correct/improve first-line comment.
30109         * lib/at-func.c: Correct grammar in first-line comment.
30111 2011-11-04  Bruno Haible  <bruno@clisp.org>
30113         New module 'mkdirat', split off from module 'openat'.
30114         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
30115         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
30116         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
30117         * modules/mkdirat: New file, extracted from modules/openat.
30118         * modules/openat (Files): Remove lib/mkdirat.c.
30119         (Depends-on): Remove mkdir.
30120         (configure.ac): Remove AC_LIBOBJ of mkdirat.
30121         (Include): Remove <sys/stat.h>.
30122         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
30123         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
30124         tests/test-mkdir.h.
30125         (Depends-on): Remove ignore-value.
30126         (Makefile.am): Remove rules for test-mkdirat.
30127         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
30128         of module 'openat'.
30129         * NEWS: Mention the change.
30131 2011-11-04  Bruno Haible  <bruno@clisp.org>
30133         closedir: Avoid warning on mingw.
30134         * lib/closedir.c: Include <unistd.h>.
30136 2011-11-04  Bruno Haible  <bruno@clisp.org>
30138         New module 'fstatat', split off from module 'openat'.
30139         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
30140         defined.
30141         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
30142         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
30143         gl_FUNC_FSTATAT.
30144         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
30145         * modules/fstatat: New file, extracted from modules/openat.
30146         * modules/openat (Files): Remove lib/fstatat.c.
30147         (Depends-on): Remove lstat.
30148         (configure.ac): Remove AC_LIBOBJ of fstatat.
30149         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
30150         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
30151         tests/test-lstat.h, tests/test-stat.h.
30152         (Depends-on): Remove getcwd-lgpl.
30153         (Makefile.am): Remove rules for test-fstatat.
30154         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
30155         of module 'openat'.
30156         * NEWS: Mention the change.
30157         * modules/getcwd (Depends-on): Add fstatat.
30158         * modules/linkat (Depends-on): Likewise.
30159         * modules/mkfifoat-tests (Depends-on): Likewise.
30160         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
30162 2011-11-03  Bruno Haible  <bruno@clisp.org>
30164         New module 'unlinkat', split off from module 'openat'.
30165         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
30166         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
30167         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
30168         * modules/unlinkat: New file, extracted from modules/openat. Correct
30169         the dependency conditions.
30170         * modules/openat (Files): Remove lib/unlinkat.c.
30171         (Depends-on): Remove rmdir, unlink.
30172         (configure.ac): Remove AC_LIBOBJ of unlinkat.
30173         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
30174         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
30175         tests/test-rmdir.h, tests/test-unlink.h.
30176         (Depends-on): Remove unlinkdir.
30177         (Makefile.am): Remove rules for test-unlinkat.
30178         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
30179         of module 'openat'.
30180         * NEWS: Mention the change.
30181         * modules/linkat-tests (Depends-on): Add unlinkat.
30182         * modules/mkfifoat-tests (Depends-on): Likewise.
30183         * modules/readlinkat-tests (Depends-on): Likewise.
30185 2011-11-02  Bruno Haible  <bruno@clisp.org>
30187         New module 'fchmodat', split off from module 'openat'.
30188         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
30189         defined.
30190         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
30191         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
30192         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
30193         * modules/fchmodat: New file, extracted from modules/openat.
30194         * modules/openat (Files): Remove lib/fchmodat.c.
30195         (configure.ac): Remove AC_LIBOBJ of fchmodat.
30196         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
30197         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
30198         (Makefile.am): Remove rules for test-fchmodat.
30199         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
30200         of module 'openat'.
30201         * NEWS: Mention the change.
30203 2011-11-02  Jim Meyering  <meyering@redhat.com>
30205         putenv: indent #definition of "environ" to placate cppi
30206         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
30208         gitlog-to-changelog: provide a ChangeLog-repair mechanism
30209         Git logs are often treated as immutable, because editing them
30210         changes the SHA1 checksums of all descendants.  Thus, errors in
30211         git logs tend to stay there forever.  However, when we generate
30212         a ChangeLog file -- typically for distribution -- from that git log,
30213         we can actually make corrections in the generated file.  The key
30214         lies in recording in machine-readable/applicable form the desired
30215         corrections.  See --help for description and an example.
30216         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
30217         (usage): Describe it; alphabetize option descriptions.
30218         (main): Honor the new option, carefully.
30220 2011-11-01  Jim Meyering  <meyering@redhat.com>
30222         gitlog-to-changelog: avoid an infloop
30223         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
30224         that ends up being empty.
30226 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30228         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
30229         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
30230         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
30231         contains (possibly-quoted) backslashes.  This should avoid
30232         all-too-common shell bugs if COMPLICATED contains backslashes in
30233         the "wrong" places.  Reported by David Evans in
30234         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
30235         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
30236         because we want ASCII ranges.  Is there some reason we don't use
30237         the C locale everywhere in this script?
30238         (func_module, top level): Avoid unwanted pathname expansion when
30239         $repo_url_prefix or $repo_url_suffix_repl contain shell
30240         metacharacters like '?' and '*'.
30242 2011-11-01  Bruno Haible  <bruno@clisp.org>
30244         fchownat: Improve description.
30245         * modules/fchownat (Description): Add link to function.
30247 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
30249         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
30250         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
30251         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
30252         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
30254 2011-11-01  Bruno Haible  <bruno@clisp.org>
30256         alignof: Avoid collision with stdalign module.
30257         * lib/alignof.h (alignof): Remove macro.
30258         * NEWS: Mention the change.
30259         Reported by Paul Eggert.
30261 2011-11-01  Bruno Haible  <bruno@clisp.org>
30263         New module 'fchownat', split off from module 'openat'.
30264         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
30265         defined.
30266         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
30267         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
30268         invoke gl_FUNC_FCHOWNAT.
30269         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
30270         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
30271         * modules/fchownat: New file, extracted from modules/openat.
30272         * modules/openat (Files): Remove lib/fchownat.c.
30273         (Depends-on): Remove lchown.
30274         (configure.ac): Remove AC_LIBOBJ of fchownat.
30275         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
30276         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
30277         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
30278         (Depends-on): Remove mgetgroups, usleep, stat-time.
30279         (configure.ac): Remove test for getegid.
30280         (Makefile.am): Remove rules for test-fchownat.
30281         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
30282         of module 'openat'.
30283         * NEWS: Mention the change.
30285 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30287         stdalign: port better to MSVC and to Sun C 5.11
30288         This fixes some of the problems reported by Bruno Haible in
30289         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
30290         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
30291         shortcomings of MSVC and of Sun C 5.11.
30292         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
30293         around __declspec arg.
30294         * modules/stdalign-tests (Files): Add tests/macros.h.
30295         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
30296         Include macros.h, for ASSERT.
30297         (DECLARE_ALIGNED): Remove.
30298         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
30299         to catch bug), and to 1 if not (simplifies the rest of the code).
30300         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
30301         (CHECK_AUTO): Remove.
30302         (CHECK_ALIGNED): Check only the alignment of the static vars,
30303         since auto var alignment isn't supported by Sun C 5.11.
30304         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
30305         ASSERT failures are easier to diagnose.
30307 2011-10-31  Bruno Haible  <bruno@clisp.org>
30309         doc about some IRIX 5.3 problems.
30310         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
30311         on IRIX 5.3.
30312         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
30313         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
30314         5.3.
30315         * doc/posix-functions/grantpt.texi: Likewise.
30316         * doc/posix-functions/unlockpt.texi: Likewise.
30317         * doc/posix-functions/lgamma.texi: Likewise.
30318         * doc/posix-functions/nextafter.texi: Likewise.
30319         * doc/posix-functions/remainder.texi: Likewise.
30320         * doc/posix-functions/select.texi: Mention misplaced declaration on
30321         IRIX 5.3.
30322         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30324 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
30326         gitlog-to-changelog: fix git-log invocation.
30327         git-log mishandles date strings before 1970-01-01 UTC, and there is
30328         no use to specify --since=1970-01-01 by default anyway.
30329         * build-aux/gitlog-to-changelog: By default, when no --since option
30330         was given, do not specify explicit --since option to git-log.
30332 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
30334         gitlog-to-changelog: new option --append-dot.
30335         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
30336         first non-blank line of each commit message terminated with a dot.
30338 2011-10-30  Bruno Haible  <bruno@clisp.org>
30340         ffsl, ffsll: Avoid compilation error due to 'restrict'.
30341         * lib/ffsl.h: Include <config.h>.
30342         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
30344 2011-10-30  Jim Meyering  <meyering@redhat.com>
30346         GNUmakefile: reenable "make syntax-check" for most projects
30347         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
30348         build-aux variable", "syntax-check" would do nothing but succeed with
30349         the "No version control files detected..." diagnostic (unless you
30350         happened to override _build-aux via cfg.mk).
30351         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
30352         to precede inclusion of maint.mk.  Otherwise, these variables would
30353         be used undefined in any project that does not override the default.
30355 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
30357         gitlog-to-changelog: treat a message with only blank lines as empty.
30358         * build-aux/gitlog-to-changelog: Move the code that removes leading and
30359         trailing blank lines before the code that issues a warning about an
30360         empty commit message.
30362 2011-10-30  Jim Meyering  <meyering@redhat.com>
30364         test-parse-datetime.c: avoid new DST-related false positive test failure
30365         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
30366         based on the time/date we'll convert, not the current time.
30367         Otherwise, the moment we cross a DST boundary like today's in
30368         Europe, (CEST to CET), that offset ends up being one hour off.
30370 2011-10-27  Bruno Haible  <bruno@clisp.org>
30372         fstat: Tweak documentation.
30373         * modules/fstat (Description): More precise description.
30375 2011-10-27  Bruno Haible  <bruno@clisp.org>
30377         Update documentation regarding 'largefile' module.
30378         * doc/posix-functions/fstat.texi: Tweak wording.
30379         * doc/posix-functions/opendir.texi: Mention that the module fixes the
30380         problems with huge directories and/or small ino_t types.
30381         * doc/posix-functions/readdir.texi: Likewise.
30382         * doc/posix-functions/rewinddir.texi: Likewise.
30384 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
30386         maint.mk: don't maintain a second build-aux variable.
30387         * maint.mk (build_aux): Removed.  The maintainer-makefile module
30388         depends on GNUmakefile, which already maintains a cfg.mk
30389         overridable $(_build-aux) for projects with a non-standard
30390         build-aux directory location, although without the $(srcdir)
30391         prefix.  Use that variable consistently instead of introducing a
30392         second one.  Adjust all call sites.
30394 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30396         Add stdalign module and use it in other modules.
30397         This is based on a previous proposal by Bruno Haible
30398         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
30400         stdalign: new module
30401         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
30402         * modules/stdalign: New files.
30403         * MODULES.html.sh (c1x_core_properties): Add stdalign.
30404         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
30406         stdalign-tests: new module
30407         * modules/stdalign-tests, tests/test-stdalign.c: New files.
30409         argp: use stdalign
30410         * lib/argp-parse.c: Include <stdalign.h>.
30411         (alignof): Remove.
30412         * modules/argp (Depends-on): Add stdalign.
30414         crypto libraries: use stdalign
30415         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
30416         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
30417         Do not include <stdlib.h> twice, in md4.c.
30418         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
30419         because we are accessing a pointer's bit-pattern, not a size.
30420         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
30421         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
30422         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
30423         * modules/crypto/sha512: Likewise.
30425         sys_socket: use stdalign, not alignof
30426         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
30427         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
30429 2011-10-27  Bruno Haible  <bruno@clisp.org>
30431         raise test: Avoid a test failure on Linux/MIPS.
30432         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
30433         because 99 is a valid signal on Linux/MIPS.
30435 2011-10-27  Bruno Haible  <bruno@clisp.org>
30437         nonblocking tests: Fix test failure on Linux/MIPS.
30438         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
30439         Set to 270000.
30441 2011-10-27  Bruno Haible  <bruno@clisp.org>
30443         utimensat: Work around problem on Linux/hppa.
30444         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
30445         values.
30446         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
30448 2011-10-25  Jim Meyering  <meyering@redhat.com>
30450         maint.mk: fix a bug in sc_prohibit_stddef_without_use
30451         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
30452         after symbols like NULL, size_t, etc.
30453         Reported by Alfred M. Szmidt.
30455         maint.mk: exempt ENODATA from a syntax-check rule
30456         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
30457         from the sc_prohibit_always-defined_macros syntax-check rule.
30458         Add a comment.  See this for more details:
30459         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
30461 2011-10-23  Jim Meyering  <meyering@redhat.com>
30463         fts: close parent dir FD before returning from post-traversal fts_read
30464         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
30465         unlink A, even though an FD open on A remained.  This is suboptimal
30466         (holding a file descriptor open longer than needed), but otherwise not
30467         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
30468         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
30469         that represents a real problem: it causes the removal of A to fail
30470         with e.g., "rm: cannot remove `A': Device or resource busy"
30472         fts visits each directory twice and keeps a cache (fts_fd_ring) of
30473         directory file descriptors.  After completing the final, FTS_DP,
30474         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
30475         cache, but then proceeded to add a new FD to it via the subsequent
30476         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
30477         final file descriptor would be closed only via fts_close's call to
30478         fd_ring_clear.  Now, it is usually closed earlier, via the final
30479         FTS_DP-returning fts_read call.
30480         * lib/fts.c (restore_initial_cwd): New function, converted from
30481         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
30482         Update callers.
30483         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
30484         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
30486 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
30487             Bruno Haible  <bruno@clisp.org>
30488             Jim Meyering  <jim@meyering.net>
30490         readme-release: improve safety of release prep instructions.
30491         * README-release: Don't git pull all branches when only master
30492         is needed for the release process.
30493         Run make maintainer-clean before changing trees and merging.
30494         Don't try to run ./configure right after git pull in case files
30495         that influence the bootstrap process have changed, move the
30496         ./configure step to after running ./bootstrap.
30497         Don't bootstrap "one last time"... it's the first time!
30499 2011-10-22  Bruno Haible  <bruno@clisp.org>
30501         errno, strerror-override: Support for MSVC 10.
30502         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
30503         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
30504         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
30505         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
30506         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
30507         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
30508         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
30509         Assign values compatible with MSVC 10.
30510         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
30511         New macros.
30512         (GNULIB_defined_EWINSOCK): New macro.
30513         * lib/strerror-override.c (strerror_override): Update accordingly.
30514         * lib/strerror-override.h: Likewise.
30515         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
30516         longer equal to the corresponding errno value.
30517         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30519 2011-10-22  Bruno Haible  <bruno@clisp.org>
30521         perror: Recognize when test program crashes.
30522         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
30523         strerror, set gl_cv_func_perror_works to no.
30524         Reported by Daniel Richard G. <skunk@iskunk.org>.
30526         perror: Fix indentation.
30527         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
30529 2011-10-22  Bruno Haible  <bruno@clisp.org>
30531         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
30532         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
30533         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
30534         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
30535         functions, not as a macro.
30536         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
30537         macros.
30538         (isfinite, isinf, isnan, signbit): Check overloaded functions and
30539         absence of macro.
30540         Suggested by Eric Blake.
30541         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
30543 2011-10-21  Bruno Haible  <bruno@clisp.org>
30545         relocatable-prog-wrapper: Don't leave object files behind.
30546         * build-aux/install-reloc: Re-synchronize list of .o files to be
30547         removed with list of compilation units.
30549 2011-10-20  Bruno Haible  <bruno@clisp.org>
30551         openpty, posix_openpt: Remove code duplication.
30552         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
30553         * lib/openpty.c: Include <stdlib.h>.
30554         (openpty): Use posix_openpt on all platforms except IRIX.
30555         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
30557 2011-10-20  Bruno Haible  <bruno@clisp.org>
30559         unlockpt: Detect invalid argument.
30560         * lib/unlockpt.c: Include <fcntl.h>.
30561         (unlockpt): Check whether fd is valid, using fcntl().
30562         * modules/unlockpt (Depends-on): Add fcntl-h.
30564 2011-10-20  Bruno Haible  <bruno@clisp.org>
30566         openpty: Avoid compilation error on AIX 6.1.
30567         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
30569 2011-10-20  Bruno Haible  <bruno@clisp.org>
30571         posix_openpt: Support for OpenBSD.
30572         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
30573         (posix_openpt) [OpenBSD]: New code.
30574         * lib/grantpt.c: Include <fcntl.h>.
30575         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
30576         * modules/grantpt (Depends-on): Add fcntl-h.
30578 2011-10-20  Bruno Haible  <bruno@clisp.org>
30580         posix_openpt test: Coding style.
30581         * tests/test-posix_openpt.c: Use GNU coding style.
30583 2011-10-20  Bruno Haible  <bruno@clisp.org>
30585         grantpt: Support --avoid=pt_chown.
30586         * modules/grantpt (Files): Add lib/pty-private.h.
30588 2011-10-20  Bruno Haible  <bruno@clisp.org>
30590         posix_openpt: Fix autoconf macro.
30591         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
30592         unneeded check for _getpty.
30594 2011-10-20  Bruno Haible  <bruno@clisp.org>
30596         openpty: Update comments.
30597         * lib/openpty.c: Add comments about Minix.
30599 2011-10-19  Eric Blake  <eblake@redhat.com>
30601         openpty: relax license
30602         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
30604         pt_chown: use configmake to simplify build
30605         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
30607         ptsname and others: relax license
30608         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
30609         * modules/unlockpt (License): Likewise.
30610         * modules/pt_chown (License): Likewise.
30611         * modules/ptsname (License): Likewise.
30612         * modules/ttyname_r (License): Likewise.
30614 2011-10-19  Jim Meyering  <meyering@redhat.com>
30616         posix_openpt: remove spurious #endif
30617         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
30619 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
30621         maint.mk: Respect $(build_aux) in web-manual rule.
30622         * top/maint.mk (web-manual): Find gen-announce script in user's
30623         $(build_aux) directory instead of hard-coding 'build-aux'.
30625 2011-10-19  Bruno Haible  <bruno@clisp.org>
30627         posix_openpt: Fix compilation error.
30628         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
30629         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
30630         Mention the openpty module as an alternative.
30632 2011-10-19  Bruno Haible  <bruno@clisp.org>
30634         Support for old NeXTstep 3.3 frexp().
30635         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
30636         execution time of the test to 5 seconds.
30637         Reported by Daniel Richard G. <skunk@iskunk.org>.
30639 2011-10-19  Bruno Haible  <bruno@clisp.org>
30641         Support for old NeXTstep 3.3 sed.
30642         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
30643         part, use /.../, not \|...|. Escape periods in the header file name.
30644         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
30645         Reported by Daniel Richard G. <skunk@iskunk.org>.
30647 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30649         Support for old NeXTstep 3.3 gcc.
30650         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
30651         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
30652         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
30653         * lib/spawn.in.h (_Restrict_arr_): Likewise.
30654         * lib/regex.h (_Restrict_arr_): Likewise.
30655         * lib/regex_internal.h (re_token_t): Likewise.
30656         * lib/regexec.c (check_node_accept_bytes): Likewise.
30657         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
30659 2011-10-18  Eric Blake  <eblake@redhat.com>
30661         posix_openpt: new module
30662         * modules/posix_openpt: New module.
30663         * m4/posix_openpt.m4: New file.
30664         * lib/posix_openpt.c: Likewise.
30665         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
30666         (gl_STDLIB_H_DEFAULTS): Set defaults.
30667         * modules/stdlib (Makefile.am): Substitute macros.
30668         * lib/stdlib.in.h (posix_openpt): Declare.
30669         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
30670         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
30671         * modules/posix_openpt-tests: New test module.
30672         * tests/test-posix_openpt.c: New test.
30674 2011-10-15  Bruno Haible  <bruno@clisp.org>
30676         xstrtoll: Fix compilation failure.
30677         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
30678         from lib/strtol.c.
30679         * doc/posix-headers/limits.texi: Mention missing numerical limits on
30680         some platforms.
30681         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
30683 2011-10-15  Bruno Haible  <bruno@clisp.org>
30685         vasnprintf: Optimize bit search operation.
30686         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
30687         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
30688         gl_DOUBLE_EXPONENT_LOCATION.
30689         * modules/vasnprintf (Files): Add m4/exponentd.m4.
30690         * modules/unistdio/u8-vasnprintf (Files): Likewise.
30691         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
30692         * modules/unistdio/u16-vasnprintf (Files): Likewise.
30693         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
30694         * modules/unistdio/u32-vasnprintf (Files): Likewise.
30695         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
30696         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
30697         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
30699 2011-10-15  Bruno Haible  <bruno@clisp.org>
30701         vasnprintf: Fix comments.
30702         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
30704 2011-10-14  Bruno Haible  <bruno@clisp.org>
30706         Tests for module 'integer_length_ll'.
30707         * modules/integer_length_ll-tests: New file.
30708         * tests/test-integer_length_ll.c: New file.
30710         New module 'integer_length_ll'.
30711         * lib/integer_length_ll.c: New file.
30712         * modules/integer_length_ll: New file.
30714 2011-10-14  Bruno Haible  <bruno@clisp.org>
30716         Tests for module 'integer_length_l'.
30717         * modules/integer_length_l-tests: New file.
30718         * tests/test-integer_length_l.c: New file.
30720         New module 'integer_length_l'.
30721         * lib/integer_length_l.c: New file.
30722         * modules/integer_length_l: New file.
30724 2011-10-14  Bruno Haible  <bruno@clisp.org>
30726         Tests for module 'integer_length'.
30727         * modules/integer_length-tests: New file.
30728         * tests/test-integer_length.c: New file.
30730         New module 'integer_length'.
30731         * lib/integer_length.h: New file.
30732         * lib/integer_length.c: New file.
30733         * modules/integer_length: New file.
30735 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30737         popen: Fix dependency conditions.
30738         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
30740 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
30742         perror: Fix autoconf test.
30743         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
30744         <stdlib.h> and <string.h>.
30746 2011-10-14  Bruno Haible  <bruno@clisp.org>
30748         ffsl: Optimize on 64-bit platforms.
30749         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
30750         unrolling.
30752 2011-10-13  Bruno Haible  <bruno@clisp.org>
30754         ffsl: Optimize on 32-bit platforms.
30755         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
30756         use ffs() without a loop.
30758         ffsl, ffsll: Optimize for GCC.
30759         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
30760         * lib/ffsl.c (GCC_BUILTIN): New macro.
30761         * lib/ffsll.c (GCC_BUILTIN): Likewise.
30763 2011-10-13  Bruno Haible  <bruno@clisp.org>
30765         ffs, bcopy, memset: Support symbol renaming via config.h.
30766         * lib/ffs.c: Include <config.h>.
30767         * lib/bcopy.c: Likewise.
30768         * lib/memset.c: Likewise.
30770 2011-10-10  Bruno Haible  <bruno@clisp.org>
30772         atanl: Simplify for platforms where 'long double' == 'double'.
30773         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30774         alternative implementation.
30775         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30776         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30777         * modules/atanl (Depends-on): Add atan. Update conditions.
30779 2011-10-10  Bruno Haible  <bruno@clisp.org>
30781         acosl: Simplify for platforms where 'long double' == 'double'.
30782         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30783         alternative implementation.
30784         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30785         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30786         * modules/acosl (Depends-on): Add acos. Update conditions.
30788 2011-10-10  Bruno Haible  <bruno@clisp.org>
30790         asinl: Simplify for platforms where 'long double' == 'double'.
30791         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30792         alternative implementation.
30793         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30794         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30795         * modules/asinl (Depends-on): Add asin. Update conditions.
30797 2011-10-10  Bruno Haible  <bruno@clisp.org>
30799         tanl: Simplify for platforms where 'long double' == 'double'.
30800         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30801         implementation.
30802         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30803         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30804         * modules/tanl (Depends-on): Add tan. Update conditions.
30805         (configure.ac): Don't compile trigl.c if
30806         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30808 2011-10-10  Bruno Haible  <bruno@clisp.org>
30810         cosl: Simplify for platforms where 'long double' == 'double'.
30811         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30812         implementation.
30813         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30814         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30815         * modules/cosl (Depends-on): Add cos. Update conditions.
30816         (configure.ac): Don't compile sincosl.c and trigl.c if
30817         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30819 2011-10-10  Bruno Haible  <bruno@clisp.org>
30821         sinl: Simplify for platforms where 'long double' == 'double'.
30822         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30823         implementation.
30824         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30825         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30826         * modules/sinl (Depends-on): Add sin. Update conditions.
30827         (configure.ac): Don't compile sincosl.c and trigl.c if
30828         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30830 2011-10-10  Bruno Haible  <bruno@clisp.org>
30832         logl: Simplify for platforms where 'long double' == 'double'.
30833         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30834         implementation.
30835         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30836         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30837         * modules/logl (Depends-on): Add log. Update conditions.
30839 2011-10-10  Bruno Haible  <bruno@clisp.org>
30841         expl: Simplify for platforms where 'long double' == 'double'.
30842         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
30843         implementation.
30844         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30845         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30846         * modules/expl (Depends-on): Add exp. Update conditions.
30848 2011-10-10  Bruno Haible  <bruno@clisp.org>
30850         sqrtl: Simplify for platforms where 'long double' == 'double'.
30851         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30852         alternative implementation.
30853         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30854         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30855         * modules/sqrtl (Depends-on): Update conditions.
30857 2011-10-10  Bruno Haible  <bruno@clisp.org>
30859         ldexpl: Simplify for platforms where 'long double' == 'double'.
30860         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30861         alternative implementation.
30862         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30863         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30864         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
30866 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
30868         ffsll: set correct witness
30869         * modules/ffsll (configure.ac): Fix typo.
30871 2011-10-10  Bruno Haible  <bruno@clisp.org>
30873         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
30874         * lib/printf-frexpl.c: Include <config.h>.
30875         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30876         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
30877         second time.
30878         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
30879         gl_LONG_DOUBLE_VS_DOUBLE.
30880         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
30881         conditions.
30883 2011-10-10  Bruno Haible  <bruno@clisp.org>
30885         frexpl: Simplify for platforms where 'long double' == 'double'.
30886         * lib/frexpl.c: Include <config.h>.
30887         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30888         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30889         time.
30890         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30891         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30892         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
30893         * modules/frexpl (Depends-on): Add frexp. Update conditions.
30894         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
30895         conditions.
30897 2011-10-10  Jim Meyering  <meyering@redhat.com>
30899         test-renameat: don't leave behind a temporary file
30900         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
30901           ERROR: files left in build directory after distclean:
30902           ./gltests/test-renameat.too
30903           make[1]: *** [distcleancheck] Error 1
30904         Reported by Tom G. Christensen.
30906 2011-10-09  Bruno Haible  <bruno@clisp.org>
30908         rint: Determine RINT_LIBM correctly on AIX 7.
30909         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
30910         directly, not only through a function pointer. Also accept an optional
30911         4th argument with extra code.
30912         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
30913         rintf() call by gcc when optimizing.
30915         mathfunc.m4: Refactor.
30916         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
30917         m4 variable.
30919 2011-10-09  Bruno Haible  <bruno@clisp.org>
30921         rintl: Simplify for platforms where 'long double' == 'double'.
30922         * lib/rintl.c: Include <config.h>.
30923         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30924         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30925         time.
30926         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30927         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30928         * modules/rintl (Depends-on): Add rint. Update conditions.
30930 2011-10-09  Bruno Haible  <bruno@clisp.org>
30932         roundl: Simplify for platforms where 'long double' == 'double'.
30933         * lib/roundl.c: Include <config.h>.
30934         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30935         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30936         time.
30937         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30938         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30939         * modules/roundl (Depends-on): Add round. Update conditions.
30941 2011-10-09  Bruno Haible  <bruno@clisp.org>
30943         truncl: Simplify for platforms where 'long double' == 'double'.
30944         * lib/truncl.c: Include <config.h>.
30945         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30946         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30947         time.
30948         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30949         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30950         * modules/truncl (Depends-on): Add trunc. Update conditions.
30952 2011-10-09  Bruno Haible  <bruno@clisp.org>
30954         ceill: Simplify for platforms where 'long double' == 'double'.
30955         * lib/ceill.c: Include <config.h>.
30956         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30957         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30958         time.
30959         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30960         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30961         * modules/ceill (Depends-on): Add ceil. Update conditions.
30963 2011-10-09  Bruno Haible  <bruno@clisp.org>
30965         floorl: Simplify for platforms where 'long double' == 'double'.
30966         * lib/floorl.c: Include <config.h>.
30967         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
30968         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
30969         time.
30970         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30971         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30972         * modules/floorl (Depends-on): Add floor. Update conditions.
30974 2011-10-09  Bruno Haible  <bruno@clisp.org>
30976         rint: Fix ordering constraints.
30977         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
30978         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
30979         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
30981 2011-10-09  Bruno Haible  <bruno@clisp.org>
30983         copysignl: Simplify for platforms where 'long double' == 'double'.
30984         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
30985         alternative.
30986         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
30987         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
30988         * modules/copysignl (Depends-on): Add copysign. Update conditions.
30990 2011-10-09  Bruno Haible  <bruno@clisp.org>
30992         Tests for module 'rintl'.
30993         * modules/rintl-tests: New file.
30994         * tests/test-rintl.c: New file.
30996         New module 'rintl'.
30997         * lib/math.in.h (rintl): New declaration.
30998         * lib/rintl.c: New file.
30999         * m4/rintl.m4: New file.
31000         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
31001         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
31002         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
31003         * modules/rintl: New file.
31004         * tests/test-math-c++.cc: Check the declaration of rintl.
31005         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
31006         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
31007         * doc/posix-functions/rintl.texi: Mention the new module.
31009 2011-10-09  Bruno Haible  <bruno@clisp.org>
31011         Tests for module 'rintf'.
31012         * modules/rintf-tests: New file.
31013         * tests/test-rintf.c: New file.
31015         New module 'rintf'.
31016         * lib/math.in.h (rintf): New declaration.
31017         * lib/rintf.c: New file.
31018         * m4/rintf.m4: New file.
31019         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
31020         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
31021         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
31022         * modules/rintf: New file.
31023         * tests/test-math-c++.cc: Check the declaration of rintf.
31024         * doc/posix-functions/rintf.texi: Mention the new module.
31026 2011-10-09  Bruno Haible  <bruno@clisp.org>
31028         rint: Support for MSVC.
31029         * lib/math.in.h (rint): New declaration.
31030         * lib/rint.c: New file.
31031         * m4/rint.m4: New file.
31032         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
31033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
31034         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
31035         * modules/rint (Description): Fix.
31036         (Files): Add lib/rint.c, m4/rint.m4.
31037         (Depends-on): Add math.
31038         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
31039         gl_MATH_MODULE_INDICATOR.
31040         * tests/test-math-c++.cc: Check the declaration of rint.
31041         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
31042         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
31043         * doc/posix-functions/rint.texi: Mention the replacement provided by
31044         the module.
31046         rint tests: More tests.
31047         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
31048         minus-zero.h, infinity.h, nan.h.
31049         (main): Skip the test if the current rounding mode is not standard. Add
31050         tests for negative numbers, minus zero, infinity, NaN.
31051         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
31052         tests/nan.h.
31053         (Depends-on): Add isnand-nolibm.
31055 2011-10-09  Bruno Haible  <bruno@clisp.org>
31057         Tests for module 'copysignl'.
31058         * modules/copysignl-tests: New file.
31059         * tests/test-copysignl.c: New file.
31061         New module 'copysignl'.
31062         * lib/math.in.h (copysignl): New declaration.
31063         * lib/copysignl.c: New file.
31064         * m4/copysignl.m4: New file.
31065         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
31066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
31067         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
31068         HAVE_COPYSIGNL.
31069         * modules/copysignl: New file.
31070         * tests/test-math-c++.cc: Check the declaration of copysignl.
31071         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
31072         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
31073         * doc/posix-functions/copysignl.texi: Mention the new module.
31075 2011-10-09  Bruno Haible  <bruno@clisp.org>
31077         Tests for module 'copysignf'.
31078         * modules/copysignf-tests: New file.
31079         * tests/test-copysignf.c: New file.
31081         New module 'copysignf'.
31082         * lib/math.in.h (copysignf): New declaration.
31083         * lib/copysignf.c: New file.
31084         * m4/copysignf.m4: New file.
31085         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
31086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
31087         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
31088         HAVE_COPYSIGNF.
31089         * modules/copysignf: New file.
31090         * tests/test-math-c++.cc: Check the declaration of copysignf.
31091         * doc/posix-functions/copysignf.texi: Mention the new module.
31093 2011-10-09  Bruno Haible  <bruno@clisp.org>
31095         Ensure that HAVE_* variables are set to 1 before they are set to 0.
31096         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
31097         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
31098         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
31099         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
31100         gl_SIGNAL_H_DEFAULTS.
31102 2011-10-09  Bruno Haible  <bruno@clisp.org>
31104         poll: Make macro safer.
31105         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
31106         ac_cv_header_poll_h is not set.
31108 2011-10-09  Bruno Haible  <bruno@clisp.org>
31110         copysign: Provide replacement.
31111         * lib/math.in.h (copysign): New declaration.
31112         * lib/copysign.c: New file.
31113         * m4/copysign.m4: New file.
31114         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
31115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
31116         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
31117         HAVE_COPYSIGN.
31118         * modules/copysign (Description): Clarify.
31119         (Files): Add lib/copysign.c, m4/copysign.m4.
31120         (Depends-on): Add math, signbit.
31121         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
31122         gl_MATH_MODULE_INDICATOR.
31123         * tests/test-math-c++.cc: Check the declaration of copysign.
31124         * doc/posix-functions/copysign.texi: Mention the effects of the module
31125         on Minix and MSVC.
31127 2011-10-09  Bruno Haible  <bruno@clisp.org>
31129         isinf: Ensure macro on AIX 5.1.
31130         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
31131         macro.
31132         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
31134 2011-10-09  Bruno Haible  <bruno@clisp.org>
31136         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
31137         * modules/snprintf-posix-tests (configure.ac): Require
31138         gl_LONG_DOUBLE_VS_DOUBLE.
31139         * modules/sprintf-posix-tests (configure.ac): Likewise.
31140         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
31141         * modules/vasprintf-posix-tests (configure.ac): Likewise.
31142         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
31143         * modules/vsprintf-posix-tests (configure.ac): Likewise.
31144         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
31145         tests on platforms where 'long double' is the same as 'double'.
31146         * tests/test-sprintf-posix.h (test_function): Likewise.
31147         * tests/test-vasnprintf-posix.c (test_function): Likewise.
31148         * tests/test-vasprintf-posix.c (test_function): Likewise.
31150         *printf: Fix for platforms where 'long double' == 'double'.
31151         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
31152         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
31153         * modules/dprintf-posix (Files): Add m4/math_h.m4.
31154         * modules/fprintf-posix (Files): Likewise.
31155         * modules/obstack-printf-posix (Files): Likewise.
31156         * modules/snprintf-posix (Files): Likewise.
31157         * modules/sprintf-posix (Files): Likewise.
31158         * modules/vasnprintf (Files): Likewise.
31159         * modules/vasnprintf-posix (Files): Likewise.
31160         * modules/vasprintf-posix (Files): Likewise.
31161         * modules/vdprintf-posix (Files): Likewise.
31162         * modules/vfprintf-posix (Files): Likewise.
31163         * modules/vsnprintf-posix (Files): Likewise.
31164         * modules/vsprintf-posix (Files): Likewise.
31165         * modules/unistdio/u8-vasnprintf (Files): Likewise.
31166         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
31167         * modules/unistdio/u16-vasnprintf (Files): Likewise.
31168         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
31169         * modules/unistdio/u32-vasnprintf (Files): Likewise.
31170         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
31171         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
31173         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
31174         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
31175         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
31176         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
31177         'long double'.
31178         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
31180         isinf: Fix for platforms where 'long double' == 'double'.
31181         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
31182         Don't blindly assume 80-bit 'long double'.
31184         isfinite: Fix for platforms where 'long double' == 'double'.
31185         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
31186         Don't blindly assume 80-bit 'long double'.
31188         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
31189         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
31190         * modules/isfinite-tests (configure.ac): Require
31191         gl_LONG_DOUBLE_VS_DOUBLE.
31192         * modules/isinf-tests (configure.ac): Likewise.
31193         * modules/isnan-tests (configure.ac): Likewise.
31194         * modules/isnanl-tests (configure.ac): Likewise.
31195         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
31196         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
31197         tests on platforms where 'long double' is the same as 'double'.
31198         * tests/test-isinf.c (test_isinfl): Likewise.
31199         * tests/test-isnan.c (test_long_double): Likewise.
31200         * tests/test-isnanl.h (main): Likewise.
31202 2011-10-08  Bruno Haible  <bruno@clisp.org>
31204         Tests for module 'tanhf'.
31205         * modules/tanhf-tests: New file.
31206         * tests/test-tanhf.c: New file.
31208         New module 'tanhf'.
31209         * lib/math.in.h (tanhf): New declaration.
31210         * lib/tanhf.c: New file.
31211         * m4/tanhf.m4: New file.
31212         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
31213         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
31214         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
31215         * modules/tanhf: New file.
31216         * tests/test-math-c++.cc: Check the declaration of tanhf.
31217         * doc/posix-functions/tanhf.texi: Mention the new module.
31219         tanh: Use a .m4 file.
31220         * m4/tanh.m4: New file.
31221         * modules/tanh (Files): Add it.
31222         (configure.ac): Just invoke gl_FUNC_TANH.
31224 2011-10-08  Bruno Haible  <bruno@clisp.org>
31226         Tests for module 'coshf'.
31227         * modules/coshf-tests: New file.
31228         * tests/test-coshf.c: New file.
31230         New module 'coshf'.
31231         * lib/math.in.h (coshf): New declaration.
31232         * lib/coshf.c: New file.
31233         * m4/coshf.m4: New file.
31234         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
31235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
31236         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
31237         * modules/coshf: New file.
31238         * tests/test-math-c++.cc: Check the declaration of coshf.
31239         * doc/posix-functions/coshf.texi: Mention the new module.
31241         cosh: Use a .m4 file.
31242         * m4/cosh.m4: New file.
31243         * modules/cosh (Files): Add it.
31244         (configure.ac): Just invoke gl_FUNC_COSH.
31246 2011-10-08  Bruno Haible  <bruno@clisp.org>
31248         Tests for module 'sinhf'.
31249         * modules/sinhf-tests: New file.
31250         * tests/test-sinhf.c: New file.
31252         New module 'sinhf'.
31253         * lib/math.in.h (sinhf): New declaration.
31254         * lib/sinhf.c: New file.
31255         * m4/sinhf.m4: New file.
31256         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
31257         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
31258         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
31259         * modules/sinhf: New file.
31260         * tests/test-math-c++.cc: Check the declaration of sinhf.
31261         * doc/posix-functions/sinhf.texi: Mention the new module.
31263         sinh: Use a .m4 file.
31264         * m4/sinh.m4: New file.
31265         * modules/sinh (Files): Add it.
31266         (configure.ac): Just invoke gl_FUNC_SINH.
31268 2011-10-08  Bruno Haible  <bruno@clisp.org>
31270         Tests for module 'atan2f'.
31271         * modules/atan2f-tests: New file.
31272         * tests/test-atan2f.c: New file.
31274         New module 'atan2f'.
31275         * lib/math.in.h (atan2f): New declaration.
31276         * lib/atan2f.c: New file.
31277         * m4/atan2f.m4: New file.
31278         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
31279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
31280         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
31281         * modules/atan2f: New file.
31282         * tests/test-math-c++.cc: Check the declaration of atan2f.
31283         * doc/posix-functions/atan2f.texi: Mention the new module.
31285         atan2: Use a .m4 file.
31286         * m4/atan2.m4: New file.
31287         * modules/atan2 (Files): Add it.
31288         (configure.ac): Just invoke gl_FUNC_ATAN2.
31290 2011-10-08  Bruno Haible  <bruno@clisp.org>
31292         Tests for module 'atanf'.
31293         * modules/atanf-tests: New file.
31294         * tests/test-atanf.c: New file.
31296         New module 'atanf'.
31297         * lib/math.in.h (atanf): New declaration.
31298         * lib/atanf.c: New file.
31299         * m4/atanf.m4: New file.
31300         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
31301         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
31302         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
31303         * modules/atanf: New file.
31304         * tests/test-math-c++.cc: Check the declaration of atanf.
31305         * doc/posix-functions/atanf.texi: Mention the new module.
31307         atan: Use a .m4 file.
31308         * m4/atan.m4: New file.
31309         * modules/atan (Files): Add it.
31310         (configure.ac): Just invoke gl_FUNC_ATAN.
31312 2011-10-08  Bruno Haible  <bruno@clisp.org>
31314         Tests for module 'acosf'.
31315         * modules/acosf-tests: New file.
31316         * tests/test-acosf.c: New file.
31318         New module 'acosf'.
31319         * lib/math.in.h (acosf): New declaration.
31320         * lib/acosf.c: New file.
31321         * m4/acosf.m4: New file.
31322         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
31323         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
31324         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
31325         * modules/acosf: New file.
31326         * tests/test-math-c++.cc: Check the declaration of acosf.
31327         * doc/posix-functions/acosf.texi: Mention the new module.
31329         acos: Use a .m4 file.
31330         * m4/acos.m4: New file.
31331         * modules/acos (Files): Add it.
31332         (configure.ac): Just invoke gl_FUNC_ACOS.
31334 2011-10-08  Bruno Haible  <bruno@clisp.org>
31336         Tests for module 'asinf'.
31337         * modules/asinf-tests: New file.
31338         * tests/test-asinf.c: New file.
31340         New module 'asinf'.
31341         * lib/math.in.h (asinf): New declaration.
31342         * lib/asinf.c: New file.
31343         * m4/asinf.m4: New file.
31344         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
31345         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
31346         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
31347         * modules/asinf: New file.
31348         * tests/test-math-c++.cc: Check the declaration of asinf.
31349         * doc/posix-functions/asinf.texi: Mention the new module.
31351         asin: Use a .m4 file.
31352         * m4/asin.m4: New file.
31353         * modules/asin (Files): Add it.
31354         (configure.ac): Just invoke gl_FUNC_ASIN.
31356 2011-10-08  Bruno Haible  <bruno@clisp.org>
31358         Tests for module 'tanf'.
31359         * modules/tanf-tests: New file.
31360         * tests/test-tanf.c: New file.
31362         New module 'tanf'.
31363         * lib/math.in.h (tanf): New declaration.
31364         * lib/tanf.c: New file.
31365         * m4/tanf.m4: New file.
31366         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
31367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
31368         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
31369         * modules/tanf: New file.
31370         * tests/test-math-c++.cc: Check the declaration of tanf.
31371         * doc/posix-functions/tanf.texi: Mention the new module.
31373         tan: Use a .m4 file.
31374         * m4/tan.m4: New file.
31375         * modules/tan (Files): Add it.
31376         (configure.ac): Just invoke gl_FUNC_TAN.
31378 2011-10-08  Bruno Haible  <bruno@clisp.org>
31380         Tests for module 'cosf'.
31381         * modules/cosf-tests: New file.
31382         * tests/test-cosf.c: New file.
31384         New module 'cosf'.
31385         * lib/math.in.h (cosf): New declaration.
31386         * lib/cosf.c: New file.
31387         * m4/cosf.m4: New file.
31388         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
31389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
31390         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
31391         * modules/cosf: New file.
31392         * tests/test-math-c++.cc: Check the declaration of cosf.
31393         * doc/posix-functions/cosf.texi: Mention the new module.
31395         cos: Use a .m4 file.
31396         * m4/cos.m4: New file.
31397         * modules/cos (Files): Add it.
31398         (configure.ac): Just invoke gl_FUNC_COS.
31400 2011-10-08  Bruno Haible  <bruno@clisp.org>
31402         Tests for module 'sinf'.
31403         * modules/sinf-tests: New file.
31404         * tests/test-sinf.c: New file.
31406         New module 'sinf'.
31407         * lib/math.in.h (sinf): New declaration.
31408         * lib/sinf.c: New file.
31409         * m4/sinf.m4: New file.
31410         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
31411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
31412         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
31413         * modules/sinf: New file.
31414         * tests/test-math-c++.cc: Check the declaration of sinf.
31415         * doc/posix-functions/sinf.texi: Mention the new module.
31417         sin: Use a .m4 file.
31418         * m4/sin.m4: New file.
31419         * modules/sin (Files): Add it.
31420         (configure.ac): Just invoke gl_FUNC_SIN.
31422 2011-10-08  Bruno Haible  <bruno@clisp.org>
31424         Tests for module 'powf'.
31425         * modules/powf-tests: New file.
31426         * tests/test-powf.c: New file.
31428         New module 'powf'.
31429         * lib/math.in.h (powf): New declaration.
31430         * lib/powf.c: New file.
31431         * m4/powf.m4: New file.
31432         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
31433         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
31434         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
31435         * modules/powf: New file.
31436         * tests/test-math-c++.cc: Check the declaration of powf.
31437         * doc/posix-functions/powf.texi: Mention the new module.
31439         pow: Use a .m4 file.
31440         * m4/pow.m4: New file.
31441         * modules/pow (Files): Add it.
31442         (configure.ac): Just invoke gl_FUNC_POW.
31444 2011-10-08  Bruno Haible  <bruno@clisp.org>
31446         Tests for module 'log10f'.
31447         * modules/log10f-tests: New file.
31448         * tests/test-log10f.c: New file.
31450         New module 'log10f'.
31451         * lib/math.in.h (log10f): New declaration.
31452         * lib/log10f.c: New file.
31453         * m4/log10f.m4: New file.
31454         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
31455         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
31456         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
31457         * modules/log10f: New file.
31458         * tests/test-math-c++.cc: Check the declaration of log10f.
31459         * doc/posix-functions/log10f.texi: Mention the new module.
31461         log10: Use a .m4 file.
31462         * m4/log10.m4: New file.
31463         * modules/log10 (Files): Add it.
31464         (configure.ac): Just invoke gl_FUNC_LOG10.
31466 2011-10-08  Bruno Haible  <bruno@clisp.org>
31468         Tests for module 'logf'.
31469         * modules/logf-tests: New file.
31470         * tests/test-logf.c: New file.
31472         New module 'logf'.
31473         * lib/math.in.h (logf): New declaration.
31474         * lib/logf.c: New file.
31475         * m4/logf.m4: New file.
31476         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
31477         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
31478         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
31479         * modules/logf: New file.
31480         * tests/test-math-c++.cc: Check the declaration of logf.
31481         * doc/posix-functions/logf.texi: Mention the new module.
31483         log: Use a .m4 file.
31484         * m4/log.m4: New file.
31485         * modules/log (Files): Add it.
31486         (configure.ac): Just invoke gl_FUNC_LOG.
31488 2011-10-08  Bruno Haible  <bruno@clisp.org>
31490         Tests for module 'expf'.
31491         * modules/expf-tests: New file.
31492         * tests/test-expf.c: New file.
31494         New module 'expf'.
31495         * lib/math.in.h (expf): New declaration.
31496         * lib/expf.c: New file.
31497         * m4/expf.m4: New file.
31498         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
31499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
31500         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
31501         * modules/expf: New file.
31502         * tests/test-math-c++.cc: Check the declaration of expf.
31503         * doc/posix-functions/expf.texi: Mention the new module.
31505         exp: Use a .m4 file.
31506         * m4/exp.m4: New file.
31507         * modules/exp (Files): Add it.
31508         (configure.ac): Just invoke gl_FUNC_EXP.
31510 2011-10-08  Bruno Haible  <bruno@clisp.org>
31512         Tests for module 'sqrtf'.
31513         * modules/sqrtf-tests: New file.
31514         * tests/test-sqrtf.c: New file.
31516         New module 'sqrtf'.
31517         * lib/math.in.h (sqrtf): New declaration.
31518         * lib/sqrtf.c: New file.
31519         * m4/sqrtf.m4: New file.
31520         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
31521         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
31522         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
31523         * modules/sqrtf: New file.
31524         * tests/test-math-c++.cc: Check the declaration of sqrtf.
31525         * doc/posix-functions/sqrtf.texi: Mention the new module.
31527 2011-10-08  Bruno Haible  <bruno@clisp.org>
31529         Tests: Avoid link failures w.r.t. libintl.
31530         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
31531         $(LIBINTL).
31532         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
31533         $(LIBINTL).
31534         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
31535         against $(LIBINTL).
31536         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
31537         $(LIBINTL).
31538         * modules/openat-tests (Makefile.am): Link test-fchmodat against
31539         $(LIBINTL).
31540         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
31542 2011-10-08  Bruno Haible  <bruno@clisp.org>
31544         pow tests: Defeat compiler optimizations.
31545         * tests/test-pow.c (main): Assign arguments to x and y before use.
31547 2011-10-08  Bruno Haible  <bruno@clisp.org>
31549         gnulib-tool: Improve last commit.
31550         * gnulib-tool (func_modules_transitive_closure): Simplify code.
31551         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
31552         ignore dependencies that are not among the modules list.
31554 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
31556         gnulib-tool: don't follow dependencies to avoided modules
31557         This fixes a bug that is related to the previous one.
31558         * gnulib-tool (func_modules_transitive_closure)
31559         (func_emit_autoconf_snippets):
31560         Check whether a dependency is acceptable before using it.
31561         (--extract-dependencies): Report an error if --avoid is also used,
31562         since this combination of options is not yet supported.
31564         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
31565         Problem reported by Peter Dyballa in
31566         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
31567         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
31568         when echoing "$condition".
31570 2011-10-07  Bruno Haible  <bruno@clisp.org>
31572         Fix documentation about math functions on MacOS X.
31573         * doc/posix-functions/exp2.texi: Don't say the function is missing on
31574         MacOS X 10.5.
31575         * doc/posix-functions/fdim.texi: Likewise.
31576         * doc/posix-functions/feclearexcept.texi: Likewise.
31577         * doc/posix-functions/fegetenv.texi: Likewise.
31578         * doc/posix-functions/fegetround.texi: Likewise.
31579         * doc/posix-functions/feholdexcept.texi: Likewise.
31580         * doc/posix-functions/feraiseexcept.texi: Likewise.
31581         * doc/posix-functions/fesetenv.texi: Likewise.
31582         * doc/posix-functions/fesetround.texi: Likewise.
31583         * doc/posix-functions/fetestexcept.texi: Likewise.
31584         * doc/posix-functions/feupdateenv.texi: Likewise.
31585         * doc/posix-functions/fmax.texi: Likewise.
31586         * doc/posix-functions/fmin.texi: Likewise.
31587         * doc/posix-functions/log2.texi: Likewise.
31588         * doc/posix-functions/modff.texi: Likewise.
31589         * doc/posix-functions/nan.texi: Likewise.
31590         * doc/posix-functions/nanf.texi: Likewise.
31591         * doc/posix-functions/nextafterf.texi: Likewise.
31592         * doc/posix-functions/remquo.texi: Likewise.
31594 2011-10-07  Bruno Haible  <bruno@clisp.org>
31596         modff: Drop assumption about library that defines modff.
31597         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
31598         AC_CHECK_FUNCS.
31599         * modules/modff (Files): Add m4/mathfunc.m4.
31601 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
31603         raise tests: Avoid a GCC warning.
31604         * tests/test-raise.c (handler): Use _Noreturn.
31606 2011-10-07  Bruno Haible  <bruno@clisp.org>
31608         Tests for module 'ldexpf'.
31609         * modules/ldexpf-tests: New file.
31610         * tests/test-ldexpf.c: New file.
31612         New module 'ldexpf'.
31613         * lib/math.in.h (ldexpf): New declaration.
31614         * lib/ldexpf.c: New file.
31615         * m4/ldexpf.m4: New file.
31616         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
31617         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
31618         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
31619         * modules/ldexpf: New file.
31620         * tests/test-math-c++.cc: Check the declaration of ldexpf.
31621         * doc/posix-functions/ldexpf.texi: Mention the new module.
31623 2011-10-06  Bruno Haible  <bruno@clisp.org>
31625         frexpf: Work around problems on IRIX and mingw.
31626         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
31627         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
31628         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
31629         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
31630         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
31631         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
31632         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
31634 2011-10-06  Bruno Haible  <bruno@clisp.org>
31636         fabsf: Drop assumption about library that defines fabsf.
31637         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
31638         AC_CHECK_FUNCS.
31639         * modules/fabsf (Files): Add m4/mathfunc.m4.
31641 2011-10-06  Bruno Haible  <bruno@clisp.org>
31643         frexpf: Drop assumption about library that defines frexpf.
31644         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
31645         'int *', 'float *', 'long double *', 'float', 'long double'.
31646         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
31647         AC_CHECK_FUNCS.
31648         * modules/frexpf (Files): Add m4/mathfunc.m4.
31650         Tests for module 'frexpf'.
31651         * modules/frexpf-tests: New file.
31652         * tests/test-frexpf.c: New file.
31654         New module 'frexpf'.
31655         * lib/math.in.h (frexpf): New declaration.
31656         * lib/frexpf.c: New file.
31657         * m4/frexpf.m4: New file.
31658         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
31659         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
31660         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
31661         * modules/frexpf: New file.
31662         * tests/test-math-c++.cc: Check the declaration of frexpf.
31663         * doc/posix-functions/frexpf.texi: Mention the new module.
31665 2011-10-06  Bruno Haible  <bruno@clisp.org>
31667         math: Sort function declarations of math.in.h.
31668         * lib/math.in.h (frexp, logb): Move declarations.
31670 2011-10-05  Bruno Haible  <bruno@clisp.org>
31672         Tests for module 'modff'.
31673         * modules/modff-tests: New file.
31674         * tests/test-modff.c: New file.
31676         New module 'modff'.
31677         * lib/math.in.h (modff): New declaration.
31678         * lib/modff.c: New file.
31679         * m4/modff.m4: New file.
31680         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
31681         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
31682         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
31683         * modules/modff: New file.
31684         * tests/test-math-c++.cc: Check the declaration of modff.
31685         * doc/posix-functions/modff.texi: Mention the new module.
31687         modf tests: Make test sharper.
31688         * tests/test-modf.c (main): Strengthen upper bound.
31690         modf: Use a .m4 file.
31691         * m4/modf.m4: New file.
31692         * modules/modf (Files): Add it.
31693         (configure.ac): Just invoke gl_FUNC_MODF.
31695 2011-10-05  Bruno Haible  <bruno@clisp.org>
31697         Tests for module 'fmodf'.
31698         * modules/fmodf-tests: New file.
31699         * tests/test-fmodf.c: New file.
31701         New module 'fmodf'.
31702         * lib/math.in.h (fmodf): New declaration.
31703         * lib/fmodf.c: New file.
31704         * m4/fmodf.m4: New file.
31705         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
31706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
31707         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
31708         * modules/fmodf: New file.
31709         * tests/test-math-c++.cc: Check the declaration of fmodf.
31710         * doc/posix-functions/fmodf.texi: Mention the new module.
31712         fmod: Use a .m4 file.
31713         * m4/fmod.m4: New file.
31714         * modules/fmod (Files): Add it.
31715         (configure.ac): Just invoke gl_FUNC_FMOD.
31717 2011-10-05  Bruno Haible  <bruno@clisp.org>
31719         Tests for module 'fabsf'.
31720         * modules/fabsf-tests: New file.
31721         * tests/test-fabsf.c: New file.
31723         New module 'fabsf'.
31724         * lib/math.in.h (fabsf): New declaration.
31725         * lib/fabsf.c: New file.
31726         * m4/fabsf.m4: New file.
31727         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
31728         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
31729         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
31730         * modules/fabsf: New file.
31731         * tests/test-math-c++.cc: Check the declaration of fabsf.
31732         * doc/posix-functions/fabsf.texi: Mention the new module.
31734         fabs: Use a .m4 file.
31735         * m4/fabs.m4: New file.
31736         * modules/fabs (Files): Add it.
31737         (configure.ac): Just invoke gl_FUNC_FABS.
31739 2011-10-05  Jim Meyering  <meyering@redhat.com>
31741         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
31742         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
31743         ls -lL regression introduced in coreutils-8.12, it does so at the
31744         cost of an additional stat call in the common case.  Besides, now
31745         that the kernel change that prompted commit 95f7c57f has been reverted
31746         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
31747         we have no use for commit 95f7c57f, "file-has-acl: use
31748         acl_extended_file_nofollow if available".
31750 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
31752         file-has-acl: revert unintended change in behavior of ls -L
31753         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
31754         derived from...
31755         (file_has_acl): ...code here.  Call it.
31756         This problem was introduced with 2011-07-22 commit 95f7c57f,
31757         "file-has-acl: use acl_extended_file_nofollow if available".
31758         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
31760 2011-10-03  Bruno Haible  <bruno@clisp.org>
31762         poll: Avoid link errors on MSVC.
31763         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
31764         * modules/poll (Depends-on): Add sockets.
31765         (Link): New section.
31766         * NEWS: Mention the change.
31767         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
31768         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
31769         $(LIB_POLL) instead of $(LIBSOCKET).
31771 2011-10-03  Bruno Haible  <bruno@clisp.org>
31773         sys_select tests: Fix link error on MSVC 9.
31774         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
31775         with $(LIB_SELECT) instead of $(LIBSOCKET).
31777 2011-10-03  Bruno Haible  <bruno@clisp.org>
31779         sys_select: Fix compilation error on mingw.
31780         * lib/sys_select.in.h: On native Windows, include <io.h>.
31782 2011-10-03  Bruno Haible  <bruno@clisp.org>
31784         wmemset: Support for MSVC.
31785         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
31786         whether wmemset() exists.
31788 2011-10-03  Bruno Haible  <bruno@clisp.org>
31790         wmemmove: Support for MSVC.
31791         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
31792         whether wmemmove() exists.
31794 2011-10-03  Bruno Haible  <bruno@clisp.org>
31796         wmemcpy: Support for MSVC.
31797         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
31798         whether wmemcpy() exists.
31800 2011-10-03  Bruno Haible  <bruno@clisp.org>
31802         wmemcmp: Support for MSVC.
31803         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
31804         whether wmemcmp() exists.
31806 2011-10-03  Bruno Haible  <bruno@clisp.org>
31808         wmemchr: Support for MSVC.
31809         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
31810         whether wmemchr() exists.
31812 2011-10-03  Bruno Haible  <bruno@clisp.org>
31814         glthread/*, strsignal: Support for MSVC.
31815         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
31816         including <winsock.h> on MSVC 9.
31817         * lib/glthread/lock.h: Likewise.
31818         * lib/glthread/thread.h: Likewise.
31819         * lib/glthread/tls.h: Likewise.
31820         * lib/glthread/yield.h: Likewise.
31821         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
31822         if HAVE_UNISTD_H is false.
31823         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
31825 2011-10-03  Bruno Haible  <bruno@clisp.org>
31827         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
31828         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
31829         Set to 100000.
31831 2011-10-03  Bruno Haible  <bruno@clisp.org>
31833         acl: Fix specification.
31834         * lib/file-has-acl.c (file_has_acl): Fix specification.
31836 2011-10-03  Bruno Haible  <bruno@clisp.org>
31838         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
31839         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
31840         (compute_curr_prefix, shared_library_fullname,
31841         find_shared_library_fullname, get_shared_library_fullname, relocate):
31842         Use it together with PIC && INSTALLDIR.
31843         Reported by <jojelino@gmail.com>
31844         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
31846 2011-10-01  Jim Meyering  <meyering@redhat.com>
31848         maint.mk: adjust a release-related rule not to require use of gzip
31849         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
31850         Instead, check each file in $(DIST_ARCHIVES).  This is better for
31851         projects that build only .tar.xz files.  Also fix an erroneous test.
31853         test-linkat: don't leave behind a temporary file
31854         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
31855         Otherwise, coreutils' "make distcheck" would fail with this:
31856           Only in /c/cu/tests/torture/coreutils/test/\
31857             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
31858           make[2]: *** [my-distcheck] Error 1
31860         float, math: add omitted file
31861         * lib/itold.c: Add file, required for yesterday's float change.
31863 2011-10-01  Bruno Haible  <bruno@clisp.org>
31865         isinf: Fix for OpenBSD/x86.
31866         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
31867         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
31868         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
31870 2011-10-01  Bruno Haible  <bruno@clisp.org>
31872         isfinite: Fix syntax error in configure test.
31873         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
31875         isfinite: Fix typo.
31876         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
31877         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
31879 2011-10-01  Bruno Haible  <bruno@clisp.org>
31881         nonblocking tests: Fix test failure on Linux/IA-64.
31882         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
31883         Set to 270000.
31885 2011-10-01  Bruno Haible  <bruno@clisp.org>
31887         mkfifoat tests: Fix a test failure on mingw.
31888         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
31889         with error ENOSYS.
31891 2011-09-30  Bruno Haible  <bruno@clisp.org>
31893         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
31894         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
31895         'long double'. Set REPLACE_ITOLD.
31896         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
31897         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
31898         * lib/itold.c: New file.
31899         * modules/float (Files): Add lib/itold.c.
31900         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
31901         (Makefile.am): Substitute REPLACE_ITOLD.
31902         * modules/math (Depends-on): Add float.
31903         (Makefile.am): Substitute REPLACE_ITOLD.
31904         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
31905         * doc/posix-headers/math.texi: Likewise.
31906         * doc/posix-functions/logl.texi: Likewise.
31908 2011-09-30  Bruno Haible  <bruno@clisp.org>
31910         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
31911         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
31912         Set to 140000.
31914 2011-09-30  Bruno Haible  <bruno@clisp.org>
31916         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
31917         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
31918         invocation, say "right after AC_PROG_CC_STDC", not "right after
31919         AC_PROG_CC".
31920         Reported by Gary V. Vaughan <gary@gnu.org>.
31922 2011-09-30  Bruno Haible  <bruno@clisp.org>
31924         Centralize C99 requirement.
31925         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
31926         * modules/stdarg (configure.ac-early): Invoke it instead of
31927         AC_PROG_CC_STDC.
31928         Reported by Gary V. Vaughan and Paul Eggert.
31930 2011-09-29  Bruno Haible  <bruno@clisp.org>
31932         float: Fix LDBL_MAX value on Linux/PowerPC.
31933         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
31934         on Linux/PowerPC.
31935         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
31936         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
31937         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
31938         platform.
31939         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
31941 2011-09-29  Bruno Haible  <bruno@clisp.org>
31943         doc: Improve doc about gl_EARLY.
31944         * doc/gnulib-tool.texi (Initial import): Mention where to place an
31945         AC_PROG_CC_STDC invocation.
31946         Reported by Gary V. Vaughan <gary@gnu.org>.
31948 2011-09-28  Bruno Haible  <bruno@clisp.org>
31950         fgetc, fputc, fread, fwrite tests: Fix link error.
31951         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
31952         on non-MSVC platforms.
31953         * tests/test-fputc.c (main): Likewise.
31954         * tests/test-fread.c (main): Likewise.
31955         * tests/test-fwrite.c (main): Likewise.
31956         Reported by Jim Meyering.
31958 2011-09-27  Bruno Haible  <bruno@clisp.org>
31960         fputc, fwrite tests: Avoid test failure on MSVC.
31961         * tests/test-fgetc.c: Include msvc-inval.h.
31962         (main): Invoke gl_msvc_inval_ensure_handler.
31963         * tests/test-fputc.c: Include msvc-inval.h.
31964         (main): Invoke gl_msvc_inval_ensure_handler.
31965         * tests/test-fread.c: Include msvc-inval.h.
31966         (main): Invoke gl_msvc_inval_ensure_handler.
31967         * tests/test-fwrite.c: Include msvc-inval.h.
31968         (main): Invoke gl_msvc_inval_ensure_handler.
31969         * modules/fgetc-tests (Depends-on): Add msvc-inval.
31970         * modules/fputc-tests (Depends-on): Likewise.
31971         * modules/fread-tests (Depends-on): Likewise.
31972         * modules/fwrite-tests (Depends-on): Likewise.
31974 2011-09-27  Bruno Haible  <bruno@clisp.org>
31976         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
31977         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
31978         (raise): Remove older, duplicated declaration.
31979         (_gl_raise_SIGPIPE): New declaration.
31980         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
31981         (rpl_raise): Remove function.
31982         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
31983         a gnulib-defined SIGPIPE here.
31984         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
31985         'sigprocmask' has detected missing signal-blocking and the module
31986         'sigpipe' is enabled.
31987         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
31989 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
31991         base64-tests: avoid memory leak
31992         * tests/test-base64.c (main): Plug memory leak.
31994         base32: new module
31995         * modules/base32: New module.
31996         * lib/base32.c: New file.
31997         * lib/base32.h: Likewise.
31998         * m4/base32.m4: Likewise.
31999         * modules/base32-tests: New test.
32000         * tests/test-base32.c: Likewise.
32001         * MODULES.html.sh (Misc): Mention it.
32003 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
32005         gnulib: use more-standard license notice wording
32006         * gnulib-tool (func_emit_copyright_notice): When emitting a
32007         license notice into a file, use the standard wording as suggested
32008         by the current information for GNU maintainers, except say "file"
32009         rather than "program".  The new wording gives a license version
32010         number, which addresses an issue raised by Glenn Morris in
32011         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
32012         * m4/onceonly.m4: Use that same wording here, too.
32014         dup2: minor simplification
32015         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
32016         as lib/dup2.c no longer uses 'inline'.
32018 2011-09-25  Bruno Haible  <bruno@clisp.org>
32020         strings: Fix compilation error on MSVC.
32021         * lib/strings.in.h: Include <stddef.h> for size_t.
32023 2011-09-25  Bruno Haible  <bruno@clisp.org>
32025         fflush et al.: Document limitation on MSVC.
32026         * doc/posix-functions/fflush.texi: Document possible crash in handling
32027         mode other than DEFAULT_HANDLING.
32028         * doc/posix-functions/fgetc.texi: Likewise.
32029         * doc/posix-functions/fputc.texi: Likewise.
32030         * doc/posix-functions/fread.texi: Likewise.
32031         * doc/posix-functions/fwrite.texi: Likewise.
32033 2011-09-25  Bruno Haible  <bruno@clisp.org>
32035         msvc-inval: Allow three invalid parameter handling modes.
32036         * lib/msvc-inval.h: Don't include <stdlib.h> here.
32037         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
32038         macros.
32039         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
32040         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
32041         SANE_LIBRARY_HANDLING as a no-op.
32042         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
32043         <stdlib.h>.
32044         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
32046 2011-09-25  Bruno Haible  <bruno@clisp.org>
32048         msvc-inval: Make handler multithread-safe.
32049         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
32050         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
32051         declarations.
32052         (gl_msvc_inval_current): New declaration.
32053         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
32054         Operate on the structure returned by gl_msvc_inval_current().
32055         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
32056         Remove varaiables.
32057         (tls_index, tls_initialized): New variables.
32058         (not_per_thread): New variable.
32059         (gl_msvc_inval_current): New function.
32060         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
32061         returned by gl_msvc_inval_current().
32063 2011-09-25  Bruno Haible  <bruno@clisp.org>
32065         msvc-inval: Install handler globally.
32066         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
32067         !_MSC_VER.
32068         (gl_msvc_invalid_parameter_handler): Remove declaration.
32069         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
32070         declarations.
32071         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
32072         Install the handler globally, don't uninstall it.
32073         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
32074         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
32075         currently valid, call RaiseException instead.
32076         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
32077         for !_MSC_VER.
32079 2011-09-25  Bruno Haible  <bruno@clisp.org>
32081         strerror_r-posix: Fix for MSVC 9.
32082         * lib/strerror_r.c (local_snprintf): New function.
32083         (snprintf): Define to local_snprintf, not to _snprintf.
32085 2011-09-25  Bruno Haible  <bruno@clisp.org>
32087         ftruncate: Support for MSVC 9.
32088         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
32089         (chsize_nothrow): New function.
32090         (chsize): Redefine as a macro.
32091         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
32092         * modules/ftruncate (Depends-on): Add msvc-inval.
32094 2011-09-25  Bruno Haible  <bruno@clisp.org>
32096         New module 'fstat'.
32097         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
32098         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
32099         * lib/fchdir.c (rpl_fstat): Remove function.
32100         * m4/fstat.m4: New file.
32101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
32102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
32103         declared.
32104         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
32105         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
32106         * modules/fstat: New file.
32107         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
32108         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
32109         is set.
32110         * doc/posix-functions/fstat.texi: Mention the new module and the
32111         problem on MSVC.
32112         * NEWS: Mention the change.
32113         * modules/acl (Depends-on): Add fstat.
32114         * modules/chdir-safer (Depends-on): Likewise.
32115         * modules/chown (Depends-on): Likewise.
32116         * modules/copy-file (Depends-on): Likewise.
32117         * modules/fchdir (Depends-on): Likewise.
32118         * modules/fdopendir (Depends-on): Likewise.
32119         * modules/fopen (Depends-on): Likewise.
32120         * modules/fts (Depends-on): Likewise.
32121         * modules/getcwd (Depends-on): Likewise.
32122         * modules/isapipe (Depends-on): Likewise.
32123         * modules/linkat (Depends-on): Likewise.
32124         * modules/lseek (Depends-on): Likewise.
32125         * modules/mkdir-p (Depends-on): Likewise.
32126         * modules/open (Depends-on): Likewise.
32127         * modules/openat (Depends-on): Likewise.
32128         * modules/read-file (Depends-on): Likewise.
32129         * modules/renameat (Depends-on): Likewise.
32130         * modules/utimens (Depends-on): Likewise.
32132 2011-09-25  Bruno Haible  <bruno@clisp.org>
32134         linkat: Fix compilation on MSVC 9.
32135         * lib/linkat.c: Don't include <stdint.h>.
32137 2011-09-25  Bruno Haible  <bruno@clisp.org>
32139         fclose: Support for MSVC 9.
32140         * lib/fclose.c: Include msvc-inval.h.
32141         (fclose_nothrow): New function.
32142         (rpl_fclose): Use it.
32143         * modules/fclose (Depends-on): Add msvc-inval.
32144         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
32146 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
32148         dup2: minor simplifications
32149         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
32150         that it's a performance win.
32151         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
32152         ! defined __CYGWIN__)" to "ifdef F_GETFL".
32154 2011-09-24  Jim Meyering  <meyering@redhat.com>
32156         test-futimens: avoid a warning from gcc -Wshadow
32157         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
32158         to avoid a shadowing warning.
32160 2011-09-24  Bruno Haible  <bruno@clisp.org>
32162         fdopen: Support for MSVC 9.
32163         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
32164         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
32165         * lib/fdopen.c: Include msvc-inval.h.
32166         (fdopen_nothrow): New function.
32167         (rpl_fdopen): Use it.
32168         * modules/fdopen (Depends-on): Add msvc-inval.
32169         * modules/fclose-tests (Depends-on): Add fdopen.
32170         * modules/fflush-tests (Depends-on): Likewise.
32171         * modules/fgetc-tests (Depends-on): Likewise.
32172         * modules/fputc-tests (Depends-on): Likewise.
32173         * modules/fread-tests (Depends-on): Likewise.
32174         * modules/freopen-tests (Depends-on): Likewise.
32175         * modules/fseeko-tests (Depends-on): Likewise.
32176         * modules/ftello-tests (Depends-on): Likewise.
32177         * modules/fwrite-tests  (Depends-on): Likewise.
32178         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
32180 2011-09-24  Bruno Haible  <bruno@clisp.org>
32182         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
32183         * modules/fgetc-tests (Depends-on): Add unistd.
32184         * modules/fputc-tests (Depends-on): Likewise.
32185         * modules/fread-tests (Depends-on): Likewise.
32186         * modules/fwrite-tests (Depends-on): Likewise.
32188 2011-09-24  Bruno Haible  <bruno@clisp.org>
32190         dup: Simplify autoconf test.
32191         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
32192         on gl_MSVC_INVAL's result.
32194 2011-09-24  Bruno Haible  <bruno@clisp.org>
32196         Tests for function fwrite().
32197         * modules/fwrite-tests: New file.
32198         * tests/test-fwrite.c: New file.
32199         * modules/stdio-tests (Depends-on): Add fwrite-tests.
32201         Tests for function fread().
32202         * modules/fread-tests: New file.
32203         * tests/test-fread.c: New file.
32204         * modules/stdio-tests (Depends-on): Add fread-tests.
32206         Activate fputc tests.
32207         * modules/stdio-tests (Depends-on): Add fputc-tests.
32209         Enhance fgetc, fputc tests.
32210         * tests/test-fgetc.c (main): Also test the stream's error indicator.
32211         * tests/test-fputc.c (main): Likewise.
32213 2011-09-24  Bruno Haible  <bruno@clisp.org>
32215         write: Support for MSVC 9.
32216         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32217         is not 1.
32218         * lib/write.c (write_nothrow): New function.
32219         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
32220         not 1. Use write_nothrow.
32221         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
32222         invalid parameter handler.
32223         (gl_PREREQ_WRITE): New macro.
32224         * modules/write (Depends-on): Add msvc-inval.
32225         (configure.ac): Invoke gl_PREREQ_WRITE.
32226         * doc/posix-functions/write.texi: Mention the problem on MSVC.
32228 2011-09-24  Bruno Haible  <bruno@clisp.org>
32230         read: Fix last commit.
32231         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
32233 2011-09-24  Bruno Haible  <bruno@clisp.org>
32235         dup2: Fix last commit.
32236         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
32237         (rpl_dup2): Disable fcntl workaround on native Windows.
32239         sigprocmask: Make code safer.
32240         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
32241         section that changes macro definitions for this compilation unit.
32243 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
32245         dup2: clarify by coalescing Windows-specific material
32246         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
32247         "msvc-nothrow.h"' to the Windows-specific section, so that the
32248         Emacs source need not contain these include files.
32249         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
32250         Windows-specific fixes into this function rather than just the
32251         nothrow fix, as this shortens and clarifies the code.  Always
32252         define as a function, as that's a bit cleaner than having it be
32253         sometimes a function and sometimes a macro.
32254         (rpl_dup2): Move the Windows-specific stuff out of here and into
32255         ms_windows_dup2.  Don't protect the Haiku-related fix with
32256         "#if !defined __linux__", as the same code also works around
32257         a Linux kernel bug, and it doesn't add any system calls on any
32258         platform.  Add comment about FreeBSD 6.1.
32260         sigprocmask: move #include directive
32261         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
32262         Windows-specific section, so that the Emacs source need not
32263         contain msvc-inval.h.
32265 2011-09-23  Bruno Haible  <bruno@clisp.org>
32267         read: Support for MSVC 9.
32268         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
32269         is not 1.
32270         * lib/read.c (read_nothrow): New function.
32271         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
32272         read_nothrow.
32273         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
32274         invalid parameter handler.
32275         (gl_PREREQ_READ): New macro.
32276         * modules/read (Depends-on): Add msvc-inval.
32277         (configure.ac): Invoke gl_PREREQ_READ.
32278         * doc/posix-functions/read.texi: Mention the problem on MSVC.
32280 2011-09-23  Bruno Haible  <bruno@clisp.org>
32282         close: Support for MSVC 9.
32283         * lib/close.c: Include <errno.h>, msvc-inval.h.
32284         (close_nothrow): New function.
32285         (rpl_close): Use it.
32286         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
32287         invalid parameter handler.
32288         * modules/close (Depends-on): Add msvc-inval.
32289         * modules/dup2-tests (Depends-on): Add close.
32290         * modules/dup3-tests (Depends-on): Likewise.
32291         * modules/fcntl-tests (Depends-on): Likewise.
32292         * modules/spawn-pipe-tests (Depends-on): Likewise.
32293         * modules/unistd-safer-tests (Depends-on): Likewise.
32294         * doc/posix-functions/close.texi: Mention the problem on MSVC.
32296 2011-09-23  Bruno Haible  <bruno@clisp.org>
32298         New module 'dup'.
32299         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
32300         Allow replacement.
32301         * lib/dup.c: New file.
32302         * lib/fchdir.c (rpl_dup): Remove function.
32303         * m4/dup.m4: New file.
32304         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
32305         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
32306         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
32307         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
32308         * modules/dup: New file.
32309         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
32310         'dup' module is in use.
32311         * modules/fdopendir (Depends-on): Add dup.
32312         * modules/fdutimensat-tests (Depends-on): Likewise.
32313         * modules/fts (Depends-on): Likewise.
32314         * modules/futimens-tests (Depends-on): Likewise.
32315         * modules/posix_spawnp-tests (Depends-on): Likewise.
32316         * modules/unistd-safer-tests (Depends-on): Likewise.
32317         * modules/utimens-tests (Depends-on): Likewise.
32318         * doc/posix-functions/dup.texi: Mention the new module and the problem
32319         on MSVC.
32321 2011-09-23  Bruno Haible  <bruno@clisp.org>
32323         getdtablesize: Support for MSVC 9.
32324         * lib/getdtablesize.c: Include msvc-inval.h.
32325         (_setmaxstdio_nothrow): New function.
32326         (_setmaxstdio): Redefine it.
32327         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
32328         * modules/getdtablesize (Depends-on): Add msvc-inval.
32329         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
32331 2011-09-23  Bruno Haible  <bruno@clisp.org>
32333         signal-h: Rename from signal.
32334         * modules/signal-h: Renamed from modules/signal.
32335         * modules/pthread_sigmask (Depends-on): Update.
32336         * modules/raise (Depends-on): Likewise.
32337         * modules/sigaction (Depends-on): Likewise.
32338         * modules/sigpipe (Depends-on): Likewise.
32339         * modules/sigprocmask (Depends-on): Likewise.
32340         * modules/sys_select (Depends-on): Likewise.
32341         * modules/signal-h-tests: Renamed from modules/signal-tests.
32342         (Files, Depends-on, Makefile.am): Update.
32343         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
32344         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
32345         (Files, Makefile.am): Update.
32346         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
32347         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
32348         * modules/signal: New placeholder file.
32349         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
32350         * doc/posix-headers/signal.texi: Update.
32351         * NEWS: Mention the change.
32353 2011-09-23  Bruno Haible  <bruno@clisp.org>
32355         sigprocmask: Avoid crashes through signal() on MSVC 9.
32356         * lib/sigprocmask.c: Include msvc-inval.h.
32357         (signal_nothrow): New function.
32358         (signal): Redefine it.
32359         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
32360         * modules/sigprocmask (Depends-on): Add msvc-inval.
32361         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
32363 2011-09-23  Bruno Haible  <bruno@clisp.org>
32365         Tests for module 'raise'.
32366         * modules/raise-tests: New file.
32367         * tests/test-raise.c: New file.
32369         raise: Support for MSVC.
32370         * lib/signal.in.h (raise): New declaration.
32371         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
32372         for native Windows platforms.
32373         * m4/raise.m4: New file.
32374         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
32375         HAVE_RAISE, REPLACE_RAISE.
32376         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
32377         REPLACE_RAISE.
32378         * modules/raise (Status, Notice): Remove fields.
32379         (Files): Add m4/raise.m4.
32380         (Depends-on): Add signal, msvc-inval.
32381         (configure.ac): Use the common idioms.
32382         (Maintainer): Add me.
32383         * tests/test-signal-c++.cc: Check the signature of raise.
32384         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
32386 2011-09-23  Bruno Haible  <bruno@clisp.org>
32388         pipe2: Fix compilation on pre-C99 compilers.
32389         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
32391 2011-09-23  Bruno Haible  <bruno@clisp.org>
32393         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
32394         * lib/msvc-nothrow.h: New file.
32395         * lib/msvc-nothrow.c: New file.
32396         * m4/msvc-nothrow.m4: New file.
32397         * modules/msvc-nothrow: New file.
32398         * lib/dup2.c: Include msvc-nothrow.h.
32399         (rpl_dup2): No need to protect _get_osfhandle call here.
32400         * lib/accept4.c: Include msvc-nothrow.h.
32401         * lib/error.c: Likewise.
32402         * lib/fcntl.c: Likewise.
32403         * lib/lseek.c: Likewise.
32404         * lib/nonblocking.c: Likewise.
32405         * lib/poll.c: Likewise.
32406         * lib/read.c: Likewise.
32407         * lib/select.c: Likewise.
32408         * lib/sockets.h: Likewise.
32409         * lib/sockets.c: Likewise.
32410         * lib/stdio-read.c: Likewise.
32411         * lib/stdio-write.c: Likewise.
32412         * lib/write.c: Likewise.
32413         * lib/w32sock.h: Likewise.
32414         * lib/w32spawn.h: Likewise.
32415         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
32416         * lib/fsync.c: Likewise.
32417         * lib/isapipe.c: Likewise.
32418         * modules/dup2 (Depends-on): Add msvc-nothrow.
32419         * modules/accept4 (Depends-on): Likewise.
32420         * modules/error (Depends-on): Likewise.
32421         * modules/fcntl (Depends-on): Likewise.
32422         * modules/lseek (Depends-on): Likewise.
32423         * modules/nonblocking (Depends-on): Likewise.
32424         * modules/poll (Depends-on): Likewise.
32425         * modules/read (Depends-on): Likewise.
32426         * modules/select (Depends-on): Likewise.
32427         * modules/sockets (Depends-on): Likewise.
32428         * modules/sigpipe (Depends-on): Likewise.
32429         * modules/write (Depends-on): Likewise.
32430         * modules/accept (Depends-on): Likewise.
32431         * modules/bind (Depends-on): Likewise.
32432         * modules/connect (Depends-on): Likewise.
32433         * modules/gethostname (Depends-on): Likewise.
32434         * modules/getpeername (Depends-on): Likewise.
32435         * modules/getsockname (Depends-on): Likewise.
32436         * modules/getsockopt (Depends-on): Likewise.
32437         * modules/ioctl (Depends-on): Likewise.
32438         * modules/listen (Depends-on): Likewise.
32439         * modules/recv (Depends-on): Likewise.
32440         * modules/recvfrom (Depends-on): Likewise.
32441         * modules/send (Depends-on): Likewise.
32442         * modules/sendto (Depends-on): Likewise.
32443         * modules/setsockopt (Depends-on): Likewise.
32444         * modules/shutdown (Depends-on): Likewise.
32445         * modules/socket (Depends-on): Likewise.
32446         * modules/execute (Depends-on): Likewise.
32447         * modules/spawn-pipe (Depends-on): Likewise.
32448         * modules/flock (Depends-on): Likewise.
32449         * modules/fsync (Depends-on): Likewise.
32450         * modules/isapipe (Depends-on): Likewise.
32451         * tests/test-cloexec.c: Include msvc-nothrow.h.
32452         * tests/test-dup-safer.c: Likewise.
32453         * tests/test-dup2.c: Likewise.
32454         * tests/test-dup3.c: Likewise.
32455         * tests/test-fcntl.c: Likewise.
32456         * tests/test-pipe.c: Likewise.
32457         * tests/test-pipe2.c: Likewise.
32458         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
32459         * modules/unistd-safer-tests (Depends-on): Likewise.
32460         * modules/dup2-tests (Depends-on): Likewise.
32461         * modules/dup3-tests (Depends-on): Likewise.
32462         * modules/fcntl-tests (Depends-on): Likewise.
32463         * modules/pipe-posix-tests (Depends-on): Likewise.
32464         * modules/pipe2-tests (Depends-on): Likewise.
32466 2011-09-23  Bruno Haible  <bruno@clisp.org>
32468         dup2: Make code more maintainable.
32469         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
32470         (rpl_dup2): Use it.
32471         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
32472         * modules/dup2 (configure.ac): Invoke it.
32473         Reported by Paul Eggert.
32475 2011-09-23  Bruno Haible  <bruno@clisp.org>
32477         msvc-inval: Fix compilation error.
32478         * lib/msvc-inval.h: Include <excpt.h>.
32480 2011-09-23  Bruno Haible  <bruno@clisp.org>
32482         mkdir: Tweak for MSVC 9.
32483         * lib/sys_stat.in.h: Update comments.
32484         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
32486         Tests for module 'chdir'.
32487         * modules/chdir-tests: New file.
32488         * tests/test-chdir.c: New file.
32490         New module 'chdir'.
32491         * modules/chdir: New file.
32492         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
32493         (chdir): New declaration.
32494         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
32495         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
32496         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
32497         * tests/test-unistd-c++.cc: Check signature of chdir.
32498         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
32499         * modules/chdir-long (Depends-on): Add chdir.
32500         * modules/fchdir (Depends-on): Likewise.
32501         * modules/rename (Depends-on): Likewise.
32502         * modules/savewd (Depends-on): Likewise.
32504         rmdir: Support for mingw, MSVC 9.
32505         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
32506         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
32508         getcwd: Tweak for MSVC 9.
32509         * lib/unistd.in.h: Update comments.
32510         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
32512 2011-09-22  Bruno Haible  <bruno@clisp.org>
32514         strerror_r-posix: Avoid a link error on MSVC.
32515         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
32516         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
32518 2011-09-22  Bruno Haible  <bruno@clisp.org>
32520         select: Avoid link errors on MSVC.
32521         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
32522         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
32523         * modules/pselect (Link): Likewise.
32524         * NEWS: Mention the change.
32525         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
32526         test-select-stdin against $(LIB_SELECT).
32527         * modules/pselect-tests (Makefile.am): Link test-pselect against
32528         $(LIB_SELECT).
32530 2011-09-22  Bruno Haible  <bruno@clisp.org>
32532         select: Avoid compilation error on MSVC.
32533         * lib/select.c: Don't include <stdbool.h>.
32535 2011-09-21  Bruno Haible  <bruno@clisp.org>
32537         Consolidate all uses of PATH_MAX in *.m4 files.
32538         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
32539         macros.
32540         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
32541         and gl_PATHMAX_SNIPPET.
32542         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
32543         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
32544         * modules/chdir-long (Files): Add m4/pathmax.m4.
32545         * modules/getcwd (Files): Likewise.
32547 2011-09-21  Bruno Haible  <bruno@clisp.org>
32549         ftruncate: Un-deprecate, concentrate on Win32 support.
32550         * modules/ftruncate (Status, Notice): Remove sections.
32551         (Depends-on): Add largefile.
32552         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
32553         non-mingw platforms.
32554         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
32555         include <io.h>.
32556         * modules/perror-tests (Depends-on): Add ftruncate.
32557         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
32558         'ftruncate' module.
32560 2011-09-21  Bruno Haible  <bruno@clisp.org>
32562         Add dependencies to new dirent related modules.
32563         * modules/opendir (Depends-on): Add closedir.
32564         * modules/getcwd (Depends-on): Add opendir, closedir.
32565         * modules/dirent-safer-tests (Depends-on): Likewise.
32566         * modules/fdopendir-tests (Depends-on): Likewise.
32567         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
32568         * modules/renameat-tests (Depends-on): Likewise.
32570 2011-09-21  Bruno Haible  <bruno@clisp.org>
32572         opendir: Avoid compilation error on mingw.
32573         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
32574         * modules/opendir (Depends-on): Add unistd.
32576 2011-09-21  Bruno Haible  <bruno@clisp.org>
32578         ftruncate tests: Avoid a test failure on mingw.
32579         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
32581 2011-09-21  Bruno Haible  <bruno@clisp.org>
32583         select tests: Avoid test failures on OSF/1 5.1 and mingw.
32584         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
32585         native Windows.
32587 2011-09-21  Bruno Haible  <bruno@clisp.org>
32589         New module 'fdopen'.
32590         * lib/stdio.in.h (fdopen): New declaration.
32591         * lib/fdopen.c: New file.
32592         * m4/fdopen.m4: New file.
32593         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
32594         REPLACE_FDOPEN.
32595         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
32596         REPLACE_FDOPEN.
32597         * modules/fdopen: New file.
32598         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
32599         * tests/test-stdio-c++.cc: Check signature of fdopen.
32600         * doc/posix-functions/fdopen.texi: Mention the new module.
32602 2011-09-21  Bruno Haible  <bruno@clisp.org>
32604         unlockpt tests: Avoid test failure on NetBSD 5.1.
32605         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
32606         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
32608 2011-09-21  Bruno Haible  <bruno@clisp.org>
32610         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
32611         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
32612         * tests/test-getlogin_r.c (main): Likewise.
32614 2011-09-20  Bruno Haible  <bruno@clisp.org>
32616         time tests: Don't require pid_t.
32617         * doc/posix-headers/time.texi: Revert last change.
32618         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
32619         * tests/test-time.c: Comment out the check for pid_t.
32621 2011-09-20  Bruno Haible  <bruno@clisp.org>
32623         fsync tests: Avoid a test failure on mingw.
32624         * tests/test-fsync.c (main): Allow a failure with EIO.
32626 2011-09-20  Bruno Haible  <bruno@clisp.org>
32628         euidaccess: Update comments.
32629         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
32631 2011-09-20  Bruno Haible  <bruno@clisp.org>
32633         Ensure EBADF returns for socket functions on mingw.
32634         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
32635         descriptor is invalid.
32636         * lib/bind.c (rpl_bind): Likewise.
32637         * lib/connect.c (rpl_connect): Likewise.
32638         * lib/getpeername.c (rpl_getpeername): Likewise.
32639         * lib/getsockname.c (rpl_getsockname): Likewise.
32640         * lib/getsockopt.c (rpl_getsockopt): Likewise.
32641         * lib/listen.c (rpl_listen): Likewise.
32642         * lib/recv.c (rpl_recv): Likewise.
32643         * lib/recvfrom.c (rpl_recvfrom): Likewise.
32644         * lib/send.c (rpl_send): Likewise.
32645         * lib/sendto.c (rpl_sendto): Likewise.
32646         * lib/setsockopt.c (rpl_setsockopt): Likewise.
32647         * lib/shutdown.c (rpl_shutdown): Likewise.
32649 2011-09-20  Bruno Haible  <bruno@clisp.org>
32651         select tests: EBADF tests.
32652         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
32653         test_bad_fd): New functions.
32654         (test_function): Invoke also test_bad_fd.
32656 2011-09-20  Bruno Haible  <bruno@clisp.org>
32658         Tests for module 'posix_spawn_file_actions_addopen.
32659         * modules/posix_spawn_file_actions_addopen-tests: New file.
32660         * tests/test-posix_spawn_file_actions_addopen.c: New file.
32662         Tests for module 'posix_spawn_file_actions_adddup2'.
32663         * modules/posix_spawn_file_actions_adddup2-tests: New file.
32664         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
32666         Tests for module 'posix_spawn_file_actions_addclose'.
32667         * modules/posix_spawn_file_actions_addclose-tests: New file.
32668         * tests/test-posix_spawn_file_actions_addclose.c: New file.
32670 2011-09-20  Bruno Haible  <bruno@clisp.org>
32672         Tests for module 'unlockpt'.
32673         * modules/unlockpt-tests: New file.
32674         * tests/test-unlockpt.c: New file.
32675         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
32677         Tests for module 'grantpt'.
32678         * modules/grantpt-tests: New file.
32679         * tests/test-grantpt.c: New file.
32680         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
32682 2011-09-20  Bruno Haible  <bruno@clisp.org>
32684         freopen tests: EBADF tests.
32685         * tests/test-freopen.c: Include errno.h, unistd.h.
32686         (main): Add tests for EBADF, commented out for the moment.
32688         fclose tests: EBADF tests.
32689         * tests/test-fclose.c (main): Add tests for EBADF.
32691         fflush tests: EBADF tests.
32692         * tests/test-fflush.c: Include errno.h, macros.h.
32693         (main): Add tests for EBADF.
32695         ftello tests: EBADF tests.
32696         * tests/test-ftello4.sh: New file.
32697         * tests/test-ftello4.c: New file.
32698         * modules/ftello-tests (Files): Add them.
32699         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
32701         fseeko tests: EBADF tests.
32702         * tests/test-fseeko4.sh: New file.
32703         * tests/test-fseeko4.c: New file.
32704         * modules/fseeko-tests (Files): Add them.
32705         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
32707         Tests for function fputc().
32708         * modules/fputc-tests: New file.
32709         * tests/test-fputc.c: New file.
32710         * modules/stdio-tests (Depends-on): Add fputc-tests.
32712         Tests for function fgetc().
32713         * modules/fgetc-tests: New file.
32714         * tests/test-fgetc.c: New file.
32715         * modules/stdio-tests (Depends-on): Add fgetc-tests.
32717         Tests for function fdopen().
32718         * modules/fdopen-tests: New file.
32719         * tests/test-fdopen.c: New file.
32720         * modules/stdio-tests (Depends-on): Add fdopen-tests.
32722         Tests for module 'vdprintf'.
32723         * modules/vdprintf-tests: New file.
32724         * tests/test-vdprintf.c: New file.
32726         Tests for module 'dprintf'.
32727         * modules/dprintf-tests: New file.
32728         * tests/test-dprintf.c: New file.
32730 2011-09-20  Bruno Haible  <bruno@clisp.org>
32732         Tests for module 'ioctl'.
32733         * modules/ioctl-tests: New file.
32734         * tests/test-ioctl.c: New file.
32736 2011-09-20  Bruno Haible  <bruno@clisp.org>
32738         fcntl tests: EBADF tests.
32739         * tests/test-fcntl.c (main): Add more tests for EBADF.
32741 2011-09-20  Bruno Haible  <bruno@clisp.org>
32743         utimensat tests: EBADF tests.
32744         * tests/test-utimensat.c (main): Add tests for EBADF.
32746         renameat tests: EBADF tests.
32747         * tests/test-renameat.c (main): Add tests for EBADF.
32749         mkfifoat tests: EBADF tests.
32750         * tests/test-mkfifoat.c (main): Add tests for EBADF.
32752         readlinkat tests: EBADF tests.
32753         * tests/test-readlinkat.c (main): Add tests for EBADF.
32755         symlinkat tests: EBADF tests.
32756         * tests/test-symlinkat.c (main): Add tests for EBADF.
32758         linkat tests: EBADF tests.
32759         * tests/test-linkat.c (main): Add tests for EBADF.
32761         Tests for module 'faccessat'.
32762         * modules/faccessat-tests: New file.
32763         * tests/test-faccessat.c: New file.
32765         fdopendir tests: EBADF tests.
32766         * tests/test-fdopendir.c (main): Add more tests for EBADF.
32768         openat tests: EBADF tests.
32769         * tests/test-fchownat.c (main): Add tests for EBADF.
32770         * tests/test-fstatat.c (main): Likewise.
32771         * tests/test-mkdirat.c (main): Likewise.
32772         * tests/test-openat.c (main): Likewise.
32773         * tests/test-unlinkat.c (main): Likewise.
32774         * tests/test-fchmodat.c: New file.
32775         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
32776         (Makefile.am): Also run 'test-fchmodat'.
32778 2011-09-20  Bruno Haible  <bruno@clisp.org>
32780         utimens, futimens, fdutimensat tests: EBADF tests.
32781         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
32783         Tests for function fstat().
32784         * modules/fstat-tests: New file.
32785         * tests/test-fstat.c: New file.
32786         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
32788 2011-09-20  Bruno Haible  <bruno@clisp.org>
32790         test-ttyname_r tests: EBADF tests.
32791         * tests/test-ttyname_r.c (main): Add tests for EBADF.
32793         Tests for module 'isatty'.
32794         * modules/isatty-tests: New file.
32795         * tests/test-isatty.c: New file.
32797         Tests for module 'write'.
32798         * modules/write-tests: New file.
32799         * tests/test-write.c: New file.
32801         Tests for module 'read'.
32802         * modules/read-tests: New file.
32803         * tests/test-read.c: New file.
32805         pwrite tests: EBADF tests.
32806         * tests/test-pwrite.c (main): Add tests for EBADF.
32808         pread tests: EBADF tests.
32809         * tests/test-pread.c (main): Add tests for EBADF.
32811         lseek tests: EBADF tests.
32812         * tests/test-lseek.c (main): Add more tests for EBADF.
32814         Tests for module 'ftruncate'.
32815         * modules/ftruncate-tests: New file.
32816         * tests/test-ftruncate.sh: New file.
32817         * tests/test-ftruncate.c: New file.
32819         fsync tests: EBADF tests.
32820         * tests/test-fsync.c (main): Add more tests for EBADF.
32822         fdatasync tests: EBADF tests.
32823         * tests/test-fdatasync.c (main): Add more tests for EBADF.
32825         Tests for module 'fchown'.
32826         * modules/fchown-tests: New file.
32827         * tests/test-fchown.c: New file.
32829         Tests for module 'fchmod'.
32830         * modules/fchmod-tests: New file.
32831         * tests/test-fchmod.c: New file.
32833         fchdir tests: EBADF tests.
32834         * tests/test-fchdir.c (main): Add more tests for EBADF.
32836         dup2 tests: EBADF tests.
32837         * tests/test-dup2.c (main): Add more tests for EBADF.
32839         Tests for module 'dup'.
32840         * modules/dup-tests: New file.
32841         * tests/test-dup.c: New file.
32843         Tests for module 'close'.
32844         * modules/close-tests: New file.
32845         * tests/test-close.c: New file.
32847 2011-09-20  Bruno Haible  <bruno@clisp.org>
32849         Tests for module 'shutdown'.
32850         * modules/shutdown-tests: New file.
32851         * tests/test-shutdown.c: New file.
32853         Tests for module 'setsockopt'.
32854         * modules/setsockopt-tests: New file.
32855         * tests/test-setsockopt.c: New file.
32857         Tests for module 'sendto'.
32858         * modules/sendto-tests: New file.
32859         * tests/test-sendto.c: New file.
32861         Tests for module 'send'.
32862         * modules/send-tests: New file.
32863         * tests/test-send.c: New file.
32865         Tests for module 'recvfrom'.
32866         * modules/recvfrom-tests: New file.
32867         * tests/test-recvfrom.c: New file.
32869         Tests for module 'recv'.
32870         * modules/recv-tests: New file.
32871         * tests/test-recv.c: New file.
32873         Tests for module 'listen'.
32874         * modules/listen-tests: New file.
32875         * tests/test-listen.c: New file.
32877         Tests for module 'getsockopt'.
32878         * modules/getsockopt-tests: New file.
32879         * tests/test-getsockopt.c: New file.
32881         Tests for module 'getsockname'.
32882         * modules/getsockname-tests: New file.
32883         * tests/test-getsockname.c: New file.
32885         Tests for module 'getpeername'.
32886         * modules/getpeername-tests: New file.
32887         * tests/test-getpeername.c: New file.
32889         Tests for module 'connect'.
32890         * modules/connect-tests: New file.
32891         * tests/test-connect.c: New file.
32893         Tests for module 'bind'.
32894         * modules/bind-tests: New file.
32895         * tests/test-bind.c: New file.
32897         accept4 tests: Fix for native Windows.
32898         * tests/test-accept4.c: Include sockets.h.
32899         (main): Invoke gl_sockets_startup.
32900         * modules/accept4-tests (Depends-on): Add sockets.
32902         accept tests: Fix for native Windows.
32903         * tests/test-accept.c: Include sockets.h.
32904         (main): Invoke gl_sockets_startup.
32905         * modules/accept-tests (Depends-on): Add sockets.
32907 2011-09-19  Bruno Haible  <bruno@clisp.org>
32909         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
32910         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
32911         do...while(0).
32912         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
32913         Suggested by Paul Eggert.
32915 2011-09-19  Bruno Haible  <bruno@clisp.org>
32917         sched: Ensure pid_t is defined.
32918         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
32919         not define pid_t.
32920         * lib/sched.in.h: Include <sys/types.h>.
32921         * doc/posix-headers/sched.texi: Mention the pid_t problem.
32922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32924 2011-09-19  Bruno Haible  <bruno@clisp.org>
32926         msvc-inval: Ensure the entire expansion is a single statement.
32927         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
32928         of braces.
32930 2011-09-19  Jim Meyering  <meyering@redhat.com>
32932         tests: use printf, not echo in init.sh's warn_ function
32933         * tests/init.sh (warn_): Use printf, not echo.  The latter would
32934         misbehave when given strings containing a backslash or starting
32935         with e.g., -n.  James Youngman suggested setting IFS.
32937 2011-09-19  Eric Blake  <eblake@redhat.com>
32939         futimens: enhance test
32940         * tests/test-futimens.h (test_futimens): Also check for EBADF on
32941         closed non-negative fd.
32943         date: accept 'hence' as opposite of 'ago'
32944         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
32945         * tests/test-parse-datetime.c (main): Enhance test.
32946         Suggested by Jesse Wilson.
32948 2011-09-19  Jim Meyering  <meyering@redhat.com>
32950         getcwd: don't fail in a deep directory on a system without openat
32951         Before this change, getcwd would fail when called from a directory
32952         of depth PATH_MAX / 3 or greater.  That was due to the fact that
32953         the non-openat implementation used "..", "../..", "../../..", etc.
32954         to access ancestor directories.  With too many, that string would
32955         be longer than PATH_MAX.
32956         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
32957         using gnulib's openat replacement.
32958         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
32959         we're using the replacement function.
32961 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
32963         maint.mk: avoid warnings from perl about missing files
32964         * top/maint.mk (def_sym_regex): Ignore files listed in
32965         $(gl_other_headers_) that do not exist, say because a project
32966         does not use a corresponding module.
32968 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32970         stat: use pathmax.h only if needed
32971         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
32972         This is better for Emacs, which does not have a mingw port and
32973         therefore can avoid the pathmax module.
32975         utimens: remove dependency on dup2
32976         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
32977         to work around the Linux kernel bug.
32978         * modules/utimens (Depends-on): Remove dup2.
32980 2011-09-18  Bruno Haible  <bruno@clisp.org>
32982         inet_ntop, inet_pton: Look for it also in libresolv.
32983         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
32984         libnsl, search for it in libresolv.
32985         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
32986         Needed on Solaris 7.
32988 2011-09-18  Bruno Haible  <bruno@clisp.org>
32990         accept, accept4 tests: Avoid link error on Solaris.
32991         * modules/accept-tests (Makefile.am): Link test-accept against
32992         $(LIBSOCKET).
32993         * modules/accept4-tests (Makefile.am): Link test-accept4 against
32994         $(LIBSOCKET).
32996         accept4: Avoid link error on Solaris.
32997         * modules/accept4 (Link): New section.
32999         socket functions: Avoid link errors on Solaris.
33000         * modules/accept (Depends-on): Add socketlib.
33001         (Link): New section.
33002         * modules/bind (Depends-on): Add socketlib.
33003         (Link): New section.
33004         * modules/connect (Depends-on): Add socketlib.
33005         (Link): New section.
33006         * modules/getpeername (Depends-on): Add socketlib.
33007         (Link): New section.
33008         * modules/getsockname (Depends-on): Add socketlib.
33009         (Link): New section.
33010         * modules/getsockopt (Depends-on): Add socketlib.
33011         (Link): New section.
33012         * modules/listen (Depends-on): Add socketlib.
33013         (Link): New section.
33014         * modules/recv (Depends-on): Add socketlib.
33015         (Link): New section.
33016         * modules/recvfrom (Depends-on): Add socketlib.
33017         (Link): New section.
33018         * modules/send (Depends-on): Add socketlib.
33019         (Link): New section.
33020         * modules/sendto (Depends-on): Add socketlib.
33021         (Link): New section.
33022         * modules/setsockopt (Depends-on): Add socketlib.
33023         (Link): New section.
33024         * modules/shutdown (Depends-on): Add socketlib.
33025         (Link): New section.
33026         * modules/socket (Depends-on): Add socketlib.
33027         (Link): New section.
33029 2011-09-18  Bruno Haible  <bruno@clisp.org>
33031         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
33032         * tests/test-ptsname.c (main): Terminate the test if it takes longer
33033         than 5 seconds.
33034         * modules/ptsname-tests (configure.ac): Test for alarm.
33036 2011-09-18  Bruno Haible  <bruno@clisp.org>
33038         posix_spawn_file_actions_add*: Fix module dependencies.
33039         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
33040         posix_spawn_file_actions_init.
33041         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
33042         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
33044 2011-09-18  Bruno Haible  <bruno@clisp.org>
33046         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
33047         * tests/test-rename.h (test_rename): Allow error code EEXIST.
33048         * tests/test-renameat.c (main): Likewise.
33050 2011-09-18  Bruno Haible  <bruno@clisp.org>
33052         Tests for module 'accept4'.
33053         * modules/accept4-tests: New file.
33054         * tests/test-accept4.c: New file.
33056 2011-09-18  Bruno Haible  <bruno@clisp.org>
33058         Tests for module 'accept'.
33059         * modules/accept-tests: New file.
33060         * tests/test-accept.c: New file.
33062 2011-09-18  Bruno Haible  <bruno@clisp.org>
33064         dup2: Support for MSVC.
33065         * lib/dup2.c: Include msvc-inval.h.
33066         (rpl_dup2): Handle invalid parameter notifications during dup2 and
33067         _get_osfhandle calls.
33068         * modules/dup2 (Depends-on): Add msvc-inval.
33069         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
33071         New module 'msvc-inval'.
33072         * lib/msvc-inval.h: New file.
33073         * lib/msvc-inval.c: New file.
33074         * m4/msvc-inval.m4: New file.
33075         * modules/msvc-inval: New file.
33077 2011-09-17  Bruno Haible  <bruno@clisp.org>
33079         Tests for module 'pclose'.
33080         * modules/pclose-tests: New file.
33082         New module 'pclose'.
33083         * lib/stdio.in.h (pclose): New declaration.
33084         * lib/pclose.c: New file.
33085         * m4/pclose.m4: New file.
33086         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
33087         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
33088         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
33089         * modules/pclose: New file.
33090         * modules/popen-tests (Depends-on): Add pclose.
33091         * modules/popen-safer-tests (Depends-on): Likewise.
33092         * doc/posix-functions/pclose.texi: Mention the new module.
33094 2011-09-17  Bruno Haible  <bruno@clisp.org>
33096         popen: Support for MSVC.
33097         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
33098         * lib/popen.c (popen): Provide alternate definition for native Windows.
33099         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
33100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
33101         * modules/popen (Depends-on, configure.ac): Update condition.
33102         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
33103         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
33104         fixed.
33106 2011-09-17  Bruno Haible  <bruno@clisp.org>
33108         isnanl, isnand, isnanf: Work around MSVC bug.
33109         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
33111 2011-09-17  Bruno Haible  <bruno@clisp.org>
33113         sys_socket tests: Fix recent mistake.
33114         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
33116 2011-09-17  Bruno Haible  <bruno@clisp.org>
33118         putenv: Support for MSVC.
33119         * modules/putenv (Depends-on): Add environ.
33120         * lib/putenv.c (environ): Disable declaration.
33121         * lib/unistd.in.h: Update comment.
33123 2011-09-17  Bruno Haible  <bruno@clisp.org>
33125         math: Avoid macro redefinition warnings on MSVC.
33126         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
33127         Undefine before redefining.
33129 2011-09-17  Bruno Haible  <bruno@clisp.org>
33131         doc: Mention functions which are declared as macros.
33132         * doc/posix-functions/*[fl].texi: Mention that some functions are
33133         defined as macros with arguments only.
33135 2011-09-17  Bruno Haible  <bruno@clisp.org>
33137         Add dependencies to new dirent related modules.
33138         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
33139         * modules/fts (Depends-on): Likewise.
33140         * modules/glob (Depends-on): Likewise.
33141         * modules/savedir (Depends-on): Likewise.
33142         * modules/scandir (Depends-on): Likewise.
33143         * modules/dirent-safer (Depends-on): Add opendir, closedir.
33144         * modules/fdopendir (Depends-on): Add opendir.
33146 2011-09-17  Bruno Haible  <bruno@clisp.org>
33148         inet_pton: Support for MSVC on Windows Vista or newer.
33149         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
33150         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
33151         HAVE_DECL_INET_PTON is defined.
33152         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
33153         On platforms with <winsock2.h>, test whether inet_pton is declared in
33154         <ws2tcpip.h>. If so, arrange to replace it.
33155         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
33156         REPLACE_INET_PTON.
33157         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
33158         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
33159         (Depends-on, configure.ac): Update condition.
33160         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
33162 2011-09-17  Bruno Haible  <bruno@clisp.org>
33164         inet_ntop: Support for MSVC on Windows Vista or newer.
33165         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
33166         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
33167         HAVE_DECL_INET_NTOP is defined.
33168         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
33169         On platforms with <winsock2.h>, test whether inet_ntop is declared in
33170         <ws2tcpip.h>. If so, arrange to replace it.
33171         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
33172         REPLACE_INET_NTOP.
33173         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
33174         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
33175         (Depends-on, configure.ac): Update condition.
33176         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
33178 2011-09-16  Eric Blake  <eblake@redhat.com>
33180         test-fsync: yet another enhancement
33181         * tests/test-fsync.c (main): Also test behavior on read-only text
33182         file.
33184 2011-09-16  Bruno Haible  <bruno@clisp.org>
33186         Enhance fsync, fdatasync tests.
33187         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
33188         * tests/test-fdatasync.c (main): Likewise.
33190 2011-09-16  Bruno Haible  <bruno@clisp.org>
33192         Support for MSVC compiler: Ensure mode_t gets defined.
33193         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
33194         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33195         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
33196         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
33197         * tests/test-fcntl-h.c: Check that mode_t is defined.
33198         * tests/test-sys_stat.c: Likewise.
33199         * tests/test-sys_types.c: Likewise.
33200         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
33201         * doc/posix-headers/sys_stat.texi: Likewise.
33202         * doc/posix-headers/sys_types.texi: Likewise.
33204 2011-09-16  Bruno Haible  <bruno@clisp.org>
33206         sys_stat: Support for MSVC.
33207         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
33208         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
33209         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
33210         MSVC.
33212 2011-09-16  Bruno Haible  <bruno@clisp.org>
33214         Support for MSVC compiler: Ensure off_t gets defined.
33215         * lib/unistd.in.h: Include <sys/types.h>.
33216         * tests/test-fcntl-h.c: Check that off_t is defined.
33217         * tests/test-sys_stat.c: Likewise.
33218         * tests/test-sys_types.c: Likewise.
33220 2011-09-16  Eric Blake  <eblake@redhat.com>
33222         fdatasync: port to Solaris
33223         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
33224         * modules/fdatasync (Link): Document it.
33225         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
33227         fdatasync: port to MacOS X 10.7
33228         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
33229         declared.
33230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
33231         * modules/unistd (Makefile.am): Substitute it.
33232         * lib/unistd.in.h (fdatasync): Declare on MacOS.
33233         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
33235         fdatasync: minor improvements
33236         * modules/fdatasync (Depends-on): Add condition for fsync.
33237         * lib/fdatasync.c (fdatasync): Add comment.
33238         * tests/test-unistd-c++.cc: Test fdatasync.
33240         unistd: update refs to newer POSIX
33241         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
33242         Suggested by Bruno Haible.
33244         fdatasync: new module
33245         * modules/fsync (Description): Document difference to fdatasync.
33246         * modules/fdatasync: New module.
33247         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
33248         * lib/fdatasync.c (fdatasync): Likewise.
33249         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
33250         defaults.
33251         * modules/unistd (Makefile.am): Set witnesses.
33252         * lib/unistd.in.h (fdatasync): Declare.
33253         * MODULES.html.sh: Document it.
33254         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
33255         * modules/fdatasync-tests: New test.
33256         * tests/test-fdatasync.c: Likewise.
33258 2011-09-16  Eric Blake  <eblake@redhat.com>
33260         test-fsync: enhance tests
33261         * modules/fsync-tests (Depends-on): Add errno, for mingw.
33262         * tests/test-fsync.c (main): Enhance test.
33264 2011-09-15  Bruno Haible  <bruno@clisp.org>
33266         Support for MSVC compiler: Ensure ssize_t gets defined.
33267         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
33268         * doc/posix-headers/stdio.texi: Likewise.
33269         * modules/stdio (Depends-on): Add ssize_t.
33270         * modules/sys_socket (Depends-on): Likewise.
33271         * modules/sys_types (Depends-on): Likewise.
33272         * modules/sys_uio (Depends-on): Likewise.
33273         * modules/unistd (Depends-on): Likewise.
33274         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
33275         * tests/test-sys_types.c: Check that ssize_t is defined.
33277 2011-09-14  Bruno Haible  <bruno@clisp.org>
33279         Avoid using #, the m4 comment starter character, near brackets.
33280         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
33281         delimiter character in sed expressions.
33282         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
33283         Suggested by Eric Blake.
33285         Properly quote AC_CHECK_DECLS' 4th argument.
33286         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
33287         argument.
33288         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
33289         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33290         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
33291         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33292         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33293         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
33294         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
33295         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
33296         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
33297         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
33298         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
33299         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
33300         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33301         * m4/isinf.m4 (gl_ISINF): Likewise.
33302         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
33303         * m4/readutmp.m4 (gl_READUTMP): Likewise.
33304         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33305         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
33306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
33307         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
33308         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
33309         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
33310         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
33311         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
33312         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33313         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
33315         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
33316         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33317         Reported by Eric Blake.
33319         Properly quote AC_CHECK_DECL's 4th argument.
33320         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
33321         argument.
33322         * m4/argp.m4 (gl_ARGP): Likewise.
33323         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
33324         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33325         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
33326         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
33327         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
33328         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
33329         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
33330         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
33331         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
33332         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
33333         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
33334         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
33335         Reported by Eric Blake.
33337 2011-09-14  Eric Blake  <eblake@redhat.com>
33339         opendir: avoid compile warning
33340         * lib/opendir.c (includes): Always include errno.h.
33341         Reported by Tatsuro MATSUOKA.
33343 2011-09-14  Jim Meyering  <meyering@redhat.com>
33345         maint.mk: sc_tight_scope: propagate failure from sub-make
33346         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
33347         Reported by Martin von Gagern.
33349 2011-09-13  Bruno Haible  <bruno@clisp.org>
33351         tempname: Support for MSVC.
33352         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
33353         MSVC.
33354         * modules/tempname (Depends-on): Add fcntl-h.
33356 2011-09-13  Bruno Haible  <bruno@clisp.org>
33358         sys_time: Support for MSVC.
33359         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
33360         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
33361         include <winsock2.h>.
33362         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
33363         function declarations that collide with POSIX.
33364         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
33365         (Makefile.am): Substitute HAVE_WINSOCK2_H.
33367 2011-09-13  Bruno Haible  <bruno@clisp.org>
33369         stat: Support for MSVC.
33370         * lib/stat.c: Include pathmax.h.
33371         * modules/stat (Depends-on): Add pathmax.
33373         pathmax: Support for native Windows.
33374         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
33376 2011-09-12  Bruno Haible  <bruno@clisp.org>
33378         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
33379         * lib/dirent.in.h (struct dirent): New type.
33380         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
33381         DT_WHT): New macros.
33382         (DIR): New type.
33383         (opendir, closedir): Declare only if the module 'opendir' is enabled.
33384         (readdir, rewinddir): New declarations.
33385         * lib/dirent-private.h: New file.
33386         * lib/opendir.c: New file.
33387         * lib/readdir.c: New file.
33388         * lib/rewinddir.c: New file.
33389         * lib/closedir.c: New file.
33390         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
33391         * m4/opendir.m4: New file.
33392         * m4/readdir.m4: New file.
33393         * m4/rewinddir.m4: New file.
33394         * m4/closedir.m4: New file.
33395         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
33396         REPLACE_CLOSEDIR here.
33397         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
33398         readdir, rewinddir are declared.
33399         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
33400         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
33401         HAVE_REWINDDIR, HAVE_CLOSEDIR.
33402         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
33403         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
33404         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
33405         * modules/opendir: New file.
33406         * modules/readdir: New file.
33407         * modules/rewinddir: New file.
33408         * modules/closedir: New file.
33409         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
33410         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
33411         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
33412         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
33413         * NEWS: Mention the 'fchdir' change.
33415 2011-09-11  Bruno Haible  <bruno@clisp.org>
33417         asm-underscore.m4: Support for MSVC.
33418         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
33419         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
33421 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
33423         Doc about crypt functions.
33424         * doc/posix-functions/crypt.texi: Expand range of glibc versions
33425         needing for _GNU_SOURCE to get crypt.
33426         * doc/posix-functions/encrypt.texi: Likewise.
33427         * doc/posix-functions/setkey.texi: Likewise.
33429 2011-09-11  Bruno Haible  <bruno@clisp.org>
33431         doc: Update regarding MSVC 9.
33432         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
33433         tested".
33434         * doc/posix-functions/*.texi: Update with info about MSVC 9.
33435         * doc/posix-headers/*.texi: Likewise.
33436         * doc/pastposix-functions/*.texi: Likewise.
33437         * doc/glibc-functions/*.texi: Likewise.
33438         * doc/glibc-headers/*.texi: Likewise.
33440 2011-09-11  Bruno Haible  <bruno@clisp.org>
33442         unistd et al.: Don't assume <unistd.h> exists.
33443         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
33444         does not exist.
33445         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
33446         exist. But include <stdlib.h>.
33447         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
33448         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
33449         symlink() does not exist.
33450         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
33451         include <io.h> instead.
33452         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33453         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
33454         include <direct.h> instead.
33455         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
33456         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
33457         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
33458         <io.h> instead.
33459         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
33460         correctly if the system does not have hard links.
33461         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
33462         <direct.h> instead.
33463         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
33464         it when looking for function declarations.
33465         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
33466         <direct.h> and <io.h> instead.
33467         * doc/posix-headers/unistd.texi: More details about MSVC problem.
33469 2011-09-11  Bruno Haible  <bruno@clisp.org>
33471         strcase: Support for MSVC.
33472         * modules/strcase (Status, Notice): Remove obsoletion mark.
33473         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
33474         * doc/posix-functions/strncasecmp.texi: Likewise.
33476         strings: Don't assume <strings.h> exists.
33477         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
33478         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
33479         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
33480         * doc/posix-headers/strings.texi: Mention the MSVC problem.
33482 2011-09-11  Bruno Haible  <bruno@clisp.org>
33484         dirent: Don't assume <dirent.h> exists.
33485         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
33486         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
33487         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
33488         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
33490 2011-09-11  Bruno Haible  <bruno@clisp.org>
33492         Fix wint_t on MSVC.
33493         * lib/wchar.in.h (wint_t): On MSVC, override it.
33494         * lib/wctype.in.h (wint_t): Likewise.
33495         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
33496         MSVC.
33497         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
33498         * doc/posix-headers/wctype.texi: Likewise.
33500 2011-09-11  Bruno Haible  <bruno@clisp.org>
33502         sys_types: Fix typo.
33503         * lib/sys_types.in.h: Fix typo in comment.
33504         Reported by Paul Eggert.
33506         Support for MSVC compiler: Ensure size_t gets defined.
33507         * modules/strings (Depends-on): Add 'sys_types'.
33508         * modules/sys_uio (Depends-on): Likewise.
33509         * lib/sys_uio.in.h: Update comment.
33511         C++ tests for module 'sys_types'.
33512         * modules/sys_types-c++-tests: New file.
33513         * tests/test-sys_types-c++.cc: New file.
33515         Tests for module 'sys_types'.
33516         * modules/sys_types-tests: New file.
33517         * tests/test-sys_types.c: New file.
33519         New module 'sys_types'.
33520         * lib/sys_types.in.h: New file.
33521         * m4/sys_types_h.m4: New file.
33522         * modules/sys_types: New file.
33523         * doc/posix-headers/sys_types.texi: Mention the new module and the
33524         size_t problem on MSVC 9.
33526 2011-09-11  Bruno Haible  <bruno@clisp.org>
33528         Support for MSVC compiler: Avoid division by a literal 0.
33529         * lib/math.in.h (NAN): Define through a function call also on MSVC.
33530         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
33531         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
33532         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
33533         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
33534         * tests/infinity.h: New file.
33535         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
33536         on MSVC.
33537         * tests/test-ceilf1.c: Include infinity.h.
33538         (main): Use Infinityf.
33539         * tests/test-ceil1.c: Include infinity.h.
33540         (main): Use Infinityd.
33541         * tests/test-ceill.c: Include infinity.h.
33542         (main): Use Infinityl.
33543         * tests/test-dprintf-posix.c: Include infinity.h.
33544         (test_function): Use Infinityd.
33545         * tests/test-floorf1.c: Include infinity.h.
33546         (main): Use Infinityf.
33547         * tests/test-floor1.c: Include infinity.h.
33548         (main): Use Infinityd.
33549         * tests/test-floorl.c: Include infinity.h.
33550         (main): Use Infinityl.
33551         * tests/test-fprintf-posix.c: Include infinity.h.
33552         (test_function): Use Infinityd.
33553         * tests/test-frexp.c: Include infinity.h.
33554         (main): Use Infinityd.
33555         * tests/test-frexpl.c: Include infinity.h.
33556         (main): Use Infinityl.
33557         * tests/test-isfinite.c: Include infinity.h.
33558         (test_isfinitef): Use Infinityf.
33559         (test_isfinited): Use Infinityd.
33560         (test_isfinitel): Use Infinityl.
33561         * tests/test-isinf.c: Include infinity.h.
33562         (test_isinff): Use Infinityf.
33563         (test_isinfd): Use Infinityd.
33564         (test_isinfl): Use Infinityl.
33565         * tests/test-isnan.c: Include infinity.h.
33566         (test_float): Use Infinityf.
33567         (test_double): Use Infinityd.
33568         (test_long_double): Use Infinityl.
33569         * tests/test-isnanf.h: Include infinity.h.
33570         (main): Use Infinityf.
33571         * tests/test-isnand.h: Include infinity.h.
33572         (main): Use Infinityd.
33573         * tests/test-isnanl.h: Include infinity.h.
33574         (main): Use Infinityl.
33575         * tests/test-ldexpl.c: Include infinity.h.
33576         (main): Use Infinityl.
33577         * tests/test-printf-posix.h: Include infinity.h.
33578         (test_function): Use Infinityd.
33579         * tests/test-roundf1.c: Include infinity.h.
33580         (main): Use Infinityf.
33581         * tests/test-round1.c: Include infinity.h.
33582         (main): Use Infinityd.
33583         * tests/test-roundl.c: Include infinity.h.
33584         (main): Use Infinityl.
33585         * tests/test-signbit.c: Include infinity.h.
33586         (test_signbitf): Use Infinityf.
33587         (test_signbitd): Use Infinityd.
33588         (test_signbitl): Use Infinityl.
33589         * tests/test-snprintf-posix.h: Include infinity.h.
33590         (test_function): Use Infinityd, Infinityl.
33591         * tests/test-sprintf-posix.h: Include infinity.h.
33592         (test_function): Use Infinityd, Infinityl.
33593         * tests/test-truncf1.c: Include infinity.h.
33594         (main): Use Infinityf.
33595         * tests/test-trunc1.c: Include infinity.h.
33596         (main): Use Infinityd.
33597         * tests/test-truncl.c: Include infinity.h.
33598         (main): Use Infinityl.
33599         * tests/test-vasnprintf-posix.c: Include infinity.h.
33600         (test_function): Use Infinityd, Infinityl.
33601         * tests/test-vasprintf-posix.c: Include infinity.h.
33602         (test_function): Use Infinityd, Infinityl.
33603         * modules/ceilf-tests (Files): Add tests/infinity.h.
33604         * modules/ceil-tests (Files): Likewise.
33605         * modules/ceill-tests (Files): Likewise.
33606         * modules/dprintf-posix-tests (Files): Likewise.
33607         * modules/floorf-tests (Files): Likewise.
33608         * modules/floor-tests (Files): Likewise.
33609         * modules/floorl-tests (Files): Likewise.
33610         * modules/fprintf-posix-tests (Files): Likewise.
33611         * modules/frexp-tests (Files): Likewise.
33612         * modules/frexp-nolibm-tests (Files): Likewise.
33613         * modules/frexpl-tests (Files): Likewise.
33614         * modules/frexpl-nolibm-tests (Files): Likewise.
33615         * modules/isfinite-tests (Files): Likewise.
33616         * modules/isinf-tests (Files): Likewise.
33617         * modules/isnan-tests (Files): Likewise.
33618         * modules/isnanf-tests (Files): Likewise.
33619         * modules/isnanf-nolibm-tests (Files): Likewise.
33620         * modules/isnand-tests (Files): Likewise.
33621         * modules/isnand-nolibm-tests (Files): Likewise.
33622         * modules/isnanl-tests (Files): Likewise.
33623         * modules/isnanl-nolibm-tests (Files): Likewise.
33624         * modules/ldexpl-tests (Files): Likewise.
33625         * modules/printf-posix-tests (Files): Likewise.
33626         * modules/roundf-tests (Files): Likewise.
33627         * modules/round-tests (Files): Likewise.
33628         * modules/roundl-tests (Files): Likewise.
33629         * modules/signbit-tests (Files): Likewise.
33630         * modules/snprintf-posix-tests (Files): Likewise.
33631         * modules/sprintf-posix-tests (Files): Likewise.
33632         * modules/truncf-tests (Files): Likewise.
33633         * modules/trunc-tests (Files): Likewise.
33634         * modules/truncl-tests (Files): Likewise.
33635         * modules/vasnprintf-posix-tests (Files): Likewise.
33636         * modules/vasprintf-posix-tests (Files): Likewise.
33637         * modules/vdprintf-posix-tests (Files): Likewise.
33638         * modules/vfprintf-posix-tests (Files): Likewise.
33639         * modules/vprintf-posix-tests (Files): Likewise.
33640         * modules/vsnprintf-posix-tests (Files): Likewise.
33641         * modules/vsprintf-posix-tests (Files): Likewise.
33642         * modules/xprintf-posix-tests (Files): Likewise.
33644 2011-09-11  Bruno Haible  <bruno@clisp.org>
33646         Ensure pid_t gets defined.
33647         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
33648         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
33649         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
33650         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
33651         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33652         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
33653         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
33654         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
33655         * tests/test-fcntl-h.c: Check that pid_t is defined.
33656         * tests/test-sched.c: Likewise.
33657         * tests/test-termios.c: Likewise.
33658         * tests/test-time.c: Likewise.
33659         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
33660         * doc/posix-headers/signal.texi: Likewise.
33661         * doc/posix-headers/sys_types.texi: Likewise.
33662         * doc/posix-headers/time.texi: Likewise.
33664 2011-09-11  Bruno Haible  <bruno@clisp.org>
33666         acl: Fix compilation on Solaris 10 (older version).
33667         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
33668         of ACE_EVERYONE.
33669         * lib/set-mode-acl.c (qset_acl): Likewise.
33670         Reported by Christian Jullien <eligis@orange.fr>.
33672 2011-09-10  Bruno Haible  <bruno@clisp.org>
33674         iconv, unsetenv: Add support for MSVC compiler.
33675         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
33676         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
33678 2011-09-10  Bruno Haible  <bruno@clisp.org>
33680         *printf: Add support for MSVC compiler.
33681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
33682         handles the exception caused by the %n directive. When cross-compiling,
33683         guess no on native Windows.
33684         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
33685         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
33686         emulate it through vsnprintf.
33687         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
33688         * doc/posix-functions/dprintf.texi: Update documentation regarding
33689         MSVC 9.
33690         * doc/posix-functions/fprintf.texi: Likewise.
33691         * doc/posix-functions/printf.texi: Likewise.
33692         * doc/posix-functions/snprintf.texi: Likewise.
33693         * doc/posix-functions/sprintf.texi: Likewise.
33694         * doc/posix-functions/swprintf.texi: Likewise.
33695         * doc/posix-functions/vdprintf.texi: Likewise.
33696         * doc/posix-functions/vfprintf.texi: Likewise.
33697         * doc/posix-functions/vprintf.texi: Likewise.
33698         * doc/posix-functions/vsnprintf.texi: Likewise.
33699         * doc/posix-functions/vsprintf.texi: Likewise.
33700         * doc/glibc-functions/asprintf.texi: Likewise.
33701         * doc/glibc-functions/obstack_printf.texi: Likewise.
33702         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
33703         * doc/glibc-functions/vasprintf.texi: Likewise.
33705 2011-09-10  Bruno Haible  <bruno@clisp.org>
33707         nocrash: Add support for native Windows.
33708         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
33710 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
33711             Bruno Haible  <bruno@clisp.org>
33713         absolute-header, include-next: Add support for MSVC compiler.
33714         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
33715         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
33716         directory separator in #line directives.
33717         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
33718         recognize also backslash as directory separator in #line directives.
33720 2011-09-08  Jim Meyering  <meyering@redhat.com>
33722         maint.mk: mark the post-release commit log with "maint: " prefix
33723         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
33724         one-line commit-log summary.
33726 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
33727             Bruno Haible  <bruno@clisp.org>
33729         Doc about crypt functions.
33730         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
33731         systems.
33732         * doc/posix-functions/encrypt.texi: Likewise.
33733         * doc/posix-functions/setkey.texi: Likewise.
33735 2011-09-08  Simon Josefsson  <simon@josefsson.org>
33737         * lib/gc.h: Fix copyright header.
33739 2011-09-07  Bruno Haible  <bruno@clisp.org>
33741         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
33742         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
33743         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
33745 2011-09-07  Bruno Haible  <bruno@clisp.org>
33747         openat: Work around compilation error with OSF/1 5.1 DTK cc.
33748         * lib/fopen.c: Use different syntax for include of <stdio.h>.
33749         * lib/freopen.c: Likewise.
33750         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
33751         * lib/lstat.c: Likewise.
33752         * lib/stat.c: Likewise.
33753         * lib/open.c: Use different syntax for include of <fcntl.h>.
33754         * lib/openat.c: Include fcntl.h again, explicitly.
33756 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
33758         parse-datetime: document the newly accepted format
33759         * doc/parse-datetime.texi (Combined date and time of day items):
33760         New section.
33762 2011-09-06  Bruno Haible  <bruno@clisp.org>
33764         acl: Fix a test failure on newer Solaris 10 with ZFS.
33765         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
33766         ENOSYS as no ACL.
33767         Reported by Jim Meyering.
33769 2011-09-06  Bruno Haible  <bruno@clisp.org>
33771         acl: Update for AIX >= 5.3 with NFS.
33772         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
33773         ENOSYS as no ACL.
33775         acl: Fix a test failure on AIX >= 5.3 with NFS.
33776         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
33777         as no ACL.
33779 2011-09-06  Bruno Haible  <bruno@clisp.org>
33781         acl: Fix a test failure on IRIX 6.5 with NFS.
33782         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
33783         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
33784         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
33785         * lib/copy-acl.c (qcopy_acl): Likewise.
33787 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
33789         openat: port to AIX 7.1 with large files
33790         AIX 7.1 does a "#define openat open64at" if large files are in use,
33791         so we can't simply #undef openat.  Use the orig_openat trick (similar
33792         to orig_open in lib/open.c) to work around the problem.  Problem
33793         reported by Kevin Brott for GNU tar, in the thread containing
33794         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
33795         * lib/openat.c (__need_system_fcntl_h): Define first.
33796         Include <fcntl.h> and <sys/types.h> before undefining.
33797         (orig_openat) [HAVE_OPENAT]: New inline function.
33798         (openat) [HAVE_OPENAT]: Do not undef.
33799         (rpl_openat): Use orig_openat, not openat.
33801 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
33802             Bruno Haible  <bruno@clisp.org>
33804         acl: Avoid errors on NonStop Kernel.
33805         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
33806         ENOTSUP errors.
33808 2011-09-05  Bruno Haible  <bruno@clisp.org>
33810         acl: Clean up Solaris code.
33811         * lib/acl-internal.h: Remove no-op #if.
33812         * lib/file-has-acl.c: Likewise.
33813         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
33814         * lib/copy-acl.c (qcopy_acl): Likewise.
33816 2011-09-05  Bruno Haible  <bruno@clisp.org>
33818         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
33819         binaries built on the original Solaris 10.
33820         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
33821         trivial.
33823 2011-09-05  Bruno Haible  <bruno@clisp.org>
33825         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33826         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
33827         10.
33828         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
33829         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
33830         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
33831         instead of acl_get, facl_get, acl_set, facl_set.
33833 2011-09-05  Bruno Haible  <bruno@clisp.org>
33835         copy-file: Try unit tests on more file systems.
33836         * tests/test-copy-file-1.sh: New file.
33837         * tests/test-copy-file-2.sh: New file.
33838         * modules/copy-file-tests (Files): Add them.
33839         (Makefile.am): Add them to TESTS.
33841         acl: Try unit tests on more file systems.
33842         * tests/test-file-has-acl-1.sh: New file.
33843         * tests/test-file-has-acl-2.sh: New file.
33844         * tests/test-set-mode-acl-1.sh: New file.
33845         * tests/test-set-mode-acl-2.sh: New file.
33846         * tests/test-copy-acl-1.sh: New file.
33847         * tests/test-copy-acl-2.sh: New file.
33848         * modules/acl-tests (Files): Add them.
33849         (Makefile.am): Add them to TESTS.
33851 2011-09-04  Bruno Haible  <bruno@clisp.org>
33853         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
33854         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
33855         10.
33856         (OLD_ALLOW, OLD_DENY): New macros.
33857         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
33858         ACE_ACCESS_ALLOWED_ACE_TYPE.
33859         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
33860         ACE_ACCESS_DENIED_ACE_TYPE.
33861         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
33862         (NEW_ACE_EXECUTE): Fix value.
33863         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
33864         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
33865         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
33866         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
33867         NEW_ACE_SYNCHRONIZE): New macros.
33868         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
33869         instead of acl_fromtext, acl_set, facl_set.
33870         Fixes a coreutils/tests/cp/perm failure.
33872 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
33874         openat: test for fstatat (..., 0) bug
33875         Further testing with tar suggests that fstatat (..., 0)
33876         does not work in general, on AIX 7.1; see
33877         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
33878         So, give up entirely on AIX 7.1's fstatat, and fall back on our
33879         replacement fstatat (which is what older AIX releases were using
33880         anyway).
33881         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
33882         use is now changed to orig_fstatat.  This was probably the right
33883         thing to do anyway.
33884         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
33885         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
33886         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
33887         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
33888         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
33889         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
33890         if the bug is found.
33892         openat: test for fstatat (AT_FDCWD, ..., 0) bug
33893         This tests for another fstatat bug on AIX 7.1:
33894         fstatat (AT_FDCWD, ..., 0) does not work.  See
33895         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
33896         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
33897         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
33898         (rpl_fstatat): Adjust so that it works around either (or both)
33899         bugs if present.
33900         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
33902 2011-09-03  Karl Berry  <karl@gnu.org>
33904         * doc/regex.texi (Character Class Operators): Avoid literal ":"
33905         in index entries.
33907 2011-09-02  Bruno Haible  <bruno@clisp.org>
33909         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
33910         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
33911         values of AR, ARFLAGS, RANLIB.
33912         Reported by John W. Eaton <jwe@gnu.org> for Octave.
33914 2011-09-02  Bruno Haible  <bruno@clisp.org>
33916         Find 'ar' program that fits with --host argument.
33917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
33919 2011-09-02  Bruno Haible  <bruno@clisp.org>
33921         tests: init.sh: Support any non-GNU diff.
33922         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
33923         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
33924         Solaris 8.
33926 2011-09-02  Bruno Haible  <bruno@clisp.org>
33928         tests: init.sh: work also with any non-GNU diff that supports -u
33929         * tests/init.sh: Relax check for diff -u support.
33930         Rather than checking for GNU diff via --version, simply check
33931         for support for -u itself.  Useful at least on OpenBSD 4.9,
33932         AIX 7.1, IRIX 6.5, and Solaris 10.
33934 2011-09-01  Bruno Haible  <bruno@clisp.org>
33936         strtoimax, strtoumax: Document problem on HP-UX 11.
33937         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
33938         * doc/posix-functions/strtoumax.texi: Likewise.
33940 2011-09-01  Bruno Haible  <bruno@clisp.org>
33942         strtoumax: Avoid link error on OSF/1 with DTK cc.
33943         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
33944         defined as a function.
33945         * modules/strtoumax (Depends-on, configure.ac): Test only whether
33946         strtoumax is defined, not whether it is declared.
33948 2011-09-01  Bruno Haible  <bruno@clisp.org>
33950         strtoimax: Avoid link error on OSF/1 with DTK cc.
33951         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
33952         defined as a function.
33953         * modules/strtoimax (Depends-on, configure.ac): Test only whether
33954         strtoimax is defined, not whether it is declared.
33956 2011-09-01  Bruno Haible  <bruno@clisp.org>
33958         imaxdiv: Avoid link error on OSF/1 with DTK cc.
33959         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
33960         as a function.
33961         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
33962         whether it is declared.
33964 2011-09-01  Bruno Haible  <bruno@clisp.org>
33966         imaxabs: Avoid link error on OSF/1 with DTK cc.
33967         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
33968         as a function.
33969         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
33970         whether it is declared.
33972 2011-09-01  Bruno Haible  <bruno@clisp.org>
33974         Tests for module 'strtoumax'.
33975         * modules/strtoumax-tests: New file.
33976         * tests/test-strtoumax.c: New file.
33978         Tests for module 'strtoimax'.
33979         * modules/strtoimax-tests: New file.
33980         * tests/test-strtoimax.c: New file.
33982         Tests for module 'imaxdiv'.
33983         * modules/imaxdiv-tests: New file.
33984         * tests/test-imaxdiv.c: New file.
33986         Tests for module 'imaxabs'.
33987         * modules/imaxabs-tests: New file.
33988         * tests/test-imaxabs.c: New file.
33990 2011-09-01  Bruno Haible  <bruno@clisp.org>
33992         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
33993         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
33994         pthread_create.
33996 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
33998         openat: work around AIX 7.1 fstatat issue
33999         This should fix the problem that was not properly fixed
34000         in the previous change, dated 2011-08-30.
34001         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
34002         __need_system_stat_h defined.
34003         (orig_fstatat) [HAVE_FSTATAT]: New function.
34004         (rpl_fstatat): Go back to the old way of doing things,
34005         except call orig_fstatat instead of fstatat.
34006         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
34007         Remove unnecessary check whether fstatat fills in st_size etc.
34009 2011-09-01  Bruno Haible  <bruno@clisp.org>
34011         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
34012         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
34013         just include the system's header.
34015 2011-08-31  Jim Meyering  <meyering@redhat.com>
34017         tests: avoid spurious assertion failure in test-float.c on ppc64
34018         * tests/test-float.c (test_long_double): Comment out an assertion,
34019         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
34020         with gcc-4.4.4.
34022         maint: indent with spaces, not TABs
34023         I need to get in the habit of running gnulib's "make check".
34024         Both of these would have been caught.
34025         * m4/largefile.m4: Indent with spaces, not TABs.
34026         * lib/parse-datetime.y (iso_8601_time): Likewise.
34027         Spotted by Pádraig Brady.
34029         test-parse-datetime.c: accommodate a relatively strict gcc warning
34030         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
34031         to avoid a warning from gcc's -Werror=missing-declarations.
34032         Insert a few spaces-before-funcall-parenthesis.
34034 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
34036         parse-datetime: accept ISO 8601 date and time rep with "T" separator
34037         The parser now accepts ISO 8601 date-time strings with "T" as the
34038         separator.  It has long parsed dates like "2004-02-29 16:21:42"
34039         with a space between the date and time strings.  Now it also parses
34040         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
34041         variants like "2004-02-29T16:21:42.333-07:00"
34042         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
34043         of day representation using the 'T' separator character.
34044         * doc/parse-datetime.texi (General date syntax): replace use of
34045         deprecated --iso-8601 option with --rfc-3339 in example of date
34046         command output formats that can be parsed.
34047         * tests/test-parse-datetime.c (tm_diff): New function, taken from
34048         lib/parse-datetime.y.
34049         (gmt_offset): New function.
34050         (main): Add additional test cases to validate ISO8601 extended
34051         date and time of day parsing.
34053 2011-08-31  Bruno Haible  <bruno@clisp.org>
34055         freopen: Documentation.
34056         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
34057         name.
34058         Reported by Claudio Bley <claudio.bley@gmail.com>.
34060 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
34062         freopen: Don't crash if the filename argument is NULL.
34063         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
34064         NULL.
34066 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34068         openat: work around AIX 7.1 fstatat bug
34069         Problem reported by Kevin Brott for GNU tar, in the thread containing
34070         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
34071         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
34072         FSTATAT_ST_SIZE_ETC_BROKEN.
34073         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
34074         rpl_fstatat.
34075         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
34076         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
34077         AC_CHECK_FUNCS_ONCE for fstatat.
34078         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
34079         fchmodat, mkdirat, openat and unlinkat.
34081 2011-08-30  Bruno Haible  <bruno@clisp.org>
34083         Avoid endless recursions if config.h includes some header files.
34084         * lib/fopen.c (__need_FILE): Define already before including config.h.
34085         * lib/freopen.c (__need_FILE): Likewise.
34086         * lib/open.c (__need_system_fcntl_h): Likewise.
34087         * lib/stat.c (__need_system_sys_stat_h): Likewise.
34088         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
34089         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
34091 2011-08-25  Karl Berry  <karl@gnu.org>
34093         * config/srclist.txt (ylwrap): new try.
34094         * build-aux/ylwrap: new file.
34096 2011-08-23  Bruno Haible  <bruno@clisp.org>
34098         tmpdir: Use a good default directory on native Windows.
34099         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
34100         (P_tmpdir): Default to _P_tmpdir on native Windows.
34101         (path_search): On native Windows, try the value returned by GetTempPath
34102         before trying P_tmpdir.
34103         * modules/tmpdir (Depends-on): Add pathmax.
34104         Suggested by John Darrington <john@darrington.wattle.id.au>.
34106 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
34108         doc: fix typo in README-release
34109         * top/README-release: Capitalize first word of a sentence.
34111 2011-08-19  Jim Meyering  <meyering@redhat.com>
34113         fts: do not exhaust memory when processing million-entry directories
34114         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
34115         directory would require about 256*N bytes of memory.  Thus, it was
34116         easy to construct a directory too large to be processed by any of
34117         those tools.  With this change, fts' maximum memory utilization is
34118         now limited to around 30MB.
34119         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
34120         (fts_read): When we've processed the final entry (i.e., when
34121         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
34122         using the parent entry to read any remaining entries.  Dispatch
34123         depending on what fts_build returns:
34124         - NULL+stop, aka failure: stop
34125         - NULL otherwise: move up in the dir hierarchy
34126         - non-NULL: handle this new entry
34127         (fts_build): Declare and use new local, continue_readdir.
34128         Prepare to be called from fts_read, when the entries
34129         from a partially-read directory have just been exhausted.
34130         In that case, we'll skip the opendir and instead use the parent's
34131         fts_dirp and derive dir_fd from that.
34132         Finally, in the readdir loop, if we read max_entries entries,
34133         exit the loop ensuring *not* to call closedir.  This is required
34134         so that fts_dirp can be reused on a subsequent call.
34135         Prompted by Ben England's report of memory exhaustion in find
34136         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
34138         maint: fts: move decl of `dp' down into while loop; split a long line
34139         * lib/fts.c (fts_build): No semantic change.
34141         fts: add/use new struct member, fts_dirp
34142         We are about to use this to manage any directory with
34143         too many entries to read all of them into memory at once.
34144         To do that, we'll need to save the DIR* pointer in each
34145         affected FTSENT struct.
34146         * lib/fts_.h: Include <dirent.h>.
34147         (struct FTSENT) [fts_dirp]: New member.
34148         * lib/fts.c (closedir_and_clear): Define.
34149         Use it in place of closedir so that we are sure to
34150         clear the new fts_dirp member when done with it.
34151         (fts_alloc): Initialize the new member.
34152         (fts_lfree): Free, if needed.
34154         maint: fts: give __opendir2 a new parameter and rename
34155         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
34156         than surreptitiously using sole caller's "dir_fd".
34157         (fts_opendir): Rename from __opendir2.
34159         maint: fts.c: remove __opendir2's now-unused parameter, oflag
34160         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
34162         maint: fts.c: correct off-by-one indentation
34163         * lib/fts.c (fts_build): Correct indentation, change style
34164         of a couple of block comments, and bracing style.
34166         maint: fts.c: move __opendir2 #define "up" out of function body
34167         * lib/fts.c (__opendir2): Move "up".  No semantic change.
34169         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
34170         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
34171         out for a long time and besides was useful only on BSD systems.
34173 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
34175         regex: port to Stratus OpenVOS
34176         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
34177         define to empty, rather than attempting nonportable optimizations.
34178         Problem reported by Paul Green in:
34179         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
34180         and fix suggested by Eric Blake in:
34181         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
34183 2011-08-17  Eric Blake  <eblake@redhat.com>
34185         getcwd: fix test failures on mingw
34186         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
34187         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
34188         test if long directory cannot be created, and allow mingw errno.
34190         getcwd-lgpl: fix m4 to match relaxed test for BSD
34191         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
34192         (gl_FUNC_GETCWD_SIGNATURE): New macro.
34193         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
34194         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
34195         signature problem.
34197         getcwd: fix compilation on mingw64
34198         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
34199         getcwd.
34200         Reported by Marc-André Lureau.
34202         pipe2: silence compiler warning
34203         * lib/pipe2.c (pipe2): Hide label if it is not used.
34205 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
34207         relocatable-prog: fix link error
34208         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
34209         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
34210         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
34211         into modules/relocatable-lib without noticing that
34212         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
34213         also needs to build relocatable.c.
34215 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
34217         getaddrinfo: fix sh typo in gai_strerrorA decl checking
34218         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
34219         shell code: it contained a 'break' that was not in a loop.
34220         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
34221         via a shell-language loop; this may have been true in old Autoconf
34222         versions, but it's not true in Autoconf 2.68.  I found this bug
34223         when testing coreutils git on Solaris 8, whose shell complains
34224         about the syntax error.
34226 2011-08-12  Simon Josefsson  <simon@josefsson.org>
34228         * lib/base64.c: Fix comment to reference RFC 4648.
34229         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
34230         <gvtulder@gmail.com>.
34232 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34234         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
34236         po/Makefile.in.in: fix make -q problem
34237         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
34238         rule, since there's no file named 'check-macro-version' and its
34239         use as a file breaks make -q.
34240         (all): Don't depend on check-macro-version.
34241         (CHECK_MACRO_VERSION): New macro.
34242         (stamp-po): Use it.
34244         configmake: fix make -q problem
34245         * modules/configmake (configmake.h): Update configmake.h's time stamp
34246         even if the file does not change.  Otherwise, 'make -q' fails.
34247         Problem reported by Simon Josefsson in
34248         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
34250 2011-08-11  Jim Meyering  <meyering@redhat.com>
34252         git-version-gen: correct the advice in a comment
34253         * build-aux/git-version-gen: Correct comment.
34254         Don't recommend to list .tarball-version in .gitignore.
34256 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34258         base64: fix off-by-one buffer size bug
34259         Problem and (trivial) fix reported by Gijs van Tulder in
34260         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
34261         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
34262         * tests/test-base64.c (main): Catch the bug.
34264 2011-08-10  Eric Blake  <eblake@redhat.com>
34266         closein: correct comments
34267         * lib/closein.c (close_stdin): Improve comments.
34269 2011-08-09  Bruno Haible  <bruno@clisp.org>
34271         More tests for 'fseeko'.
34272         * tests/test-fseeko3.c: New file, from Eric Blake.
34273         * tests/test-fseeko3.sh: New file.
34274         * modules/fseeko-tests (Files): Add them.
34275         (TESTS): Add test-fseeko3.sh.
34276         (check_PROGRAMS): Add test-fseeko3.
34278 2011-08-09  Eric Blake  <eblake@redhat.com>
34280         fseeko: remove unneeded hack
34281         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
34283         fseeko: fix bug on glibc
34284         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
34285         Reported by John W. Eaton.
34287 2011-08-08  Bruno Haible  <bruno@clisp.org>
34289         unictype/base: Fix interoperability with preinstalled libunistring.
34290         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
34291         Reported by Simon Josefsson.
34293 2011-08-08  Bruno Haible  <bruno@clisp.org>
34295         iswblank: Detect declaration correctly.
34296         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
34297         AC_CHECK_DECLS invocation.
34299 2011-08-08  Bruno Haible  <bruno@clisp.org>
34301         tcgetsid: Detect declaration correctly.
34302         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
34303         AC_CHECK_DECLS invocation.
34304         Reported by Simon Josefsson.
34306 2011-08-08  Eric Blake  <eblake@redhat.com>
34308         largefile: fix typo that regressed large file support
34309         * modules/largefile (configure.ac-early): Fix section name.
34311 2011-08-06  Karl Berry  <karl@gnu.org>
34313         * MODULES.html.sh (func_all_files): _Noreturn is no longer
34314         a separate module.
34316 2011-08-05  Simon Josefsson  <simon@josefsson.org>
34318         openat: Fix warnings and commens when building unlinkat.c on Hurd.
34319         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
34320         get prototype for free.
34322 2011-08-04  Bruno Haible  <bruno@clisp.org>
34324         Tests for module 'pathmax'.
34325         * modules/pathmax-tests: New file.
34326         * tests/test-pathmax.c: New file.
34328         canonicalize-lgpl: Support larger filenames on the Hurd.
34329         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
34330         Reported by Paul Eggert.
34332         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
34333         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
34334         * lib/chdir-long.h: Include pathmax.h.
34335         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
34336         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
34337         (PATH_MAX): Remove code that is done by pathmax.h.
34338         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
34339         * lib/tmpfile.c: Add a comment.
34340         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
34341         * modules/chdir-long (Depends-on): Add pathmax.
34342         * modules/getcwd (Depends-on): Add pathmax.
34343         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
34344         is not defined.
34345         * doc/posix-headers/limits.texi: Mention the pathmax module.
34346         * NEWS: Mention the change.
34348 2011-08-02  Bruno Haible  <bruno@clisp.org>
34350         pthread_sigmask: Actually use results of gl_THREADLIB.
34351         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
34352         gl_THREADLIB, not gl_[]THREADLIB.
34353         Reported by Eric Blake.
34355 2011-08-02  Jim Meyering  <meyering@redhat.com>
34357         maint.mk: relax the default _gl_TS_function_match regexp
34358         * top/maint.mk (_gl_TS_function_match): Don't require at least one
34359         space between function name and "(" in an "extern" declaration.
34360         That would fail to match a decl with no space there: extern void foo();
34362 2011-07-31  Iain Nicol  <iain@thenicols.net>
34364         git-version-gen: document that EXTRA_DIST must include .version
34365         * build-aux/git-version-gen: In the how-to-use comment, document
34366         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
34367         will fail when run from an unpacked distribution tarball.
34369 2011-08-01  Bruno Haible  <bruno@clisp.org>
34371         wctype-h: Fix last change.
34372         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
34373         REPLACE_TOWLOWER to 0.
34374         Reported by Sam Steingold <sds@gnu.org>.
34376 2011-07-31  Bruno Haible  <bruno@clisp.org>
34378         frexpl: Update autoconf test.
34379         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
34380         according to changes of 2011-06-20.
34382 2011-07-31  Bruno Haible  <bruno@clisp.org>
34384         sys_utsname: Add support for Minix.
34385         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
34386         <sys/utsname.h>.
34387         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34388         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
34390 2011-07-31  Bruno Haible  <bruno@clisp.org>
34392         strings: Add support for Minix.
34393         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
34394         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
34395         * doc/posix-headers/strings.texi: Document the Minix problem.
34397 2011-07-31  Bruno Haible  <bruno@clisp.org>
34399         wctype-h: Add support for Minix.
34400         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
34401         REPLACE_TOWLOWER.
34402         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
34403         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
34404         REPLACE_ISWCNTRL.
34406 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
34408         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
34409         This is a performance improvement for 64-bit hosts: it causes the
34410         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
34412 2011-07-31  Bruno Haible  <bruno@clisp.org>
34414         stdioext: Add support for Minix.
34415         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
34416         * lib/fpurge.c (fpurge): Likewise.
34417         * lib/freadahead.c (freadahead): Likewise.
34418         * lib/freadable.c (freadable): Likewise.
34419         * lib/freading.c (freading): Likewise.
34420         * lib/freadptr.c (freadptr): Likewise.
34421         * lib/freadseek.c (freadptrinc): Likewise.
34422         * lib/fseeko.c (rpl_fseeko): Likewise.
34423         * lib/fseterr.c (fseterr): Likewise.
34424         * lib/fwritable.c (fwritable): Likewise.
34425         * lib/fwriting.c (fwriting): Likewise.
34426         * lib/fflush.c (clear_ungetc_buffer): Update comment.
34427         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
34429 2011-07-31  Bruno Haible  <bruno@clisp.org>
34431         errno: Port to Minix.
34432         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
34433         ECONNABORTED are defined.
34434         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
34435         GNULIB_defined_ECONNABORTED): New macros.
34436         * lib/strerror-override.h (strerror_override): Test also
34437         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
34438         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
34439         ECONNABORTED.
34440         * doc/posix-headers/errno.texi: Mention the Minix problem.
34442 2011-07-31  Bruno Haible  <bruno@clisp.org>
34444         Work around declaration collisions on Minix.
34445         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
34446         defined, set REPLACE_MBSINIT.
34447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
34448         defined, set REPLACE_MBRTOWC.
34449         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
34450         set REPLACE_MBRLEN.
34451         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
34452         defined, set REPLACE_MBSRTOWCS.
34453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
34454         defined, set REPLACE_WCRTOMB.
34455         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
34456         defined, set REPLACE_WCSRTOMBS.
34458 2011-07-31  Bruno Haible  <bruno@clisp.org>
34460         Add support for Minix with ACK compiler.
34461         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
34462         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
34463         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
34465 2011-07-31  Bruno Haible  <bruno@clisp.org>
34467         Documentation about Minix.
34468         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
34469         * doc/glibc-headers/*.texi: Likewise.
34470         * doc/posix-functions/*.texi: Likewise.
34471         * doc/glibc-functions/*.texi: Likewise.
34473 2011-07-31  Bruno Haible  <bruno@clisp.org>
34475         snippet/warn-on-use: Fix indentation.
34476         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
34478 2011-07-25  Jim Meyering  <meyering@redhat.com>
34480         tests: test-update-copyright.sh: remove unnecessary "rm" commands
34481         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
34482         commands.
34484 2011-07-27  Jim Meyering  <meyering@redhat.com>
34486         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
34487         * top/maint.mk (gl_extract_significant_defines_): Now that
34488         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
34489         gnulib/lib/signal.in.h, and now that we recommend to
34490         define-if-undefined those two symbols in application code,
34491         we must filter them out of the "significant" list.
34492         This avoids a "make syntax-check" failure in coreutils.
34494 2011-07-26  Eric Blake  <eblake@redhat.com>
34496         warnings: add comments about previous patch
34497         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
34498         * m4/include_next.m4: Likewise.
34499         * m4/warn-on-use.m4: Likewise.
34500         * m4/warnings.m4: Likewise, and simplify use.
34501         Suggested by Stefano Lattarini.
34503         include-next, warnings: support older autoconf
34504         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
34505         AS_VAR_PUSHDEF in a way that works with older autoconf.
34506         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
34507         Reported by Daniel P. Berrange.
34509 2011-07-25  Bruno Haible  <bruno@clisp.org>
34511         fseek, ftell: Fix doc.
34512         * doc/posix-functions/fseek.texi: Reword statement about
34513         AC_SYS_LARGEFILE.
34514         * doc/posix-functions/ftell.texi: Likewise.
34516 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34517             Bruno Haible  <bruno@clisp.org>
34519         Add dependencies to the 'largefile' module.
34520         * modules/fopen (Depends-on): Add 'largefile'.
34521         * modules/freopen (Depends-on): Likewise.
34522         * modules/fseeko (Depends-on): Likewise.
34523         * modules/ftello (Depends-on): Likewise.
34524         * modules/glob (Depends-on): Likewise.
34525         * modules/lseek (Depends-on): Likewise.
34526         * modules/lstat (Depends-on): Likewise.
34527         * modules/mkostemp (Depends-on): Likewise.
34528         * modules/mkostemps (Depends-on): Likewise.
34529         * modules/mkstemp (Depends-on): Likewise.
34530         * modules/mkstemps (Depends-on): Likewise.
34531         * modules/open (Depends-on): Likewise.
34532         * modules/openat (Depends-on): Likewise.
34533         * modules/pread (Depends-on): Likewise.
34534         * modules/pwrite (Depends-on): Likewise.
34535         * modules/scandir (Depends-on): Likewise.
34536         * modules/stat (Depends-on): Likewise.
34537         * modules/tmpfile (Depends-on): Likewise.
34538         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
34539         since the containing module now depends on the largefile module.
34540         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
34541         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
34542         off_t is fixed by gnulib.
34543         * doc/posix-functions/freopen.texi: Likewise.
34544         * doc/posix-functions/fseeko.texi: Likewise.
34545         * doc/posix-functions/fstatat.texi: Likewise.
34546         * doc/posix-functions/ftello.texi: Likewise.
34547         * doc/posix-functions/glob.texi: Likewise.
34548         * doc/posix-functions/lseek.texi: Likewise.
34549         * doc/posix-functions/lstat.texi: Likewise.
34550         * doc/posix-functions/mkstemp.texi: Likewise.
34551         * doc/posix-functions/open.texi: Likewise.
34552         * doc/posix-functions/openat.texi: Likewise.
34553         * doc/posix-functions/pread.texi: Likewise.
34554         * doc/posix-functions/pwrite.texi: Likewise.
34555         * doc/posix-functions/scandir.texi: Likewise.
34556         * doc/posix-functions/stat.texi: Likewise.
34557         * doc/posix-functions/tmpfile.texi: Likewise.
34558         * doc/glibc-functions/mkostemp.texi: Likewise.
34559         * doc/glibc-functions/mkostemps.texi: Likewise.
34560         * doc/glibc-functions/mkstemps.texi: Likewise.
34562 2011-07-25  Bruno Haible  <bruno@clisp.org>
34564         fcntl: Move AC_LIBOBJ invocation to module description.
34565         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
34566         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
34568         fcntl: Remove call-in from fchdir.m4.
34569         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
34570         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
34572         dup3: Remove potential call-in from fchdir.m4.
34573         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
34574         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
34576         dup2: Move AC_LIBOBJ invocation to module description.
34577         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
34578         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
34579         Don't invoke AC_LIBOBJ.
34580         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
34582         dup2: Remove call-in from fchdir.m4.
34583         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
34584         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
34586         fclose: Move AC_LIBOBJ invocation to module description.
34587         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
34588         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
34589         to 1.
34590         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
34592         fclose: Remove call-in from close.m4.
34593         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
34594         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
34596         close: Move AC_LIBOBJ invocation to module description.
34597         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
34598         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
34599         1.
34600         * modules/close (configure.ac): Invoke AC_LIBOBJ.
34602         close: Remove call-in from fchdir.m4.
34603         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
34604         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
34606         open: Move AC_LIBOBJ invocation to module description.
34607         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
34608         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
34609         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
34611         open: Remove call-in from fchdir.m4.
34612         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
34613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
34615         fchdir: Start to remove gl_REPLACE_* idiom.
34616         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
34617         (gl_FUNC_FCHDIR): Invoke it.
34619 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
34621         * lib/ftell.c (ftell): Comment out cast.
34623         close: use gl_REPLACE_FCLOSE only if defined
34624         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
34625         is defined.  The close module doesn't depend on the fclose module
34626         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
34627         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
34628         I reproduced the problem with "./gnulib-tool --test close sys_socket".
34630 2011-07-24  Jim Meyering  <meyering@redhat.com>
34632         test-select.h: avoid warning when using gcc's -Wmissing-declarations
34633         * tests/test-select.h (test_function): Declare as "static".
34635 2011-07-24  Bruno Haible  <bruno@clisp.org>
34637         doc: Mention the effects of AC_SYS_LARGEFILE.
34638         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
34639         on this function.
34640         * doc/posix-functions/aio_error.texi: Likewise.
34641         * doc/posix-functions/aio_fsync.texi: Likewise.
34642         * doc/posix-functions/aio_read.texi: Likewise.
34643         * doc/posix-functions/aio_return.texi: Likewise.
34644         * doc/posix-functions/aio_suspend.texi: Likewise.
34645         * doc/posix-functions/aio_write.texi: Likewise.
34646         * doc/posix-functions/fgetpos.texi: Likewise.
34647         * doc/posix-functions/fopen.texi: Likewise.
34648         * doc/posix-functions/freopen.texi: Likewise.
34649         * doc/posix-functions/fsetpos.texi: Likewise.
34650         * doc/posix-functions/fstatvfs.texi: Likewise.
34651         * doc/posix-functions/ftruncate.texi: Likewise.
34652         * doc/posix-functions/ftw.texi: Likewise.
34653         * doc/posix-functions/getrlimit.texi: Likewise.
34654         * doc/posix-functions/glob.texi: Likewise.
34655         * doc/posix-functions/lio_listio.texi: Likewise.
34656         * doc/posix-functions/lockf.texi: Likewise.
34657         * doc/posix-functions/mkstemp.texi: Likewise.
34658         * doc/posix-functions/mmap.texi: Likewise.
34659         * doc/posix-functions/nftw.texi: Likewise.
34660         * doc/posix-functions/openat.texi: Likewise.
34661         * doc/posix-functions/opendir.texi: Likewise.
34662         * doc/posix-functions/posix_fadvise.texi: Likewise.
34663         * doc/posix-functions/posix_fallocate.texi: Likewise.
34664         * doc/posix-functions/pread.texi: Likewise.
34665         * doc/posix-functions/pwrite.texi: Likewise.
34666         * doc/posix-functions/readdir.texi: Likewise.
34667         * doc/posix-functions/readdir_r.texi: Likewise.
34668         * doc/posix-functions/rewinddir.texi: Likewise.
34669         * doc/posix-functions/scandir.texi: Likewise.
34670         * doc/posix-functions/seekdir.texi: Likewise.
34671         * doc/posix-functions/setrlimit.texi: Likewise.
34672         * doc/posix-functions/statvfs.texi: Likewise.
34673         * doc/posix-functions/telldir.texi: Likewise.
34674         * doc/posix-functions/tmpfile.texi: Likewise.
34675         * doc/posix-functions/truncate.texi: Likewise.
34676         * doc/glibc-functions/fallocate.texi: Likewise.
34677         * doc/glibc-functions/fstatfs.texi: Likewise.
34678         * doc/glibc-functions/fts_children.texi: Likewise.
34679         * doc/glibc-functions/fts_read.texi: Likewise.
34680         * doc/glibc-functions/getdirentries.texi: Likewise.
34681         * doc/glibc-functions/mkostemp.texi: Likewise.
34682         * doc/glibc-functions/mkostemps.texi: Likewise.
34683         * doc/glibc-functions/mkstemps.texi: Likewise.
34684         * doc/glibc-functions/preadv.texi: Likewise.
34685         * doc/glibc-functions/pwritev.texi: Likewise.
34686         * doc/glibc-functions/sendfile.texi: Likewise.
34687         * doc/glibc-functions/statfs.texi: Likewise.
34689 2011-07-24  Bruno Haible  <bruno@clisp.org>
34691         doc: Fix typo.
34692         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
34694 2011-07-24  Bruno Haible  <bruno@clisp.org>
34696         doc: Mention fsusage.
34697         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
34699 2011-07-24  Bruno Haible  <bruno@clisp.org>
34701         doc: Mention new glibc headers and functions.
34702         * doc/glibc-headers/gshadow.texi: New file.
34703         * doc/glibc-functions/endsgent.texi: New file.
34704         * doc/glibc-functions/fgetsgent.texi: New file.
34705         * doc/glibc-functions/fgetsgent_r.texi: New file.
34706         * doc/glibc-functions/getsgent.texi: New file.
34707         * doc/glibc-functions/getsgent_r.texi: New file.
34708         * doc/glibc-functions/getsgnam.texi: New file.
34709         * doc/glibc-functions/getsgnam_r.texi: New file.
34710         * doc/glibc-functions/putsgent.texi: New file.
34711         * doc/glibc-functions/setsgent.texi: New file.
34712         * doc/glibc-functions/sgetsgent.texi: New file.
34713         * doc/glibc-functions/sgetsgent_r.texi: New file.
34714         * doc/glibc-functions/malloc_info.texi: New file.
34715         * doc/glibc-functions/preadv.texi: New file.
34716         * doc/glibc-functions/pwritev.texi: New file.
34717         * doc/glibc-functions/register_printf_modifier.texi: New file.
34718         * doc/glibc-functions/register_printf_specifier.texi: New file.
34719         * doc/glibc-functions/register_printf_type.texi: New file.
34720         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
34721         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
34722         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
34723         * doc/glibc-functions/pthread_getname_np.texi: New file.
34724         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
34725         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
34726         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
34727         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
34728         * doc/glibc-functions/pthread_setname_np.texi: New file.
34729         * doc/glibc-functions/pthread_sigqueue.texi: New file.
34730         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
34731         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
34732         * doc/glibc-functions/qsort_r.texi: New file.
34733         * doc/glibc-functions/quick_exit.texi: New file.
34734         * doc/glibc-functions/syncfs.texi: New file.
34735         * doc/gnulib.texi: Include them.
34736         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
34737         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
34738         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
34739         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
34740         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
34741         * doc/glibc-functions/execvpe.texi: Likewise.
34743 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34745         ftell: don't include <unistd.h>
34746         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
34747         guaranteed to define off_t, and the ftell module depends on the
34748         stdio module.
34750         ftell: do not assume wraparound signed arithmetic
34751         * lib/ftell.c: Include <limits.h>.
34752         (ftell): Don't assume wraparound signed arithmetic.
34754 2011-07-24  Bruno Haible  <bruno@clisp.org>
34756         close: No longer depend on module 'fclose'.
34757         * modules/close (Depends-on): Remove fclose.
34758         * NEWS: Mention the change.
34759         Suggested by Sam Steingold <sds@gnu.org>.
34761 2011-07-24  Bruno Haible  <bruno@clisp.org>
34763         fsusage: Enable large volume support on AIX >= 5.2.
34764         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
34765         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
34766         instead of STAT_STATVFS.
34767         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
34769         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
34770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
34771         f_blocks field only on MacOS X.
34773         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
34774         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
34775         * modules/fsusage (Depends-on): Add largefile.
34777 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34779         * README: Modernize discussion of signed integers.
34780         Assuming overflow wraparound is no longer safe.
34781         Mention ones' complement and signed magnitude.
34783 2011-07-22  Bruno Haible  <bruno@clisp.org>
34785         select tests, pselect tests: Refactor.
34786         * tests/test-select.h: New file, extracted from tests/test-select.c.
34787         (select_fn): New type.
34788         (test, do_select, do_select_nowait, do_select_wait, test_tty,
34789         test_connect_first, test_accept_first, test_pair, test_socket_pair,
34790         test_pipe): Add my_select argument.
34791         (test_function): Renamed from main. Add my_select argument.
34792         * tests/test-select.c: Move most code to tests/test-select.h. Include
34793         test-select.h.
34794         * modules/select-tests (Files): Add tests/test-select.h.
34795         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
34796         (my_select, main): New functions.
34797         * modules/pselect-tests (Files): Add tests/test-select.h,
34798         tests/macros.h, tests/signature.h.
34799         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
34800         (configure.ac): Check for <sys/wait.h>.
34802 2011-07-22  Bruno Haible  <bruno@clisp.org>
34804         sys_select tests: Check the signature of FD_*.
34805         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
34806         signature tests from here...
34807         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
34808         here.
34809         * modules/sys_select-tests (Files): Add tests/signature.h.
34811 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34813         largefile: new module, replacing large-inode
34814         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
34815         * MODULES.html.sh: Add largefile, remove large-inode.
34816         * modules/largefile, m4/largefile.m4: New files.
34817         * modules/large-inode, m4/large-inode.m4: Remove.
34819         fsusage: port to MacOS X 10.7 with 4 TiB file systems
34820         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
34821         implementations that use only 32 bits to count blocks.
34822         On typical hosts with 1024-byte blocks, this fails with file
34823         systems as small as 4 TiB.  Problem reported by Herb Wartens
34824         <http://debbugs.gnu.org/9140> and this should also fix a similar
34825         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
34827         large-inode: New module
34828         * MODULES.html.sh: Add it.
34829         * modules/large-inode, m4/large-inode.m4: New files.
34831         extensions: Enable extensions on MacOS X 10.5 and later.
34832         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
34834 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
34836         file-has-acl: use acl_extended_file_nofollow if available
34837         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
34838         (acl_extended_file): New macro.
34839         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
34840         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
34842 2011-07-21  Bruno Haible  <bruno@clisp.org>
34844         Declare system functions in a way that works with C++.
34845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
34846         declare fdopendir as extern "C".
34847         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
34848         declare frexpl as extern "C".
34849         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
34850         declare gai_strerror as extern "C".
34851         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
34852         programs, declare gai_strerror as extern "C".
34853         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
34854         declare getlogin_r as extern "C".
34855         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
34856         as extern "C".
34857         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
34858         declare ldexpl as extern "C".
34859         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
34860         as extern "C".
34861         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
34862         program, declare getmntinfo as extern "C".
34863         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
34864         stpncpy as extern "C".
34865         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
34866         program, declare __xpg_strerror_r as extern "C".
34867         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
34868         strndup as extern "C".
34869         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
34870         declare memset and bzero as extern "C".
34871         Reported by Sam Steingold <sds@gnu.org>.
34873 2011-07-12  Jim Meyering  <meyering@redhat.com>
34875         maint.mk: prohibit inclusion of "verify.h" without use
34876         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
34878 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34880         timer-time: A new module to check for timer_settime()
34881         * m4/timer_time.m4: Check for the posix function.
34882         * modules/timer-time: Add the new module.
34883         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
34884         Mention it.
34886 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
34887             Bruno Haible  <bruno@clisp.org>
34889         pthread_sigmask: assume POSIX threads if --avoid=threadlib
34890         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
34891         not defined, assume POSIX threads and look for pthread_sigmask in
34892         $LIBS, without changing $CPPFLAGS.
34894 2011-07-19  Bruno Haible  <bruno@clisp.org>
34896         strstr: Update cross-compilation guess.
34897         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
34898         CPUs, guess no, in view of glibc
34899         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
34900         Suggested by Eric Blake. Reported by Reuben Thomas.
34902 2011-07-19  Pádraig Brady  <P@draigBrady.com>
34904         getopt-gnu: suppress core dumps from detection code
34905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
34906         to suppress core dumps that may well occur on glibc systems.
34907         * modules/getopt-gnu: Depend on nocrash.
34909 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34911         pthread_sigmask: ensure usleep is declared
34912         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
34913         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
34915 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
34917         doc: Document NonStop portability issues.
34918         * doc/posix-functions/sigaction.texi (sigaction):
34919         * doc/posix-headers/signal.texi (signal.h):
34920         Document NonStop.  See Joachim Schmitz in
34921         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
34923 2011-07-15  Bruno Haible  <bruno@clisp.org>
34925         ffsl, ffsll: Avoid unportable behaviour.
34926         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
34928 2011-07-15  Bruno Haible  <bruno@clisp.org>
34930         ffs: More tests.
34931         * tests/test-ffs.c (NBITS): New macro.
34932         (main): Add more tests.
34933         * tests/test-ffsl.c (NBITS): New macro.
34934         (main): Add more tests.
34935         * tests/test-ffsll.c (NBITS): New macro.
34936         (main): Add more tests.
34938 2011-07-15  Eric Blake  <eblake@redhat.com>
34940         ffsl, ffsll: new modules
34941         * modules/ffsl: New file.
34942         * modules/ffsll: Likewise.
34943         * m4/ffsl.m4: Likewise.
34944         * m4/ffsll.m4: Likewise.
34945         * lib/ffsl.c: Likewise.
34946         * lib/ffsl.h: Likewise.
34947         * lib/ffsll.c: Likewise.
34948         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
34949         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
34950         * modules/string (Makefile.am): Substitute witnesses.
34951         * lib/strings.in.h (ffsl, ffsll): Declare.
34952         * modules/ffsl-tests: New test file.
34953         * modules/ffsll-tests: Likewise.
34954         * tests/test-ffsl.c: Likewise.
34955         * tests/test-ffsll.c: Likewise.
34956         * MODULES.html.sh (Integer arithmetic functions): Mention it.
34957         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
34958         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
34960         ffs: fix m4 prerequisite
34961         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
34963         ffs: avoid undefined behavior
34964         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
34965         * tests/test-ffs.c (naive, main): Avoid signed shifts.
34966         Reported by Bruno Haible.
34968 2011-07-12  Bruno Haible  <bruno@clisp.org>
34970         pthread_sigmask: Rely on module 'threadlib'.
34971         * modules/pthread_sigmask (Depends-on): Add threadlib.
34972         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
34973         is defined.
34975 2011-07-12  Bruno Haible  <bruno@clisp.org>
34977         regex: Depend on module 'strcase'.
34978         * modules/regex (Depends-on): Add strcase, for strcasecmp().
34980 2011-07-12  Jim Meyering  <meyering@redhat.com>
34982         warn-on-use: fix typo in file name
34983         * modules/snippet/warn-on-use (Files): Correct file name:
34984         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
34986 2011-07-12  Bruno Haible  <bruno@clisp.org>
34988         strings: Document module.
34989         * doc/posix-headers/strings.texi: Mention module 'strings'.
34991 2011-07-12  Bruno Haible  <bruno@clisp.org>
34993         Rename module '_Noreturn' to 'snippet/_Noreturn'.
34994         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
34995         (Files, Makefile.am): Update.
34996         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
34997         * modules/stdlib (Depends-on): Update.
34999 2011-07-12  Bruno Haible  <bruno@clisp.org>
35001         * NEWS: Mention the changes.
35003         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
35004         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
35005         (Files, Makefile.am): Update.
35006         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
35007         * modules/arpa_inet (Depends-on): Update.
35008         * modules/ctype (Depends-on): Update.
35009         * modules/dirent (Depends-on): Update.
35010         * modules/fcntl-h (Depends-on): Update.
35011         * modules/glob (Depends-on): Update.
35012         * modules/iconv-h (Depends-on): Update.
35013         * modules/inttypes-incomplete (Depends-on): Update.
35014         * modules/langinfo (Depends-on): Update.
35015         * modules/locale (Depends-on): Update.
35016         * modules/math (Depends-on): Update.
35017         * modules/netdb (Depends-on): Update.
35018         * modules/poll-h (Depends-on): Update.
35019         * modules/pty (Depends-on): Update.
35020         * modules/search (Depends-on): Update.
35021         * modules/signal (Depends-on): Update.
35022         * modules/spawn (Depends-on): Update.
35023         * modules/stdio (Depends-on): Update.
35024         * modules/stdlib (Depends-on): Update.
35025         * modules/string (Depends-on): Update.
35026         * modules/strings (Depends-on): Update.
35027         * modules/sys_file (Depends-on): Update.
35028         * modules/sys_ioctl (Depends-on): Update.
35029         * modules/sys_select (Depends-on): Update.
35030         * modules/sys_socket (Depends-on): Update.
35031         * modules/sys_stat (Depends-on): Update.
35032         * modules/sys_time (Depends-on): Update.
35033         * modules/sys_times (Depends-on): Update.
35034         * modules/sys_utsname (Depends-on): Update.
35035         * modules/sys_wait (Depends-on): Update.
35036         * modules/termios (Depends-on): Update.
35037         * modules/time (Depends-on): Update.
35038         * modules/unistd (Depends-on): Update.
35039         * modules/wchar (Depends-on): Update.
35040         * modules/wctype-h (Depends-on): Update.
35041         * MODULES.html.sh (Support for building libraries and executables):
35042         Update.
35044         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
35045         * modules/snippet/unused-parameter: Renamed from
35046         modules/unused-parameter.
35047         (Files, Makefile.am): Update.
35048         * build-aux/snippet/unused-parameter.h: Renamed from
35049         build-aux/unused-parameter.h.
35050         * modules/selinux-h (Depends-on): Update.
35051         * modules/unistr/base (Depends-on): Update.
35052         * MODULES.html.sh (Core language properties): Update.
35054         Rename module 'link-warning' to 'snippet/link-warning'.
35055         * modules/snippet/link-warning: Renamed from modules/link-warning.
35056         (Files, Makefile.am): Update.
35057         * build-aux/snippet/link-warning.h: Renamed from
35058         build-aux/link-warning.h.
35059         * MODULES.html.sh (Support for building libraries and executables):
35060         Update.
35062         Rename module 'c++defs' to 'snippet/c++defs'.
35063         * modules/snippet/c++defs: Renamed from modules/c++defs.
35064         (Files, Makefile.am): Update.
35065         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
35066         * modules/arpa_inet (Depends-on): Update.
35067         * modules/ctype (Depends-on): Update.
35068         * modules/dirent (Depends-on): Update.
35069         * modules/fcntl-h (Depends-on): Update.
35070         * modules/glob (Depends-on): Update.
35071         * modules/iconv-h (Depends-on): Update.
35072         * modules/langinfo (Depends-on): Update.
35073         * modules/locale (Depends-on): Update.
35074         * modules/math (Depends-on): Update.
35075         * modules/netdb (Depends-on): Update.
35076         * modules/poll-h (Depends-on): Update.
35077         * modules/pty (Depends-on): Update.
35078         * modules/search (Depends-on): Update.
35079         * modules/signal (Depends-on): Update.
35080         * modules/spawn (Depends-on): Update.
35081         * modules/stdio (Depends-on): Update.
35082         * modules/stdlib (Depends-on): Update.
35083         * modules/string (Depends-on): Update.
35084         * modules/strings (Depends-on): Update.
35085         * modules/sys_ioctl (Depends-on): Update.
35086         * modules/sys_select (Depends-on): Update.
35087         * modules/sys_socket (Depends-on): Update.
35088         * modules/sys_stat (Depends-on): Update.
35089         * modules/sys_time (Depends-on): Update.
35090         * modules/sys_wait (Depends-on): Update.
35091         * modules/termios (Depends-on): Update.
35092         * modules/time (Depends-on): Update.
35093         * modules/unistd (Depends-on): Update.
35094         * modules/wchar (Depends-on): Update.
35095         * modules/wctype-h (Depends-on): Update.
35097         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
35098         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
35099         (Files, Makefile.am): Update.
35100         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
35101         * modules/argv-iter (Depends-on): Update.
35102         * modules/arpa_inet (Depends-on): Update.
35103         * modules/dirent (Depends-on): Update.
35104         * modules/fcntl-h (Depends-on): Update.
35105         * modules/fnmatch (Depends-on): Update.
35106         * modules/getopt-posix (Depends-on): Update.
35107         * modules/glob (Depends-on): Update.
35108         * modules/iconv-h (Depends-on): Update.
35109         * modules/inttypes-incomplete (Depends-on): Update.
35110         * modules/locale (Depends-on): Update.
35111         * modules/math (Depends-on): Update.
35112         * modules/netdb (Depends-on): Update.
35113         * modules/search (Depends-on): Update.
35114         * modules/signal (Depends-on): Update.
35115         * modules/spawn (Depends-on): Update.
35116         * modules/stdio (Depends-on): Update.
35117         * modules/stdlib (Depends-on): Update.
35118         * modules/string (Depends-on): Update.
35119         * modules/strings (Depends-on): Update.
35120         * modules/sys_socket (Depends-on): Update.
35121         * modules/sys_stat (Depends-on): Update.
35122         * modules/sys_time (Depends-on): Update.
35123         * modules/sys_times (Depends-on): Update.
35124         * modules/sys_utsname (Depends-on): Update.
35125         * modules/time (Depends-on): Update.
35126         * modules/unistd (Depends-on): Update.
35127         * modules/wchar (Depends-on): Update.
35128         * MODULES.html.sh (Support for building libraries and executables):
35129         Update.
35131 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
35133         Improvements on _Noreturn and related modules.
35135         modules/_Exit-tests: test _Noreturn too
35136         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
35137         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
35138         (main): Use them.
35140         stdnoreturn, stdnoreturn-tests: remove modules
35141         They're not needed here and a bit premature for use elsewhere.  See
35142         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
35143         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
35144         * tests/test-stdnoreturn.c: Remove files.
35145         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
35146         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
35147         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
35148         and using noreturn.
35149         * modules/openat, modules/sigpipe-die, modules/xalloc:
35150         * modules/xmemdup0, modules/xstrtol:
35151         Remove dependency on stdnoreturn.
35153         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
35154         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
35155         Reparenthesize to avoid GCC warning.
35156         Support Microsoft's syntax.
35157         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
35159         _Noreturn-tests: remove module
35160         * modules/_Noreturn-tests: Remove.
35161         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
35162         * tests/test-_Noreturn.c: Remove.
35163         * tests/test-stdnoreturn.c: Merge from the old
35164         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
35166 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
35168         _Noreturn, stdnoreturn, and related modules.
35170         * top/maint.mk: Adjust to new noreturn support.
35171         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
35172         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
35174         xalloc: use stdnoreturn.h
35175         * lib/xalloc.h: Include <stdnoreturn.h>.
35176         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35177         * modules/xalloc (Depends-on): Add stdnoreturn.
35179         xstrtol: use stdnoreturn.h
35180         * lib/xstrtol.h: Include <stdnoreturn.h>.
35181         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35182         * modules/xstrtol (Depends-on): Add stdnoreturn.
35184         xmemdup0: use stdnoreturn.h
35185         * lib/xmemdup0.h: Include <stdnoreturn.h>.
35186         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35187         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
35189         sigpipe-die: use stdnoreturn.h
35190         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
35191         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35192         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
35194         openat: use stdnoreturn.h
35195         * lib/openat.h: Include <stdnoreturn.h>.
35196         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
35197         * modules/openat (Depends-on): Add stdnoreturn.
35199         * lib/openat-die.c (openat_save_fail): Modernize comment.
35201         * lib/xalloc-die.c (xalloc_die): Modernize comment.
35203         * lib/glthread/thread.h: Modernize comment.
35205         obstack: use _Noreturn
35206         * lib/obstack.c (__attribute__): Remove macro.
35207         (print_and_abort): Use _Noreturn.
35209         c-stack: use _Noreturn
35210         * lib/c-stack.c (die, overflow_handler, segv_handler):
35211         Use _Noreturn rather than __attribute__((noreturn)).
35213         argmatch-tests, exclude_tests: use _Noreturn
35214         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
35215         Remove.
35216         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
35218         stdlib: use _Noreturn
35219         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
35220         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
35221         * modules/stdlib (Depends-on): Add _Noreturn.
35222         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
35224         stdnoreturn-tests: new module
35225         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
35227         stdnoreturn: new module
35228         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
35229         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
35231         _Noreturn-tests: new module
35232         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
35234         _Noreturn: new module
35235         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
35236         New section, mentioning it.
35237         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
35239         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
35241 2011-07-11  Eric Blake  <eblake@redhat.com>
35243         ffs: new module
35244         * modules/ffs: New file.
35245         * m4/ffs.m4: Likewise.
35246         * lib/ffs.c: Likewise.
35247         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
35248         * modules/strings (Makefile.am): Substitute witness.
35249         (Depends-on): Add c++defs.
35250         * lib/strings.in.h (ffs): Declare.
35251         * modules/ffs-tests: New test file.
35252         * tests/test-ffs.c: Test new module.
35253         * MODULES.html.sh (Integer arithmetic functions): Mention it.
35254         * doc/posix-functions/ffs.texi (ffs): Likewise.
35256         regex: avoid compiler warning
35257         * lib/regex.c (includes): Include <strings.h>, for use of
35258         strcasecmp in regcomp.c.
35259         Reported by Joachim Schmitz.
35261 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35263         stdint: respect system's intmax_t if INTMAX_MAX
35264         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
35265         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
35266         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
35267         long but int64_t is long long, and where we will clash with the
35268         system intmax_t if we override it.  See
35269         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
35270         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
35271         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
35272         similarly for UINTMAX_C.
35274 2011-07-08  Bruno Haible  <bruno@clisp.org>
35276         pthread_sigmask tests: Avoid a compiler warning.
35277         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
35278         non-zero.
35280         sigprocmask tests: A better way to avoid a compiler warning.
35281         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
35282         (main): Complain if system() returns non-zero.
35283         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
35285 2011-07-08  Bruno Haible  <bruno@clisp.org>
35287         pthread_sigmask: Work around IRIX bug.
35288         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
35289         bug.
35290         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
35291         there may be unblocked pending signals.
35292         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
35294 2011-07-08  Bruno Haible  <bruno@clisp.org>
35296         pthread_sigmask: Work around Cygwin bug.
35297         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
35298         bug.
35299         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
35300         the system's pthread_sigmask function.
35301         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
35303 2011-07-08  Bruno Haible  <bruno@clisp.org>
35305         pthread_sigmask: Work around bug in single-threaded implementation.
35306         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
35307         FreeBSD, HP-UX, Solaris bug.
35308         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
35309         * lib/pthread_sigmask.c: Include <stddef.h>.
35310         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
35311         the system's pthread_sigmask function.
35312         * modules/pthread_sigmask (configure.ac): Invoke
35313         gl_PREREQ_PTHREAD_SIGMASK.
35314         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
35315         HP-UX, Solaris.
35317 2011-07-08  Eric Blake  <eblake@redhat.com>
35319         test-sigprocmask: avoid compiler warning
35320         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
35321         * tests/test-sigprocmask.c (main): Use it to silence warning.
35322         Reported by Jim Meyering.
35324         test-snprintf: avoid compiler warning
35325         * tests/test-snprintf.c (main): Avoid shadowed declaration.
35326         * tests/test-vsnprintf.c (main): Likewise.
35327         Reported by Jim Meyering.
35329 2011-07-08  Bruno Haible  <bruno@clisp.org>
35331         Tests for module 'pthread_sigmask'.
35332         * modules/pthread_sigmask-tests: New file.
35333         * tests/test-pthread_sigmask1.c: New file, based on
35334         tests/test-sigprocmask.c.
35335         * tests/test-pthread_sigmask2.c: New file.
35337 2011-07-08  Jim Meyering  <meyering@redhat.com>
35339         test-getopt.h: avoid warning about an unused variable
35340         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
35342 2011-07-07  Jim Meyering  <meyering@redhat.com>
35344         maint: reduce list of files exempt from sc_prohibit_leading_TABs
35345         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
35346         now that it no longer contains leading TABs.
35347         Remove unused "url=FIXME" statement.
35349 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
35351         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
35352         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35353         When gl_THREADLIB is not in use, assume that the POSIX sematics
35354         are desired.  This is better for Emacs, which uses POSIX semantics
35355         on GNUish and/or POSIXish platforms, and does not use threads at
35356         all otherwise.
35358         pthread_sigmask: fix typo when testing for libraries
35359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
35360         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
35362 2011-07-08  Eric Blake  <eblake@redhat.com>
35364         fts: introduce FTS_NOATIME
35365         * lib/fts_.h (FTS_NOATIME): New bit flag.
35366         (FTS_OPTIONMASK): Adjust.
35367         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
35368         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
35370 2011-07-08  Bruno Haible  <bruno@clisp.org>
35372         Tests for module 'thread'.
35373         * modules/thread-tests: New file.
35374         * tests/test-thread_self.c: New file.
35375         * tests/test-thread_create.cc: New file.
35377 2011-07-08  Bruno Haible  <bruno@clisp.org>
35379         thread: Avoid gcc warnings when using gl_thread_self().
35380         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
35381         'void *'.
35382         (gl_thread_self_pointer): Update.
35384 2011-07-07  Bruno Haible  <bruno@clisp.org>
35386         signal-c++-tests: Check declaration of pthread_sigmask.
35387         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
35388         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
35389         $(LIB_PTHREAD_SIGMASK).
35391 2011-07-07  Bruno Haible  <bruno@clisp.org>
35393         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
35394         * lib/signal.in.h (pthread_sigmask): Override if
35395         REPLACE_PTHREAD_SIGMASK is 1.
35396         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35397         REPLACE_PTHREAD_SIGMASK.
35398         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
35399         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
35400         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
35401         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35402         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
35404 2011-07-07  Bruno Haible  <bruno@clisp.org>
35406         pthread_sigmask: Ensure declaration in <signal.h>.
35407         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
35408         include <pthread.h>.
35409         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
35410         problem.
35412 2011-07-07  Bruno Haible  <bruno@clisp.org>
35414         pthread_sigmask: Document the module.
35415         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
35417 2011-07-07  Bruno Haible  <bruno@clisp.org>
35419         pthread_sigmask: Follow gnulib conventions.
35420         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
35421         gl_PTHREAD_SIGMASK.
35422         * modules/pthread_sigmask (configure.ac): Update.
35424 2011-07-07  Bruno Haible  <bruno@clisp.org>
35426         pthread_sigmask: Make declaration C++ safe.
35427         * lib/signal.in.h: In two special conditions, just do an #include_next.
35428         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35429         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
35430         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
35431         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
35432         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
35433         not REPLACE_PTHREAD_MASK.
35434         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
35435         not REPLACE_PTHREAD_MASK.
35436         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
35438 2011-07-07  Bruno Haible  <bruno@clisp.org>
35440         pthread_sigmask: Fix return value.
35441         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
35442         * lib/pthread_sigmask.c: New file.
35443         * modules/pthread_sigmask (Files): Add it.
35444         (configure.ac): Invoke AC_LIBOBJ.
35446 2011-07-07  Eric Blake  <eblake@redhat.com>
35448         getopt: more portable argv creation
35449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
35450         const, use char arrays rather than strings.
35451         Suggested by Paul Eggert.
35453 2011-07-07  Bruno Haible  <bruno@clisp.org>
35455         Tests for module 'sigprocmask'.
35456         * modules/sigprocmask-tests: New file.
35457         * tests/test-sigprocmask.c: New file.
35459 2011-07-07  Bruno Haible  <bruno@clisp.org>
35461         float tests: Tweak.
35462         * tests/test-float.c (main): Tweak skip message.
35464 2011-07-07  Eric Blake  <eblake@redhat.com>
35466         getopt: avoid compiler warning during configure
35467         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
35468         assigning string literals to non-const pointer.
35470         getopt-gnu: avoid crash in glibc getopt
35471         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
35472         * tests/test-getopt.h (test_getopt): Enhance test.
35473         * tests/test-getopt_long.h (test_getopt_long): Likewise.
35474         * doc/posix-functions/getopt.texi (getopt): Document it.
35475         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
35476         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35477         Likewise.
35479 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
35481         getopt: handle W; without long options in getopt [BZ #12922]
35482         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
35483         but no long options are defined, just return 'W'.
35485 2011-07-07  Bruno Haible  <bruno@clisp.org>
35487         Avoid literal tabs.
35488         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
35489         variable containing a tab instead of a literal tab.
35490         Reported by Jim Meyering.
35492 2011-07-07  Bruno Haible  <bruno@clisp.org>
35494         Comments.
35495         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
35497 2011-07-06  Bruno Haible  <bruno@clisp.org>
35499         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
35500         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
35501         <winsock2.h>.
35502         (rpl_fd_isset, FD_ISSET): New definitions, copied from
35503         lib/sys_socket.in.h.
35504         (close, gethostname): Hide declarations from <winsock2.h>.
35505         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35506         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
35507         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
35508         (select): Don't override if gnulib's <sys/select.h> was already
35509         included.
35510         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
35511         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
35512         setsockopt, shutdown, select): Tweak indentation.
35514 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35516         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
35517         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
35518         in an application that does not use the sys_select module.
35520 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
35522         poll: do not return 0 on timeout=-1
35523         * lib/poll.c: Loop with yield if no events occurred.
35525 2011-07-06  Eric Blake  <eblake@redhat.com>
35527         pthread_sigmask: always replace when not using pthread
35528         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
35529         replacement when using some threading other than pthread.  Fix
35530         logic bug.
35532 2011-07-06  Bruno Haible  <bruno@clisp.org>
35534         Comments.
35535         * m4/printf.m4: Update comments about mingw.
35537 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35539         sys_select: define sigset_t more portably
35540         * lib/sys_select.in.h: Always include <sys/types.h>, since
35541         we now need sigset_t and mingw defines it there.
35542         Include <signal.h> before split inclusion guard, to avoid
35543         mishaps on Solaris, whose <signal.h> eventually includes us.
35544         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
35545         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
35546         which come from ...
35547         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
35548         gl_CHECK_TYPE_SIGSET_T.
35549         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
35550         does the real work.
35551         * modules/sys_select (Depends-on): Add 'signal'.
35553         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
35554         Suggested by Bruno Haible.
35556         pselect: Use pthread_sigmask, not sigprocmask.
35557         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
35558         multithreaded apps better than sigprocmask does.
35559         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
35560         sigprocmask directly.
35562 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
35564         * lib/pselect.c (pselect): Use plain name, without "rpl_".
35565         Don't #undef,  since we don't need any underlying pselect.
35566         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
35567         (Depends-on): Add select.
35568         (Link): Add $(LIBSOCKET).
35569         These changes suggested by Bruno Haible.
35571         pselect: document better
35572         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35573         * doc/posix-functions/pselect.texi (pselect): Document new module.
35575         pthread_sigmask: new module
35576         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
35577         * doc/posix-functions/pthread_sigmask.texi: Document new module.
35578         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
35579         This is done only as a macro; I don't know how well that'll
35580         work for C++.  Move <sys/types.h> include before the include_next,
35581         to avoid mishap on Solaris.
35582         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
35583         * modules/signal (Makefile.am): Substitute the check's results.
35584         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
35586         test-pselect: new module
35587         * modules/pselect-tests, tests/test-pselect.c: New files.
35588         * tests/test-select.c, tests/test-sys_select-c++.cc:
35589         If TEST_PSELECT is defined, test pselect instead of testing select.
35591         * tests/test-sys_select.c (sigset_t): Test for it, too.
35592         Suggested by Bruno Haible.
35594 2011-07-05  Eric Blake  <eblake@redhat.com>
35596         snprintf: guarantee %1$d, for libintl
35597         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
35598         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
35599         * doc/posix-functions/snprintf.texi (snprintf): Update.
35600         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
35601         * tests/test-snprintf.c (main): Enhance test.
35602         * tests/test-vsnprintf.c (main): Likewise.
35604 2011-07-05  Jim Meyering  <meyering@redhat.com>
35606         maint: exempt stdio-read.c and stdio-write.c from the cppi check
35607         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
35608         per Bruno's request, to accommodate this idiom (no space after "#")
35609         even when the function is inside an #if block:
35610         char *
35611         gets (char *s)
35612         #undef gets
35613         {
35614           ...
35615         }
35617 2011-07-04  Jim Meyering  <meyering@redhat.com>
35619         maint: indent with spaces, not TABs, and add a rule to check this
35620         * tests/test-userspec.c: Indent with spaces, not TABs.
35621         * tests/test-argp.c: Likewise.
35622         * tests/test-c-stack2.sh: Likewise.
35623         * tests/test-parse-duration.sh: Likewise
35624         * m4/strtod.m4: Likewise.
35625         * m4/alloca.m4: Likewise.
35626         * m4/pselect.m4: Likewise.
35627         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
35629 2011-07-03  Jim Meyering  <meyering@redhat.com>
35631         maint.mk: correct omissions in prohibit_argmatch_without_use check
35632         This rule would mistakenly report that argmatch.h is included without
35633         use even when both the argmatch and invalid_arg macro were used.
35634         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
35635         of argmatch and invalid_arg.
35637 2011-07-03  Bruno Haible  <bruno@clisp.org>
35639         Comments about EINTR.
35640         * lib/safe-read.h: Explain the purpose of this module.
35641         * lib/safe-write.h: Likewise.
35642         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
35643         module.
35644         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
35645         module.
35646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35648 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35650         xnanosleep: Rewrite to use new dtotimespec module.
35651         It has the conversion code that used to be in xnanosleep.
35652         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
35653         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
35654         (TIME_T_MAX): Remove.
35655         (xnanosleep): Rewrite in terms of dtotimespec.
35656         * modules/xnanosleep (Depends-on): Add dtotimespec.
35657         Remove intprops, stdbool.
35659         timespec-add, timespec-sub: new modules
35660         * lib/timespec.h (timespec_add, timespec_sub): New decls.
35661         * lib/timespec-add.c, lib/timespec-sub.c:
35662         * modules/timespec-add, modules/timespec-sub: New files.
35664         dtotimespec: new module
35665         * lib/timespec.h (dtotimespec): New decl.
35666         * lib/dtotimespec.c, modules/dtotimespec: New files.
35668         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
35670         pselect: new module
35671         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
35672         (pselect): New decls.
35673         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
35674         since the standard pselect decl uses 'restrict'.
35675         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
35676         HAVE_PSELECT, REPLACE_PSELECT.
35677         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
35678         HAVE_PSELECT, REPLACE_PSELECT.
35679         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
35681         sys_select: don't depend on sys_socket
35682         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
35683         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
35684         This fix works on GNU and GNU-like platforms, but has not been tested
35685         on native Windows.
35686         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
35687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
35688         gl_HEADER_SYS_SOCKET.
35689         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
35690         gl_PREREQ_SYS_H_WINSOCK2.
35692 2011-06-29  Eric Blake  <eblake@redhat.com>
35694         pipe2: fix C89 compile problem
35695         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
35696         Reported by Bruno Haible.
35698         pipe, pipe2: don't corrupt fd on error
35699         * lib/pipe.c (pipe): Leave fd unchanged on error.
35700         * lib/pipe2.c (pipe2): Likewise.
35701         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
35702         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
35704 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
35706         mmap-anon: do not use regular expressions inadvertently
35707         * m4/mmap-anon.m4: Remove trailing period from strings sought
35708         in the output.
35710 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
35712         nanosleep: fix integer overflow problem
35713         * lib/nanosleep.c (my_usleep): Don't assume signed integer
35714         arithmetic wraps around on overflow.
35716         nanosleep: simplify carrying
35717         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
35718         first call to the underyling nanosleep, not for the last one.
35719         This doesn't fix any bugs, but it simplifies the computation of
35720         the remaining delay.  Found while auditing integer overflow issues.
35722         dup2: remove test for existence of fcntl
35723         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
35724         "#if HAVE_FCNTL", in the configure-time test program.
35725         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
35726         and therefore speeds up "configure" a bit.  Found while
35727         adding the dup2 module to Emacs.
35729 2011-06-24  Eric Blake  <eblake@redhat.com>
35731         maint.mk: enhance useless header checks
35732         * top/maint.mk (_sc_header_without_use): Check both include
35733         styles.
35734         (sc_prohibit_assert_without_use)
35735         (sc_prohibit_close_stream_without_use)
35736         (sc_prohibit_getopt_without_use)
35737         (sc_prohibit_quotearg_without_use)
35738         (sc_prohibit_quote_without_use)
35739         (sc_prohibit_long_options_without_use)
35740         (sc_prohibit_inttostr_without_use)
35741         (sc_prohibit_ignore_value_without_use)
35742         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
35743         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
35744         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
35745         (sc_prohibit_hash_pjw_without_use)
35746         (sc_prohibit_safe_read_without_use)
35747         (sc_prohibit_argmatch_without_use)
35748         (sc_prohibit_canonicalize_without_use)
35749         (sc_prohibit_root_dev_ino_without_use)
35750         (sc_prohibit_openat_without_use)
35751         (sc_prohibit_c_ctype_without_use)
35752         (sc_prohibit_signal_without_use)
35753         (sc_prohibit_stdio--_without_use)
35754         (sc_prohibit_stdio-safer_without_use)
35755         (sc_prohibit_strings_without_use)
35756         (sc_prohibit_intprops_without_use)
35757         (sc_prohibit_stddef_without_use)
35758         (sc_prohibit_xfreopen_without_use): Update clients.
35760 2011-06-24  Jim Meyering  <meyering@redhat.com>
35762         syntax-check: keep one maint.mk rule in sync with its header
35763         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
35764         of the bug Eric has just fixed, with today's commit 25e4c2ec.
35765         I prefer to avoid temporary files here, so use <(...), but that
35766         is not supported by /bin/sh, so...
35767         (SHELL): Define to /bin/bash.
35769 2011-06-24  Eric Blake  <eblake@redhat.com>
35771         maint.mk: update sc_prohibit_intprops_without_use
35772         * top/maint.mk (_intprops_names): Match recent changes.
35774 2011-06-24  Bruno Haible  <bruno@clisp.org>
35776         strerror-override: No-op tweak.
35777         * lib/strerror-override.h (strerror_override): Reorder conditions,
35778         for consistency with lib/strerror-override.c.
35780 2011-06-23  Eric Blake  <eblake@redhat.com>
35782         maint.mk: test further PATH_MAX issues
35783         * top/maint.mk (sc_prohibit_path_max_array): Rename...
35784         (sc_prohibit_path_max_allocation): ...and also test alloca.
35785         Suggested by Jim Meyering.
35787 2011-06-22  Eric Blake  <eblake@redhat.com>
35789         maint.mk: add syntax-check to avoid char[PATH_MAX]
35790         * top/maint.mk (sc_prohibit_path_max_array): New rule.
35792         stat: be robust to PATH_MAX definition
35793         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
35794         * modules/stat (Depends-on): Add verify.
35796         link: work around IRIX bug
35797         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
35798         * lib/link.c (rpl_link): Work around it.
35799         * tests/test-link.h (test_link): Enhance test.
35800         * doc/posix-functions/link.texi (link): Document the bug.
35802         getopt: silence clang warning
35803         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
35804         dereference.
35805         Reported by Gustavo Martin Domato.
35807 2011-06-22  Jim Meyering  <meyering@redhat.com>
35809         bootstrap: do not insert a blank line into each .gitignore file
35810         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
35812 2011-06-21  Eric Blake  <eblake@redhat.com>
35814         perror: test for output mismatch
35815         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
35816         perror on IRIX.
35818         strerror_r: fix OpenBSD behavior on out-of-range
35819         * lib/strerror_r.c (strerror_r): Always use maximal string.
35820         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
35822         strerror_r: fix OpenBSD behavior on 0
35823         * lib/strerror-override.c (strerror_override): Also override 0
35824         when needed.
35825         * lib/strerror-override.h (strerror_override): Likewise.
35826         * lib/strerror.c (strerror): Simplify, now that 0 override is done
35827         earlier.
35828         * lib/strerror_r.c (strerror_r): Likewise.
35829         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
35830         behavior...
35831         (gl_FUNC_STRERROR_0): ...into new macro.
35832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
35833         is overridden.
35834         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
35835         * modules/strerror-override (Files): Add strerror.m4.
35836         (configure.ac): Also provide override for 0 when needed.
35837         * doc/posix-functions/strerror.texi (strerror): Document this.
35838         * doc/posix-functions/perror.texi (perror): Likewise.
35840         perror: adjust array size
35841         * modules/perror (Depends-on): Add strerror-override.
35842         * lib/perror.c (perror): Use it to avoid magic number.
35844         strerror-override: reduce size
35845         * lib/strerror-override.c (strerror_override): Use fewer lines.
35847 2011-06-20  Bruno Haible  <bruno@clisp.org>
35849         pathmax: Ensure correct value for PATH_MAX on HP-UX.
35850         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
35852 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35854         alloca: port to compilers that can optimize like GCC 4.6.0
35855         * lib/alloca.c (find_stack_direction): New signature, taken from
35856         Autoconf git.  This works with GCC 4.6.0.  This code should never
35857         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
35858         be used with other compilers that optimize as well as GCC 4.6.0 does.
35859         (alloca): Adjust to new signature.
35860         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
35861         New macro, which patches Autoconf in a similar way.
35863         c-stack: stop worrying about stack direction
35864         * lib/c-stack.c (find_stack_direction): Remove.
35865         (segv_handler): Don't worry about stack direction growth, as it's
35866         too much of a pain to configure this correctly, given how compilers
35867         are optimizing-away our stack-growth detection code.  Instead, assume
35868         that any access to just before or just after the stack is OK.
35869         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35870         Don't require AC_FUNC_ALLOCA; no longer needed.
35872 2011-06-20  Eric Blake  <eblake@redhat.com>
35874         test-stat: don't allocate PATH_MAX bytes
35875         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
35876         PATH_MAX-sized buffer.
35877         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
35878         * modules/stat-tests (Depends-on): Likewise.
35879         * tests/test-fstatat.c (includes): Drop pathmax.h.
35880         * tests/test-stat.c (includes): Likewise.
35881         Reported by Bruno Haible.
35883 2011-06-20  Bruno Haible  <bruno@clisp.org>
35885         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
35886         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
35887         * lib/float.c: New file.
35888         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
35889         REPLACE_FLOAT_LDBL.
35890         * modules/float (Files): Add lib/float.c.
35891         (configure.ac): Invoke AC_LIBOBJ.
35892         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
35894 2011-06-20  Bruno Haible  <bruno@clisp.org>
35896         Tests for module 'float'.
35897         * modules/float-tests: New file.
35898         * tests/test-float.c: New file.
35900 2011-06-19  Bruno Haible  <bruno@clisp.org>
35902         isinf: Coding style.
35903         * lib/isinf.c: Use GNU coding style.
35905 2011-06-19  Bruno Haible  <bruno@clisp.org>
35907         linkat test: Avoid test failure on AIX 7.1.
35908         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
35909         * tests/test-link.h (test_link): Likewise.
35911 2011-06-19  Bruno Haible  <bruno@clisp.org>
35913         pread test: Avoid test failure on OpenBSD 4.9.
35914         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
35916 2011-06-19  Bruno Haible  <bruno@clisp.org>
35918         sprintf-posix: Fix test failure on AIX 7.1.
35919         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
35920         * doc/posix-functions/dprintf.texi: Mention limited precision problem
35921         on AIX.
35922         * doc/posix-functions/fprintf.texi: Likewise.
35923         * doc/posix-functions/printf.texi: Likewise.
35924         * doc/posix-functions/snprintf.texi: Likewise.
35925         * doc/posix-functions/sprintf.texi: Likewise.
35926         * doc/posix-functions/vdprintf.texi: Likewise.
35927         * doc/posix-functions/vfprintf.texi: Likewise.
35928         * doc/posix-functions/vprintf.texi: Likewise.
35929         * doc/posix-functions/vsnprintf.texi: Likewise.
35930         * doc/posix-functions/vsprintf.texi: Likewise.
35932 2011-06-19  Bruno Haible  <bruno@clisp.org>
35934         roundl-ieee: Fix test failure on AIX 7.1.
35935         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
35936         * doc/posix-functions/roundl.texi: Mention problem with negative
35937         arguments.
35939 2011-06-19  Bruno Haible  <bruno@clisp.org>
35941         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35942         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
35943         * doc/posix-functions/round.texi: Mention problem with negative
35944         arguments.
35945         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
35947 2011-06-19  Bruno Haible  <bruno@clisp.org>
35949         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
35950         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
35951         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
35952         * doc/posix-functions/roundf.texi: Mention problem with negative
35953         arguments.
35954         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
35956 2011-06-19  Bruno Haible  <bruno@clisp.org>
35958         ceilf-ieee: Work around bug on MacOS X 10.5.
35959         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
35961         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
35962         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
35963         IEEE compliant, avoid compiler optimizations.
35964         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
35965         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35966         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
35967         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
35968         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
35969         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
35970         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
35971         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
35972         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
35973         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
35975 2011-06-19  Bruno Haible  <bruno@clisp.org>
35977         ceilf-ieee: Work around bug on AIX 7.1.
35978         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
35979         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
35981 2011-06-19  Bruno Haible  <bruno@clisp.org>
35983         ceil-ieee: Work around bug on AIX 7.1.
35984         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
35985         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
35987 2011-06-18  Bruno Haible  <bruno@clisp.org>
35989         fsync test: Avoid test failure on MacOS X and AIX.
35990         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
35991         EINVAL.
35993 2011-06-18  Bruno Haible  <bruno@clisp.org>
35995         openat, fdopendir tests: Fix link errors.
35996         * modules/openat-tests (Depends-on): Add progname.
35997         * modules/fdopendir-tests (Depends-on): Likewise.
35998         * tests/test-fchownat.c: Include progname.h.
35999         (main): Call set_program_name.
36000         * tests/test-fstatat.c: Include progname.h.
36001         (main): Call set_program_name.
36002         * tests/test-mkdirat.c: Include progname.h.
36003         (main): Call set_program_name.
36004         * tests/test-openat.c: Include progname.h.
36005         (main): Call set_program_name.
36006         * tests/test-unlinkat.c: Include progname.h.
36007         (main): Call set_program_name.
36008         * tests/test-fdopendir.c: Include progname.h.
36009         (main): Call set_program_name.
36011 2011-06-18  Bruno Haible  <bruno@clisp.org>
36013         Doc update.
36014         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
36015         HP-UX.
36016         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
36018 2011-06-18  Bruno Haible  <bruno@clisp.org>
36020         getcwd tests: Avoid compilation error on HP-UX 11.31.
36021         * modules/getcwd-tests (Depends-on): Add pathmax.
36022         * tests/test-getcwd.c: Include pathmax.h.
36024 2011-06-18  Bruno Haible  <bruno@clisp.org>
36026         isfinite, isinf: Fix link error on AIX 6 and 7.
36027         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
36028         needed, also test the macro with a 'float' argument.
36029         * m4/isinf.m4 (gl_ISINF): Likewise.
36031 2011-06-18  Bruno Haible  <bruno@clisp.org>
36033         getloadavg: Don't clobber LIBS. Regression from previous commit.
36034         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
36035         AC_CHECK_LIB from here...
36036         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
36037         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
36038         gl_func_getloadavg_done.
36039         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36041 2011-06-18  Bruno Haible  <bruno@clisp.org>
36043         clean-temp: Improve documentation.
36044         * lib/clean-temp.h: Explain better how to use this module.
36045         Reported by John Darrington <john@darrington.wattle.id.au>.
36047 2011-06-17  Bruno Haible  <bruno@clisp.org>
36049         pread, pwrite: Avoid cc warning on AIX.
36050         * lib/unistd.in.h (pread): Undefine before defining as a macro.
36051         (pwrite): Likewise.
36053 2011-06-17  Bruno Haible  <bruno@clisp.org>
36055         spawn-pipe tests: Fix link error.
36056         * tests/test-spawn-pipe-child.c: Undefine fprintf.
36057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36059 2011-06-17  Bruno Haible  <bruno@clisp.org>
36061         Tests: Remove unnecessary dependency.
36062         * modules/canonicalize-tests (Depends-on): Remove progname.
36063         * modules/chown-tests (Depends-on): Likewise.
36064         * modules/dirname-tests (Depends-on): Likewise.
36065         * modules/fdopendir-tests (Depends-on): Likewise.
36066         * modules/fdutimensat-tests (Depends-on): Likewise.
36067         * modules/hash-tests (Depends-on): Likewise.
36068         * modules/lchown-tests (Depends-on): Likewise.
36069         * modules/linkat-tests (Depends-on): Likewise.
36070         * modules/renameat-tests (Depends-on): Likewise.
36071         * modules/spawn-pipe-tests (Depends-on): Likewise.
36072         * modules/utimensat-tests (Depends-on): Likewise.
36074 2011-06-17  Bruno Haible  <bruno@clisp.org>
36076         spawn-pipe tests: Fix link error.
36077         * tests/test-spawn-pipe-child.c: Undefine fflush.
36079 2011-06-17  Bruno Haible  <bruno@clisp.org>
36081         Fix tests link errors.
36082         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
36083         * modules/chown-tests (Makefile.am): Don't link test-chown with
36084         LIBINTL.
36085         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
36086         LIBINTL.
36087         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
36088         LIBINTL.
36089         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
36090         LIBINTL.
36092 2011-06-16  Bruno Haible  <bruno@clisp.org>
36094         crypto/gc-sha1: Fix recent regression.
36095         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
36096         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
36098         crypto/gc-md5: Fix recent regression.
36099         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
36101         crypto/gc-md4: Fix recent regression.
36102         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
36103         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
36105         crypto/gc-arctwo: Fix recent regression.
36106         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
36107         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
36109         crypto/gc-rijndael: Fix recent regression.
36110         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
36111         (configure.ac): Invoke AC_LIBOBJ here.
36112         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
36113         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36115         crypto/gc-hmac-sha1: Fix recent regression.
36116         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
36117         (configure.ac): Invoke AC_LIBOBJ here.
36118         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
36119         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36121         crypto/gc-hmac-md5: Fix recent regression.
36122         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
36123         (configure.ac): Invoke AC_LIBOBJ here.
36124         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
36125         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36127         crypto/gc-des: Fix recent regression.
36128         * modules/crypto/gc-des (Files): Remove m4/des.m4.
36129         (configure.ac): Invoke AC_LIBOBJ here.
36130         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
36131         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36133         crypto/gc-arcfour: Fix recent regression.
36134         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
36135         (configure.ac): Invoke AC_LIBOBJ here.
36136         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
36137         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36139 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
36141         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
36142         After the 2011-05-21 change, this macro requires
36143         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
36144         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
36146 2011-06-16  Bruno Haible  <bruno@clisp.org>
36148         fprintftime: Move AC_LIBOBJ invocations to module description.
36149         * m4/fprintftime.m4: Remove file.
36150         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
36151         (configure.ac): Remove gl_FPRINTFTIME call.
36152         (Makefile.am): Augment lib_SOURCES.
36153         Reported by Jim Meyering.
36155 2011-06-16  Bruno Haible  <bruno@clisp.org>
36157         tmpfile-safer: Finish 2011-05-23 commit.
36158         * m4/stdio-safer.m4: Really remove file.
36159         Reported by Jim Meyering.
36161 2011-06-16  Bruno Haible  <bruno@clisp.org>
36163         syntax-check: Fix typo.
36164         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
36165         printf-posix.m4.
36166         Reported by Jim Meyering.
36168 2011-06-13  Jim Meyering  <meyering@redhat.com>
36170         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
36171         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
36173 2011-05-23  Bruno Haible  <bruno@clisp.org>
36175         yesno: Move AC_LIBOBJ invocations to module description.
36176         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
36177         * modules/yesno (Makefile.am): Augment lib_SOURCES.
36179 2011-05-23  Bruno Haible  <bruno@clisp.org>
36181         xstrtol: Move AC_LIBOBJ invocations to module description.
36182         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
36183         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
36185 2011-05-23  Bruno Haible  <bruno@clisp.org>
36187         xstrtold: Move AC_LIBOBJ invocations to module description.
36188         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
36189         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
36191 2011-05-23  Bruno Haible  <bruno@clisp.org>
36193         xstrtod: Move AC_LIBOBJ invocations to module description.
36194         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
36195         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
36197 2011-05-23  Bruno Haible  <bruno@clisp.org>
36199         xnanosleep: Move AC_LIBOBJ invocations to module description.
36200         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
36201         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
36203 2011-05-23  Bruno Haible  <bruno@clisp.org>
36205         xgetcwd: Move AC_LIBOBJ invocations to module description.
36206         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
36207         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
36209 2011-05-23  Bruno Haible  <bruno@clisp.org>
36211         xalloc: Move AC_LIBOBJ invocations to module description.
36212         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
36213         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
36215 2011-05-23  Bruno Haible  <bruno@clisp.org>
36217         write-any-file: Move AC_LIBOBJ invocations to module description.
36218         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
36219         invocation.
36220         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
36222 2011-05-23  Bruno Haible  <bruno@clisp.org>
36224         utimens: Move AC_LIBOBJ invocations to module description.
36225         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
36226         * modules/utimens (Makefile.am): Augment lib_SOURCES.
36228 2011-05-23  Bruno Haible  <bruno@clisp.org>
36230         utimecmp: Move AC_LIBOBJ invocations to module description.
36231         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
36232         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
36234 2011-05-23  Bruno Haible  <bruno@clisp.org>
36236         userspec: Move AC_LIBOBJ invocations to module description.
36237         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
36238         * modules/userspec (Makefile.am): Augment lib_SOURCES.
36240 2011-05-23  Bruno Haible  <bruno@clisp.org>
36242         unlinkdir: Move AC_LIBOBJ invocations to module description.
36243         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
36244         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
36246 2011-05-23  Bruno Haible  <bruno@clisp.org>
36248         unistd-safer: Move AC_LIBOBJ invocations to module description.
36249         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
36250         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
36252 2011-05-23  Bruno Haible  <bruno@clisp.org>
36254         tempname: Move AC_LIBOBJ invocations to module description.
36255         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
36256         * modules/tempname (Makefile.am): Augment lib_SOURCES.
36258 2011-05-23  Bruno Haible  <bruno@clisp.org>
36260         strftime: Move AC_LIBOBJ invocations to module description.
36261         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
36262         * modules/strftime (Makefile.am): Augment lib_SOURCES.
36264 2011-05-23  Bruno Haible  <bruno@clisp.org>
36266         stdlib-safer: Move AC_LIBOBJ invocations to module description.
36267         * m4/stdlib-safer.m4: Remove file.
36268         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
36269         (configure.ac): Remove gl_STDLIB_SAFER call.
36270         (Makefile.am): Augment lib_SOURCES.
36272 2011-05-23  Bruno Haible  <bruno@clisp.org>
36274         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
36275         * m4/stdio-safer.m4: Remove file.
36276         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
36277         (configure.ac): Remove gl_TMPFILE_SAFER call.
36278         (Makefile.am): Augment lib_SOURCES.
36280 2011-05-23  Bruno Haible  <bruno@clisp.org>
36282         popen-safer: Move AC_LIBOBJ invocations to module description.
36283         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
36284         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
36285         (configure.ac): Remove gl_POPEN_SAFER call.
36286         (Makefile.am): Augment lib_SOURCES.
36288 2011-05-23  Bruno Haible  <bruno@clisp.org>
36290         freopen-safer: Move AC_LIBOBJ invocations to module description.
36291         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
36292         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
36293         (configure.ac): Remove gl_FREOPEN_SAFER call.
36294         (Makefile.am): Augment lib_SOURCES.
36296 2011-05-23  Bruno Haible  <bruno@clisp.org>
36298         fopen-safer: Move AC_LIBOBJ invocations to module description.
36299         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
36300         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
36301         (configure.ac): Remove gl_FOPEN_SAFER call.
36302         (Makefile.am): Augment lib_SOURCES.
36304 2011-05-23  Bruno Haible  <bruno@clisp.org>
36306         crypto/sha512: Move AC_LIBOBJ invocations to module description.
36307         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
36308         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
36310 2011-05-23  Bruno Haible  <bruno@clisp.org>
36312         crypto/sha256: Move AC_LIBOBJ invocations to module description.
36313         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
36314         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
36316 2011-05-23  Bruno Haible  <bruno@clisp.org>
36318         crypto/sha1: Move AC_LIBOBJ invocations to module description.
36319         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
36320         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
36322 2011-05-23  Bruno Haible  <bruno@clisp.org>
36324         settime: Move AC_LIBOBJ invocations to module description.
36325         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
36326         * modules/settime (Makefile.am): Augment lib_SOURCES.
36328 2011-05-23  Bruno Haible  <bruno@clisp.org>
36330         savedir: Move AC_LIBOBJ invocations to module description.
36331         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
36332         * modules/savedir (Makefile.am): Augment lib_SOURCES.
36334 2011-05-23  Bruno Haible  <bruno@clisp.org>
36336         save-cwd: Move AC_LIBOBJ invocations to module description.
36337         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
36338         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
36340 2011-05-23  Bruno Haible  <bruno@clisp.org>
36342         same: Move AC_LIBOBJ invocations to module description.
36343         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
36344         * modules/same (Makefile.am): Augment lib_SOURCES.
36346 2011-05-23  Bruno Haible  <bruno@clisp.org>
36348         safe-write: Move AC_LIBOBJ invocations to module description.
36349         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
36350         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
36351         instead of gl_SAFE_WRITE.
36352         (Makefile.am): Augment lib_SOURCES.
36354 2011-05-23  Bruno Haible  <bruno@clisp.org>
36356         safe-read: Move AC_LIBOBJ invocations to module description.
36357         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
36358         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
36359         of gl_SAFE_READ.
36360         (Makefile.am): Augment lib_SOURCES.
36362 2011-05-23  Bruno Haible  <bruno@clisp.org>
36364         safe-alloc: Move AC_LIBOBJ invocations to module description.
36365         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
36366         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
36368 2011-05-23  Bruno Haible  <bruno@clisp.org>
36370         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
36371         * m4/rijndael.m4: Remove file.
36372         * modules/crypto/rijndael (Files): Remove it.
36373         (configure.ac): Remove gl_RIJNDAEL call.
36374         (Makefile.am): Augment lib_SOURCES.
36376 2011-05-23  Bruno Haible  <bruno@clisp.org>
36378         readtokens: Move AC_LIBOBJ invocations to module description.
36379         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
36380         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
36382 2011-05-23  Bruno Haible  <bruno@clisp.org>
36384         read-file: Move AC_LIBOBJ invocations to module description.
36385         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
36386         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
36387         of gl_FUNC_READ_FILE.
36388         (Makefile.am): Augment lib_SOURCES.
36390 2011-05-23  Bruno Haible  <bruno@clisp.org>
36392         quotearg: Move AC_LIBOBJ invocations to module description.
36393         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
36394         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
36396 2011-05-23  Bruno Haible  <bruno@clisp.org>
36398         quote: Move AC_LIBOBJ invocations to module description.
36399         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
36400         * modules/quote (Makefile.am): Augment lib_SOURCES.
36402 2011-05-23  Bruno Haible  <bruno@clisp.org>
36404         posixver: Move AC_LIBOBJ invocations to module description.
36405         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
36406         * modules/posixver (Makefile.am): Augment lib_SOURCES.
36408 2011-05-23  Bruno Haible  <bruno@clisp.org>
36410         posixtm: Move AC_LIBOBJ invocations to module description.
36411         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
36412         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
36414 2011-05-23  Bruno Haible  <bruno@clisp.org>
36416         physmem: Move AC_LIBOBJ invocations to module description.
36417         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
36418         * modules/physmem (Makefile.am): Augment lib_SOURCES.
36420 2011-05-23  Bruno Haible  <bruno@clisp.org>
36422         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
36423         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
36424         invocation.
36425         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
36427 2011-05-23  Bruno Haible  <bruno@clisp.org>
36429         mpsort: Move AC_LIBOBJ invocations to module description.
36430         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
36431         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
36433 2011-05-23  Bruno Haible  <bruno@clisp.org>
36435         modechange: Move AC_LIBOBJ invocations to module description.
36436         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
36437         * modules/modechange (Makefile.am): Augment lib_SOURCES.
36439 2011-05-23  Bruno Haible  <bruno@clisp.org>
36441         mkdir-p: Move AC_LIBOBJ invocations to module description.
36442         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
36443         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
36445 2011-05-23  Bruno Haible  <bruno@clisp.org>
36447         mkancesdirs: Move AC_LIBOBJ invocations to module description.
36448         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
36449         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
36451 2011-05-23  Bruno Haible  <bruno@clisp.org>
36453         mgetgroups: Move AC_LIBOBJ invocations to module description.
36454         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
36455         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
36457 2011-05-23  Bruno Haible  <bruno@clisp.org>
36459         memxor: Move AC_LIBOBJ invocations to module description.
36460         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
36461         * modules/memxor (Makefile.am): Augment lib_SOURCES.
36463 2011-05-23  Bruno Haible  <bruno@clisp.org>
36465         memcoll: Move AC_LIBOBJ invocations to module description.
36466         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
36467         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
36469 2011-05-23  Bruno Haible  <bruno@clisp.org>
36471         memcasecmp: Move AC_LIBOBJ invocations to module description.
36472         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
36473         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
36475 2011-05-23  Bruno Haible  <bruno@clisp.org>
36477         crypto/md5: Move AC_LIBOBJ invocations to module description.
36478         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
36479         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
36481 2011-05-23  Bruno Haible  <bruno@clisp.org>
36483         crypto/md4: Move AC_LIBOBJ invocations to module description.
36484         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
36485         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
36487 2011-05-23  Bruno Haible  <bruno@clisp.org>
36489         crypto/md2: Move AC_LIBOBJ invocations to module description.
36490         * m4/md2.m4: Remove file.
36491         * modules/crypto/md2 (Files): Remove it.
36492         (configure.ac): Remove gl_MD2 call.
36493         (Makefile.am): Augment lib_SOURCES.
36495 2011-05-23  Bruno Haible  <bruno@clisp.org>
36497         long-options: Move AC_LIBOBJ invocations to module description.
36498         * m4/long-options.m4: Remove file.
36499         * modules/long-options (Files): Remove it.
36500         (configure.ac): Remove gl_LONG_OPTIONS call.
36501         (Makefile.am): Augment lib_SOURCES.
36503 2011-05-23  Bruno Haible  <bruno@clisp.org>
36505         i-ring: Move AC_LIBOBJ invocations to module description.
36506         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
36507         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
36509 2011-05-23  Bruno Haible  <bruno@clisp.org>
36511         idcache: Move AC_LIBOBJ invocations to module description.
36512         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
36513         * modules/idcache (Makefile.am): Augment lib_SOURCES.
36515 2011-05-23  Bruno Haible  <bruno@clisp.org>
36517         human: Move AC_LIBOBJ invocations to module description.
36518         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
36519         * modules/human (Makefile.am): Augment lib_SOURCES.
36521 2011-05-23  Bruno Haible  <bruno@clisp.org>
36523         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
36524         * m4/hmac-sha1.m4: Remove file.
36525         * modules/crypto/hmac-sha1 (Files): Remove it.
36526         (configure.ac): Remove gl_HMAC_SHA1 call.
36527         (Makefile.am): Augment lib_SOURCES.
36529 2011-05-23  Bruno Haible  <bruno@clisp.org>
36531         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
36532         * m4/hmac-md5.m4: Remove file.
36533         * modules/crypto/hmac-md5 (Files): Remove it.
36534         (configure.ac): Remove gl_HMAC_MD5 call.
36535         (Makefile.am): Augment lib_SOURCES.
36537 2011-05-23  Bruno Haible  <bruno@clisp.org>
36539         hash: Move AC_LIBOBJ invocations to module description.
36540         * m4/hash.m4: Remove file.
36541         * modules/hash (Files): Remove it.
36542         (configure.ac): Remove gl_HASH call.
36543         (Makefile.am): Augment lib_SOURCES.
36545 2011-05-23  Bruno Haible  <bruno@clisp.org>
36547         hard-locale: Move AC_LIBOBJ invocations to module description.
36548         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
36549         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
36551 2011-05-23  Bruno Haible  <bruno@clisp.org>
36553         getugroups: Move AC_LIBOBJ invocations to module description.
36554         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
36555         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
36557 2011-05-23  Bruno Haible  <bruno@clisp.org>
36559         gettime: Move AC_LIBOBJ invocations to module description.
36560         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
36561         * modules/gettime (Makefile.am): Augment lib_SOURCES.
36563 2011-05-23  Bruno Haible  <bruno@clisp.org>
36565         getndelim2: Move AC_LIBOBJ invocations to module description.
36566         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
36567         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
36569 2011-05-23  Bruno Haible  <bruno@clisp.org>
36571         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
36572         * m4/gc-pbkdf2-sha1.m4: Remove file.
36573         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
36574         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
36575         (Makefile.am): Augment lib_SOURCES.
36577 2011-05-23  Bruno Haible  <bruno@clisp.org>
36579         fts: Move AC_LIBOBJ invocations to module description.
36580         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
36581         * modules/fts (configure.ac): ... to here.
36583 2011-05-23  Bruno Haible  <bruno@clisp.org>
36585         file-type: Move AC_LIBOBJ invocations to module description.
36586         * m4/file-type.m4: Remove file.
36587         * modules/file-type (Files): Remove it.
36588         (configure.ac): Remove gl_FILE_TYPE call.
36589         (Makefile.am): Augment lib_SOURCES.
36591 2011-05-23  Bruno Haible  <bruno@clisp.org>
36593         filenamecat*: Respect rules for use of AC_LIBOBJ.
36594         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
36595         Remove AC_LIBOBJ invocation.
36596         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
36597         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
36599 2011-05-23  Bruno Haible  <bruno@clisp.org>
36601         filemode: Move AC_LIBOBJ invocations to module description.
36602         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
36603         * modules/filemode (Makefile.am): Augment lib_SOURCES.
36605 2011-05-23  Bruno Haible  <bruno@clisp.org>
36607         openat-safer: Move AC_LIBOBJ invocations to module description.
36608         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
36609         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
36611 2011-05-23  Bruno Haible  <bruno@clisp.org>
36613         fcntl-safer: Move AC_LIBOBJ invocations to module description.
36614         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
36615         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
36617 2011-05-23  Bruno Haible  <bruno@clisp.org>
36619         exclude: Move AC_LIBOBJ invocations to module description.
36620         * m4/exclude.m4: Remove file.
36621         * modules/exclude (Files): Remove it.
36622         (configure.ac): Remove gl_EXCLUDE call.
36623         (Makefile.am): Augment lib_SOURCES.
36625 2011-05-23  Bruno Haible  <bruno@clisp.org>
36627         dirname*: Respect rules for use of AC_LIBOBJ.
36628         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
36629         invocations.
36630         * modules/dirname (Makefile.am): Augment lib_SOURCES.
36631         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
36633 2011-05-23  Bruno Haible  <bruno@clisp.org>
36635         dirent-safer: Move AC_LIBOBJ invocations to module description.
36636         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
36637         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
36639 2011-05-23  Bruno Haible  <bruno@clisp.org>
36641         crypto/des: Move AC_LIBOBJ invocations to module description.
36642         * m4/des.m4: Remove file.
36643         * modules/crypto/des (Files): Remove it.
36644         (configure.ac): Remove gl_DES call.
36645         (Makefile.am): Augment lib_SOURCES.
36647 2011-05-23  Bruno Haible  <bruno@clisp.org>
36649         cycle-check: Move AC_LIBOBJ invocations to module description.
36650         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
36651         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
36653 2011-05-23  Bruno Haible  <bruno@clisp.org>
36655         c-strtold: Move AC_LIBOBJ invocations to module description.
36656         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
36657         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
36659 2011-05-23  Bruno Haible  <bruno@clisp.org>
36661         c-strtod: Move AC_LIBOBJ invocations to module description.
36662         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
36663         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
36665 2011-05-23  Bruno Haible  <bruno@clisp.org>
36667         crc: Move AC_LIBOBJ invocations to module description.
36668         * m4/crc.m4: Remove file.
36669         * modules/crc (Files): Remove it.
36670         (configure.ac): Remove gl_CRC call.
36671         (Makefile.am): Augment lib_SOURCES.
36673 2011-05-23  Bruno Haible  <bruno@clisp.org>
36675         close-stream: Move AC_LIBOBJ invocations to module description.
36676         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
36677         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
36679 2011-05-23  Bruno Haible  <bruno@clisp.org>
36681         closeout: Move AC_LIBOBJ invocations to module description.
36682         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
36683         * modules/closeout (Makefile.am): Augment lib_SOURCES.
36685 2011-05-23  Bruno Haible  <bruno@clisp.org>
36687         closein: Move AC_LIBOBJ invocations to module description.
36688         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
36689         * modules/closein (Makefile.am): Augment lib_SOURCES.
36691 2011-05-23  Bruno Haible  <bruno@clisp.org>
36693         cloexec: Move AC_LIBOBJ invocations to module description.
36694         * m4/cloexec.m4: Remove file.
36695         * modules/cloexec (Files): Remove it.
36696         (configure.ac): Remove gl_CLOEXEC call.
36697         (Makefile.am): Augment lib_SOURCES.
36699 2011-05-23  Bruno Haible  <bruno@clisp.org>
36701         check-version: Move AC_LIBOBJ invocations to module description.
36702         * m4/check-version.m4: Remove file.
36703         * modules/check-version (Files): Remove it.
36704         (configure.ac): Remove gl_CHECK_VERSION call.
36705         (Makefile.am): Augment lib_SOURCES.
36707 2011-05-23  Bruno Haible  <bruno@clisp.org>
36709         chdir-safer: Move AC_LIBOBJ invocations to module description.
36710         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
36711         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
36713 2011-05-23  Bruno Haible  <bruno@clisp.org>
36715         canonicalize: Move AC_LIBOBJ invocations to module description.
36716         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
36717         AC_LIBOBJ invocation.
36718         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
36720 2011-05-23  Bruno Haible  <bruno@clisp.org>
36722         canon-host: Move AC_LIBOBJ invocations to module description.
36723         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
36724         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
36725         instead of gl_CANON_HOST.
36726         (Makefile.am): Augment lib_SOURCES.
36728 2011-05-23  Bruno Haible  <bruno@clisp.org>
36730         backupfile: Move AC_LIBOBJ invocations to module description.
36731         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
36732         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
36734 2011-05-23  Bruno Haible  <bruno@clisp.org>
36736         argmatch: Move AC_LIBOBJ invocations to module description.
36737         * m4/argmatch.m4: Remove file.
36738         * modules/argmatch (Files): Remove it.
36739         (configure.ac): Remove gl_ARGMATCH call.
36740         (Makefile.am): Augment lib_SOURCES.
36742 2011-05-23  Bruno Haible  <bruno@clisp.org>
36744         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
36745         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
36746         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
36748 2011-05-23  Bruno Haible  <bruno@clisp.org>
36750         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
36751         * m4/arcfour.m4: Remove file.
36752         * modules/crypto/arcfour (Files): Remove it.
36753         (configure.ac): Remove gl_ARCFOUR call.
36754         (Makefile.am): Augment lib_SOURCES.
36756 2011-05-22  Bruno Haible  <bruno@clisp.org>
36758         write: Move AC_LIBOBJ invocations to module description.
36759         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
36760         * modules/write (configure.ac): ... to here.
36762 2011-05-22  Bruno Haible  <bruno@clisp.org>
36764         wmemset: Move AC_LIBOBJ invocations to module description.
36765         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
36766         here...
36767         * modules/wmemset (configure.ac): ... to here.
36769 2011-05-22  Bruno Haible  <bruno@clisp.org>
36771         wmemmove: Move AC_LIBOBJ invocations to module description.
36772         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
36773         here...
36774         * modules/wmemmove (configure.ac): ... to here.
36776 2011-05-22  Bruno Haible  <bruno@clisp.org>
36778         wmemcpy: Move AC_LIBOBJ invocations to module description.
36779         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
36780         here...
36781         * modules/wmemcpy (configure.ac): ... to here.
36783 2011-05-22  Bruno Haible  <bruno@clisp.org>
36785         wmemcmp: Move AC_LIBOBJ invocations to module description.
36786         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
36787         here...
36788         * modules/wmemcmp (configure.ac): ... to here.
36790 2011-05-22  Bruno Haible  <bruno@clisp.org>
36792         wmemchr: Move AC_LIBOBJ invocations to module description.
36793         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
36794         here...
36795         * modules/wmemchr (configure.ac): ... to here.
36797 2011-05-22  Bruno Haible  <bruno@clisp.org>
36799         wcswidth: Move AC_LIBOBJ invocations to module description.
36800         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
36801         here...
36802         * modules/wcswidth (configure.ac): ... to here.
36804 2011-05-22  Bruno Haible  <bruno@clisp.org>
36806         wcwidth: Respect rules for use of AC_LIBOBJ.
36807         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
36808         invocation from here...
36809         * modules/wcwidth (configure.ac): ... to here.
36810         (Depends-on): Update conditions.
36812 2011-05-22  Bruno Haible  <bruno@clisp.org>
36814         wctype: Move AC_LIBOBJ invocations to module description.
36815         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
36816         invocation from here...
36817         * modules/wctype (configure.ac): ... to here.
36818         (Depends-on): Update conditions.
36820 2011-05-22  Bruno Haible  <bruno@clisp.org>
36822         wctrans: Move AC_LIBOBJ invocations to module description.
36823         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
36824         invocation from here...
36825         * modules/wctrans (configure.ac): ... to here.
36827 2011-05-22  Bruno Haible  <bruno@clisp.org>
36829         wctomb: Move AC_LIBOBJ invocations to module description.
36830         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
36831         invocations from here...
36832         * modules/wctomb (configure.ac): ... to here.
36834 2011-05-22  Bruno Haible  <bruno@clisp.org>
36836         wctob: Move AC_LIBOBJ invocations to module description.
36837         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
36838         gl_PREREQ_WCTOB invocations from here...
36839         * modules/wctob (configure.ac): ... to here.
36840         (Depends-on): Update conditions.
36842 2011-05-22  Bruno Haible  <bruno@clisp.org>
36844         wcsxfrm: Move AC_LIBOBJ invocations to module description.
36845         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
36846         here...
36847         * modules/wcsxfrm (configure.ac): ... to here.
36849 2011-05-22  Bruno Haible  <bruno@clisp.org>
36851         wcstok: Move AC_LIBOBJ invocations to module description.
36852         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
36853         * modules/wcstok (configure.ac): ... to here.
36855 2011-05-22  Bruno Haible  <bruno@clisp.org>
36857         wcsstr: Move AC_LIBOBJ invocations to module description.
36858         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
36859         * modules/wcsstr (configure.ac): ... to here.
36861 2011-05-22  Bruno Haible  <bruno@clisp.org>
36863         wcsspn: Move AC_LIBOBJ invocations to module description.
36864         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
36865         * modules/wcsspn (configure.ac): ... to here.
36867 2011-05-22  Bruno Haible  <bruno@clisp.org>
36869         wcsrtombs: Move AC_LIBOBJ invocations to module description.
36870         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
36871         gl_PREREQ_WCSRTOMBS invocations from here...
36872         * modules/wcsrtombs (configure.ac): ... to here.
36874 2011-05-22  Bruno Haible  <bruno@clisp.org>
36876         wcsrchr: Move AC_LIBOBJ invocations to module description.
36877         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
36878         here...
36879         * modules/wcsrchr (configure.ac): ... to here.
36881 2011-05-22  Bruno Haible  <bruno@clisp.org>
36883         wcspbrk: Move AC_LIBOBJ invocations to module description.
36884         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
36885         here...
36886         * modules/wcspbrk (configure.ac): ... to here.
36888 2011-05-22  Bruno Haible  <bruno@clisp.org>
36890         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
36891         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
36892         gl_PREREQ_WCSNRTOMBS invocations from here...
36893         * modules/wcsnrtombs (configure.ac): ... to here.
36895 2011-05-22  Bruno Haible  <bruno@clisp.org>
36897         wcsnlen: Move AC_LIBOBJ invocations to module description.
36898         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
36899         here...
36900         * modules/wcsnlen (configure.ac): ... to here.
36902 2011-05-22  Bruno Haible  <bruno@clisp.org>
36904         wcsncpy: Move AC_LIBOBJ invocations to module description.
36905         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
36906         here...
36907         * modules/wcsncpy (configure.ac): ... to here.
36909 2011-05-22  Bruno Haible  <bruno@clisp.org>
36911         wcsncmp: Move AC_LIBOBJ invocations to module description.
36912         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
36913         here...
36914         * modules/wcsncmp (configure.ac): ... to here.
36916 2011-05-22  Bruno Haible  <bruno@clisp.org>
36918         wcsncat: Move AC_LIBOBJ invocations to module description.
36919         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
36920         here...
36921         * modules/wcsncat (configure.ac): ... to here.
36923 2011-05-22  Bruno Haible  <bruno@clisp.org>
36925         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
36926         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
36927         from here...
36928         * modules/wcsncasecmp (configure.ac): ... to here.
36930 2011-05-22  Bruno Haible  <bruno@clisp.org>
36932         wcslen: Move AC_LIBOBJ invocations to module description.
36933         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
36934         * modules/wcslen (configure.ac): ... to here.
36936 2011-05-22  Bruno Haible  <bruno@clisp.org>
36938         wcsdup: Move AC_LIBOBJ invocations to module description.
36939         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
36940         * modules/wcsdup (configure.ac): ... to here.
36942 2011-05-22  Bruno Haible  <bruno@clisp.org>
36944         wcscspn: Move AC_LIBOBJ invocations to module description.
36945         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
36946         here...
36947         * modules/wcscspn (configure.ac): ... to here.
36949 2011-05-22  Bruno Haible  <bruno@clisp.org>
36951         wcscpy: Move AC_LIBOBJ invocations to module description.
36952         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
36953         * modules/wcscpy (configure.ac): ... to here.
36955 2011-05-22  Bruno Haible  <bruno@clisp.org>
36957         wcscoll: Move AC_LIBOBJ invocations to module description.
36958         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
36959         here...
36960         * modules/wcscoll (configure.ac): ... to here.
36962 2011-05-22  Bruno Haible  <bruno@clisp.org>
36964         wcscmp: Move AC_LIBOBJ invocations to module description.
36965         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
36966         * modules/wcscmp (configure.ac): ... to here.
36968 2011-05-22  Bruno Haible  <bruno@clisp.org>
36970         wcschr: Move AC_LIBOBJ invocations to module description.
36971         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
36972         * modules/wcschr (configure.ac): ... to here.
36974 2011-05-22  Bruno Haible  <bruno@clisp.org>
36976         wcscat: Move AC_LIBOBJ invocations to module description.
36977         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
36978         * modules/wcscat (configure.ac): ... to here.
36980 2011-05-22  Bruno Haible  <bruno@clisp.org>
36982         wcscasecmp: Move AC_LIBOBJ invocations to module description.
36983         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
36984         here...
36985         * modules/wcscasecmp (configure.ac): ... to here.
36987 2011-05-22  Bruno Haible  <bruno@clisp.org>
36989         wcrtomb: Move AC_LIBOBJ invocations to module description.
36990         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
36991         invocations from here...
36992         * modules/wcrtomb (configure.ac): ... to here.
36994 2011-05-22  Bruno Haible  <bruno@clisp.org>
36996         wcpncpy: Move AC_LIBOBJ invocations to module description.
36997         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
36998         here...
36999         * modules/wcpncpy (configure.ac): ... to here.
37001 2011-05-22  Bruno Haible  <bruno@clisp.org>
37003         wcpcpy: Move AC_LIBOBJ invocations to module description.
37004         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
37005         * modules/wcpcpy (configure.ac): ... to here.
37007 2011-05-22  Bruno Haible  <bruno@clisp.org>
37009         waitpid: Move AC_LIBOBJ invocations to module description.
37010         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
37011         invocation from here...
37012         * modules/waitpid (configure.ac): ... to here.
37014 2011-05-22  Bruno Haible  <bruno@clisp.org>
37016         utimensat: Move AC_LIBOBJ invocations to module description.
37017         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
37018         here...
37019         * modules/utimensat (configure.ac): ... to here.
37021 2011-05-22  Bruno Haible  <bruno@clisp.org>
37023         usleep: Move AC_LIBOBJ invocations to module description.
37024         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
37025         here...
37026         * modules/usleep (configure.ac): ... to here.
37028 2011-05-22  Bruno Haible  <bruno@clisp.org>
37030         unlockpt: Move AC_LIBOBJ invocations to module description.
37031         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
37032         gl_PREREQ_UNLOCKPT invocations from here...
37033         * modules/unlockpt (configure.ac): ... to here.
37035 2011-05-22  Bruno Haible  <bruno@clisp.org>
37037         unlink: Respect rules for use of AC_LIBOBJ.
37038         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
37039         * modules/unlink (configure.ac): ... to here.
37041 2011-05-22  Bruno Haible  <bruno@clisp.org>
37043         uname: Move AC_LIBOBJ invocations to module description.
37044         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
37045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
37046         here...
37047         * modules/uname (configure.ac): ... to here.
37049 2011-05-22  Bruno Haible  <bruno@clisp.org>
37051         ttyname_r: Move AC_LIBOBJ invocations to module description.
37052         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
37053         gl_PREREQ_TTYNAME_R invocations from here...
37054         * modules/ttyname_r (configure.ac): ... to here.
37056 2011-05-22  Bruno Haible  <bruno@clisp.org>
37058         tsearch: Move AC_LIBOBJ invocations to module description.
37059         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
37060         invocations from here...
37061         * modules/tsearch (configure.ac): ... to here.
37063 2011-05-22  Bruno Haible  <bruno@clisp.org>
37065         towctrans: Move AC_LIBOBJ invocations to module description.
37066         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
37067         AC_LIBOBJ invocation from here...
37068         * modules/towctrans (configure.ac): ... to here.
37070 2011-05-22  Bruno Haible  <bruno@clisp.org>
37072         tmpfile: Move AC_LIBOBJ invocations to module description.
37073         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
37074         invocations from here...
37075         * modules/tmpfile (configure.ac): ... to here.
37077 2011-05-22  Bruno Haible  <bruno@clisp.org>
37079         times: Move AC_LIBOBJ invocations to module description.
37080         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
37081         * modules/times (configure.ac): ... to here.
37083 2011-05-22  Bruno Haible  <bruno@clisp.org>
37085         time_r: Move AC_LIBOBJ invocations to module description.
37086         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
37087         invocations from here...
37088         * modules/time_r (configure.ac): ... to here.
37090 2011-05-22  Bruno Haible  <bruno@clisp.org>
37092         timegm: Move AC_LIBOBJ invocations to module description.
37093         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
37094         invocations from here...
37095         * modules/timegm (configure.ac): ... to here.
37097 2011-05-22  Bruno Haible  <bruno@clisp.org>
37099         tcgetsid: Move AC_LIBOBJ invocations to module description.
37100         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
37101         and gl_PREREQ_TCGETSID invocations from here...
37102         * modules/tcgetsid (configure.ac): ... to here.
37103         (Depends-on): Update conditions.
37105 2011-05-22  Bruno Haible  <bruno@clisp.org>
37107         symlinkat: Move AC_LIBOBJ invocations to module description.
37108         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
37109         here...
37110         * modules/symlinkat (configure.ac): ... to here.
37112 2011-05-22  Bruno Haible  <bruno@clisp.org>
37114         symlink: Move AC_LIBOBJ invocations to module description.
37115         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
37116         here...
37117         * modules/symlink (configure.ac): ... to here.
37119 2011-05-22  Bruno Haible  <bruno@clisp.org>
37121         strverscmp: Move AC_LIBOBJ invocations to module description.
37122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
37123         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
37124         from here...
37125         * modules/strverscmp (configure.ac): ... to here.
37127 2011-05-22  Bruno Haible  <bruno@clisp.org>
37129         strtok_r: Move AC_LIBOBJ invocations to module description.
37130         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
37131         and gl_PREREQ_STRTOK_R invocations from here...
37132         * modules/strtok_r (configure.ac): ... to here.
37133         (Depends-on): Update conditions.
37135 2011-05-22  Bruno Haible  <bruno@clisp.org>
37137         strtoumax: Move AC_LIBOBJ invocations to module description.
37138         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
37139         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
37140         from here...
37141         * modules/strtoumax (configure.ac): ... to here.
37143 2011-05-22  Bruno Haible  <bruno@clisp.org>
37145         strtoimax: Move AC_LIBOBJ invocations to module description.
37146         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
37147         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
37148         from here...
37149         * modules/strtoimax (configure.ac): ... to here.
37151 2011-05-22  Bruno Haible  <bruno@clisp.org>
37153         strtoull: Move AC_LIBOBJ invocations to module description.
37154         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
37155         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
37156         from here...
37157         * modules/strtoull (configure.ac): ... to here.
37159 2011-05-22  Bruno Haible  <bruno@clisp.org>
37161         strtoll: Move AC_LIBOBJ invocations to module description.
37162         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
37163         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
37164         here...
37165         * modules/strtoll (configure.ac): ... to here.
37167 2011-05-22  Bruno Haible  <bruno@clisp.org>
37169         strtoul: Move AC_LIBOBJ invocations to module description.
37170         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
37171         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
37172         * modules/strtoul (configure.ac): ... to here.
37174 2011-05-22  Bruno Haible  <bruno@clisp.org>
37176         strtol: Move AC_LIBOBJ invocations to module description.
37177         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
37178         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
37179         * modules/strtol (configure.ac): ... to here.
37181 2011-05-22  Bruno Haible  <bruno@clisp.org>
37183         strtod: Move AC_LIBOBJ invocations to module description.
37184         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
37185         invocations from here...
37186         * modules/strtod (configure.ac): ... to here.
37188 2011-05-22  Bruno Haible  <bruno@clisp.org>
37190         strstr*: Move AC_LIBOBJ invocations to module description.
37191         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
37192         invocations from here...
37193         * modules/strstr-simple (configure.ac): ... to here.
37194         * modules/strstr (configure.ac): ... and here.
37196 2011-05-22  Bruno Haible  <bruno@clisp.org>
37198         strsignal: Move AC_LIBOBJ invocations to module description.
37199         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
37200         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
37201         * modules/strsignal (configure.ac): ... to here.
37202         (Depends-on): Update conditions.
37204 2011-05-22  Bruno Haible  <bruno@clisp.org>
37206         strsep: Move AC_LIBOBJ invocations to module description.
37207         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
37208         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
37209         here...
37210         * modules/strsep (configure.ac): ... to here.
37212 2011-05-22  Bruno Haible  <bruno@clisp.org>
37214         strptime: Move AC_LIBOBJ invocations to module description.
37215         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
37216         gl_PREREQ_STRPTIME invocations from here...
37217         * modules/strptime (configure.ac): ... to here.
37219 2011-05-22  Bruno Haible  <bruno@clisp.org>
37221         strpbrk: Move AC_LIBOBJ invocations to module description.
37222         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
37223         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
37224         here...
37225         * modules/strpbrk (configure.ac): ... to here.
37227 2011-05-22  Bruno Haible  <bruno@clisp.org>
37229         strnlen: Move AC_LIBOBJ invocations to module description.
37230         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
37231         invocations from here...
37232         * modules/strnlen (configure.ac): ... to here.
37234 2011-05-22  Bruno Haible  <bruno@clisp.org>
37236         strndup: Move AC_LIBOBJ invocations to module description.
37237         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
37238         invocations from here...
37239         * modules/strndup (configure.ac): ... to here.
37240         (Depends-on): Update conditions.
37242 2011-05-22  Bruno Haible  <bruno@clisp.org>
37244         strncat: Move AC_LIBOBJ invocations to module description.
37245         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
37246         invocations from here...
37247         * modules/strncat (configure.ac): ... to here.
37249 2011-05-22  Bruno Haible  <bruno@clisp.org>
37251         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
37252         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
37253         invocations from here...
37254         * modules/strdup (configure.ac): ... to here.
37255         * modules/strdup-posix (configure.ac): ... and here.
37257 2011-05-22  Bruno Haible  <bruno@clisp.org>
37259         strcspn: Move AC_LIBOBJ invocations to module description.
37260         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
37261         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
37262         here...
37263         * modules/strcspn (configure.ac): ... to here.
37265 2011-05-22  Bruno Haible  <bruno@clisp.org>
37267         strchrnul: Move AC_LIBOBJ invocations to module description.
37268         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
37269         gl_PREREQ_STRCHRNUL invocations from here...
37270         * modules/strchrnul (configure.ac): ... to here.
37272 2011-05-22  Bruno Haible  <bruno@clisp.org>
37274         strcasestr*: Move AC_LIBOBJ invocations to module description.
37275         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
37276         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
37277         * modules/strcasestr-simple (configure.ac): ... to here.
37278         * modules/strcasestr (configure.ac): ... and here.
37280 2011-05-22  Bruno Haible  <bruno@clisp.org>
37282         strcase: Move AC_LIBOBJ invocations to module description.
37283         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
37284         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
37285         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
37286         gl_PREREQ_STRNCASECMP invocations from here...
37287         * modules/strcase (configure.ac): ... to here.
37289 2011-05-22  Bruno Haible  <bruno@clisp.org>
37291         stpncpy: Move AC_LIBOBJ invocations to module description.
37292         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
37293         here...
37294         * modules/stpncpy (configure.ac): ... to here.
37296 2011-05-22  Bruno Haible  <bruno@clisp.org>
37298         stpcpy: Move AC_LIBOBJ invocations to module description.
37299         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
37300         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
37301         here...
37302         * modules/stpcpy (configure.ac): ... to here.
37304 2011-05-21  Bruno Haible  <bruno@clisp.org>
37306         stat: Move AC_LIBOBJ invocations to module description.
37307         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
37308         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
37309         here...
37310         * modules/stat (configure.ac): ... to here.
37312 2011-05-21  Bruno Haible  <bruno@clisp.org>
37314         sleep: Move AC_LIBOBJ invocations to module description.
37315         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
37316         * modules/sleep (configure.ac): ... to here.
37318 2011-05-21  Bruno Haible  <bruno@clisp.org>
37320         signbit: Move AC_LIBOBJ invocations to module description.
37321         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
37322         * modules/signbit (configure.ac): ... to here.
37324 2011-05-21  Bruno Haible  <bruno@clisp.org>
37326         sigprocmask: Move AC_LIBOBJ invocations to module description.
37327         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
37328         gl_PREREQ_SIGPROMASK invocations from here...
37329         * modules/sigprocmask (configure.ac): ... to here.
37331 2011-05-21  Bruno Haible  <bruno@clisp.org>
37333         sigaction: Move AC_LIBOBJ invocations to module description.
37334         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
37335         gl_PREREQ_SIGACTION invocations from here...
37336         * modules/sigaction (configure.ac): ... to here.
37338 2011-05-21  Bruno Haible  <bruno@clisp.org>
37340         sig2str: Move AC_LIBOBJ invocations to module description.
37341         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
37342         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
37343         here...
37344         * modules/sig2str (configure.ac): ... to here.
37346 2011-05-21  Bruno Haible  <bruno@clisp.org>
37348         setlocale: Move AC_LIBOBJ invocations to module description.
37349         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
37350         gl_PREREQ_SETLOCALE invocations from here...
37351         * modules/setlocale (configure.ac): ... to here.
37353 2011-05-21  Bruno Haible  <bruno@clisp.org>
37355         unsetenv: Move AC_LIBOBJ invocations to module description.
37356         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
37357         and gl_PREREQ_UNSETENV invocations from here...
37358         * modules/unsetenv (configure.ac): ... to here.
37359         (Depends-on): Update.
37361 2011-05-21  Bruno Haible  <bruno@clisp.org>
37363         setenv: Move AC_LIBOBJ invocations to module description.
37364         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
37365         here...
37366         * modules/setenv (configure.ac): ... to here.
37368 2011-05-21  Bruno Haible  <bruno@clisp.org>
37370         selinux-h: Move AC_LIBOBJ invocations to module description.
37371         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
37372         AC_LIBOBJ invocation from here...
37373         * modules/selinux-h (configure.ac): ... to here.
37375 2011-05-21  Bruno Haible  <bruno@clisp.org>
37377         select: Respect rules for use of AC_LIBOBJ.
37378         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
37379         here...
37380         * modules/select (configure.ac): ... to here.
37382 2011-05-21  Bruno Haible  <bruno@clisp.org>
37384         scandir: Move AC_LIBOBJ invocations to module description.
37385         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
37386         invocations from here...
37387         * modules/scandir (configure.ac): ... to here.
37389 2011-05-21  Bruno Haible  <bruno@clisp.org>
37391         rpmatch: Move AC_LIBOBJ invocations to module description.
37392         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
37393         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
37394         here...
37395         * modules/rpmatch (configure.ac): ... to here.
37397 2011-05-21  Bruno Haible  <bruno@clisp.org>
37399         rmdir: Respect rules for use of AC_LIBOBJ.
37400         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
37401         * modules/rmdir (configure.ac): ... to here.
37403 2011-05-21  Bruno Haible  <bruno@clisp.org>
37405         renameat: Move AC_LIBOBJ invocations to module description.
37406         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
37407         here...
37408         * modules/renameat (configure.ac): ... to here.
37410 2011-05-21  Bruno Haible  <bruno@clisp.org>
37412         rename: Respect rules for use of AC_LIBOBJ.
37413         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
37414         here...
37415         * modules/rename (configure.ac): ... to here.
37417 2011-05-21  Bruno Haible  <bruno@clisp.org>
37419         remove: Move AC_LIBOBJ invocations to module description.
37420         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
37421         here...
37422         * modules/remove (configure.ac): ... to here.
37424 2011-05-21  Bruno Haible  <bruno@clisp.org>
37426         relocatable-lib: Move AC_LIBOBJ invocations to module description.
37427         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
37428         macro.
37429         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
37430         * modules/relocatable-lib (configure.ac): ... to here.
37431         * modules/relocatable-prog-wrapper (configure.ac): Invoke
37432         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
37434 2011-05-21  Bruno Haible  <bruno@clisp.org>
37436         relocatable-prog: Move AC_LIBOBJ invocations to module description.
37437         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
37438         here...
37439         * modules/relocatable-prog (configure.ac): ... to here.
37441 2011-05-21  Bruno Haible  <bruno@clisp.org>
37443         regex: Move AC_LIBOBJ invocations to module description.
37444         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
37445         invocations from here...
37446         * modules/regex (configure.ac): ... to here.
37448 2011-05-21  Bruno Haible  <bruno@clisp.org>
37450         realloc-*: Move AC_LIBOBJ invocations to module description.
37451         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
37452         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
37453         AC_LIBOBJ invocations from here...
37454         * modules/realloc-gnu (configure.ac): ... to here.
37455         * modules/realloc-posix (configure.ac): ... and here.
37457 2011-05-21  Bruno Haible  <bruno@clisp.org>
37459         readutmp: Move AC_LIBOBJ invocations to module description.
37460         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
37461         * modules/readutmp (configure.ac): ... to here.
37463 2011-05-21  Bruno Haible  <bruno@clisp.org>
37465         readlinkat: Move AC_LIBOBJ invocations to module description.
37466         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
37467         here...
37468         * modules/readlinkat (configure.ac): ... to here.
37470 2011-05-21  Bruno Haible  <bruno@clisp.org>
37472         readlink: Move AC_LIBOBJ invocations to module description.
37473         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
37474         gl_PREREQ_READLINK invocations from here...
37475         * modules/readlink (configure.ac): ... to here.
37477 2011-05-21  Bruno Haible  <bruno@clisp.org>
37479         readline: Move AC_LIBOBJ invocations to module description.
37480         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
37481         gl_PREREQ_READLINE invocations from here...
37482         * modules/readline (configure.ac): ... to here.
37484 2011-05-21  Bruno Haible  <bruno@clisp.org>
37486         read: Move AC_LIBOBJ invocations to module description.
37487         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
37488         * modules/read (configure.ac): ... to here.
37490 2011-05-21  Bruno Haible  <bruno@clisp.org>
37492         rawmemchr: Move AC_LIBOBJ invocations to module description.
37493         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
37494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
37495         from here...
37496         * modules/rawmemchr (configure.ac): ... to here.
37498 2011-05-21  Bruno Haible  <bruno@clisp.org>
37500         random_r: Move AC_LIBOBJ invocations to module description.
37501         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
37502         gl_PREREQ_RANDOM_R invocations from here...
37503         * modules/random_r (configure.ac): ... to here.
37505 2011-05-21  Bruno Haible  <bruno@clisp.org>
37507         pwrite: Move AC_LIBOBJ invocations to module description.
37508         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
37509         * modules/pwrite (configure.ac): ... to here.
37511 2011-05-21  Bruno Haible  <bruno@clisp.org>
37513         putenv: Move AC_LIBOBJ invocations to module description.
37514         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
37515         * modules/putenv (configure.ac): ... to here.
37517 2011-05-21  Bruno Haible  <bruno@clisp.org>
37519         login_tty: Move AC_LIBOBJ invocations to module description.
37520         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
37521         * modules/login_tty (configure.ac): ... to here.
37523 2011-05-21  Bruno Haible  <bruno@clisp.org>
37525         openpty: Move AC_LIBOBJ invocations to module description.
37526         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
37527         * modules/openpty (configure.ac): ... to here.
37529 2011-05-21  Bruno Haible  <bruno@clisp.org>
37531         forkpty: Move AC_LIBOBJ invocations to module description.
37532         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
37533         * modules/forkpty (configure.ac): ... to here.
37535 2011-05-21  Bruno Haible  <bruno@clisp.org>
37537         ptsname: Move AC_LIBOBJ invocations to module description.
37538         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
37539         invocations from here...
37540         * modules/ptsname (configure.ac): ... to here.
37542 2011-05-21  Bruno Haible  <bruno@clisp.org>
37544         pread: Move AC_LIBOBJ invocations to module description.
37545         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
37546         * modules/pread (configure.ac): ... to here.
37548 2011-05-21  Bruno Haible  <bruno@clisp.org>
37550         posix_spawn*: Move AC_LIBOBJ invocations to module description.
37551         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
37552         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
37553         * modules/posix_spawn (configure.ac): ... to here.
37554         * modules/posix_spawnp (configure.ac): ... and here.
37556 2011-05-21  Bruno Haible  <bruno@clisp.org>
37558         popen: Move AC_LIBOBJ invocations to module description.
37559         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
37560         invocations from here...
37561         * modules/popen (configure.ac): ... to here.
37563 2011-05-21  Bruno Haible  <bruno@clisp.org>
37565         poll: Move AC_LIBOBJ invocations to module description.
37566         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
37567         invocations from here...
37568         * modules/poll (configure.ac): ... to here.
37570 2011-05-21  Bruno Haible  <bruno@clisp.org>
37572         pipe-posix: Move AC_LIBOBJ invocations to module description.
37573         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
37574         * modules/pipe-posix (configure.ac): ... to here.
37576 2011-05-21  Bruno Haible  <bruno@clisp.org>
37578         openat: Respect rules for use of AC_LIBOBJ.
37579         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
37580         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37581         * modules/openat (configure.ac): ... to here.
37583 2011-05-21  Bruno Haible  <bruno@clisp.org>
37585         obstack-printf*: Move AC_LIBOBJ invocations to module description.
37586         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
37587         invocation from here...
37588         * modules/obstack-printf (configure.ac): ... to here.
37589         * modules/obstack-printf-posix (configure.ac): ... and here.
37591 2011-05-21  Bruno Haible  <bruno@clisp.org>
37593         nl_langinfo: Move AC_LIBOBJ invocations to module description.
37594         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
37595         from here...
37596         * modules/nl_langinfo (configure.ac): ... to here.
37598 2011-05-21  Bruno Haible  <bruno@clisp.org>
37600         nanosleep: Move AC_LIBOBJ invocations to module description.
37601         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
37602         gl_PREREQ_NANOSLEEP invocations from here...
37603         * modules/nanosleep (configure.ac): ... to here.
37605 2011-05-21  Bruno Haible  <bruno@clisp.org>
37607         mountlist: Move AC_LIBOBJ invocations to module description.
37608         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
37609         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
37610         * modules/mountlist (configure.ac): ... to here.
37612 2011-05-21  Bruno Haible  <bruno@clisp.org>
37614         mktime: Respect rules for use of AC_LIBOBJ.
37615         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
37616         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
37617         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
37618         (gl_FUNC_MKTIME_INTERNAL): ... and here...
37619         * modules/mktime (configure.ac): ... to here.
37620         * modules/mktime-internal (configure.ac): ... and here.
37621         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
37623 2011-05-21  Bruno Haible  <bruno@clisp.org>
37625         mkstemps: Move AC_LIBOBJ invocations to module description.
37626         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
37627         here...
37628         * modules/mkstemps (configure.ac): ... to here.
37630 2011-05-21  Bruno Haible  <bruno@clisp.org>
37632         mkstemp: Move AC_LIBOBJ invocations to module description.
37633         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
37634         gl_PREREQ_MKSTEMP invocations from here...
37635         * modules/mkstemp (configure.ac): ... to here.
37637 2011-05-21  Bruno Haible  <bruno@clisp.org>
37639         mkostemps: Move AC_LIBOBJ invocations to module description.
37640         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
37641         here...
37642         * modules/mkostemps (configure.ac): ... to here.
37644 2011-05-21  Bruno Haible  <bruno@clisp.org>
37646         mkostemp: Move AC_LIBOBJ invocations to module description.
37647         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
37648         gl_PREREQ_MKOSTEMP invocations from here...
37649         * modules/mkostemp (configure.ac): ... to here.
37651 2011-05-21  Bruno Haible  <bruno@clisp.org>
37653         mknod: Move AC_LIBOBJ invocations to module description.
37654         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
37655         * modules/mknod (configure.ac): ... to here.
37657 2011-05-21  Bruno Haible  <bruno@clisp.org>
37659         mkfifoat: Move AC_LIBOBJ invocations to module description.
37660         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
37661         here...
37662         * modules/mkfifoat (configure.ac): ... to here.
37664 2011-05-21  Bruno Haible  <bruno@clisp.org>
37666         mkfifo: Respect rules for use of AC_LIBOBJ.
37667         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
37668         here...
37669         * modules/mkfifo (configure.ac): ... to here.
37671 2011-05-21  Bruno Haible  <bruno@clisp.org>
37673         mkdtemp: Move AC_LIBOBJ invocations to module description.
37674         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
37675         invocations from here...
37676         * modules/mkdtemp (configure.ac): ... to here.
37678 2011-05-21  Bruno Haible  <bruno@clisp.org>
37680         mkdir: Move AC_LIBOBJ invocations to module description.
37681         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
37682         * modules/mkdir (configure.ac): ... to here.
37684 2011-05-21  Bruno Haible  <bruno@clisp.org>
37686         memset: Move AC_LIBOBJ invocations to module description.
37687         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
37688         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
37689         here...
37690         * modules/memset (configure.ac): ... to here.
37692 2011-05-21  Bruno Haible  <bruno@clisp.org>
37694         memrchr: Move AC_LIBOBJ invocations to module description.
37695         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
37696         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
37697         here...
37698         * modules/memrchr (configure.ac): ... to here.
37700 2011-05-21  Bruno Haible  <bruno@clisp.org>
37702         mempcpy: Move AC_LIBOBJ invocations to module description.
37703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
37704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
37705         here...
37706         * modules/mempcpy (configure.ac): ... to here.
37708 2011-05-21  Bruno Haible  <bruno@clisp.org>
37710         memmove: Move AC_LIBOBJ invocations to module description.
37711         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
37712         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
37713         here...
37714         * modules/memmove (configure.ac): ... to here.
37716 2011-05-21  Bruno Haible  <bruno@clisp.org>
37718         memmem*: Move AC_LIBOBJ invocations to module description.
37719         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
37720         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
37721         here...
37722         (gl_FUNC_MEMMEM): ... and here...
37723         * modules/memmem-simple (configure.ac): ... to here.
37724         * modules/memmem (configure.ac): ... and here.
37726 2011-05-21  Bruno Haible  <bruno@clisp.org>
37728         memcpy: Move AC_LIBOBJ invocations to module description.
37729         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
37730         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
37731         here...
37732         * modules/memcpy (configure.ac): ... to here.
37734 2011-05-21  Bruno Haible  <bruno@clisp.org>
37736         memcmp: Simplify autoconf macro.
37737         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
37738         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
37739         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
37741 2011-05-21  Bruno Haible  <bruno@clisp.org>
37743         memcmp: Move AC_LIBOBJ invocations to module description.
37744         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
37745         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
37746         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
37747         * modules/memcmp (configure.ac): ... to here.
37748         (Depends-on): Update conditions.
37750 2011-05-21  Bruno Haible  <bruno@clisp.org>
37752         memchr: Respect rules for use of AC_LIBOBJ.
37753         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
37754         invocations from here...
37755         * modules/memchr (configure.ac): ... to here.
37757 2011-05-21  Bruno Haible  <bruno@clisp.org>
37759         mbtowc: Move AC_LIBOBJ invocations to module description.
37760         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
37761         invocations from here...
37762         * modules/mbtowc (configure.ac): ... to here.
37764 2011-05-21  Bruno Haible  <bruno@clisp.org>
37766         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
37767         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
37768         gl_PREREQ_MBSRTOWCS invocations from here...
37769         * modules/mbsrtowcs (configure.ac): ... to here.
37771 2011-05-21  Bruno Haible  <bruno@clisp.org>
37773         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
37774         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
37775         gl_PREREQ_MBSNRTOWCS invocations from here...
37776         * modules/mbsnrtowcs (configure.ac): ... to here.
37778 2011-05-21  Bruno Haible  <bruno@clisp.org>
37780         mbsinit: Move AC_LIBOBJ invocations to module description.
37781         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
37782         invocations from here...
37783         * modules/mbsinit (configure.ac): ... to here.
37785 2011-05-21  Bruno Haible  <bruno@clisp.org>
37787         mbrlen: Move AC_LIBOBJ invocations to module description.
37788         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
37789         invocations from here...
37790         * modules/mbrlen (configure.ac): ... to here.
37792 2011-05-21  Bruno Haible  <bruno@clisp.org>
37794         mbrtowc: Respect rules for use of AC_LIBOBJ.
37795         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
37796         invocations from here...
37797         * modules/mbrtowc (configure.ac): ... to here.
37799 2011-05-21  Bruno Haible  <bruno@clisp.org>
37801         malloc-*: Move AC_LIBOBJ invocations to module description.
37802         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
37803         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
37804         AC_LIBOBJ invocations from here...
37805         * modules/malloc-gnu (configure.ac): ... to here.
37806         * modules/malloc-posix (configure.ac): ... and here.
37808 2011-05-21  Bruno Haible  <bruno@clisp.org>
37810         lstat, openat: Respect rules for use of AC_LIBOBJ.
37811         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
37812         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
37813         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
37814         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
37815         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
37816         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
37817         here.
37818         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
37820 2011-05-21  Bruno Haible  <bruno@clisp.org>
37822         lseek: Move AC_LIBOBJ invocations to module description.
37823         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
37824         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
37825         * modules/lseek (configure.ac): ... to here.
37827 2011-05-21  Bruno Haible  <bruno@clisp.org>
37829         linkat: Move AC_LIBOBJ invocations to module description.
37830         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
37831         here...
37832         * modules/linkat (configure.ac): ... to here.
37834 2011-05-21  Bruno Haible  <bruno@clisp.org>
37836         link: Respect rules for use of AC_LIBOBJ.
37837         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
37838         * modules/link (configure.ac): ... to here.
37840 2011-05-21  Bruno Haible  <bruno@clisp.org>
37842         lchown: Move AC_LIBOBJ invocations to module description.
37843         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
37844         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
37845         * modules/lchown (configure.ac): ... to here.
37847 2011-05-21  Bruno Haible  <bruno@clisp.org>
37849         iswctype: Move AC_LIBOBJ invocations to module description.
37850         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
37851         here...
37852         * modules/iswctype (configure.ac): ... to here.
37854 2011-05-21  Bruno Haible  <bruno@clisp.org>
37856         iswblank: Move AC_LIBOBJ invocations to module description.
37857         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
37858         here...
37859         * modules/iswblank (configure.ac): ... to here.
37861 2011-05-21  Bruno Haible  <bruno@clisp.org>
37863         atanl: Move AC_LIBOBJ invocations to module description.
37864         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
37865         * modules/atanl (configure.ac): ... to here.
37867 2011-05-21  Bruno Haible  <bruno@clisp.org>
37869         acosl: Move AC_LIBOBJ invocations to module description.
37870         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
37871         * modules/acosl (configure.ac): ... to here.
37873 2011-05-21  Bruno Haible  <bruno@clisp.org>
37875         asinl: Respect rules for use of AC_LIBOBJ.
37876         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
37877         * modules/asinl (configure.ac): ... to here.
37879 2011-05-21  Bruno Haible  <bruno@clisp.org>
37881         tanl: Move AC_LIBOBJ invocations to module description.
37882         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
37883         * modules/tanl (configure.ac): ... to here.
37885 2011-05-21  Bruno Haible  <bruno@clisp.org>
37887         cosl: Move AC_LIBOBJ invocations to module description.
37888         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
37889         * modules/cosl (configure.ac): ... to here.
37891 2011-05-21  Bruno Haible  <bruno@clisp.org>
37893         sinl: Move AC_LIBOBJ invocations to module description.
37894         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
37895         * modules/sinl (configure.ac): ... to here.
37897 2011-05-21  Bruno Haible  <bruno@clisp.org>
37899         logl: Move AC_LIBOBJ invocations to module description.
37900         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
37901         * modules/logl (configure.ac): ... to here.
37903 2011-05-21  Bruno Haible  <bruno@clisp.org>
37905         expl: Move AC_LIBOBJ invocations to module description.
37906         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
37907         * modules/expl (configure.ac): ... to here.
37909 2011-05-21  Bruno Haible  <bruno@clisp.org>
37911         roundl: Move AC_LIBOBJ invocations to module description.
37912         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
37913         * modules/roundl (configure.ac): ... to here.
37915 2011-05-21  Bruno Haible  <bruno@clisp.org>
37917         round: Move AC_LIBOBJ invocations to module description.
37918         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
37919         * modules/round (configure.ac): ... to here.
37921 2011-05-21  Bruno Haible  <bruno@clisp.org>
37923         roundf: Move AC_LIBOBJ invocations to module description.
37924         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
37925         * modules/roundf (configure.ac): ... to here.
37927 2011-05-21  Bruno Haible  <bruno@clisp.org>
37929         truncl: Move AC_LIBOBJ invocations to module description.
37930         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
37931         * modules/truncl (configure.ac): ... to here.
37933 2011-05-21  Bruno Haible  <bruno@clisp.org>
37935         trunc: Move AC_LIBOBJ invocations to module description.
37936         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
37937         * modules/trunc (configure.ac): ... to here.
37939 2011-05-21  Bruno Haible  <bruno@clisp.org>
37941         truncf: Move AC_LIBOBJ invocations to module description.
37942         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
37943         * modules/truncf (configure.ac): ... to here.
37945 2011-05-21  Bruno Haible  <bruno@clisp.org>
37947         ceill: Move AC_LIBOBJ invocations to module description.
37948         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
37949         * modules/ceill (configure.ac): ... to here.
37951 2011-05-21  Bruno Haible  <bruno@clisp.org>
37953         ceil: Move AC_LIBOBJ invocations to module description.
37954         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
37955         * modules/ceil (configure.ac): ... to here.
37957 2011-05-21  Bruno Haible  <bruno@clisp.org>
37959         ceilf: Move AC_LIBOBJ invocations to module description.
37960         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
37961         * modules/ceilf (configure.ac): ... to here.
37963 2011-05-21  Bruno Haible  <bruno@clisp.org>
37965         floorl: Respect rules for use of AC_LIBOBJ.
37966         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
37967         * modules/floorl (configure.ac): ... to here.
37969 2011-05-21  Bruno Haible  <bruno@clisp.org>
37971         floor: Respect rules for use of AC_LIBOBJ.
37972         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
37973         * modules/floor (configure.ac): ... to here.
37975 2011-05-21  Bruno Haible  <bruno@clisp.org>
37977         floorf: Move AC_LIBOBJ invocations to module description.
37978         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
37979         * modules/floorf (configure.ac): ... to here.
37981 2011-05-20  Bruno Haible  <bruno@clisp.org>
37983         sqrtl: Respect rules for use of AC_LIBOBJ.
37984         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
37985         * modules/sqrtl (configure.ac): ... to here.
37987 2011-05-20  Bruno Haible  <bruno@clisp.org>
37989         ldexpl: Respect rules for use of AC_LIBOBJ.
37990         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
37991         * modules/ldexpl (configure.ac): ... to here.
37993 2011-05-20  Bruno Haible  <bruno@clisp.org>
37995         frexpl*: Respect rules for use of AC_LIBOBJ.
37996         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
37997         invocation from here...
37998         * modules/frexpl (configure.ac): ... to here.
37999         * modules/frexpl-nolibm (configure.ac): ... and here.
38001 2011-05-20  Bruno Haible  <bruno@clisp.org>
38003         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
38004         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
38005         invocation from here...
38006         * modules/frexp (configure.ac): ... to here.
38007         * modules/frexp-nolibm (configure.ac): ... and here.
38009 2011-05-20  Bruno Haible  <bruno@clisp.org>
38011         isnan: Respect rules for use of AC_LIBOBJ.
38012         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
38013         invocations here.
38014         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
38015         REPLACE_ISNAN.
38016         * modules/isnand (configure.ac): Likewise.
38017         * modules/isnanl (configure.ac): Likewise.
38019 2011-05-20  Bruno Haible  <bruno@clisp.org>
38021         isnanl*: Respect rules for use of AC_LIBOBJ.
38022         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
38023         invocation from here...
38024         * modules/isnanl (configure.ac): ... to here.
38025         * modules/isnanl-nolibm (configure.ac): ... and here.
38027 2011-05-20  Bruno Haible  <bruno@clisp.org>
38029         isnand*: Move AC_LIBOBJ invocations to module description.
38030         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
38031         invocation from here...
38032         * modules/isnand (configure.ac): ... to here.
38033         * modules/isnand-nolibm (configure.ac): ... and here.
38035 2011-05-20  Bruno Haible  <bruno@clisp.org>
38037         isnanf*: Move AC_LIBOBJ invocations to module description.
38038         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
38039         invocation from here...
38040         * modules/isnanf (configure.ac): ... to here.
38041         * modules/isnanf-nolibm (configure.ac): ... and here.
38043 2011-05-20  Bruno Haible  <bruno@clisp.org>
38045         isnan*: Separate the AC_LIBOBJ invocations.
38046         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
38047         AC_LIBOBJ invocation.
38048         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
38049         here.
38050         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
38051         AC_LIBOBJ invocation.
38052         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
38053         here.
38054         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
38055         AC_LIBOBJ invocation.
38056         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
38057         here.
38058         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
38060 2011-05-08  Bruno Haible  <bruno@clisp.org>
38062         isinf: Move AC_LIBOBJ invocations to module description.
38063         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
38064         * modules/isinf (configure.ac): ... to here.
38066 2011-05-08  Bruno Haible  <bruno@clisp.org>
38068         isfinite: Move AC_LIBOBJ invocations to module description.
38069         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
38070         * modules/isfinite (configure.ac): ... to here.
38072 2011-05-08  Bruno Haible  <bruno@clisp.org>
38074         isblank: Move AC_LIBOBJ invocations to module description.
38075         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
38076         here...
38077         * modules/isblank (configure.ac): ... to here.
38079 2011-05-08  Bruno Haible  <bruno@clisp.org>
38081         isapipe: Move AC_LIBOBJ invocations to module description.
38082         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
38083         gl_PREREQ_ISAPIPE invocations from here...
38084         * modules/isapipe (configure.ac): ... to here.
38085         (Depends-on): Update condition.
38087 2011-05-08  Bruno Haible  <bruno@clisp.org>
38089         ioctl: Move AC_LIBOBJ invocations to module description.
38090         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
38091         invocations from here...
38092         * modules/ioctl (configure.ac): ... to here.
38093         (Depends-on): Update condition.
38095 2011-05-08  Bruno Haible  <bruno@clisp.org>
38097         imaxdiv: Move AC_LIBOBJ invocations to module description.
38098         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
38099         invocations from here...
38100         * modules/imaxdiv (configure.ac): ... to here.
38102 2011-05-08  Bruno Haible  <bruno@clisp.org>
38104         imaxabs: Move AC_LIBOBJ invocations to module description.
38105         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
38106         invocations from here...
38107         * modules/imaxabs (configure.ac): ... to here.
38109 2011-05-08  Bruno Haible  <bruno@clisp.org>
38111         getaddrinfo: Move AC_LIBOBJ invocations to module description.
38112         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
38113         AC_LIBOBJ invocations from here...
38114         * modules/getaddrinfo (configure.ac): ... to here.
38115         (Depends-on): Add conditions.
38117 2011-05-08  Bruno Haible  <bruno@clisp.org>
38119         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
38120         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
38121         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
38122         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
38123         (gl_PREREQ_INET_PTON): ... from here.
38124         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
38125         gl_PREREQ_INET_PTON here.
38126         (Depends-on): Update condition.
38128 2011-05-08  Bruno Haible  <bruno@clisp.org>
38130         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
38131         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
38132         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
38133         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
38134         (gl_PREREQ_INET_NTOP): ... from here.
38135         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
38136         gl_PREREQ_INET_NTOP here.
38137         (Depends-on): Update condition.
38139 2011-05-08  Bruno Haible  <bruno@clisp.org>
38141         iconv_open: Move AC_LIBOBJ invocations to module description.
38142         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
38143         AC_LIBOBJ invocations from here...
38144         * modules/iconv_open (configure.ac): ... to here.
38146 2011-05-08  Bruno Haible  <bruno@clisp.org>
38148         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
38149         If module 'iconv_open' is among the main modules and module
38150         'iconv_open-utf' is among the tests dependencies, then
38151         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
38152         return the special iconv_t values. Therefore iconv() and iconv_close()
38153         must support these special iconv_t values, already in lib, not only in
38154         tests.
38155         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
38156         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
38157         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
38158         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
38159         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
38160         (Depends-on): Add the dependencies of iconv_open-utf.
38161         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
38162         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
38163         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
38165 2011-05-08  Bruno Haible  <bruno@clisp.org>
38167         group-member: Move AC_LIBOBJ invocations to module description.
38168         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
38169         gl_PREREQ_GROUP_MEMBER invocations from here...
38170         * modules/group-member (configure.ac): ... to here.
38172 2011-05-08  Bruno Haible  <bruno@clisp.org>
38174         grantpt: Move AC_LIBOBJ invocations to module description.
38175         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
38176         invocations from here...
38177         * modules/grantpt (configure.ac): ... to here.
38179 2011-05-08  Bruno Haible  <bruno@clisp.org>
38181         glob: Move AC_LIBOBJ invocations to module description.
38182         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
38183         from here...
38184         * modules/glob (configure.ac): ... to here.
38186 2011-05-08  Bruno Haible  <bruno@clisp.org>
38188         getusershell: Move AC_LIBOBJ invocations to module description.
38189         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
38190         Move AC_LIBOBJ invocation from here...
38191         * modules/getusershell (configure.ac): ... to here.
38192         (Depends-on): Update condition.
38194 2011-05-08  Bruno Haible  <bruno@clisp.org>
38196         gettimeofday: Move AC_LIBOBJ invocations to module description.
38197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
38198         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
38199         gl_PREREQ_GETTIMEOFDAY invocations from here...
38200         * modules/gettimeofday (configure.ac): ... to here.
38202 2011-05-08  Bruno Haible  <bruno@clisp.org>
38204         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
38205         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
38206         just gl_FUNC_TZSET.
38207         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
38208         (gl_FUNC_TZSET_CLOBBER): Remove actions.
38209         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
38210         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
38212 2011-05-08  Bruno Haible  <bruno@clisp.org>
38214         getsubopt: Move AC_LIBOBJ invocations to module description.
38215         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
38216         gl_PREREQ_GETSUBOPT invocations from here...
38217         * modules/getsubopt (configure.ac): ... to here.
38219 2011-05-08  Bruno Haible  <bruno@clisp.org>
38221         getpass-gnu: Move AC_LIBOBJ invocations to module description.
38222         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
38223         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
38224         * modules/getpass-gnu (configure.ac): ... to here.
38226 2011-05-08  Bruno Haible  <bruno@clisp.org>
38228         getpass: Move AC_LIBOBJ invocations to module description.
38229         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
38230         gl_PREREQ_GETPASS invocations from here...
38231         * modules/getpass (configure.ac): ... to here.
38233 2011-05-08  Bruno Haible  <bruno@clisp.org>
38235         getpagesize: Move AC_LIBOBJ invocations to module description.
38236         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
38237         from here...
38238         * modules/getpagesize (configure.ac): ... to here.
38240 2011-05-08  Bruno Haible  <bruno@clisp.org>
38242         getopt: Move AC_LIBOBJ invocations to module description.
38243         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
38244         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
38245         invocations from here...
38246         * modules/getopt-gnu (configure.ac): ... to here.
38247         * modules/getopt-posix (configure.ac): ... and here.
38248         (Depends-on): Update condition.
38250 2011-05-08  Bruno Haible  <bruno@clisp.org>
38252         getopt, argp: Respect rules for use of AC_LIBOBJ.
38253         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
38254         (gl_REPLACE_GETOPT_ALWAYS): New macro.
38255         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
38256         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
38258 2011-05-08  Bruno Haible  <bruno@clisp.org>
38260         getlogin_r: Move AC_LIBOBJ invocations to module description.
38261         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
38262         gl_PREREQ_GETLOGIN_R invocations from here...
38263         * modules/getlogin_r (configure.ac): ... to here.
38265 2011-05-08  Bruno Haible  <bruno@clisp.org>
38267         getlogin: Move AC_LIBOBJ invocations to module description.
38268         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
38269         here...
38270         * modules/getlogin (configure.ac): ... to here.
38272 2011-05-08  Bruno Haible  <bruno@clisp.org>
38274         getloadavg: Move AC_LIBOBJ invocations to module description.
38275         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
38276         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
38277         * modules/getloadavg (configure.ac): ... to here.
38279 2011-05-08  Bruno Haible  <bruno@clisp.org>
38281         gethrxtime: Move AC_LIBOBJ invocations to module description.
38282         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
38283         LIB_GETHRXTIME from here...
38284         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
38285         invocations from here...
38286         * modules/gethrxtime (configure.ac): ... to here.
38288 2011-05-08  Bruno Haible  <bruno@clisp.org>
38290         gethostname: Move AC_LIBOBJ invocations to module description.
38291         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
38292         gl_PREREQ_GETHOSTNAME invocations from here...
38293         * modules/gethostname (configure.ac): ... to here.
38295 2011-05-08  Bruno Haible  <bruno@clisp.org>
38297         getgroups: Move AC_LIBOBJ invocations to module description.
38298         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
38299         here...
38300         * modules/getgroups (configure.ac): ... to here.
38302 2011-05-08  Bruno Haible  <bruno@clisp.org>
38304         getdtablesize: Move AC_LIBOBJ invocations to module description.
38305         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
38306         invocation from here...
38307         * modules/getdtablesize (configure.ac): ... to here.
38309 2011-05-08  Bruno Haible  <bruno@clisp.org>
38311         getdomainname: Move AC_LIBOBJ invocations to module description.
38312         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
38313         gl_PREREQ_GETDOMAINNAME invocations from here...
38314         * modules/getdomainname (configure.ac): ... to here.
38316 2011-05-08  Bruno Haible  <bruno@clisp.org>
38318         getline: Move AC_LIBOBJ invocations to module description.
38319         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
38320         invocations from here...
38321         * modules/getline (configure.ac): ... to here.
38323 2011-05-08  Bruno Haible  <bruno@clisp.org>
38325         getline: Simplify.
38326         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
38327         It's already handled through the module dependency.
38329 2011-05-08  Bruno Haible  <bruno@clisp.org>
38331         getdelim: Move AC_LIBOBJ invocations to module description.
38332         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
38333         and gl_PREREQ_GETDELIM invocations from here...
38334         * modules/getdelim (configure.ac): ... to here.
38335         (Depends-on): Fix condition.
38337 2011-05-08  Bruno Haible  <bruno@clisp.org>
38339         getcwd: Move AC_LIBOBJ invocations to module description.
38340         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
38341         invocations from here...
38342         * modules/getcwd (configure.ac): ... to here.
38344 2011-05-08  Bruno Haible  <bruno@clisp.org>
38346         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
38347         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
38348         here...
38349         * modules/getcwd-lgpl (configure.ac): ... to here.
38351 2011-05-07  Bruno Haible  <bruno@clisp.org>
38353         crypto/gc: Move AC_LIBOBJ invocations to module description.
38354         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
38355         * modules/crypto/gc (configure.ac): ... to here.
38357 2011-05-07  Bruno Haible  <bruno@clisp.org>
38359         fwriting: Move AC_LIBOBJ invocations to module description.
38360         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
38361         here...
38362         * modules/fwriting (configure.ac): ... to here.
38364 2011-05-07  Bruno Haible  <bruno@clisp.org>
38366         fwritable: Move AC_LIBOBJ invocations to module description.
38367         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
38368         here...
38369         * modules/fwritable (configure.ac): ... to here.
38371 2011-05-07  Bruno Haible  <bruno@clisp.org>
38373         futimens: Move AC_LIBOBJ invocations to module description.
38374         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
38375         here...
38376         * modules/futimens (configure.ac): ... to here.
38378 2011-05-07  Bruno Haible  <bruno@clisp.org>
38380         ftruncate: Move AC_LIBOBJ invocations to module description.
38381         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
38382         gl_PREREQ_FTRUNCATE invocations from here...
38383         * modules/ftruncate (configure.ac): ... to here.
38385 2011-05-07  Bruno Haible  <bruno@clisp.org>
38387         fsync: Move AC_LIBOBJ invocations to module description.
38388         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
38389         invocations from here...
38390         * modules/fsync (configure.ac): ... to here.
38392 2011-05-07  Bruno Haible  <bruno@clisp.org>
38394         fsusage: Move AC_LIBOBJ invocations to module description.
38395         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
38396         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
38397         * modules/fsusage (configure.ac): ... to here.
38399 2011-05-07  Bruno Haible  <bruno@clisp.org>
38401         freopen: Move AC_LIBOBJ invocations to module description.
38402         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
38403         invocations from here...
38404         * modules/freopen (configure.ac): ... to here.
38406 2011-05-07  Bruno Haible  <bruno@clisp.org>
38408         free: Move AC_LIBOBJ invocations to module description.
38409         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
38410         invocations from here...
38411         * modules/free (configure.ac): ... to here.
38413 2011-05-07  Bruno Haible  <bruno@clisp.org>
38415         freadable: Move AC_LIBOBJ invocations to module description.
38416         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
38417         here...
38418         * modules/freadable (configure.ac): ... to here.
38420 2011-05-07  Bruno Haible  <bruno@clisp.org>
38422         fpurge: Move AC_LIBOBJ invocations to module description.
38423         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
38424         invocations from here...
38425         * modules/fpurge (configure.ac): ... to here.
38427 2011-05-07  Bruno Haible  <bruno@clisp.org>
38429         fpending: Move AC_LIBOBJ invocations to module description.
38430         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
38431         gl_FUNC_FPENDING.
38432         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
38433         invocations from here...
38434         * modules/fpending (configure.ac): ... to here.
38436 2011-05-07  Bruno Haible  <bruno@clisp.org>
38438         fopen: Move AC_LIBOBJ invocations to module description.
38439         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
38440         invocations from here...
38441         * modules/fopen (configure.ac): ... to here.
38443 2011-05-07  Bruno Haible  <bruno@clisp.org>
38445         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
38446         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
38447         gl_FUNC_FNMATCH_POSIX.
38448         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
38449         invocations from here...
38450         * modules/fnmatch (configure.ac): ... to here.
38451         * modules/fnmatch-gnu (configure.ac): ... and here.
38453 2011-05-07  Bruno Haible  <bruno@clisp.org>
38455         flock: Move AC_LIBOBJ invocations to module description.
38456         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
38457         invocations from here...
38458         * modules/flock (configure.ac): ... to here.
38460 2011-05-07  Bruno Haible  <bruno@clisp.org>
38462         fileblocks: Move AC_LIBOBJ invocations to module description.
38463         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
38464         gl_PREREQ_FILEBLOCKS invocations from here...
38465         * modules/fileblocks (configure.ac): ... to here.
38467 2011-05-06  Bruno Haible  <bruno@clisp.org>
38469         fflush: Move AC_LIBOBJ invocations to module description.
38470         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
38471         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
38472         invocations from here...
38473         * modules/fflush (configure.ac): ... to here.
38475 2011-05-06  Bruno Haible  <bruno@clisp.org>
38477         fdopendir: Move AC_LIBOBJ invocations to module description.
38478         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
38479         here...
38480         * modules/fdopendir (configure.ac): ... to here.
38481         (Depends-on): Improve conditions.
38483 2011-05-06  Bruno Haible  <bruno@clisp.org>
38485         _Exit: Move AC_LIBOBJ invocations to module description.
38486         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
38487         invocations from here...
38488         * modules/_Exit (configure.ac): ... to here.
38490 2011-05-21  Bruno Haible  <bruno@clisp.org>
38492         euidaccess: Respect rules for use of AC_LIBOBJ.
38493         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
38494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
38495         from here...
38496         * modules/euidaccess (configure.ac): ... to here.
38498 2011-05-06  Bruno Haible  <bruno@clisp.org>
38500         error: Move AC_LIBOBJ invocations to module description.
38501         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
38502         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
38503         invocations from here...
38504         * modules/error (configure.ac): ... to here.
38506 2011-05-06  Bruno Haible  <bruno@clisp.org>
38508         duplocale: Move AC_LIBOBJ invocations to module description.
38509         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
38510         gl_PREREQ_DUPLOCALE invocations from here...
38511         * modules/duplocale (configure.ac): ... to here.
38513 2011-05-05  Bruno Haible  <bruno@clisp.org>
38515         dirfd: Move AC_LIBOBJ invocations to module description.
38516         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
38517         gl_FUNC_DIRFD.
38518         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
38519         here...
38520         * modules/dirfd (configure.ac): ... to here.
38521         (Depends-on): Fix condition.
38523 2011-05-05  Bruno Haible  <bruno@clisp.org>
38525         chown: Respect rules for use of AC_LIBOBJ.
38526         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
38527         * modules/chown (configure.ac): ... to here.
38529 2011-05-05  Bruno Haible  <bruno@clisp.org>
38531         chdir-long: Move AC_LIBOBJ invocations to module description.
38532         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
38533         gl_PREREQ_CHDIR_LONG invocations from here...
38534         * modules/chdir-long (configure.ac): ... to here.
38536 2011-05-05  Bruno Haible  <bruno@clisp.org>
38538         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
38539         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
38540         from here...
38541         * modules/canonicalize-lgpl (configure.ac): ... to here.
38543 2011-05-05  Bruno Haible  <bruno@clisp.org>
38545         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
38546         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
38547         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
38548         REPLACE_CALLOC.
38549         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
38550         * modules/calloc-gnu (configure.ac): Likewise.
38552 2011-05-05  Bruno Haible  <bruno@clisp.org>
38554         btowc: Move AC_LIBOBJ invocations to module description.
38555         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
38556         invocations from here...
38557         * modules/btowc (configure.ac): ... to here.
38559 2011-05-21  Bruno Haible  <bruno@clisp.org>
38561         atexit: Move AC_LIBOBJ invocations to module description.
38562         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
38563         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
38564         here...
38565         * modules/atexit (configure.ac): ... to here.
38567 2011-05-05  Bruno Haible  <bruno@clisp.org>
38569         atoll: Move AC_LIBOBJ invocations to module description.
38570         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
38571         invocations from here...
38572         * modules/atoll (configure.ac): ... to here.
38574 2011-05-05  Bruno Haible  <bruno@clisp.org>
38576         argz: Move AC_LIBOBJ invocations to module description.
38577         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
38578         * modules/argz (configure.ac): ... to here.
38580 2011-05-05  Bruno Haible  <bruno@clisp.org>
38582         alphasort: Move AC_LIBOBJ invocations to module description.
38583         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
38584         gl_PREREQ_ALPHASORT invocations from here...
38585         * modules/alphasort (configure.ac): ... to here.
38587 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
38589         verify: new macro verify_expr; verify_true deprecated
38590         * NEWS: Mention this.
38591         * doc/verify.texi (Compile-time Assertions): Document this.
38592         * lib/verify.h (verify_true): Deprecate.
38593         (verify_expr): New macro.
38594         * tests/test-verify.c (function): Test verify_expr.
38596 2011-06-14  Jim Meyering  <meyering@redhat.com>
38598         init.sh: give more portable redirection-related advice in a comment
38599         * tests/init.sh (stderr_fileno_): Update the advice in comments.
38600         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
38601         for lots of discussion.  Stefano Lattarini suggested the solution
38602         of putting "9>&2" after the command.  Reported by Bruno Haible.
38604 2011-06-13  Bruno Haible  <bruno@clisp.org>
38606         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
38607         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
38608         'none'.
38610 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
38612         ftoastr: use strtof only if HAVE_STRTOF
38613         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
38614         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
38615         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
38616         * modules/ftoastr (configure.ac): Check for strtof.
38618 2011-06-13  Bruno Haible  <bruno@clisp.org>
38620         gnulib-tool: Addendum to 2011-06-08 commit.
38621         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
38622         and --witness-c-macro have been given, augment AM_CPPFLAGS.
38624 2011-06-13  Bruno Haible  <bruno@clisp.org>
38626         fseeko: Provide a non-inline replacement of fseek().
38627         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
38628         * modules/fseeko (Depends-on): Add fseek.
38629         * modules/fseek (License): Change to LGPLv2+.
38631 2011-06-13  Bruno Haible  <bruno@clisp.org>
38633         ftello: Provide a non-inline replacement of ftell().
38634         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
38635         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
38636         not have ftello() (such as on mingw).
38637         * modules/ftello (Depends-on): Add ftell.
38638         * modules/ftell (License): Change to LGPLv2+.
38640 2011-05-07  Bruno Haible  <bruno@clisp.org>
38642         ftell: Move AC_LIBOBJ invocations to module description.
38643         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
38644         * modules/ftell (configure.ac): ... to here.
38646 2011-05-07  Bruno Haible  <bruno@clisp.org>
38648         ftello: Respect rules for use of AC_LIBOBJ.
38649         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
38650         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
38651         here...
38652         * modules/ftello (configure.ac): ... to here.
38654 2011-05-07  Bruno Haible  <bruno@clisp.org>
38656         fseeko: Simplify.
38657         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
38658         (gl_FUNC_FSEEKO): Inline it here.
38660 2011-05-07  Bruno Haible  <bruno@clisp.org>
38662         fseek: Move AC_LIBOBJ invocations to module description.
38663         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
38664         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
38665         * modules/fseek (configure.ac): ... to here.
38667 2011-05-07  Bruno Haible  <bruno@clisp.org>
38669         fseek: Respect rules for use of AC_LIBOBJ.
38670         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
38671         here...
38672         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
38674 2011-05-07  Bruno Haible  <bruno@clisp.org>
38676         fseeko: Respect rules for use of AC_LIBOBJ.
38677         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
38678         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
38679         here...
38680         * modules/fseeko (configure.ac): ... to here.
38682 2011-06-13  Bruno Haible  <bruno@clisp.org>
38684         gnulib-tool: Allow comments in the 'Depends-on' section.
38685         * doc/gnulib.texi (Module description): Mention comment syntax in the
38686         Depends-on section.
38687         * gnulib-tool (func_get_dependencies): Filter out comment lines.
38689 2011-06-13  Bruno Haible  <bruno@clisp.org>
38691         file-set.h: guard __attibute__ use, now that it's not always defined
38692         * lib/file-set.h (record_file): Use __attribute__ only with compiler
38693         versions that support it.  This fixes a coreutils build failure with
38694         the vendor cc on HP-UX 11.31.
38696 2011-06-12  Bruno Haible  <bruno@clisp.org>
38698         acl: Add support for HP-UX >= 11.11 JFS ACLs.
38699         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
38700         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
38701         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
38702         (acl, aclsort): New declarations.
38703         (aclv_nontrivial): New declaration.
38704         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
38705         (file_has_acl): Read also the second kind of HP-UX ACLs.
38706         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
38707         kind of HP-UX ACLs if the first kind fails.
38708         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
38709         second kind of HP-UX ACLs.
38710         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
38711         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
38712         agree.
38713         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38714         hpuxjfs.
38715         Handle hpuxjfs.
38716         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
38717         hpuxjfs.
38718         Handle hpuxjfs.
38719         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38720         (func_test_same_acls): Use both lsacl and getacl.
38721         Handle hpuxjfs.
38722         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
38723         (func_test_same_acls): Use both lsacl and getacl.
38724         Handle hpuxjfs.
38726 2011-06-12  Bruno Haible  <bruno@clisp.org>
38728         acl: Complete the 2010-08-10 fix.
38729         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
38730         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
38731         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
38732         explicitly.
38733         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
38734         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
38736 2011-06-12  Bruno Haible  <bruno@clisp.org>
38738         spawn-pipe tests: Comments.
38739         * tests/test-spawn-pipe-child.c (main): Update comment.
38740         Reported by James Youngman <jay@gnu.org>.
38742 2011-06-11  James Youngman  <jay@gnu.org>
38744         New module 'stat-size'.
38745         * modules/stat-size: New module.  Provides macros for accessing
38746         file size information in instances of struct stat.  Depends on the
38747         fileblocks module because it calls st_blocks.
38748         * lib/stat-size.h: New file, adapted from coreutils' system.h.
38749         * doc/gnulib.texi: Include stat-size.texi.
38750         * doc/stat-size.texi: Documentation for this module.
38751         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
38752         * m4/fileblocks.m4: Mention that stat-size depends on the call to
38753         AC_STRUCT_ST_BLOCKS.
38755 2011-06-09  Bruno Haible  <bruno@clisp.org>
38757         thread: Support pthreads-win32.
38758         * lib/glthread/thread.h (gl_thread_self): Define differently on
38759         pthreads-win32.
38760         (gl_null_thread): New declaration.
38761         (gl_thread_self_pointer): New macro.
38762         * lib/glthread/thread.c (gl_null_thread): New constant.
38763         * tests/test-lock.c: Use gl_thread_self_pointer instead of
38764         gl_thread_self.
38765         * tests/test-tls.c: Likewise.
38766         Suggested by Paul Eggert. Reported by Eric Blake.
38768 2011-06-09  Bruno Haible  <bruno@clisp.org>
38770         thread: Fix confusion between NULL and 0.
38771         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
38772         Reported by Paul Eggert.
38774 2011-06-09  Bruno Haible  <bruno@clisp.org>
38776         spawn-pipe tests: Avoid test failure on HP-UX 11.
38777         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
38778         is closed.
38780 2011-06-09  Bruno Haible  <bruno@clisp.org>
38782         acl tests: Fix compilation error on HP-UX 11.
38783         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
38785 2011-06-09  Bruno Haible  <bruno@clisp.org>
38787         rmdir: Avoid test failure on HP-UX 10.20.
38788         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
38789         EEXIST.
38791 2011-06-08  Eric Blake  <eblake@redhat.com>
38793         perror: fix test on mingw
38794         * modules/perror-tests (Depends-on): Add dup2.
38796         strerror_r-posix: fix on MacOS
38797         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
38798         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
38799         logic bug.
38800         * lib/strerror_r.c (strerror_r): Fix the bug.
38801         * lib/strerror.c (strerror): Likewise.
38802         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
38803         problem.
38804         * doc/posix-functions/strerror.texi (strerror): Likewise.
38805         * doc/posix-functions/perror.texi (perror): Likewise.
38806         * tests/test-strerror.c (main): Enhance test.
38807         * tests/test-strerror_r.c (main): Likewise.
38809 2011-06-08  Bruno Haible  <bruno@clisp.org>
38811         gnulib-tool: Better isolation between different gnulib-tool invocations.
38812         * gnulib-tool: New option --witness-c-macro.
38813         (witness_c_macro): New variable.
38814         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
38815         AM_CPPFLAGS define it as a C macro.
38816         (func_emit_tests_Makefile_am): Likewise.
38817         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
38818         read it from there.
38819         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
38820         m4_define, not AC_DEFUN.
38821         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
38822         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
38823         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
38824         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
38825         s|...|...|, to substitute the values of the GNULIB_* module indicator
38826         variables.
38827         * modules/dirent (Makefile.am): Likewise.
38828         * modules/fcntl-h (Makefile.am): Likewise.
38829         * modules/iconv-h (Makefile.am): Likewise.
38830         * modules/langinfo (Makefile.am): Likewise.
38831         * modules/locale (Makefile.am): Likewise.
38832         * modules/math (Makefile.am): Likewise.
38833         * modules/netdb (Makefile.am): Likewise.
38834         * modules/poll-h (Makefile.am): Likewise.
38835         * modules/pty (Makefile.am): Likewise.
38836         * modules/search (Makefile.am): Likewise.
38837         * modules/signal (Makefile.am): Likewise.
38838         * modules/spawn (Makefile.am): Likewise.
38839         * modules/stdio (Makefile.am): Likewise.
38840         * modules/stdlib (Makefile.am): Likewise.
38841         * modules/string (Makefile.am): Likewise.
38842         * modules/sys_ioctl (Makefile.am): Likewise.
38843         * modules/sys_select (Makefile.am): Likewise.
38844         * modules/sys_socket (Makefile.am): Likewise.
38845         * modules/sys_stat (Makefile.am): Likewise.
38846         * modules/sys_times (Makefile.am): Likewise.
38847         * modules/sys_utsname (Makefile.am): Likewise.
38848         * modules/sys_wait (Makefile.am): Likewise.
38849         * modules/termios (Makefile.am): Likewise.
38850         * modules/time (Makefile.am): Likewise.
38851         * modules/unistd (Makefile.am): Likewise.
38852         * modules/wchar (Makefile.am): Likewise.
38854 2011-06-08  Eric Blake  <eblake@redhat.com>
38856         strerror: simplify replacement
38857         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
38858         * modules/strerror (configure.ac): No prereqs needed here...
38859         * modules/strerror-override (configure.ac): ...but this needs it.
38860         (Files): Add file for needed prereq macro.
38862 2011-06-08  Bruno Haible  <bruno@clisp.org>
38864         strerror_r-posix: Tweaks.
38865         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
38866         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
38867         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
38868         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
38869         (gl_FUNC_STRERROR_R): ... to here.
38870         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
38872 2011-06-07  Eric Blake  <eblake@redhat.com>
38874         perror: document fixed bugs
38875         * doc/posix-functions/perror.texi (perror): Document recent
38876         patches.
38878 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
38880         stat-time: get_stat_birthtime failure is better-defined
38881         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
38882         return a timestamp whose tv_sec and tv_nsec values are both -1.
38883         Previously, the spec said only that the tv_nsec value was negative.
38884         This upward-compatible change simplifies GNU tar a bit.
38886 2011-06-07  Eric Blake  <eblake@redhat.com>
38888         strerror_r-posix: work around cygwin 1.7.9
38889         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
38890         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
38891         bug without replacing strerror_r.
38892         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
38893         strerror_r is buggy, but without requiring strerror_r compilation.
38894         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
38896         test-perror: relax test to ignore cygwin bug
38897         * tests/test-perror2.c (main): Relax test on requiring detection
38898         of stream errors, and use unbuffered stream.
38899         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
38900         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
38901         * doc/posix-functions/fputc.texi (fputc): Likewise.
38902         * doc/posix-functions/fputs.texi (fputs): Likewise.
38903         * doc/posix-functions/fputws.texi (fputws): Likewise.
38904         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
38905         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
38906         * doc/posix-functions/getopt.texi (getopt): Likewise.
38907         * doc/posix-functions/perror.texi (perror): Likewise.
38908         * doc/posix-functions/printf.texi (printf): Likewise.
38909         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
38910         * doc/posix-functions/psignal.texi (psignal): Likewise.
38911         * doc/posix-functions/putc.texi (putc): Likewise.
38912         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
38913         Likewise.
38914         * doc/posix-functions/putchar.texi (putchar): Likewise.
38915         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
38916         Likewise.
38917         * doc/posix-functions/puts.texi (puts): Likewise.
38918         * doc/posix-functions/putwc.texi (putwc): Likewise.
38919         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38920         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38921         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38922         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
38923         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38924         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38925         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38926         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
38928 2011-05-22  Bruno Haible  <bruno@clisp.org>
38930         strerror: Move AC_LIBOBJ invocations to module description.
38931         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
38932         gl_PREREQ_STRERROR invocations from here...
38933         * modules/strerror (configure.ac): ... to here.
38935 2011-05-21  Bruno Haible  <bruno@clisp.org>
38937         perror: Use common idiom.
38938         * modules/perror (configure.ac): Reorder statements.
38940 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38942         tests: fix usage message in 'mktempd_'
38943         * tests/init.sh (mktempd_): In the usage message, use literal
38944         'mktempd_', not '$ME' (which is even undefined), as the name of
38945         the subroutine.
38947 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
38949         tests init: new function 'fatal_', for hard errors
38950         Before this patch, the only way offered by tests/init.sh to
38951         properly signal a hard error was the `framework_failure_'
38952         function.  But the error message issued by that function,
38953         as its name would suggest, refers to a set-up failure in the
38954         testsuite, while hard errors can obviously also be due to
38955         other reasons.  The best way to fix this inconsistency is to
38956         introduce a new function with a more general error message.
38957         * tests/init.sh (fatal_): New function.
38959 2011-06-06  Eric Blake  <eblake@redhat.com>
38961         canonicalize-lgpl: use common idiom
38962         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
38963         over newer POSIX -Rf.
38964         Reported by Bruno Haible.
38966         canonicalize-lgpl: work around AIX realpath bug
38967         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
38968         * doc/posix-functions/realpath.texi (realpath): Document it.
38969         Reported by Bruno Haible.
38971         strerror: work around FreeBSD bug
38972         * lib/strerror.c (strerror): Special case 0.
38973         Reported by Bruno Haible.
38975         strerror-override: avoid bloating errno module
38976         * modules/errno (Files, configure.ac): Move replacement strings...
38977         * modules/strerror-override: ...to new module.
38978         * modules/strerror (Depends-on): Add strerror-override.
38979         * modules/strerror_r-posix (Depends-on): Likewise.
38980         * MODULES.html.sh: Document new module.
38981         Reported by Bruno Haible.
38983 2011-06-06  Bruno Haible  <bruno@clisp.org>
38985         spawn-pipe tests: Rename program.
38986         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
38987         * tests/test-spawn-pipe-child.c: Update comment.
38988         * tests/test-spawn-pipe.sh: Update.
38989         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
38991         spawn-pipe tests: Link the child program only against libc.
38992         * tests/test-spawn-pipe-child.c: New file, extracted from
38993         tests/test-spawn-pipe.c.
38994         (main): Expect only one argument.
38995         (is_open): New function, copied from tests/test-pipe.c.
38996         * tests/test-spawn-pipe.c: Don't include <errno.h>.
38997         (child_main): Remove function.
38998         (test_pipe): Pass only one argument to the child program.
38999         (main): Remove child process code. Expect the child program's name as
39000         first argument.
39001         * tests/test-spawn-pipe.sh: Pass the child program's name as first
39002         argument.
39003         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
39004         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
39005         test-spawn-pipe-child against no libraries.
39007 2011-06-06  Bruno Haible  <bruno@clisp.org>
39009         careadlinkat: Avoid mismatch between ssize_t and int.
39010         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
39011         * lib/careadlinkat.c (careadlinkatcwd): Define always.
39013 2011-06-06  Jim Meyering  <meyering@redhat.com>
39015         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
39016         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
39017         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
39019 2011-06-05  Bruno Haible  <bruno@clisp.org>
39021         ansi-c++-opt: Interoperability with libtool.
39022         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
39023         set the variable to "no", not to ":".
39024         * NEWS: Mention the change.
39026 2011-06-05  Bruno Haible  <bruno@clisp.org>
39028         acl: Fix test failure on AIX 7.
39029         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
39030         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
39032 2011-06-05  Bruno Haible  <bruno@clisp.org>
39034         pipe-filter-ii: Fix test failure on AIX and IRIX.
39035         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
39036         with EAGAIN, retry with a smaller buffer size.
39038 2011-06-05  Bruno Haible  <bruno@clisp.org>
39040         localename: Fix link dependencies.
39041         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
39042         * modules/localename-tests (Makefile.am): Link test-localename with
39043         $(LIBTHREAD).
39045 2011-06-05  Bruno Haible  <bruno@clisp.org>
39047         error: Avoid gcc warning.
39048         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
39050 2011-06-05  Bruno Haible  <bruno@clisp.org>
39052         unsetenv: Avoid gcc warning.
39053         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
39055 2011-06-05  Bruno Haible  <bruno@clisp.org>
39057         setenv: Avoid gcc warning.
39058         * lib/setenv.c (setenv): Provide declaration if system lacks it.
39060 2011-06-05  Bruno Haible  <bruno@clisp.org>
39062         sys_select: Ensure memset is declared also on AIX 7.
39063         * lib/sys_select.in.h: Include <string.h> also on AIX.
39064         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
39065         self-contained also on AIX 7.1.
39067 2011-06-04  Jim Meyering  <meyering@redhat.com>
39069         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
39070         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
39071         function name, "error".
39072         (_gl_translatable_diag_func_re): New configurable variable.
39074 2011-06-04  Bruno Haible  <bruno@clisp.org>
39076         getopt: Avoid gcc warning.
39077         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
39079 2011-06-04  Bruno Haible  <bruno@clisp.org>
39081         strerror_r: Fix comments.
39082         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
39083         commit.
39085 2011-06-04  Bruno Haible  <bruno@clisp.org>
39087         perror: Fix compilation error.
39088         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
39089         Undefine fprintf, not sprintf.
39090         * modules/perror (Depends-on): Remove intprops, verify.
39092 2011-06-04  Bruno Haible  <bruno@clisp.org>
39094         setlocale: Enable replacement on Cygwin 1.5.
39095         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
39096         Cygwin 1.5.x.
39097         * doc/posix-functions/setlocale.texi: Mention that the problem with the
39098         LC_CTYPE category also exists on Cygwin 1.5.x.
39100 2011-06-04  Bruno Haible  <bruno@clisp.org>
39102         strerror-override: Don't disable symbol renamings.
39103         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
39104         * lib/strerror-override.c: Include config.h.
39105         (strerror_override): Don't undefine.
39107 2011-06-03  Bruno Haible  <bruno@clisp.org>
39109         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
39110         * lib/localename.h: Update copyright header.
39111         * lib/localename.c: Likewise.
39112         * lib/relocatable.h: Likewise.
39113         * lib/relocatable.c: Likewise.
39115 2011-06-02  Bruno Haible  <bruno@clisp.org>
39117         doc: Fix a module name.
39118         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
39120 2011-06-02  Bruno Haible  <bruno@clisp.org>
39122         pipe2: Remove dependency on 'nonblocking' module.
39123         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
39124         O_NONBLOCK is defined by gnulib.
39125         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
39126         is zero.
39127         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
39128         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
39129         defined by gnulib.
39130         (get_nonblocking_flag): New function.
39131         (main): Test O_NONBLOCK flag only if it is nonzero.
39132         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
39134 2011-06-03  Jim Meyering  <meyering@redhat.com>
39136         maint: three new prohibit-header-without-use rules
39137         Prohibit use of cloexec.h, posixver.h, same.h without use.
39138         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
39139         (sc_prohibit_posixver_without_use): Likewise.
39140         (sc_prohibit_same_without_use): Likewise.
39142 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
39144         allocator: 'die' routine is now given requested size
39145         * lib/allocator.h (struct allocator.die): New size arg.
39146         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
39147         If the actual problem is an ssize_t limitation, not a size_t or
39148         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
39150 2011-06-01  Eric Blake  <eblake@redhat.com>
39152         strerror: drop strerror_r dependency
39153         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
39154         * lib/strerror-override.c (strerror_override): ...to new file.
39155         * lib/strerror-override.h: Add prototype.
39156         * lib/strerror-impl.h: Delete.
39157         * lib/strerror.c (strerror): New implementation.
39158         * modules/errno (Files): Add new files.
39159         (configure.ac): Compile new file as appropriate.
39160         * modules/strerror (Files): Drop unused file.
39161         (Depends-on): Drop strerror_r-posix.
39162         * MODULES.html.sh: Document strerror_r-posix.
39163         Requested by Sam Steingold.
39165         perror: call strerror_r directly
39166         * modules/perror (Files): Drop strerror-impl.h.
39167         * lib/perror.c (perror): Use our own stack buffer, rather than
39168         calling a wrapper that uses static storage.
39169         * doc/posix-functions/perror.texi (perror): Document a limitation
39170         of our replacement.
39172         strerror_r: fix includes for FreeBSD
39173         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
39174         since we use abort on some platforms.
39175         Reported by Matthias Bolte.
39177 2011-05-31  Bruno Haible  <bruno@clisp.org>
39179         Fix link errors in tests: openat-die uses gettext-h.
39180         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
39181         against $(LIBINTL).
39182         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
39183         against $(LIBINTL).
39184         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
39185         $(LIBINTL).
39186         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
39187         against $(LIBINTL).
39188         * modules/linkat-tests (Makefile.am): Link test-linkat against
39189         $(LIBINTL).
39190         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
39191         $(LIBINTL).
39192         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
39193         against $(LIBINTL).
39194         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
39195         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
39196         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
39197         $(LIBINTL).
39198         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
39199         $(LIBINTL).
39200         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
39201         $(LIBINTL).
39202         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39204 2011-05-31  Bruno Haible  <bruno@clisp.org>
39206         Fix link errors in tests: wait-process uses gettext-h.
39207         * modules/nonblocking-pipe-tests (Makefile.am): Set
39208         test_nonblocking_pipe_main_LDADD.
39209         * modules/nonblocking-socket-tests (Makefile.am): Link
39210         test-nonblocking-socket-main against $(LIBINTL).
39211         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39213 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39215         assert-h: work around 'verify' incompatibility
39216         * lib/verify.h: Use @...@ directives, not ifdef.
39217         * modules/assert-h (assert.h): Implement the directives.
39218         (assert.h): Substitute the symbol-prefix more consistently.
39220 2011-05-29  Jim Meyering  <meyering@redhat.com>
39222         trim: remove three superfluous assignments
39223         * lib/trim.c (trim2): Remove three superfluous assignments
39224         and correct brace positioning.
39226 2011-05-29  Bruno Haible  <bruno@clisp.org>
39228         wctype-h: Avoid namespace pollution on Solaris 2.6.
39229         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
39230         identifiers.
39231         * doc/posix-headers/wctype.texi: Mention the problem.
39232         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39234 2011-05-28  Jim Meyering  <meyering@redhat.com>
39236         parse-datetime.y: accommodate -Wstrict-overflow
39237         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
39238         placate -Wstrict-overflow.
39240         trim: avoid a warning from -O2 -Wstrict-overflow
39241         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
39243 2011-05-29  Bruno Haible  <bruno@clisp.org>
39245         gnulib-tool: Fix bug in yesterday's commit.
39246         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
39247         twice.
39249 2011-05-29  Bruno Haible  <bruno@clisp.org>
39251         Allow multiple gnulib generated include files to be combined.
39252         * gnulib-tool (func_compute_include_guard_prefix): New function.
39253         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
39254         ${gl_include_guard_prefix} references.
39255         (func_import, func_create_testdir): Invoke
39256         func_compute_include_guard_prefix.
39257         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
39258         * lib/ctype.in.h: Likewise.
39259         * lib/dirent.in.h: Likewise.
39260         * lib/errno.in.h: Likewise.
39261         * lib/fcntl.in.h: Likewise.
39262         * lib/float.in.h: Likewise.
39263         * lib/getopt.in.h: Likewise.
39264         * lib/iconv.in.h: Likewise.
39265         * lib/langinfo.in.h: Likewise.
39266         * lib/locale.in.h: Likewise.
39267         * lib/math.in.h: Likewise.
39268         * lib/netdb.in.h: Likewise.
39269         * lib/netinet_in.in.h: Likewise.
39270         * lib/poll.in.h: Likewise.
39271         * lib/pthread.in.h: Likewise.
39272         * lib/pty.in.h: Likewise.
39273         * lib/sched.in.h: Likewise.
39274         * lib/se-selinux.in.h: Likewise.
39275         * lib/search.in.h: Likewise.
39276         * lib/signal.in.h: Likewise.
39277         * lib/spawn.in.h: Likewise.
39278         * lib/stdarg.in.h: Likewise.
39279         * lib/stddef.in.h: Likewise.
39280         * lib/stdint.in.h: Likewise.
39281         * lib/stdio.in.h: Likewise.
39282         * lib/stdlib.in.h: Likewise.
39283         * lib/string.in.h: Likewise.
39284         * lib/strings.in.h: Likewise.
39285         * lib/sys_file.in.h: Likewise.
39286         * lib/sys_ioctl.in.h: Likewise.
39287         * lib/sys_select.in.h: Likewise.
39288         * lib/sys_socket.in.h: Likewise.
39289         * lib/sys_stat.in.h: Likewise.
39290         * lib/sys_time.in.h: Likewise.
39291         * lib/sys_times.in.h: Likewise.
39292         * lib/sys_uio.in.h: Likewise.
39293         * lib/sys_utsname.in.h: Likewise.
39294         * lib/sys_wait.in.h: Likewise.
39295         * lib/sysexits.in.h: Likewise.
39296         * lib/termios.in.h: Likewise.
39297         * lib/time.in.h: Likewise.
39298         * lib/unistd.in.h: Likewise.
39299         * lib/wchar.in.h: Likewise.
39300         * lib/wctype.in.h: Likewise.
39301         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
39302         * modules/ctype (Makefile.am): Likewise.
39303         * modules/dirent (Makefile.am): Likewise.
39304         * modules/errno (Makefile.am): Likewise.
39305         * modules/fcntl-h (Makefile.am): Likewise.
39306         * modules/float (Makefile.am): Likewise.
39307         * modules/getopt-posix (Makefile.am): Likewise.
39308         * modules/iconv-h (Makefile.am): Likewise.
39309         * modules/langinfo (Makefile.am): Likewise.
39310         * modules/locale (Makefile.am): Likewise.
39311         * modules/math (Makefile.am): Likewise.
39312         * modules/netdb (Makefile.am): Likewise.
39313         * modules/netinet_in (Makefile.am): Likewise.
39314         * modules/poll-h (Makefile.am): Likewise.
39315         * modules/pthread (Makefile.am): Likewise.
39316         * modules/pty (Makefile.am): Likewise.
39317         * modules/sched (Makefile.am): Likewise.
39318         * modules/search (Makefile.am): Likewise.
39319         * modules/selinux-h (Makefile.am): Likewise.
39320         * modules/signal (Makefile.am): Likewise.
39321         * modules/spawn (Makefile.am): Likewise.
39322         * modules/stdarg (Makefile.am): Likewise.
39323         * modules/stddef (Makefile.am): Likewise.
39324         * modules/stdint (Makefile.am): Likewise.
39325         * modules/stdio (Makefile.am): Likewise.
39326         * modules/stdlib (Makefile.am): Likewise.
39327         * modules/string (Makefile.am): Likewise.
39328         * modules/strings (Makefile.am): Likewise.
39329         * modules/sys_file (Makefile.am): Likewise.
39330         * modules/sys_ioctl (Makefile.am): Likewise.
39331         * modules/sys_select (Makefile.am): Likewise.
39332         * modules/sys_socket (Makefile.am): Likewise.
39333         * modules/sys_stat (Makefile.am): Likewise.
39334         * modules/sys_time (Makefile.am): Likewise.
39335         * modules/sys_times (Makefile.am): Likewise.
39336         * modules/sys_uio (Makefile.am): Likewise.
39337         * modules/sys_utsname (Makefile.am): Likewise.
39338         * modules/sys_wait (Makefile.am): Likewise.
39339         * modules/sysexits (Makefile.am): Likewise.
39340         * modules/termios (Makefile.am): Likewise.
39341         * modules/time (Makefile.am): Likewise.
39342         * modules/unistd (Makefile.am): Likewise.
39343         * modules/wchar (Makefile.am): Likewise.
39344         * modules/wctype-h (Makefile.am): Likewise.
39345         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
39347 2011-05-29  Bruno Haible  <bruno@clisp.org>
39349         assert-h: Allow multiple gnulib generated replacements to coexist.
39350         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
39352 2011-05-29  Bruno Haible  <bruno@clisp.org>
39354         argp: Allow coexistence with strerror_r-posix module.
39355         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
39356         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
39357         by gnulib's <string.h> replacement), assume it has the POSIX signature,
39358         not the glibc signature.
39360 2011-05-28  Bruno Haible  <bruno@clisp.org>
39362         gnulib-tool: Alternative structure of testdirs, similar to --import.
39363         * gnulib-tool: New option --single-configure.
39364         (func_usage): Document it.
39365         (single_configure): New variable.
39366         (func_modules_transitive_closure_separately,
39367         func_modules_transitive_closure_separately,
39368         func_determine_use_libtests, func_modules_add_dummy_separately,
39369         func_modules_to_filelist_separately): New functions, extracted from
39370         func_import.
39371         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
39372         (func_import): Use the new functions.
39373         (func_create_testdir): Set final_modules. Handle $single_configure =
39374         true case.
39376 2011-05-28  Bruno Haible  <bruno@clisp.org>
39378         getloadavg: Remove an unreliable safety check.
39379         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
39380         getloadavg.c is in place.
39381         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
39382         Reported by Sam Steingold <sds@gnu.org>.
39384 2011-05-28  Bruno Haible  <bruno@clisp.org>
39386         doc: Cleanup yet another file produced by texinfo.tex.
39387         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
39389 2011-05-28  Bruno Haible  <bruno@clisp.org>
39391         Finish the conditional dependencies mechanism.
39392         * gnulib-tool: New option --no-conditional-dependencies.
39393         (func_usage): Document it. Don't mark --conditional-dependencies as
39394         experimental.
39395         (cond_dependencies): The possible values can now be true, false, empty.
39396         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
39397         (func_import): Store setting in gnulib-cache.m4 and read it from there.
39398         * doc/gnulib-tool.texi (Conditional dependencies): New section.
39400 2011-05-28  Bruno Haible  <bruno@clisp.org>
39402         doc: Use a recent texinfo.tex.
39403         * doc/Makefile (tex_opts): New variable.
39404         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
39406 2011-05-28  Jim Meyering  <meyering@redhat.com>
39408         intprops.h: adjust comment to match code change
39409         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
39410         only once, it *may* have side effects.  Also fix an unrelated typo.
39411         (_GL_INT_SIGNED): Likewise.
39413 2011-05-26  Simon Josefsson  <simon@josefsson.org>
39415         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
39417 2011-05-26  Bruno Haible  <bruno@clisp.org>
39419         mbsrchr: Avoid collision with system function on Interix.
39420         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
39421         Reported by Markus Duft <mduft@gentoo.org>.
39423 2011-05-15  James Youngman  <jay@gnu.org>
39425         getopt: for ambiguous options, enumerate the possibilities.
39426         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
39427         the ambiguous options when an ambiguous prefix is given. This was
39428         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
39429         glibc change was
39430         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
39432 2011-05-25  Eric Blake  <eblake@redhat.com>
39434         getcwd: work around mingw bug
39435         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
39436         * doc/posix-functions/getcwd.texi (getcwd): Document it.
39437         Reported by Matthias Bolte.
39439 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
39441         test-intprops: disable -Wtype-limits diagnostics
39442         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
39443         diagnostics.  Otherwise, the integer overflow macros generate many
39444         diagnostics.  Reported by Jim Meyering in
39445         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39447         intprops: shorten, to pacify gcc -Woverlength-strings
39448         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
39449         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
39450         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
39451         likely to run afoul of C compiler limits for string constant lengths.
39452         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
39454 2011-05-24  Eric Blake  <eblake@redhat.com>
39456         docs: document recently fixed glibc printf bug
39457         * doc/posix-functions/fprintf.texi (fprintf): Document it.
39458         * doc/posix-functions/printf.texi (printf): Likewise.
39459         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
39460         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
39462         closein-tests: convert to init.sh
39463         * modules/closein-tests (Files): Add init.sh
39464         * tests/test-closein.sh Use it.
39466         yesno-tests: convert to init.sh
39467         * modules/yesno-tests (Files): Add init.sh.
39468         * tests/test-yesno.sh: Use it.
39470         atexit-tests: ensure reliable exit status
39471         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
39472         Reported by Bruno Haible.
39474 2011-05-24  Bruno Haible  <bruno@clisp.org>
39476         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
39477         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
39478         gl_PREREQ_STRERROR_R invocations from here...
39479         * modules/strerror_r-posix (configure.ac): ... to here.
39481 2011-05-24  Eric Blake  <eblake@redhat.com>
39483         strerror_r: fix missing header
39484         * lib/strerror_r.c: Avoid compiler warning about snprintf.
39486         strerror_r: fix AIX test failures
39487         * lib/strerror_r.c (strerror_r): Convert silent truncation to
39488         ERANGE failure.
39490         strerror_r: fix Solaris test failures
39491         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
39492         failures.
39493         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39495         strerror_r: enforce POSIX recommendations
39496         * lib/strerror_r.c (safe_copy): New helper method.
39497         (strerror_r): Guarantee a non-empty string.
39498         * tests/test-strerror_r.c (main): Enhance tests to incorporate
39499         recent POSIX rulings and to match our strerror guarantees.
39500         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
39502 2011-05-24  Jim Meyering  <meyering@redhat.com>
39504         test-perror2.c: avoid warning about unused variable
39505         * tests/test-perror2.c (main): Remove declaration of unused "fp".
39507 2011-05-24  Eric Blake  <eblake@redhat.com>
39509         perror: avoid spurious test failure on HP-UX
39510         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
39512         tests: fix logic bug in init.sh
39513         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
39514         shell.
39516 2011-05-24  Jim Meyering  <meyering@redhat.com>
39518         utimensat: do not reference an out-of-scope buffer
39519         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
39520         declared in an inner scope, yet "times" would be dereferenced outside
39521         the scope in which "ts" was valid.
39522         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
39523         of ts[2] "out/up", so that the use of aliased "times" (via
39524         "times = ts;") does not end up referencing an out-of-scope "ts"
39526         opendir-safer.c: don't clobber errno; don't close negative FD
39527         * lib/opendir-safer.c (opendir_safer):
39528         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
39529         file descriptor, and more importantly, don't clobber the
39530         offending errno value with EINVAL.  Before, upon failure
39531         of dup_safer, we would pass the negative file descriptor to
39532         fdopendir, which would clobber errno.
39534 2011-05-23  Bruno Haible  <bruno@clisp.org>
39536         idcache: Fix module description.
39537         * modules/idcache (Include): Set to "idcache.h".
39539 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39541         gnulib-tool: fix portability problem with MacOS sed
39542         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
39543         before the "}".  Problem reported by Leo in
39544         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
39545         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
39546         sed_extract_condition1, sed_extract_condition2.
39548 2011-05-23  Bruno Haible  <bruno@clisp.org>
39550         hash: Simplify autoconf macro.
39551         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
39553 2011-05-23  Bruno Haible  <bruno@clisp.org>
39555         getugroups: Fix module description.
39556         * modules/getugroups (Include): Set to "getugroups.h".
39558 2011-05-23  Bruno Haible  <bruno@clisp.org>
39560         linkat: Simplify autoconf macro.
39561         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
39563 2011-05-23  Bruno Haible  <bruno@clisp.org>
39564             Eric Blake  <eblake@redhat.com>
39566         linkat, renameat: Update dependencies.
39567         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
39568         * modules/linkat (Depends-on): Likewise. Remove also readlink,
39569         symlinkat.
39571 2011-05-23  Jim Meyering  <meyering@redhat.com>
39573         maint.mk: more tight_scope improvements
39574         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
39575         (_gl_TS_headers): Define only in if-0'd block.
39576         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
39577         sometimes we must *not* use it.  Adjust uses accordingly.
39578         (sc_tight_scope): Use much simpler grep-based test to determine
39579         whether we skip this rule.
39581         maint.mk: generalize/improve the tight-scope rule
39582         * top/maint.mk: Emit a warning when the test is skipped.
39583         (_gl_TS_dir): Add $(srcdir)/ prefix.
39584         (_gl_TS_function_match): Simplify, rather than trying
39585         to enumerate common types.  Otherwise, it would fail to match an
39586         "extern unsigned char const *" declaration in idutils.
39587         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
39588         a way to support use of that type of macro.
39589         (_gl_TS_var_match): Simplify regexp.
39590         (_gl_TS_obj_files): New configurable variable.
39591         (_gl_TS_headers): Likewise.
39593 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
39595         verify: fix bug when gnulib <assert.h> is also included
39596         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
39597         is defined, not if _GL_STATIC_ASSERT_H is not defined.
39598         Perhaps there's a better way, but this fixes the immediate problem.
39599         Problem reported by Bruno Haible in
39600         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
39602 2011-05-22  Bruno Haible  <bruno@clisp.org>
39604         xgetcwd: Simplify autoconf macro.
39605         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
39607 2011-05-22  Bruno Haible  <bruno@clisp.org>
39609         New module 'mktime-internal'.
39610         * modules/mktime-internal: New file.
39611         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
39612         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
39613         mktime_internal as a C macro if libc has __mktime_internal.
39614         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
39615         conditions.
39616         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
39618 2011-05-22  Bruno Haible  <bruno@clisp.org>
39620         timegm: Correct mktime replacement statements.
39621         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
39622         defining mktime as a C macro. This completes a 2009-07-28 commit.
39624 2011-05-22  Bruno Haible  <bruno@clisp.org>
39626         timegm: Simplify autoconf macro.
39627         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
39629 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
39631         clock-time: change to LGPLv2+.
39632         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
39633         BSD-like but we have no mark for that; this is good enough for now.
39635 2011-05-21  Bruno Haible  <bruno@clisp.org>
39637         strerror_r: Fix comments.
39638         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
39640 2011-05-21  Bruno Haible  <bruno@clisp.org>
39642         relocatable-prog-wrapper: Fix possible link error.
39643         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
39644         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
39645         (gl_FUNC_SETENV): ... to here.
39646         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
39647         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
39649 2011-05-21  Bruno Haible  <bruno@clisp.org>
39651         relocatable-prog-wrapper: Assume strerror() exists.
39652         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
39653         m4/strerror.m4.
39654         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
39655         * lib/relocwrapper.c: Remove mention of strerror module.
39656         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
39657         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
39658         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
39659         C macro.
39661 2011-05-21  Bruno Haible  <bruno@clisp.org>
39663         select: Simplify replacement idiom.
39664         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
39665         Win32 platforms.
39666         * lib/sys_select.in.h (select): Simplify accordingly.
39667         * modules/select (Depends-on): Likewise.
39669 2011-05-21  Bruno Haible  <bruno@clisp.org>
39671         mkdir-p: Simplify autoconf macro.
39672         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
39673         gl_FUNC_LCHOWN.
39675 2011-05-21  Eric Blake  <eblake@redhat.com>
39677         strerror_r: avoid clobbering strerror on cygwin
39678         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
39679         fall back instead to sys_errlist.
39680         * modules/strerror (configure.ac): Add witness.
39681         * tests/test-strerror_r.c (main): Enhance test.
39682         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39683         * tests/test-perror2.c (main): Free memory before exit.
39685 2011-05-21  Bruno Haible  <bruno@clisp.org>
39687         mkdtemp: Use gnulib naming conventions.
39688         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
39689         * modules/mkdtemp (configure.ac): Update.
39691 2011-05-20  Eric Blake  <eblake@redhat.com>
39693         strerror_r: avoid corrupting errno on Solaris
39694         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
39695         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
39697         strerror_r: avoid compiler warning
39698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
39700         strerror_r: simplify AIX code
39701         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
39703         test-perror: avoid spurious failure on FreeBSD
39704         * modules/perror-tests (Depends-on): Add strerror, now that
39705         strerror_r no longer pulls it in.
39707 2011-05-20  Bruno Haible  <bruno@clisp.org>
39709         strerror_r-posix: Remove unused dependencies.
39710         * modules/strerror_r-posix (Depends-on): Remove strerror.
39711         Reported by Eric Blake.
39713 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
39715         intprops: remove assumption about A|B representation
39716         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
39717         is a valid integer if both A and B are.  Although this is true for
39718         all known practical hosts, the C standard doesn't guarantee it,
39719         and the code need not assume it.  Also, this change may work around
39720         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
39721         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
39723 2011-05-20  Eric Blake  <eblake@redhat.com>
39725         perror: work around FreeBSD bug
39726         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
39727         is broken.  Move AC_LIBOBJ...
39728         * modules/perror (configure.ac): Here.
39729         * doc/posix-functions/perror.texi (perror): Document this.
39730         * tests/test-perror2.c (main): Enhance test.
39732         test-perror: check for strerror interactions
39733         * tests/macros.h (STREQ): Add macro.
39734         * modules/perror-tests (Files): Add second test.
39735         * tests/test-perror2.c (main): New file.
39736         * doc/posix-functions/perror.texi (perror): Document glibc bug.
39738         test-perror: rewrite to use init script
39739         * modules/perror-tests (Files): Add init.sh.
39740         * tests/test-perror.sh: Use temporary directory.
39742 2011-05-20  Jim Meyering  <meyering@redhat.com>
39744         maint: replace misused "a" with "an"
39745         * doc/intprops.texi: "a integer"
39746         * doc/regex.texi: "a explanation"
39747         * lib/alignof.h: "a object"
39748         * lib/argmatch.h: "a explanation"
39749         * lib/argp-help.c: "a option" and "a OPTION_DOC"
39750         * lib/stdint.in.h: "a integer"
39751         * lib/userspec.c: "a owner"
39752         * doc/gnulib.texi: Fix "a idea", and reword.
39754 2011-05-19  Jim Meyering  <meyering@redhat.com>
39756         maint: correct misuse of "a" and "an"
39757         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
39758         * lib/argp-help.c: "an docum...": s/an/a/
39759         * lib/argp-parse.c: "An vector": s/An/A/
39760         * lib/execute.c: "an native": s/an/a/
39761         * lib/spawn-pipe.c: Likewise.
39762         * lib/gc.h: "an Gc_rc": s/an/a/
39763         * lib/unigbrk.in.h: "an grapheme": s/an/a/
39764         * lib/fts.c: "an stat.st_dev": s/an/a/
39766 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39768         intprops-tests: work around HP-UX 11.23 cc bug with constants
39769         * tests/test-intprops.c (VERIFY): New macro.
39770         (main): Use it, instead of verify, to work around the compiler bug; see
39771         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39773         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
39774         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
39775         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
39776         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
39777         (_GL_REMAINDER_OVERFLOW): Use it.
39779         intprops-tests: revert unsigned part of previous change
39780         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
39781         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
39782         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
39783         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
39785 2011-05-19  Bruno Haible  <bruno@clisp.org>
39787         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
39788         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
39789         strerror_r() returned without filling the buffer.
39790         Reported by Eric Blake.
39792 2011-05-19  Eric Blake  <eblake@redhat.com>
39794         strerror_r: guarantee unchanged errno
39795         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
39796         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
39797         failure.
39798         * tests/test-strerror_r.c (main): Enhance test.
39800 2011-05-19  Bruno Haible  <bruno@clisp.org>
39802         strerror_r: Reorder #if blocks.
39803         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
39804         for consistency with the previous commit.
39806 2011-05-19  Bruno Haible  <bruno@clisp.org>
39808         perror: Avoid clobbering the strerror buffer when possible.
39809         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
39810         * lib/strerror.c: Include it.
39811         * modules/strerror (Files): Add lib/strerror-impl.h.
39812         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
39813         (my_strerror): New function, defined through lib/strerror-impl.h.
39814         (perror): Use it instead of strerror.
39815         * modules/perror (Files): Add lib/strerror-impl.h.
39816         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
39818 2011-05-19  Eric Blake  <eblake@redhat.com>
39820         strerror_r: fix on newer cygwin
39821         * lib/strerror_r.c (strerror_r): Cygwin now has
39822         __xpg_strerror_r, use it.
39824 2011-05-19  Bruno Haible  <bruno@clisp.org>
39826         strerror_r: Avoid clobbering the strerror buffer when possible.
39827         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
39828         (sys_nerr, sys_errlist): New declarations.
39829         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
39830         HP-UX, native Win32, IRIX, and 32-bit Solaris.
39831         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
39833 2011-05-19  Bruno Haible  <bruno@clisp.org>
39835         strerror_r: Fix test failure on mingw.
39836         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
39837         EXTEND_STRERROR_R.
39838         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
39839         macros from errno.in.h instead.
39841 2011-05-19  Eric Blake  <eblake@redhat.com>
39843         strerror: relax test for Solaris
39844         * tests/test-strerror.c (main): Permit Solaris behavior.
39845         * tests/test-strerror_r.c (main): Likewise.
39847         strerror: enforce POSIX ruling on strerror(0)
39848         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
39849         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
39850         * lib/strerror_r.c (rpl_strerror_r): Work around it.
39851         * doc/posix-functions/strerror.texi (strerror): Document it.
39852         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
39853         * tests/test-strerror.c (main): Strengthen test.
39854         * tests/test-strerror_r.c (main): Likewise.
39856 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
39858         intprop-tests: port to older and more-pedantic compilers
39859         * modules/intprops-tests (Files): Add tests/macros.h.
39860         * tests/test-intprops.c: Include macros.h.
39861         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
39862         it's no longer documented to expand to an integer constant expression.
39863         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
39864         argument is floating point, as it's no longer documented to expand
39865         to an integer constant expression in that case.
39866         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
39867         compiler bugs reported by Bruno Haible.  See
39868         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39869         (U0, U1): New constants, to work around the same bugs.  Also,
39870         in tests, use e.g., "(unsigned int) 39" rather than "39u".
39872         intprops: work around C compiler bugs
39873         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
39874         bug in Sun C 5.11 2010/08/13 and other compilers; see
39875         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
39877         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
39878         * doc/intprops.texi (Integer Type Determination): Fix
39879         documentation for TYPE_IS_INTEGER: it returns an constant
39880         expression, not an integer constant expression.  Fix doc for
39881         TYPE_SIGNED: it returns an integer constant expression only if its
39882         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
39883         hardly worth documented that way....)
39885 2011-05-18  Bruno Haible  <bruno@clisp.org>
39887         strerror_r: Avoid clobbering the strerror buffer when possible.
39888         * lib/strerror_r.c (strerror_r): Merge the three implementations.
39889         Handle gnulib defined errno values here. When strerror() returns NULL
39890         or an empty string, return EINVAL.
39891         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
39892         gnulib defined errno values here.
39893         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
39895 2011-05-18  Eric Blake  <eblake@redhat.com>
39897         fnmatch: avoid compiler warning
39898         * lib/fnmatch_loop.c (FCT): Use correct type.
39899         Reported by Matthias Bolte.
39901 2011-05-13  Jim Meyering  <meyering@redhat.com>
39903         maint.mk: three new prohibit_<HDR>_without_use rules
39904         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
39905         (sc_prohibit_stdio-safer_without_use): Likewise.
39906         (sc_prohibit_xfreopen_without_use): Likewise.
39908 2011-05-17  Jim Meyering  <meyering@redhat.com>
39910         announce-gen: fail if the NEWS delta is empty
39911         If there's nothing noteworthy in NEWS, then either you forgot
39912         or you shouldn't be releasing.
39913         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
39915 2011-05-17  Pádraig Brady  <P@draigBrady.com>
39917         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
39918         reserved symbols starting with double underscore from the check.
39920 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39922         intprops: add doc
39923         * doc/intprops.texi: New file, documenting intprops.
39924         * doc/gnulib.texi (Particular Modules): Include it.
39926         verify: add doc to gnulib manual and fix example
39927         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
39928         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
39929         (Compile-time Assertions): Fix example so it can't overflow.
39931 2011-05-17  Jim Meyering  <meyering@redhat.com>
39933         warnings.m4: don't usurp save_CPPFLAGS variable name
39934         * m4/warnings.m4: Prefix local temporary variable name with gl_.
39936         doc: fix typo
39937         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
39939 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39940             Bruno Haible  <bruno@clisp.org>
39942         doc: Tweak recent change.
39943         * README (Portability guidelines): Tweak new text.
39944         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
39945         Interix 6.1.
39947 2011-05-16  Eric Blake  <eblake@redhat.com>
39949         inttypes: avoid autoconf warning
39950         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
39951         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39953 2011-05-16  Sam Steingold  <sds@gnu.org>
39954         and Eric Blake  <eblake@redhat.com>
39956         vc-list-files: accept multiple directory operands
39957         * build-aux/vc-list-files: Iterate over all remaining operands.
39959 2011-05-16  Bruno Haible  <bruno@clisp.org>
39961         Fix confusion regarding deprecated modules.
39962         * modules/calloc (Status, Notice): Mark module as deprecated, not
39963         obsolete.
39964         * modules/fnmatch-posix (Status, Notice): Likewise.
39965         * modules/getdate (Status, Notice): Likewise.
39966         * modules/getopt (Status, Notice): Likewise.
39967         * modules/malloc (Status, Notice): Likewise.
39968         * modules/pipe (Status, Notice): Likewise.
39969         * modules/realloc (Status, Notice): Likewise.
39970         * modules/rename-dest-slash (Status, Notice): Likewise.
39971         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
39972         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
39973         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
39974         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
39975         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
39977 2011-05-16  Bruno Haible  <bruno@clisp.org>
39979         doc: List the target platforms.
39980         * doc/gnulib-intro.texi (Target Platforms): New section.
39981         * doc/gnulib.texi (Introduction): Update menu.
39982         * README (Portability guidelines): Refer to the new section. Update
39983         statement about oldest supported environment. Remove rationale why
39984         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
39985         unportable C89 function.
39986         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
39987         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
39989 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
39991         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
39993 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
39995         intprops-tests: new module
39996         * modules/intprops-tests, tests/test-intprops.c: New files.
39998         intprops: add safe, portable integer overflow checking
39999         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
40000         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
40001         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
40002         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
40003         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
40004         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
40005         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
40006         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
40007         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
40008         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
40009         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
40011 2011-05-12  James Youngman  <jay@gnu.org>
40013         Add a test for glibc's Bugzilla bug #12378.
40014         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
40015         doesn't allow the literal matching of a lone "[" (which is
40016         required by POSIX).
40017         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
40019 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
40021         Sync glibc change fixing Bugzilla bug #12378.
40022         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
40023         beginning and fall back to matching as normal character if the
40024         string ends before the matching ']' is found.  This is what POSIX
40025         requires.
40027 2011-05-13  Eric Blake  <eblake@redhat.com>
40029         getcwd-lgpl: relax test for FreeBSD
40030         * doc/posix-functions/getcwd.texi (getcwd): Document portability
40031         issue.
40032         * tests/test-getcwd-lgpl.c (main): Relax test.
40033         Reported by Matthias Bolte.
40035 2011-05-11  Eric Blake  <eblake@redhat.com>
40037         test-fflush: silence compiler warning
40038         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
40040 2011-05-11  Bruno Haible  <bruno@clisp.org>
40042         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
40043         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
40044         * modules/canonicalize (Depends-on): Add 'nocrash'.
40045         * modules/canonicalize-lgpl (Depends-on): Likewise.
40046         * doc/posix-functions/realpath.texi: Update platforms list.
40047         Reported by Ryan Schmidt <ryandesign@macports.org>.
40049 2011-05-11  Bruno Haible  <bruno@clisp.org>
40051         group-member: Declare function in <unistd.h>.
40052         * lib/unistd.in.h (group_member): New declaration.
40053         * lib/group-member.h: Remove file.
40054         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
40055         * tests/test-unistd-c++.cc: Check signature of group_member.
40056         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
40057         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
40058         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
40059         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
40060         HAVE_GROUP_MEMBER.
40061         * modules/group-member (Files): Remove lib/group-member.h.
40062         (Depends-on): Add unistd. Specify conditions.
40063         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40064         (Include): Change to <unistd.h>.
40065         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
40066         HAVE_GROUP_MEMBER.
40067         * NEWS: Mention the change.
40068         * lib/euidaccess.c: Don't include group-member.h.
40070 2011-05-11  Bruno Haible  <bruno@clisp.org>
40072         group-member: Document module.
40073         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
40074         module.
40076 2011-05-11  Bruno Haible  <bruno@clisp.org>
40078         fclose: Fix mistake earlier today.
40079         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
40081 2011-05-11  Eric Blake  <eblake@redhat.com>
40083         fclose: preserve fflush errors
40084         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
40085         Reported by Jim Meyering.
40087         bootstrap: support a prereq of 'rpcgen -' on RHEL5
40088         * build-aux/bootstrap (check_versions): When no specific version
40089         is required, merely check that the app produces an exit status
40090         that indicates its existence.
40092         maint.mk: drop redundant check
40093         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
40094         the same but better.
40096 2011-05-11  Bruno Haible  <bruno@clisp.org>
40098         fclose: Fix possible link error.
40099         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
40100         unregister_shadow_fd. Improve comments.
40101         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
40102         Eric Blake.
40104 2011-05-11  Jim Meyering  <meyering@redhat.com>
40106         maint.mk: improve "can not" detection and generalize rule name
40107         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
40108         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
40109         Use the same technique as in sc_prohibit_doubled_word, so that
40110         we recognize "can not" also when the words are separated by a newline.
40111         Suggested by Eric Blake.
40112         (perl_filename_lineno_text_): Define.  Factored out of...
40113         (prohibit_doubled_word_): ...here.  Use the new definition.
40114         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
40115         (prohibit_undesirable_word_seq_RE_): New overridable variable.
40116         (ignore_undesirable_word_sequence_RE_): New overridable variable.
40118 2011-05-10  Eric Blake  <eblake@redhat.com>
40120         fclose: avoid double close race when possible
40121         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
40122         all but WINDOWS_SOCKETS.
40124 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
40126         openat: correct new comment
40127         * lib/openat-proc.c (openat_proc_name): Correct the comment.
40129 2011-05-10  Jim Meyering  <meyering@redhat.com>
40131         openat: add comments
40132         * lib/openat-proc.c (openat_proc_name): Add comments,
40133         mostly from Eric Blake.
40135 2011-05-09  Eric Blake  <eblake@redhat.com>
40137         openat: reduce syscalls in first probe of /proc
40138         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
40139         be a directory.  Simplify the probe for .. bugs.
40140         * modules/openat (Depends-on): Drop same-inode.
40141         Reported by Bastien ROUCARIES.
40143 2011-05-09  Jim Meyering  <meyering@redhat.com>
40145         maint.mk: change semantics/name of tight_scope variables
40146         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
40147         Rename variables to align with semantics that make them more useful.
40149         maint.mk: tweak new rule's name not to impinge
40150         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
40151         (sc_tight_scope): Use new rule name rather than $@-0.
40153         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
40154         * top/maint.mk (sc_tight_scope): New rule.
40155         (sc_tight_scope-0): New rule, ifdef'd out.
40156         (_gl_TS_dir): Default.
40157         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
40158         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
40160 2011-05-09  Simon Josefsson  <simon@josefsson.org>
40162         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
40163         Haible <bruno@clisp.org>.
40165 2011-05-08  Bruno Haible  <bruno@clisp.org>
40167         Comments.
40168         * m4/isnanf.m4: Add comment.
40169         * m4/isnanl.m4: Likewise.
40171 2011-05-08  Bruno Haible  <bruno@clisp.org>
40173         glob: Remove obsolete macro.
40174         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
40176 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
40178         intprops: Sun C 5.11 supports __typeof__
40179         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
40180         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
40181         which is new.
40182         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
40184         intprops: switch to usual gnulib indenting and naming
40185         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
40186         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
40188         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
40190 2011-05-08  Jim Meyering  <meyering@redhat.com>
40192         maint.mk: suppress "Entering/Leaving directory" diag in announcement
40193         * top/maint.mk (release-prep): Use make's --no-print-directory
40194         option when generating the announcement.  This eliminates the
40195         pesky "make[2]: Entering/Leaving directory" diagnostics in the
40196         generated announcement template.
40198 2011-05-08  Bruno Haible  <bruno@clisp.org>
40200         tzset: Fix gettimeofday wrapper on Solaris 2.6.
40201         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
40202         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
40204 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
40206         ignore-value, verify: Omit include files from lib_SOURCES.
40207         * modules/ignore-value, modules/verify (Makefile.am):
40208         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
40209         that leads Automake to duplicate use of am__objects_... variables
40210         in Makefile.in.  See
40211         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
40213 2011-05-07  Bruno Haible  <bruno@clisp.org>
40215         fclose: Simplify autoconf macro.
40216         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
40217         defined.
40219 2011-05-07  Bruno Haible  <bruno@clisp.org>
40221         canonicalize-lgpl: Fix autoconf macro ordering bug.
40222         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
40223         gl_STDLIB_H_DEFAULTS.
40225 2011-05-06  Eric Blake  <eblake@redhat.com>
40227         maintainer-makefile: make sc_po_check easier to tune
40228         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
40229         to probe for strings, such as an alternate location for gnulib.
40231         fclose: guarantee behavior on seekable stdin
40232         * modules/fclose (Depends-on): Add fflush.
40233         * doc/posix-functions/fclose.texi (fclose): Document this.
40234         * tests/test-fclose.c (main): Make test for this unconditional.
40236 2011-05-06  Bruno Haible  <bruno@clisp.org>
40238         fflush, fpurge: Relicense under LGPLv2+.
40239         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
40240         * modules/fpurge (License): Likewise.
40241         With permission from Eric Blake and Jim Meyering.
40242         Suggested by Eric Blake.
40244 2011-05-06  Karl Berry  <karl@gnu.org>
40246         * MODULES.html.sh (func_all_modules): remove exit.
40248 2011-05-06  Jim Meyering  <meyering@redhat.com>
40250         maint.mk: use info-gnu@ as the default only for a stable release
40251         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
40252         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
40253         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
40254         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
40256 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
40258         assert-h: new module, which supports C1X-style static_assert
40259         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
40260         * lib/verify.h: Revamp so that this can be copied into assert.h,
40261         while retaining the ability to use it standalone as before.
40262         Rename private identifiers so as not to encroach on the
40263         standard C namespace, since this is now used by assert.h.
40264         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
40265         the old verify_true.
40266         (_GL_VERIFY_TRUE): New macro, with much of the contents of
40267         the old verify_true.  Use _GL_VERIFY_TYPE.
40268         (_GL_VERIFY): New macro, with much of the contents of the old verify.
40269         (static_assert): New macro, if _GL_STATIC_ASSERT_H
40270         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
40271         defined when this file is copied into the replacement assert.h.
40272         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
40273         and _Static_assert is not built in.
40274         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
40275         defined, and use the new macros mentioned above.
40276         * doc/posix-headers/assert.texi: Document this.
40278 2011-05-05  Bruno Haible  <bruno@clisp.org>
40280         fclose, fflush: Respect rules for use of AC_LIBOBJ.
40281         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
40282         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
40283         gl_REPLACE_FCLOSE here.
40284         * modules/fflush (Depends-on): Remove fclose.
40285         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
40286         combination with module 'fclose'.
40288 2011-05-05  Bruno Haible  <bruno@clisp.org>
40290         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
40291         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
40292         gl_FUNC_FFLUSH.
40293         (gl_FUNC_FFLUSH): Use it.
40294         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
40295         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
40296         gl_REPLACE_FSEEKO here.
40298 2011-05-05  Bruno Haible  <bruno@clisp.org>
40300         tzset: Relicense under LGPL.
40301         * modules/tzset (License): Change to LGPL.
40302         No agreement needed; it's a no-op.
40304         strtoimax, strtoumax: Relicense under LGPL.
40305         * modules/strtoimax (License): Change to LGPL.
40306         * modules/strtoumax (License): Likewise.
40307         With permission from Jim Meyering, Paul Eggert:
40308         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
40309         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
40311         getgroups: Relicense under LGPL.
40312         * modules/getgroups (License): Change to LGPL.
40313         With permission from Jim Meyering, Paul Eggert, Eric Blake:
40314         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40315         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40316         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40318         nanosleep: Relicense under LGPL.
40319         * modules/nanosleep (License): Change to LGPL.
40320         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
40321         Haible:
40322         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
40323         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
40324         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40325         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40327         futimens: Relicense under LGPL.
40328         * modules/futimens (License): Change to LGPL.
40329         With permission from Eric Blake:
40330         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40332         fflush: Relicense under LGPL.
40333         * modules/fflush (License): Change to LGPL.
40334         With permission from Eric Blake, Bruno Haible, Jim Meyering:
40335         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
40336         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
40337         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
40339         tmpfile: Relicense under LGPL.
40340         * modules/tmpfile (License): Change to LGPL.
40341         With permission from Ben Pfaff:
40342         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40344         isfinite: Relicense under LGPL.
40345         * modules/isfinite (License): Change to LGPL.
40346         With permission from Ben Pfaff, Bruno Haible:
40347         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
40348         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
40350         acosl..tanl: Relicense under LGPL.
40351         * modules/acosl (License): Change to LGPL.
40352         * modules/asinl (License): Likewise.
40353         * modules/atanl (License): Likewise.
40354         * modules/cosl (License): Likewise.
40355         * modules/expl (License): Likewise.
40356         * modules/logl (License): Likewise.
40357         * modules/sinl (License): Likewise.
40358         * modules/sqrtl (License): Likewise.
40359         * modules/tanl (License): Likewise.
40360         Source code originally from glibc and Paolo Bonzini. Agreements:
40361         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
40362         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
40364 2011-05-05  Bruno Haible  <bruno@clisp.org>
40366         signal: Define sighandler_t.
40367         * lib/signal.in.h (sighandler_t): New type.
40368         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
40369         whether sighandler_t is defined.
40370         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
40371         * modules/signal (Depends-on): Add extensions.
40372         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
40373         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
40374         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
40376 2011-05-05  Eric Blake  <eblake@redhat.com>
40378         maint: remove useless REPLACE_*_H macros
40379         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
40380         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
40381         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
40382         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
40383         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
40384         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
40385         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
40386         * m4/btowc.m4: Update callers.
40387         * m4/dirfd.m4: Likewise.
40388         * m4/duplocale.m4: Likewise.
40389         * m4/fchdir.m4: Likewise.
40390         * m4/fdopendir.m4: Likewise.
40391         * m4/inet_ntop.m4: Likewise.
40392         * m4/inet_pton.m4: Likewise.
40393         * m4/ioctl.m4: Likewise.
40394         * m4/mbrlen.m4: Likewise.
40395         * m4/mbrtowc.m4: Likewise.
40396         * m4/mbsinit.m4: Likewise.
40397         * m4/mbsnrtowcs.m4: Likewise.
40398         * m4/mbsrtowcs.m4: Likewise.
40399         * m4/poll.m4: Likewise.
40400         * m4/setlocale.m4: Likewise.
40401         * m4/wcrtomb.m4: Likewise.
40402         * m4/wcsnrtombs.m4: Likewise.
40403         * m4/wcsrtombs.m4: Likewise.
40404         * m4/wctob.m4: Likewise.
40405         * m4/wcwidth.m4: Likewise.
40406         * modules/posix_spawn: Likewise.
40407         * modules/posix_spawn_file_actions_addclose: Likewise.
40408         * modules/posix_spawn_file_actions_adddup2: Likewise.
40409         * modules/posix_spawn_file_actions_addopen: Likewise.
40410         * modules/posix_spawn_file_actions_destroy: Likewise.
40411         * modules/posix_spawn_file_actions_init: Likewise.
40412         * modules/posix_spawnattr_destroy: Likewise.
40413         * modules/posix_spawnattr_getflags: Likewise.
40414         * modules/posix_spawnattr_getpgroup: Likewise.
40415         * modules/posix_spawnattr_getschedparam: Likewise.
40416         * modules/posix_spawnattr_getschedpolicy: Likewise.
40417         * modules/posix_spawnattr_getsigdefault: Likewise.
40418         * modules/posix_spawnattr_getsigmask: Likewise.
40419         * modules/posix_spawnattr_init: Likewise.
40420         * modules/posix_spawnattr_setflags: Likewise.
40421         * modules/posix_spawnattr_setpgroup: Likewise.
40422         * modules/posix_spawnattr_setschedparam: Likewise.
40423         * modules/posix_spawnattr_setschedpolicy: Likewise.
40424         * modules/posix_spawnattr_setsigdefault: Likewise.
40425         * modules/posix_spawnattr_setsigmask: Likewise.
40426         * modules/posix_spawnp: Likewise.
40428 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
40430         Add option to do-release-commit-and-tag to specify branch.
40431         * build-aux/do-release-commit-and-tag: Add --branch.
40433 2011-05-03  Bruno Haible  <bruno@clisp.org>
40435         Avoid unnecessary compilation units, through conditional dependencies.
40436         * modules/accept (Depends-on): Add conditions to the dependencies.
40437         * modules/acosl (Depends-on): Likewise.
40438         * modules/argz (Depends-on): Likewise.
40439         * modules/asinl (Depends-on): Likewise.
40440         * modules/atanl (Depends-on): Likewise.
40441         * modules/atoll (Depends-on): Likewise.
40442         * modules/bind (Depends-on): Likewise.
40443         * modules/btowc (Depends-on): Likewise.
40444         * modules/canonicalize-lgpl (Depends-on): Likewise.
40445         * modules/ceil (Depends-on): Likewise.
40446         * modules/ceilf (Depends-on): Likewise.
40447         * modules/ceill (Depends-on): Likewise.
40448         * modules/chdir-long (Depends-on): Likewise.
40449         * modules/chown (Depends-on): Likewise.
40450         * modules/close (Depends-on): Likewise.
40451         * modules/connect (Depends-on): Likewise.
40452         * modules/cosl (Depends-on): Likewise.
40453         * modules/dirfd (Depends-on): Likewise.
40454         * modules/dprintf (Depends-on): Likewise.
40455         * modules/dprintf-posix (Depends-on): Likewise.
40456         * modules/error (Depends-on): Likewise.
40457         * modules/euidaccess (Depends-on): Likewise.
40458         * modules/expl (Depends-on): Likewise.
40459         * modules/faccessat (Depends-on): Likewise.
40460         * modules/fchdir (Depends-on): Likewise.
40461         * modules/fclose (Depends-on): Likewise.
40462         * modules/fcntl (Depends-on): Likewise.
40463         * modules/fdopendir (Depends-on): Likewise.
40464         * modules/fflush (Depends-on): Likewise.
40465         * modules/floor (Depends-on): Likewise.
40466         * modules/floorf (Depends-on): Likewise.
40467         * modules/floorl (Depends-on): Likewise.
40468         * modules/fnmatch (Depends-on): Likewise.
40469         * modules/fopen (Depends-on): Likewise.
40470         * modules/fprintf-posix (Depends-on): Likewise.
40471         * modules/frexp (Depends-on): Likewise.
40472         * modules/frexp-nolibm (Depends-on): Likewise.
40473         * modules/frexpl (Depends-on): Likewise.
40474         * modules/frexpl-nolibm (Depends-on): Likewise.
40475         * modules/fseek (Depends-on): Likewise.
40476         * modules/fsusage (Depends-on): Likewise.
40477         * modules/ftell (Depends-on): Likewise.
40478         * modules/ftello (Depends-on): Likewise.
40479         * modules/futimens (Depends-on): Likewise.
40480         * modules/getcwd (Depends-on): Likewise.
40481         * modules/getcwd-lgpl (Depends-on): Likewise.
40482         * modules/getdelim (Depends-on): Likewise.
40483         * modules/getdomainname (Depends-on): Likewise.
40484         * modules/getgroups (Depends-on): Likewise.
40485         * modules/gethostname (Depends-on): Likewise.
40486         * modules/getline (Depends-on): Likewise.
40487         * modules/getlogin_r (Depends-on): Likewise.
40488         * modules/getopt-posix (Depends-on): Likewise.
40489         * modules/getpeername (Depends-on): Likewise.
40490         * modules/getsockname (Depends-on): Likewise.
40491         * modules/getsockopt (Depends-on): Likewise.
40492         * modules/getsubopt (Depends-on): Likewise.
40493         * modules/getusershell (Depends-on): Likewise.
40494         * modules/glob (Depends-on): Likewise.
40495         * modules/grantpt (Depends-on): Likewise.
40496         * modules/iconv_open (Depends-on): Likewise.
40497         * modules/iconv_open-utf (Depends-on): Likewise.
40498         * modules/inet_ntop (Depends-on): Likewise.
40499         * modules/inet_pton (Depends-on): Likewise.
40500         * modules/ioctl (Depends-on): Likewise.
40501         * modules/isapipe (Depends-on): Likewise.
40502         * modules/isfinite (Depends-on): Likewise.
40503         * modules/isinf (Depends-on): Likewise.
40504         * modules/lchown (Depends-on): Likewise.
40505         * modules/ldexpl (Depends-on): Likewise.
40506         * modules/link (Depends-on): Likewise.
40507         * modules/linkat (Depends-on): Likewise.
40508         * modules/listen (Depends-on): Likewise.
40509         * modules/logl (Depends-on): Likewise.
40510         * modules/lstat (Depends-on): Likewise.
40511         * modules/mbrlen (Depends-on): Likewise.
40512         * modules/mbrtowc (Depends-on): Likewise.
40513         * modules/mbsinit (Depends-on): Likewise.
40514         * modules/mbsnrtowcs (Depends-on): Likewise.
40515         * modules/mbsrtowcs (Depends-on): Likewise.
40516         * modules/mbtowc (Depends-on): Likewise.
40517         * modules/memcmp (Depends-on): Likewise.
40518         * modules/mkdir (Depends-on): Likewise.
40519         * modules/mkdtemp (Depends-on): Likewise.
40520         * modules/mkfifo (Depends-on): Likewise.
40521         * modules/mkfifoat (Depends-on): Likewise.
40522         * modules/mknod (Depends-on): Likewise.
40523         * modules/mkostemp (Depends-on): Likewise.
40524         * modules/mkostemps (Depends-on): Likewise.
40525         * modules/mkstemp (Depends-on): Likewise.
40526         * modules/mkstemps (Depends-on): Likewise.
40527         * modules/mktime (Depends-on): Likewise.
40528         * modules/nanosleep (Depends-on): Likewise.
40529         * modules/open (Depends-on): Likewise.
40530         * modules/openat (Depends-on): Likewise.
40531         * modules/perror (Depends-on): Likewise.
40532         * modules/poll (Depends-on): Likewise.
40533         * modules/popen (Depends-on): Likewise.
40534         * modules/posix_spawn (Depends-on): Likewise.
40535         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
40536         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
40537         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
40538         * modules/posix_spawnp (Depends-on): Likewise.
40539         * modules/pread (Depends-on): Likewise.
40540         * modules/printf-posix (Depends-on): Likewise.
40541         * modules/ptsname (Depends-on): Likewise.
40542         * modules/putenv (Depends-on): Likewise.
40543         * modules/pwrite (Depends-on): Likewise.
40544         * modules/readline (Depends-on): Likewise.
40545         * modules/readlink (Depends-on): Likewise.
40546         * modules/readlinkat (Depends-on): Likewise.
40547         * modules/recv (Depends-on): Likewise.
40548         * modules/recvfrom (Depends-on): Likewise.
40549         * modules/regex (Depends-on): Likewise.
40550         * modules/remove (Depends-on): Likewise.
40551         * modules/rename (Depends-on): Likewise.
40552         * modules/renameat (Depends-on): Likewise.
40553         * modules/rmdir (Depends-on): Likewise.
40554         * modules/round (Depends-on): Likewise.
40555         * modules/roundf (Depends-on): Likewise.
40556         * modules/roundl (Depends-on): Likewise.
40557         * modules/rpmatch (Depends-on): Likewise.
40558         * modules/select (Depends-on): Likewise.
40559         * modules/send (Depends-on): Likewise.
40560         * modules/sendto (Depends-on): Likewise.
40561         * modules/setenv (Depends-on): Likewise.
40562         * modules/setlocale (Depends-on): Likewise.
40563         * modules/setsockopt (Depends-on): Likewise.
40564         * modules/shutdown (Depends-on): Likewise.
40565         * modules/sigaction (Depends-on): Likewise.
40566         * modules/signbit (Depends-on): Likewise.
40567         * modules/sigprocmask (Depends-on): Likewise.
40568         * modules/sinl (Depends-on): Likewise.
40569         * modules/sleep (Depends-on): Likewise.
40570         * modules/snprintf (Depends-on): Likewise.
40571         * modules/snprintf-posix (Depends-on): Likewise.
40572         * modules/socket (Depends-on): Likewise.
40573         * modules/sprintf-posix (Depends-on): Likewise.
40574         * modules/sqrtl (Depends-on): Likewise.
40575         * modules/stat (Depends-on): Likewise.
40576         * modules/strchrnul (Depends-on): Likewise.
40577         * modules/strdup-posix (Depends-on): Likewise.
40578         * modules/strerror (Depends-on): Likewise.
40579         * modules/strerror_r-posix (Depends-on): Likewise.
40580         * modules/strndup (Depends-on): Likewise.
40581         * modules/strnlen (Depends-on): Likewise.
40582         * modules/strptime (Depends-on): Likewise.
40583         * modules/strsep (Depends-on): Likewise.
40584         * modules/strsignal (Depends-on): Likewise.
40585         * modules/strstr-simple (Depends-on): Likewise.
40586         * modules/strtod (Depends-on): Likewise.
40587         * modules/strtoimax (Depends-on): Likewise.
40588         * modules/strtok_r (Depends-on): Likewise.
40589         * modules/strtoumax (Depends-on): Likewise.
40590         * modules/symlink (Depends-on): Likewise.
40591         * modules/symlinkat (Depends-on): Likewise.
40592         * modules/tanl (Depends-on): Likewise.
40593         * modules/tcgetsid (Depends-on): Likewise.
40594         * modules/tmpfile (Depends-on): Likewise.
40595         * modules/trunc (Depends-on): Likewise.
40596         * modules/truncf (Depends-on): Likewise.
40597         * modules/truncl (Depends-on): Likewise.
40598         * modules/uname (Depends-on): Likewise.
40599         * modules/unlink (Depends-on): Likewise.
40600         * modules/unlockpt (Depends-on): Likewise.
40601         * modules/unsetenv (Depends-on): Likewise.
40602         * modules/usleep (Depends-on): Likewise.
40603         * modules/utimensat (Depends-on): Likewise.
40604         * modules/vasprintf (Depends-on): Likewise.
40605         * modules/vdprintf (Depends-on): Likewise.
40606         * modules/vdprintf-posix (Depends-on): Likewise.
40607         * modules/vfprintf-posix (Depends-on): Likewise.
40608         * modules/vprintf-posix (Depends-on): Likewise.
40609         * modules/vsnprintf (Depends-on): Likewise.
40610         * modules/vsnprintf-posix (Depends-on): Likewise.
40611         * modules/vsprintf-posix (Depends-on): Likewise.
40612         * modules/wcrtomb (Depends-on): Likewise.
40613         * modules/wcscasecmp (Depends-on): Likewise.
40614         * modules/wcscspn (Depends-on): Likewise.
40615         * modules/wcsdup (Depends-on): Likewise.
40616         * modules/wcsncasecmp (Depends-on): Likewise.
40617         * modules/wcsnrtombs (Depends-on): Likewise.
40618         * modules/wcspbrk (Depends-on): Likewise.
40619         * modules/wcsrtombs (Depends-on): Likewise.
40620         * modules/wcsspn (Depends-on): Likewise.
40621         * modules/wcsstr (Depends-on): Likewise.
40622         * modules/wcstok (Depends-on): Likewise.
40623         * modules/wcswidth (Depends-on): Likewise.
40624         * modules/wctob (Depends-on): Likewise.
40625         * modules/wctomb (Depends-on): Likewise.
40626         * modules/wctype (Depends-on): Likewise.
40627         * modules/wcwidth (Depends-on): Likewise.
40628         * modules/write (Depends-on): Likewise.
40630 2011-05-03  Bruno Haible  <bruno@clisp.org>
40632         Support for conditional dependencies.
40633         * doc/gnulib.texi (Module description): Document the syntax of
40634         conditional dependencies.
40635         * gnulib-tool: New option --conditional-dependencies.
40636         (func_usage): Document it.
40637         (cond_dependencies): New variable.
40638         (func_get_automake_snippet_conditional,
40639         func_get_automake_snippet_unconditional): New functions, extracted from
40640         func_get_automake_snippet.
40641         (func_get_automake_snippet): Use them.
40642         (sed_first_32_chars): New variable.
40643         (func_module_shellfunc_name): New function.
40644         (func_module_shellvar_name): New function.
40645         (func_module_conditional_name): New function.
40646         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
40647         func_cond_module_condition): New functions.
40648         (func_modules_transitive_closure): Add support for conditional
40649         dependencies.
40650         (func_emit_lib_Makefile_am): For a conditional module, enclose the
40651         conditional automake snippet in an automake conditional.
40652         (func_emit_autoconf_snippets): Emit shell functions that contain the
40653         code for conditional modules.
40654         (func_import, func_create_testdir): Update specification.
40656 2011-05-03  Eric Blake  <eblake@redhat.com>
40658         test-getaddrinfo: report error information
40659         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
40661 2011-05-03  Jim Meyering  <meyering@redhat.com>
40663         bootstrap: avoid build failure when $GZIP is set
40664         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
40665         program name.  If defined at all, it is supposed to list gzip options.
40666         Reported by Alan Curry in http://debbugs.gnu.org/8609
40668 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
40670         readme-release: new module with release instructions
40671         * modules/readme-release: New module.
40672         * top/README-release: New file, from coreutils, grep, diffutils.
40673         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40675 2011-05-02  Eric Blake  <eblake@redhat.com>
40677         fflush: also replace fclose when fixing fflush
40678         * modules/fflush (Depends-on): Add fclose.
40679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
40680         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
40681         memstreams with no backing fd.
40682         * doc/posix-functions/fclose.texi (fclose): Document the use of
40683         fflush module to fix the bug.
40684         * tests/test-fclose.c (main): Relax test when fclose is used in
40685         isolation.
40687         fclose: add some tests
40688         * modules/fclose-tests: New test module.
40689         * tests/test-fclose.c: New file.
40690         * doc/posix-functions/fclose.texi (fclose): Document the bug.
40692         fclose: reduced dependencies
40693         * modules/fclose (Depends-on): Switch from fflush/fseeko to
40694         simpler lseek.
40695         * lib/fclose.c (rpl_fclose): Likewise.
40696         Reported by Simon Josefsson.
40698         exit: drop remaining clients
40699         * modules/argmatch (Depends-on): Replace exit with stdlib.
40700         * modules/copy-file (Depends-on): Likewise.
40701         * modules/execute (Depends-on): Likewise.
40702         * modules/exitfail (Depends-on): Likewise.
40703         * modules/obstack (Depends-on): Likewise.
40704         * modules/pagealign_alloc (Depends-on): Likewise.
40705         * modules/pipe-filter-gi (Depends-on): Likewise.
40706         * modules/pipe-filter-ii (Depends-on): Likewise.
40707         * modules/savewd (Depends-on): Likewise.
40708         * modules/spawn-pipe (Depends-on): Likewise.
40709         * modules/wait-process (Depends-on): Likewise.
40710         * modules/xsetenv (Depends-on): Likewise.
40711         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
40712         * modules/git-merge-changelog (Depends-on): Likewise.
40713         * modules/long-options (Depends-on): Likewise.
40714         * modules/pt_chown (Depends-on): Likewise.
40715         * modules/sysexits (Depends-on): Likewise.
40717         freading: relax license from LGPLv3+ to LGPLv2+
40718         * modules/freading (License): Relax LGPL version.
40720 2011-05-02  Bruno Haible  <bruno@clisp.org>
40722         fchdir: Remove unused dependencies.
40723         * modules/fchdir (Depends-on): Remove include_next.
40725 2011-05-02  Bruno Haible  <bruno@clisp.org>
40727         gnulib-tool: Refactor.
40728         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
40729         from func_emit_autoconf_snippets.
40730         (func_emit_autoconf_snippets): Use it.
40732 2011-05-02  Simon Josefsson  <simon@josefsson.org>
40734         * NEWS: Document removal of 'exit'.
40735         * modules/exit: Remove file.
40737 2011-05-01  Bruno Haible  <bruno@clisp.org>
40739         Update DEPENDENCIES.
40740         * DEPENDENCIES (gettext): Recommend the newest release.
40741         Reported by Simon Josefsson.
40743 2011-05-01  Bruno Haible  <bruno@clisp.org>
40745         gnulib-tool: Reduce code duplication.
40746         * gnulib-tool (func_emit_autoconf_snippets): New function.
40747         (func_import, func_create_testdir): Use it.
40749 2011-04-30  Eric Blake  <eblake@redhat.com>
40751         fclose: don't fail on non-seekable input stream
40752         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
40753         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
40754         since fflush is allowed to fail in that case.
40756 2011-04-30  Bruno Haible  <bruno@clisp.org>
40758         dup3: cleanup
40759         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
40761 2011-04-30  Bruno Haible  <bruno@clisp.org>
40763         netdb: Make it work in C++ mode.
40764         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
40765         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
40766         module.
40767         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
40768         gl_MODULE_INDICATOR_FOR_TESTS.
40769         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
40770         * modules/netdb-c++-tests: New file.
40771         * tests/test-netdb-c++.cc: New file.
40773 2011-04-30  Bruno Haible  <bruno@clisp.org>
40775         New modules 'vfscanf', 'vscanf'.
40776         * modules/vfscanf: New file.
40777         * modules/vscanf: New file.
40778         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
40779         here.
40780         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
40781         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
40783 2011-04-30  Bruno Haible  <bruno@clisp.org>
40785         passfd: Add comments.
40786         * lib/passfd.c: Add comments about platforms.
40788 2011-04-30  Bruno Haible  <bruno@clisp.org>
40790         sys_uio: Make <sys/uio.h> self-contained.
40791         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
40792         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
40794 2011-04-30  Bruno Haible  <bruno@clisp.org>
40796         sys_socket: Ensure 'struct iovec' definition.
40797         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
40798         <sys/socket.h>.
40799         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
40801 2011-04-30  Bruno Haible  <bruno@clisp.org>
40803         sys_uio: Protect definition of 'struct iovec'.
40804         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
40805         it as a C struct.
40807 2011-04-30  Bruno Haible  <bruno@clisp.org>
40809         manywarnings: fix indentation
40810         * m4/manywarnings.m4: Indent by 2 spaces consistently.
40812 2011-04-30  Pádraig Brady  <P@draigBrady.com>
40814         manywarnings: add -Wno-missing-field-initializers if needed.
40815         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
40816         option if it's needed to allow initialization with { 0, }
40818 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
40820         announce-gen: cosmetic improvement
40821         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
40823 2011-04-29  Jim Meyering  <meyering@redhat.com>
40825         vc-list-files: indent with spaces, not TABs
40826         * build-aux/vc-list-files: Convert leading TABs to spaces,
40827         to match the style of most other files in gnulib.
40829         announce-gen: indent with spaces, not TABs
40830         * build-aux/announce-gen: Convert all TABs to spaces, to match
40831         the style of most other files in gnulib.
40833 2011-04-29  Eric Blake  <eblake@redhat.com>
40835         quotearg: avoid uninitialized variable use
40836         * lib/quotearg.c (quoting_options_from_style): Initialize
40837         remaining fields, and ensure that custom styles are only used via
40838         quoting_options rather than quoting_style.
40840 2011-04-29  Jim Meyering  <meyering@redhat.com>
40842         maint.mk: remove unused VC-tag variable
40843         * top/maint.mk (VC-tag): Remove unused variable.
40845 2011-04-29  Bruno Haible  <bruno@clisp.org>
40847         netdb: fix gai_strerror replacements
40848         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
40849         * modules/netdb: Substitute it.
40851 2011-04-29  Jim Meyering  <meyering@redhat.com>
40853         test-getcwd.c: avoid new set-but-not-used warning
40854         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
40855         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
40856         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
40857         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
40859         test-hash.c: avoid a new shadowing warning
40860         * tests/test-hash.c (main): Don't shadow "dup".
40862 2011-04-28  Eric Blake  <eblake@redhat.com>
40864         getaddrinfo: fix gai_strerror signature
40865         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
40866         and work around mingw with UNICODE defined.
40867         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
40868         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
40869         * modules/netdb (Makefile.am): Substitute it.
40870         * lib/netdb.in.h (gai_strerror): Declare replacement.
40871         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
40872         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
40873         the fix.
40875         getsockopt: avoid compiler warning
40876         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
40877         Reported by Matthias Bolte.
40879         tests: drop unused link dependency
40880         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
40881         * modules/dirent-safer-tests (Makefile.am): Likewise.
40882         * modules/fdopendir-tests (Makefile.am): Likewise.
40883         * modules/mkfifoat-tests (Makefile.am): Likewise.
40884         * modules/openat-safer-tests (Makefile.am): Likewise.
40885         * modules/openat-tests (Makefile.am): Likewise.
40886         * modules/readlinkat-tests (Makefile.am): Likewise.
40887         * modules/symlinkat-tests (Makefile.am): Likewise.
40888         * modules/linkat-tests (Makefile.am): Likewise.
40889         (Depends-on): Switch to filenamecat-lgpl.
40890         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
40891         LIBINTL.
40892         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
40893         * tests/test-linkat.c (main): Don't require xalloc.
40895         hash, mgetgroups: drop xalloc dependency
40896         * lib/hash.c (includes): Adjust includes.
40897         * lib/mgetgroups.c (includes): Likewise.
40898         (xgetgroups): Move...
40899         * lib/xgetgroups.c: ...to new file.
40900         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
40901         * modules/xgetgroups: New file, split from...
40902         * modules/mgetgroups: ...here.
40903         (Depends-on): Add xalloc-oversized.
40904         * modules/hash (Depends-on): Likewise.
40905         * modules/hash-tests (Depends-on): Drop xalloc.
40906         (test_hash_LDADD): Drop unused library.
40907         * tests/test-hash.c (main): Break xalloc dependency.
40908         (includes): Drop unused include.
40910         xalloc-oversized: new module
40911         * modules/xalloc-oversized: New module.
40912         * modules/xalloc (Depends-on): Add it.
40913         * lib/xalloc.h (xalloc_oversized): Move...
40914         * lib/xalloc-oversized.h: ...into new file.
40916         utimecmp: drop dependency on xmalloc
40917         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
40918         due to memory pressure.
40919         * modules/utimecmp (Depends-on): Drop xalloc.
40921 2011-04-27  Eric Blake  <eblake@redhat.com>
40923         getcwd: fix mingw bugs
40924         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
40925         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
40926         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
40928 2011-04-27  Bruno Haible  <bruno@clisp.org>
40930         mkstemps: Ensure declaration on MacOS X 10.5.
40931         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
40932         * doc/glibc-functions/mkstemps.texi: Document header file problem on
40933         MacOS X.
40935 2011-04-27  Bruno Haible  <bruno@clisp.org>
40937         mkstemp: More documentation.
40938         * doc/posix-functions/mkstemp.texi: Document header file problem on
40939         MacOS X.
40941 2011-04-27  Bruno Haible  <bruno@clisp.org>
40943         mkstemp: Tweak configure message when cross-compiling.
40944         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
40945         result as a guess.
40947 2011-04-27  Bruno Haible  <bruno@clisp.org>
40949         clean-temp: Clarify what it does.
40950         * lib/clean-temp.h: Add more comments.
40951         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
40952         module.
40953         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
40954         * doc/glibc-functions/mkstemps.texi: Likewise.
40955         * doc/glibc-functions/mkostemps.texi: Likewise.
40957 2011-04-27  Eric Blake  <eblake@redhat.com>
40959         fchdir: avoid extra chdir and fix test
40960         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
40961         getcwd-lgpl.
40962         * lib/fchdir.c (get_name): Any absolute name will do; it does not
40963         have to be canonical.
40964         (canonicalize_file_name): Drop unused macro.
40965         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
40967         filenamecat-lgpl: fix licence
40968         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
40969         when it was first created.
40971         linkat, renameat: add missing dependency
40972         * modules/linkat (Depends-on): Require getcwd-lgpl.
40973         * modules/renameat (Depends-on): Likewise.
40975         tests: reduce dependencies
40976         * tests/test-linkat.c (main): Use lighter-weight getcwd.
40977         * tests/test-renameat.c (main): Likewise.
40978         * modules/linkat-tests (Depends-on): Relax dependency.
40979         * modules/renameat-tests (Depends-on): Likewise.
40980         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
40981         dependency explicit.
40983         save-cwd: reduce default dependency
40984         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
40985         * lib/save-cwd.c: Update comments.
40986         * NEWS: Document the semantic change.
40988         getcwd: enhance tests
40989         * tests/test-getcwd-lgpl.c: New file, taken from...
40990         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
40991         repeat long path stress tests from m4 probe.
40992         * modules/getcwd-lgpl-tests: New module.
40993         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
40994         * m4/getcwd-abort-bug.m4: Update comment.
40995         * m4/getcwd-path-max.m4: Likewise.
40997         getcwd-lgpl: new module
40998         * modules/getcwd-lgpl: New module.
40999         * lib/getcwd-lgpl.c: New file.
41000         * doc/posix-functions/getcwd.texi (getcwd): Document it.
41001         * MODULES.html.sh (lacking POSIX:2008): Likewise.
41002         * modules/getcwd (configure.ac): Set C witness.
41003         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
41005         getcwd: tweak comments
41006         * m4/getcwd-abort-bug.m4: Fix comments.
41007         * m4/getcwd-path-max.m4: Likewise.
41008         * m4/getcwd.m4: Likewise.
41010 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
41011         and Eric Blake  <eblake@redhat.com>
41013         mkstemp: replace if system version uses wrong permissions
41014         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
41015         read/write mode bits set in file created by mkstemp.
41016         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
41018 2011-04-27  Eric Blake  <eblake@redhat.com>
41020         passfd: avoid compiler warning
41021         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
41022         Reported by Laine Stump.
41024 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
41026         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
41027         required by the NetBSD (and perhaps other 4.4BSD derived) join.
41029 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
41030         and Eric Blake  <eblake@redhat.com>
41032         mkstemp: mention clean-temp module
41033         * lib/mkstemp.c: Add comment.
41034         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
41036 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
41038         inttypes: also provide default values for 32-bit tests
41039         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
41040         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
41042 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
41044         strtoumax: remove dependency on strtoimax
41045         This is like the strtoull change of yesterday.
41046         * modules/strtoumax (Files): Add lib/strtoimax.c.
41047         (Depends-on): Remove strtoimax and add verify.
41049         inttypes-incomplete: new module
41050         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
41051         all but the PRI* and SCN* parts of gl_INTTYPES_H.
41052         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
41053         of gl_INTTYPES_H.
41054         (gl_INTTYPES_H): Rewrite in terms of these new macros.
41055         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
41056         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
41057         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
41058         * modules/strtoumax, modules/xstrtol (Depends-on):
41059         Depend on inttypes-incomplete, not inttypes.
41060         * modules/inttypes-incomplete: New module, containing the contents
41061         of the old modules/inttypes module, except that the Files: section
41062         omits m4/inttypes-pri.m4, and the configure.ac section invokes
41063         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
41064         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
41065         (Depends-on): Depend only on inttypes-incomplete.
41066         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
41068         inttypes: omit now-redundant strtoimax and strtoumax work
41069         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
41070         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
41072         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
41073         This supports apps that need pointers to strtoimax and strtoumax,
41074         and ports to HP-UX 11.00 64.bit, which has macros that expand to
41075         nonexistent functions.  See
41076         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
41077         et seq.
41078         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
41079         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
41080         a macro.
41081         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
41083 2011-04-25  Simon Josefsson  <simon@josefsson.org>
41085         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
41087 2011-04-25  Bruno Haible  <bruno@clisp.org>
41089         strtol, strtoul: Mark modules as obsolete.
41090         * modules/strtol (Status, Notice): New sections.
41091         * modules/strtoul (Status, Notice): New sections.
41093 2011-04-25  Bruno Haible  <bruno@clisp.org>
41095         strtod: Remove check for strtod, unless supporting old platforms.
41096         * modules/strtod-obsolete: New file.
41097         * m4/strtod-obsolete.m4: New file.
41098         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
41099         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
41100         * modules/strtod (Depends-on): Add strtod-obsolete.
41101         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
41103 2011-04-25  Bruno Haible  <bruno@clisp.org>
41105         strcase: Make module obsolete.
41106         * modules/strcase (Status, Notice): New sections.
41108 2011-04-25  Bruno Haible  <bruno@clisp.org>
41110         dup2: Remove check for dup2, unless supporting old obsolete platforms.
41111         * modules/dup2-obsolete: New file.
41112         * m4/dup2-obsolete.m4: New file.
41113         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
41114         gl_FUNC_DUP2_OBSOLETE is not also defined.
41115         * modules/dup2 (Depends-on): Add dup2-obsolete.
41116         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
41118 2011-04-25  Bruno Haible  <bruno@clisp.org>
41120         strnlen: Avoid memchr related link error on old obsolete platforms.
41121         * modules/memchr-obsolete: New file.
41122         * m4/memchr-obsolete.m4: New file.
41123         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
41124         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
41125         * modules/memchr (Depends-on): Add memchr-obsolete.
41126         * modules/strnlen (Depends-on): Likewise.
41127         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
41129 2011-04-25  Jim Meyering  <meyering@redhat.com>
41131         maint.mk: makefile_at_at_check extend and clean up
41132         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
41133         in addition to */Makefile.am.
41134         Exempt legitimate uses of @VAR@ notation, e.g.,
41135         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
41136         Remove obsolete coreutils-specific comment.
41137         Prompted by discussion here:
41138         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
41140 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
41142         strtoul: remove dependency on strtol
41143         This is so that 'configure' need not check for strtol merely because
41144         the application needs strtoul.
41145         * modules/strtoul (Files): Add lib/strtol.c.
41146         (Depends-on): Remove strtol.
41148         strtoull: remove dependency on strtoul
41149         This is like the strtoll change.
41150         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
41151         (Depends-on): Remove strtoul.
41153         strtoll: remove dependency on strtol
41154         This is so that 'configure' need not check for strtol merely because
41155         the application needs strtoll.
41156         * modules/strtoll (Files): Add lib/strtol.c.
41157         (Depends-on): Remove strtol.
41159 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41161         inttypes: Move some configure check to module 'imaxdiv'.
41162         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
41163         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
41164         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
41166 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41168         inttypes: Move some configure check to module 'imaxabs'.
41169         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
41170         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
41171         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
41173 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41175         inttypes: Remove configure tests that are not needed since 2009-12-31.
41176         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
41177         gl_cv_header_working_inttypes_h.
41179 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
41181         * modules/strnlen (Depends-on): Remove memchr.
41182         The strnlen implementation doesn't need the memchr module's fixes; see
41183         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
41185         strtol: remove dependency on wchar
41186         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
41187         * modules/strtol (Depends-on): Remove wchar.
41189 2011-04-21  Eric Blake  <eblake@redhat.com>
41191         passfd: fix test regression on Linux
41192         * modules/passfd-tests (configure.ac): Correct socketpair check.
41194         passfd: speed up configure and drop unused code
41195         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
41196         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
41197         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
41198         Instead of probing at configure for unix_scm_rights_bsd44_way,
41199         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
41200         check to a struct member probe.
41201         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
41202         (sendfd, recvfd): Update preprocessor checks.
41203         * modules/passfd (Files): Reflect rename, and drop unused file.
41204         (Depends-on): Drop unused dependency.
41206         passfd: allow compilation on mingw
41207         * modules/sys_socket (Depends-on): Add sys_uio.
41208         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
41209         iovec and a minimal struct msghdr.
41210         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
41211         * tests/test-sys_socket.c (main): Enhance test.
41212         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
41213         guaranteed to provide what we need.
41214         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
41215         * modules/passfd-tests (Depends-on): Add sys_wait.
41216         * tests/test-passfd.c (main): Skip test on mingw, for now.
41217         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
41218         partial 'struct msghdr' implementation.
41220         sys_uio: new module
41221         * modules/sys_uio: New module.
41222         * modules/sys_uio-tests: Likewise.
41223         * lib/sys_uio.in.h: New file.
41224         * m4/sys_uio_h.m4: Likewise.
41225         * tests/test-sys_uio.c: Likewise.
41226         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
41227         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
41229 2011-04-20  Jim Meyering  <meyering@redhat.com>
41231         useless-if-before-free: avoid false-positive
41232         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
41233         disjunct so that it too requires a terminating ";".  Without that,
41234         this script would identify as useless one statement from gcc that
41235         was not:
41236           if (aligned_ptr)
41237             free (((void **) aligned_ptr) [-1]);
41239 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
41241         doc: update users.txt.
41242         * users.txt: Add barcode.
41244 2011-04-19  Bruno Haible  <bruno@clisp.org>
41246         ioctl: Remove link dependency on native Windows.
41247         * lib/fd-hook.h: Renamed from lib/close-hook.h.
41248         (gl_close_fn, gl_ioctl_fn): New types.
41249         (struct fd_hook): Renamed from struct close_hook. Change type of
41250         private_close_fn field. Add private_ioctl_fn field.
41251         (close_hook_fn): Add parameter for primary close method.
41252         (execute_close_hooks, execute_all_close_hooks): Likewise.
41253         (ioctl_hook_fn): New type.
41254         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
41255         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41256         argument.
41257         (unregister_fd_hook): Renamed from unregister_close_hook.
41258         * lib/fd-hook.c: Renamed from lib/close-hook.c.
41259         Don't include <unistd.h>.
41260         (close): Remove undef.
41261         (anchor): Update.
41262         (execute_close_hooks): Add argument for primary close method.
41263         (execute_all_close_hooks): Likewise.
41264         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
41265         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
41266         argument. Allow each argument to be NULL.
41267         (unregister_fd_hook): Renamed from unregister_close_hook.
41268         * lib/close.c (rpl_close): Pass 'close' function pointer to
41269         execute_all_close_hooks.
41270         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
41271         (primary_ioctl): New function.
41272         (ioctl): Don't call ioctlsocket here. Instead, call
41273         execute_all_ioctl_hooks.
41274         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
41275         close method.
41276         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
41277         (fd_sockets_hook): Renamed from close_sockets_hook.
41278         (gl_sockets_startup, gl_sockets_cleanup): Update.
41279         * modules/fd-hook: Renamed from modules/close-hook. Update.
41280         * modules/close (Depends-on): Add fd-hook, remove close-hook.
41281         * modules/sockets (Depends-on): Likewise.
41282         * modules/ioctl (Depends-on): Add fd-hook.
41283         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
41284         GNULIB_SOCKET.
41286 2011-04-19  Bruno Haible  <bruno@clisp.org>
41288         Move the support of O_NONBLOCK in open() to the 'open' module.
41289         * modules/nonblocking (Depends-on): Remove 'open'.
41290         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
41291         gl_cv_have_open_O_NONBLOCK.
41292         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
41293         O_NONBLOCK support.
41294         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
41296 2011-04-17  Bruno Haible  <bruno@clisp.org>
41298         pipe2: Simplify code.
41299         * lib/pipe2.c (pipe2): Reduce code duplication.
41301 2011-04-17  Bruno Haible  <bruno@clisp.org>
41303         nonblocking: Add comment.
41304         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
41306 2011-04-17  Bruno Haible  <bruno@clisp.org>
41308         nonblocking: Add tests for sockets.
41309         * tests/test-nonblocking-socket.sh: New file.
41310         * tests/test-nonblocking-socket-main.c: New file.
41311         * tests/test-nonblocking-socket-child.c: New file.
41312         * tests/test-nonblocking-socket.h: New file.
41313         * tests/socket-server.h: New file.
41314         * tests/socket-client.h: New file.
41315         * modules/nonblocking-socket-tests: New file.
41316         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
41318 2011-04-17  Bruno Haible  <bruno@clisp.org>
41320         nonblocking: Add tests for pipes.
41321         * tests/test-nonblocking-pipe.sh: New file.
41322         * tests/test-nonblocking-pipe-main.c: New file.
41323         * tests/test-nonblocking-pipe-child.c: New file.
41324         * tests/test-nonblocking-pipe.h: New file.
41325         * tests/test-nonblocking-writer.h: New file.
41326         * tests/test-nonblocking-reader.h: New file.
41327         * tests/test-nonblocking-misc.h: New file.
41328         * modules/nonblocking-pipe-tests: New file.
41329         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
41331 2011-04-16  Bruno Haible  <bruno@clisp.org>
41333         gettext: Clarify the needed programmer actions.
41334         * modules/gettext (Notice): New field.
41335         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
41337 2011-04-16  Bruno Haible  <bruno@clisp.org>
41339         strchrnul: Tweak last commit.
41340         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
41341         bug.
41342         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
41343         as in _GL_FUNCDECL_SYS.
41344         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
41345         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
41347 2011-04-15  Eric Blake  <eblake@redhat.com>
41349         strchrnul: work around cygwin bug
41350         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
41351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
41352         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
41353         * modules/string (Makefile.am): Substitute it.
41354         * lib/string.in.h (strchrnul): Use it.
41356 2011-04-15  Bruno Haible  <bruno@clisp.org>
41358         Don't require lib/stdio-write.c when only module 'stdio' is used.
41359         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
41360         invocation.
41361         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
41363 2011-04-14  Bruno Haible  <bruno@clisp.org>
41365         Support non-blocking pipe I/O in read() on native Windows.
41366         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
41367         (read): New declaration.
41368         * lib/read.c: New file.
41369         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
41370         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
41371         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
41372         vscanf): New declarations.
41373         * lib/stdio-read.c: New file.
41374         * m4/read.m4: New file.
41375         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
41376         REPLACE_READ.
41377         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
41378         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41379         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
41380         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
41381         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
41382         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41383         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41384         * modules/read: New file.
41385         * modules/nonblocking (Files): Add lib/stdio-read.c.
41386         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
41387         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
41388         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
41389         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
41390         * modules/pread (Depends-on): Add read.
41391         * modules/safe-read (Depends-on): Likewise.
41392         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
41393         gets, scanf, vfscanf, vscanf): Verify signatures.
41394         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
41395         problem with non-blocking pipes.
41396         * doc/posix-functions/fgetc.texi: Likewise.
41397         * doc/posix-functions/fgets.texi: Likewise.
41398         * doc/posix-functions/fread.texi: Likewise.
41399         * doc/posix-functions/fscanf.texi: Likewise.
41400         * doc/posix-functions/getc.texi: Likewise.
41401         * doc/posix-functions/getchar.texi: Likewise.
41402         * doc/posix-functions/gets.texi: Likewise.
41403         * doc/posix-functions/scanf.texi: Likewise.
41404         * doc/posix-functions/vfscanf.texi: Likewise.
41405         * doc/posix-functions/vscanf.texi: Likewise.
41407 2011-04-14  Bruno Haible  <bruno@clisp.org>
41409         Support non-blocking pipe I/O in write() on native Windows.
41410         * lib/write.c (rpl_write): Split a write request that failed merely
41411         because the byte count was larger than the pipe buffer's size.
41412         * doc/posix-functions/write.texi: Mention the problem with large byte
41413         counts.
41415 2011-04-14  Bruno Haible  <bruno@clisp.org>
41417         wchar: Ensure that wchar_t gets defined on uClibc.
41418         * lib/wchar.in.h: On uClibc, include <stddef.h>.
41419         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
41421 2011-04-13  Bruno Haible  <bruno@clisp.org>
41423         safe-write, full-read: Avoid unnecessary compilation units.
41424         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
41425         (Depends-on): Remove safe-read. Add ssize_t.
41426         * modules/full-read (Files): Add lib/full-write.c.
41427         (Depends-on): Add full-write.
41429 2011-04-13  Bruno Haible  <bruno@clisp.org>
41431         Support non-blocking pipe I/O and SIGPIPE in pwrite().
41432         * modules/pwrite (Depends-on): Add 'write'.
41434 2011-04-13  Bruno Haible  <bruno@clisp.org>
41436         Support non-blocking pipe I/O in write() on native Windows.
41437         * lib/unistd.in.h (write): Enable replacement also if
41438         GNULIB_UNISTD_H_NONBLOCKING is 1.
41439         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
41440         (rpl_write): When failing to write on a non-blocking pipe, change
41441         errno from ENOSPC to EAGAIN.
41442         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
41443         putchar, puts, vfprintf, vprintf): Enable replacement also if
41444         GNULIB_STDIO_H_NONBLOCKING is 1.
41445         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
41446         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
41447         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
41448         CALL_WITH_SIGPIPE_EMULATION.
41449         (CALL_WITH_SIGPIPE_EMULATION): Use them.
41450         * m4/nonblocking.m4: New file.
41451         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
41452         for non-blocking I/O support.
41453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41454         GNULIB_UNISTD_H_NONBLOCKING.
41455         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
41456         required for non-blocking I/O support.
41457         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
41458         * modules/nonblocking (Files): Add m4/nonblocking.m4,
41459         lib/stdio-write.c, m4/asm-underscore.m4.
41460         (Depends-on): Add stdio, unistd.
41461         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
41462         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
41463         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
41464         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
41465         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
41466         problem with non-blocking pipes.
41467         * doc/posix-functions/fputc.texi: Likewise.
41468         * doc/posix-functions/fputs.texi: Likewise.
41469         * doc/posix-functions/fwrite.texi: Likewise.
41470         * doc/posix-functions/printf.texi: Likewise.
41471         * doc/posix-functions/putc.texi: Likewise.
41472         * doc/posix-functions/putchar.texi: Likewise.
41473         * doc/posix-functions/puts.texi: Likewise.
41474         * doc/posix-functions/vfprintf.texi: Likewise.
41475         * doc/posix-functions/vprintf.texi: Likewise.
41476         * doc/posix-functions/write.texi: Likewise.
41478 2011-04-10  Jim Meyering  <meyering@redhat.com>
41480         maint.mk: prohibit doubled words
41481         Detect them also when they're separated by a newline.
41482         There are 3 ways to customize it:
41483           - disable the test on a per file basis, as usual with rules using
41484             $(VC_LIST_EXCEPT)
41485           - replace the default doubled-word-selecting regexp (affects all files)
41486           - ignore a particular file-vs-doubled-word match
41487         I nearly used that last one to ignore the "is is" match in
41488         coreutils' NEWS file, since the text was "ls -is is ..."
41489         To do that, I would have added this line to cfg.mk:
41490           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
41491         but it would have ignored any "is is" match in NEWS.
41492         Low probability, but still...
41493         Instead, I changed the text, slightly:
41494           -  ls -is is now consistent with ls -lis in ignoring values returned
41495           +  "ls -is" is now consistent with ls -lis in ignoring values returned
41496         * top/maint.mk (prohibit_double_word_RE_): Provide default.
41497         (prohibit_doubled_word_): Define.
41498         (sc_prohibit_doubled_word): New rule.
41499         (sc_prohibit_the_the): Remove.  Subsumed by the above.
41501 2011-04-10  Jim Meyering  <meyering@redhat.com>
41503         maint: fix doubled-word typo in comment
41504         * m4/gethostname.m4: s/is is/it is/
41505         * m4/getdomainname.m4: Likewise.
41507 2011-04-10  Jim Meyering  <meyering@redhat.com>
41509         maint: remove doubled word: s/it it/it/
41510         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
41512 2011-04-10  Jim Meyering  <meyering@redhat.com>
41514         maint.mk: remove useless semicolon and backslash
41515         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
41516         semicolon and backslash.
41518 2011-04-10  Bruno Haible  <bruno@clisp.org>
41520         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
41521         * modules/stdint-tests (Depends-on): Add wchar.
41523 2011-04-10  Jim Meyering  <meyering@redhat.com>
41525         maint: remove doubled words in comments, e.g., s/a a/a/
41526         * lib/strptime.c (day_of_the_week): s/the the/the/
41527         * tests/test-chown.h (test_chown): s/a a/a/
41529         test-chown.h: correct a cast
41530         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
41531         when the destination is a stat.st_gid.
41533 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
41535         getaddrinfo: Fix test for sa_len member.
41536         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
41537         include <sys/types.h> before <sys/socket.h>.
41539 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
41541         maint: change "can not" to "cannot"
41542         * doc/posix-functions/iconv.texi (iconv): This one crossed line
41543         boundaries.
41545 2011-04-09  Jim Meyering  <meyering@redhat.com>
41547         maint: change "a a" to "a"
41548         * tests/test-lchown.h (test_lchown): s/a a/a/
41550         maint.mk: prohibit \<the the\>
41551         * top/maint.mk (sc_prohibit_the_the): New rule.
41553         maint: fix "the the" in comment
41554         * lib/count-one-bits.h: s/the the/the/
41556         maint: change "can not" to "cannot"
41557         But do not change the occurrences in maintain.texi or in
41558         build-aux/po/Makefile.in.in, which I presume comes from gettext.
41559         * doc/gnulib-tool.texi: s/can not/cannot/
41560         * doc/posix-functions/accept.texi (accept): Likewise.
41561         * doc/posix-functions/socket.texi (socket): Likewise.
41562         * lib/mbrtowc.c: Likewise.
41564         maint.mk: prohibit use of "can not"
41565         * top/maint.mk (sc_prohibit_can_not): New rule.
41566         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
41568 2011-04-09  Bruno Haible  <bruno@clisp.org>
41570         careadlinkat: Guard against misuse of careadlinkatcwd.
41571         * lib/careadlinkat.c: Include <stdlib.h>.
41572         (careadlinkatcwd): Check that the fd argument is as expected.
41574 2011-04-09  Bruno Haible  <bruno@clisp.org>
41576         careadlinkat: Use common coding style.
41577         * lib/careadlinkat.c: Move gnulib includes after system includes.
41579 2011-04-09  Bruno Haible  <bruno@clisp.org>
41581         careadlinkat: Clarify specification.
41582         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
41583         (careadlinkatcwd): Add comment.
41584         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
41586 2011-04-09  Bruno Haible  <bruno@clisp.org>
41588         areadlinkat: Avoid link error on many platforms.
41589         * modules/areadlinkat (Depends-on): Add areadlink.
41591 2011-04-09  Bruno Haible  <bruno@clisp.org>
41593         allocator, careadlinkat: Fix double-inclusion guard.
41594         * lib/allocator.h: Fix double-inclusion guard.
41595         * lib/careadlinkat.h: Likewise.
41597 2011-04-09  Bruno Haible  <bruno@clisp.org>
41599         relocatable-prog-wrapper: Update after module 'areadlink' changed.
41600         * lib/relocwrapper.c: Update dependencies hierarchy.
41601         * build-aux/install-reloc: Update list of files to be compiled.
41602         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
41603         lib/allocator.[hc].
41605 2011-04-08  Eric Blake  <eblake@redhat.com>
41607         strftime: silence gnulib-tool warning
41608         * modules/strftime-tests (Depends-on): Drop automatic dependency.
41610 2011-04-08  Bruno Haible  <bruno@clisp.org>
41612         verify: Fix syntax error with GCC 4.6 in C++ mode.
41613         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
41614         (HAVE_STATIC_ASSERT): New macro.
41615         (verify_true, verify): Use 'static_assert' if it is supported and
41616         '_Static_assert' is not supported.
41618 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
41620         allocator: New module.
41621         * modules/allocator, lib/allocator.c: New files.
41622         * lib/allocator.h (stdlib_allocator): New decl.
41623         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
41624         Remove.  Do not include <stdlib.h>.
41625         (careadlinkat): Use stdlib_allocator instead of rolling our own.
41626         * modules/careadlinkat (Files): Remove lib/allocator.h.
41627         (Depends-on): Add allocator.
41629         stdlib: let modules use system malloc, realloc
41630         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
41631         if !_GL_USE_STDLIB_ALLOC.
41632         (malloc, realloc): Limit this change to a smaller scope.
41634         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
41635         (malloc, realloc): Don't #undef; no longer needed.
41636         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41637         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41638         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41639         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41640         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41641         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41642         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
41643         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
41645         careadlinkat: rename members to avoid problem
41646         * lib/allocator.h (struct allocator): Rename members from
41647         malloc/realloc to allocate/reallocate, to avoid problems if malloc
41648         and realloc are #define'd.  Reported by Eric Blake in
41649         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
41650         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
41652 2011-04-08  Eric Blake  <eblake@redhat.com>
41654         nonblocking: reduce dependency
41655         * tests/test-nonblocking.c: Only test sockets when in use.
41656         * modules/nonblocking-tests (Depends-on): Drop socket.
41657         (Makefile.am): Link even if sockets are not present.
41658         * modules/pipe2-tests (Makefile.am): Likewise.
41659         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
41661         pipe2: fix O_NONBLOCK support on mingw
41662         * modules/pipe2 (Depends-on): Add nonblocking.
41663         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
41664         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
41665         * tests/test-nonblocking.c (main): Likewise.
41666         * modules/pipe2-tests (Makefile.am): Avoid link failure.
41668         fcntl-h: fix O_ACCMODE on cygwin
41669         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
41670         * lib/fcntl.in.h (O_ACCMODE): Fix it.
41672         pipe-filter: drop O_NONBLOCK workarounds
41673         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
41674         * modules/pipe-filter-ii (Depends-on): Likewise.
41675         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
41677         nonblocking: provide O_NONBLOCK for mingw
41678         * modules/nonblocking (Depends-on): Add open.
41679         (configure.ac): Set new witness macro.
41680         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
41681         * modules/fcntl-h (Makefile.am): Substitute it.
41682         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
41683         nonblocking module is in use.
41684         * lib/nonblocking.c: Adjust portability test.
41685         * lib/open.c (open): Don't let native open see gnulib flag.
41686         * tests/test-fcntl-h.c (main): Enhance test.
41687         * tests/test-open.h (test_open): Likewise.
41688         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
41690         careadlinkat: fix compilation error on mingw
41691         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
41692         within struct allocator.
41694 2011-04-06  Eric Blake  <eblake@redhat.com>
41696         binary-io: relicense under LGPLv2+
41697         * modules/binary-io (License): Relax to LGPLv2+.
41698         Requested for libvirt, and required by pipe2.
41700 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
41702         verify: use _Static_assert if available
41703         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
41704         (verify_true, verify): Use it if available.  This generates better
41705         diagnostics with GCC 4.6.0 and later.
41707 2011-04-05  Bruno Haible  <bruno@clisp.org>
41709         Remove leftover generated .h files after config.status changed.
41711         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
41712         GL_GENERATE_ALLOCA_H.
41713         * modules/alloca-opt (Makefile.am): Remove alloca.h if
41714         GL_GENERATE_ALLOCA_H evaluates to false.
41716         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
41717         GL_GENERATE_ARGZ_H.
41718         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
41719         evaluates to false.
41721         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
41722         GL_GENERATE_BYTESWAP_H.
41723         * modules/byteswap (Makefile.am): Remove byteswap.h if
41724         GL_GENERATE_BYTESWAP_H evaluates to false.
41726         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
41727         GL_GENERATE_ERRNO_H.
41728         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
41729         evaluates to false.
41731         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
41732         GL_GENERATE_FLOAT_H.
41733         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
41734         evaluates to false.
41736         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
41737         GL_GENERATE_FNMATCH_H.
41738         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
41739         GL_GENERATE_FNMATCH_H evaluates to false.
41741         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
41742         GL_GENERATE_GLOB_H.
41743         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
41744         evaluates to false.
41746         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
41747         automake conditional GL_GENERATE_ICONV_H.
41748         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
41749         evaluates to false.
41751         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
41752         GL_GENERATE_NETINET_IN_H.
41753         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
41754         GL_GENERATE_NETINET_IN_H evaluates to false.
41756         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
41757         conditional GL_GENERATE_PTHREAD_H.
41758         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
41759         * modules/pthread (Makefile.am): Remove pthread.h if
41760         GL_GENERATE_PTHREAD_H evaluates to false.
41762         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
41763         GL_GENERATE_SCHED_H.
41764         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
41765         evaluates to false.
41767         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
41768         conditional GL_GENERATE_SELINUX_CONTEXT_H.
41769         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
41770         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
41772         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
41773         GL_GENERATE_STDARG_H.
41774         * modules/stdarg (Makefile.am): Remove stdarg.h if
41775         GL_GENERATE_STDARG_H evaluates to false.
41777         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
41778         GL_GENERATE_STDBOOL_H.
41779         * modules/stdbool (Makefile.am): Remove stdbool.h if
41780         GL_GENERATE_STDBOOL_H evaluates to false.
41782         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
41783         conditional GL_GENERATE_STDDEF_H.
41784         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
41785         * modules/stddef (Makefile.am): Remove stddef.h if
41786         GL_GENERATE_STDDEF_H evaluates to false.
41788         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
41789         GL_GENERATE_STDINT_H.
41790         * modules/stdint (Makefile.am): Remove stdint.h if
41791         GL_GENERATE_STDINT_H evaluates to false.
41793         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
41794         GL_GENERATE_SYSEXITS_H.
41795         * modules/sysexits (Makefile.am): Remove sysexits.h if
41796         GL_GENERATE_SYSEXITS_H evaluates to false.
41798         Reported by Karl Berry and Ralf Wildenhues.
41800 2011-04-05  Bruno Haible  <bruno@clisp.org>
41802         Ensure to rebuild generated .h files when config.status has changed.
41803         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
41804         config.status.
41805         * modules/ctype (Makefile.am): Likewise.
41806         * modules/dirent (Makefile.am): Likewise.
41807         * modules/errno (Makefile.am): Likewise.
41808         * modules/fcntl-h (Makefile.am): Likewise.
41809         * modules/float (Makefile.am): Likewise.
41810         * modules/getopt-posix (Makefile.am): Likewise.
41811         * modules/glob (Makefile.am): Likewise.
41812         * modules/iconv-h (Makefile.am): Likewise.
41813         * modules/inttypes (Makefile.am): Likewise.
41814         * modules/langinfo (Makefile.am): Likewise.
41815         * modules/locale (Makefile.am): Likewise.
41816         * modules/math (Makefile.am): Likewise.
41817         * modules/netdb (Makefile.am): Likewise.
41818         * modules/netinet_in (Makefile.am): Likewise.
41819         * modules/poll-h (Makefile.am): Likewise.
41820         * modules/pthread (Makefile.am): Likewise.
41821         * modules/pty (Makefile.am): Likewise.
41822         * modules/sched (Makefile.am): Likewise.
41823         * modules/search (Makefile.am): Likewise.
41824         * modules/selinux-h (Makefile.am): Likewise.
41825         * modules/signal (Makefile.am): Likewise.
41826         * modules/spawn (Makefile.am): Likewise.
41827         * modules/stdarg (Makefile.am): Likewise.
41828         * modules/stdbool (Makefile.am): Likewise.
41829         * modules/stddef (Makefile.am): Likewise.
41830         * modules/stdint (Makefile.am): Likewise.
41831         * modules/stdio (Makefile.am): Likewise.
41832         * modules/stdlib (Makefile.am): Likewise.
41833         * modules/string (Makefile.am): Likewise.
41834         * modules/strings (Makefile.am): Likewise.
41835         * modules/sys_file (Makefile.am): Likewise.
41836         * modules/sys_ioctl (Makefile.am): Likewise.
41837         * modules/sys_select (Makefile.am): Likewise.
41838         * modules/sys_socket (Makefile.am): Likewise.
41839         * modules/sys_stat (Makefile.am): Likewise.
41840         * modules/sys_time (Makefile.am): Likewise.
41841         * modules/sys_times (Makefile.am): Likewise.
41842         * modules/sys_utsname (Makefile.am): Likewise.
41843         * modules/sys_wait (Makefile.am): Likewise.
41844         * modules/sysexits (Makefile.am): Likewise.
41845         * modules/termios (Makefile.am): Likewise.
41846         * modules/time (Makefile.am): Likewise.
41847         * modules/unistd (Makefile.am): Likewise.
41848         * modules/wchar (Makefile.am): Likewise.
41849         * modules/wctype-h (Makefile.am): Likewise.
41850         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
41852 2011-04-05  Bruno Haible  <bruno@clisp.org>
41854         pipe2: Relicense under LGPLv2+.
41855         * modules/pipe2 (License): Change to LGPLv2+.
41856         Requested by Eric Blake, for libvirt.
41858 2011-04-05  Bruce Korb  <bkorb@gnu.org>
41860         bootstrap: compute gnulib_extra_files after updating build_aux
41861         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
41862         change build_aux or also supply gnulib_extra_files.  Handle correctly.
41864 2011-04-05  Eric Blake  <eblake@redhat.com>
41866         bootstrap: preserve git whitelist item sorting
41867         * build-aux/bootstrap (sort_patterns): New function.
41868         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
41870 2011-04-05  Simon Josefsson  <simon@josefsson.org>
41872         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
41873         sc_space_tab check.
41875 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
41877         areadlink, areadlinkat: rewrite in terms of careadlinkat
41878         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
41879         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
41880         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
41881         (malloc, realloc): Remove #undefs.
41882         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
41883         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
41884         readlink, ssize_t, stdint, unistd.
41885         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
41886         areadlink, stdint.
41888         careadlinkat: new module
41889         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
41890         * modules/careadlinkat: New files, written by me with
41891         a review and feedback from Ben Pfaff in
41892         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
41894 2011-04-01  Bruno Haible  <bruno@clisp.org>
41896         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
41897         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
41898         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
41899         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
41900         Reported by Bruce Korb <bruce.korb@gmail.com>.
41902 2011-04-01  Bruno Haible  <bruno@clisp.org>
41904         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
41905         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
41906         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
41907         * modules/wcpcpy (Depends-on): Add extensions.
41908         * modules/wcpncpy (Depends-on): Likewise.
41909         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
41910         systems.
41911         * doc/posix-functions/wcpncpy.texi: Likewise.
41912         * doc/posix-functions/wcwidth.texi: Likewise.
41914 2011-03-31  Eric Blake  <eblake@redhat.com>
41916         nonblocking: fix mingw test failures
41917         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
41918         non-blocking flag on regular file.
41919         (get_nonblocking_flag): Set errno on invalid fd.
41920         * tests/test-nonblocking.c (main): Avoid test failure on
41921         directories if fchdir is not active.
41922         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
41924 2011-03-31  Bruno Haible  <bruno@clisp.org>
41926         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
41927         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
41928         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
41929         Reported by Simon Josefsson <simon@josefsson.org>.
41931 2011-03-31  Bruno Haible  <bruno@clisp.org>
41932         and Eric Blake  <eblake@redhat.com>
41934         nonblocking: new module
41935         * modules/nonblocking: New module.
41936         * modules/nonblocking-tests: Likewise.
41937         * lib/nonblocking.h: New file.
41938         * lib/nonblocking.c: Likewise.
41939         * tests/test-nonblocking.c: New test.
41940         * lib/ioctl.c (ioctl) [mingw]: Update comment.
41942 2011-03-30  Bruno Haible  <bruno@clisp.org>
41944         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
41945         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
41946         instead of 'printf' format for GCC >= 4.4.
41947         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
41948         (fprintf, printf, vfprintf, vprintf): Declare with
41949         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
41950         the system's vfprintf() function.
41951         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
41953 2011-03-30  Eric Blake  <eblake@redhat.com>
41955         passfd: fix scoping bug
41956         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
41957         before sendmsg/recvmsg.
41959         passfd: standardize coding conventions
41960         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
41961         can be learned at compile time.
41962         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
41963         ifdefs.
41964         (sendfd, recvfd): Follow gnulib code conventions.
41966         passfd: fix incorrect sendmsg arguments
41967         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
41968         incorrect msg_controllen value.
41969         * modules/passfd-tests (Depends-on): Check for alarm.
41970         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
41971         Reported by Bastien ROUCARIES.
41973 2011-03-30  Bruno Haible  <bruno@clisp.org>
41975         c-strcasestr: Relicense under LGPLv2+.
41976         * modules/c-strcasestr (License): Change to LGPLv2+.
41977         Requested by Eric Blake, for libvirt.
41979 2011-03-30  Simon Josefsson  <simon@josefsson.org>
41981         * users.txt: Add libidn2.  Fix libtasn1 link.
41983 2011-03-30  Jim Meyering  <meyering@redhat.com>
41985         tests: readlink* ("",... fails with EINVAL on newer kernels
41986         readlink and readlinkat have typically failed with ENOENT for
41987         the invalid, empty file name,  "".  However, with the advent
41988         of linux-2.6.39, they fail with EINVAL.
41989         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
41990         when operating on the empty file name.
41991         * tests/test-readlink.h (test_readlink): Likewise.
41993 2011-03-29  Bruno Haible  <bruno@clisp.org>
41995         Relicense some modules under LGPLv2+, for libidn2.
41996         * modules/array-mergesort (License): Change to LGPLv2+.
41997         * modules/c-strcaseeq (License): Likewise.
41998         * modules/striconveh (License): Likewise.
41999         * modules/striconveha (License): Likewise.
42000         * modules/uniconv/base (License): Likewise.
42001         * modules/uniconv/u8-conv-from-enc (License): Likewise.
42002         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
42003         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
42004         * modules/unictype/base (License): Likewise.
42005         * modules/unictype/bidiclass-of (License): Likewise.
42006         * modules/unictype/category-M (License): Likewise.
42007         * modules/unictype/category-none (License): Likewise.
42008         * modules/unictype/category-of (License): Likewise.
42009         * modules/unictype/category-test (License): Likewise.
42010         * modules/unictype/category-test-withtable (License): Likewise.
42011         * modules/unictype/combining-class (License): Likewise.
42012         * modules/unictype/joiningtype-of (License): Likewise.
42013         * modules/unictype/scripts (License): Likewise.
42014         * modules/uninorm/base (License): Likewise.
42015         * modules/uninorm/canonical-decomposition (License): Likewise.
42016         * modules/uninorm/composition (License): Likewise.
42017         * modules/uninorm/decompose-internal (License): Likewise.
42018         * modules/uninorm/decomposition-table (License): Likewise.
42019         * modules/uninorm/nfc (License): Likewise.
42020         * modules/uninorm/nfd (License): Likewise.
42021         * modules/uninorm/u32-normalize (License): Likewise.
42022         * modules/unistr/base (License): Likewise.
42023         * modules/unistr/u32-cpy (License): Likewise.
42024         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
42025         * modules/unistr/u32-to-u8 (License): Likewise.
42026         * modules/unistr/u32-uctomb (License): Likewise.
42027         * modules/unistr/u8-check (License): Likewise.
42028         * modules/unistr/u8-mblen (License): Likewise.
42029         * modules/unistr/u8-mbtouc (License): Likewise.
42030         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
42031         * modules/unistr/u8-mbtoucr (License): Likewise.
42032         * modules/unistr/u8-prev (License): Likewise.
42033         * modules/unistr/u8-strlen (License): Likewise.
42034         * modules/unistr/u8-to-u32 (License): Likewise.
42035         * modules/unistr/u8-uctomb (License): Likewise.
42036         * modules/unitypes (License): Likewise.
42037         Requested by Simon Josefsson.
42039 2011-03-29  Simon Josefsson  <simon@josefsson.org>
42041         lib-symbol-visibility: Add a notice.
42042         * modules/lib-symbol-visibility (Notice): New field.
42044 2011-03-29  Bruno Haible  <bruno@clisp.org>
42046         getaddrinfo: Doc fix.
42047         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
42048         section "fixed in Gnulib".
42050 2011-03-28  Simon Josefsson  <simon@josefsson.org>
42052         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
42053         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
42055 2011-03-26  Bruno Haible  <bruno@clisp.org>
42057         unictype/property-byname: Reduce the number of load-time relocations.
42058         * lib/unictype/pr_byname.c: Include <stdlib.h>.
42059         (UC_PROPERTY_INDEX_*): New enumeration values.
42060         (uc_property_byname): Convert an index from the lookup table to an
42061         uc_property_t.
42062         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
42063         values.
42065 2011-03-26  Bruno Haible  <bruno@clisp.org>
42067         unictype/property-byname: Allow omitted word separators and aliases.
42068         * lib/unictype/pr_byname.gperf: Add property names without word
42069         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
42070         for 'space'.
42072 2011-03-26  Bruno Haible  <bruno@clisp.org>
42074         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
42075         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
42076         also hyphens to space.
42077         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
42078         without spaces.
42079         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
42081 2011-03-26  Bruno Haible  <bruno@clisp.org>
42083         unictype/joiningtype-byname: Recognize long names as well.
42084         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
42085         a long name.
42086         * lib/unictype/joiningtype_byname.c: Include <string.h>,
42087         unictype/joiningtype_byname.h.
42088         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
42089         * lib/unictype/joiningtype_byname.gperf: New file.
42090         * modules/unictype/joiningtype-byname (Files): Add
42091         lib/unictype/joiningtype_byname.gperf.
42092         (Depends-on): Add gperf.
42093         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
42094         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
42095         long names.
42097         Tests for module 'unictype/joiningtype-longname'.
42098         * modules/unictype/joiningtype-longname-tests: New file.
42099         * tests/unictype/test-joiningtype_longname.c: New file.
42101         New module 'unictype/joiningtype-longname'.
42102         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
42103         * lib/unictype/joiningtype_longname.c: New file.
42104         * modules/unictype/joiningtype-longname: New file.
42105         * modules/unictype/joiningtype-all (Depends-on): Add
42106         unictype/joiningtype-longname.
42108 2011-03-26  Bruno Haible  <bruno@clisp.org>
42110         unictype/bidiclass-byname: Recognize long names as well.
42111         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
42112         name.
42113         * lib/unictype/bidi_byname.c: Include <string.h>,
42114         unictype/bidi_byname.h.
42115         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
42116         * lib/unictype/bidi_byname.gperf: New file.
42117         * modules/unictype/bidiclass-byname (Files): Add
42118         lib/unictype/bidi_byname.gperf.
42119         (Depends-on): Add gperf.
42120         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
42121         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
42122         long names.
42124         Tests for module 'unictype/bidiclass-longname'.
42125         * modules/unictype/bidiclass-longname-tests: New file.
42126         * tests/unictype/test-bidi_longname.c: New file.
42128         New module 'unictype/bidiclass-longname'.
42129         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
42130         * lib/unictype/bidi_longname.c: New file.
42131         * modules/unictype/bidiclass-longname: New file.
42132         * modules/unictype/bidiclass-all (Depends-on): Add
42133         unictype/bidiclass-longname.
42135 2011-03-26  Bruno Haible  <bruno@clisp.org>
42137         unictype/bidi*: Rename modules.
42138         * modules/unictype/bidiclass-all: Renamed from
42139         modules/unictype/bidicategory-all.
42140         * modules/unictype/bidiclass-name: Renamed from
42141         modules/unictype/bidiclass-name.
42142         (Description): Update.
42143         * modules/unictype/bidiclass-name-tests: Renamed from
42144         modules/unictype/bidicategory-name-tests.
42145         * modules/unictype/bidiclass-byname: Renamed from
42146         modules/unictype/bidicategory-byname.
42147         (Description): Update.
42148         * modules/unictype/bidiclass-byname-tests: Renamed from
42149         modules/unictype/bidicategory-byname-tests.
42150         * modules/unictype/bidiclass-of: Renamed from
42151         modules/unictype/bidicategory-of.
42152         (Description): Update.
42153         * modules/unictype/bidiclass-of-tests: Renamed from
42154         modules/unictype/bidicategory-of-tests.
42155         * modules/unictype/bidiclass-test: Renamed from
42156         modules/unictype/bidicategory-test.
42157         (Description): Update.
42158         * modules/unictype/bidiclass-test-tests: Renamed from
42159         modules/unictype/bidicategory-test-tests.
42160         * modules/unictype/bidicategory-all: New file, a simple redirection.
42161         * modules/unictype/bidicategory-name: Likewise.
42162         * modules/unictype/bidicategory-byname: Likewise.
42163         * modules/unictype/bidicategory-of: Likewise.
42164         * modules/unictype/bidicategory-test: Likewise.
42165         * modules/unictype/property-bidi-* (Dependencies): Update.
42166         * lib/unictype/bidi_*.c: Update comment.
42168 2011-03-26  Bruno Haible  <bruno@clisp.org>
42170         unictype/bidi*: Rename functions, part 2.
42171         * modules/unictype/bidicategory-name (configure.ac): Update required
42172         libunistring version.
42173         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
42175 2011-03-25  Bruno Haible  <bruno@clisp.org>
42177         New module 'unictype/combining-class-all'.
42178         * modules/unictype/combining-class-all: New file.
42180         Tests for module 'unictype/combining-class-byname'.
42181         * modules/unictype/combining-class-byname-tests: New file.
42182         * tests/unictype/test-combiningclass_byname.c: New file.
42184         New module 'unictype/combining-class-byname'.
42185         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
42186         * lib/unictype/combiningclass_byname.c: New file.
42187         * lib/unictype/combiningclass_byname.gperf: New file.
42188         * modules/unictype/combining-class-byname: New file.
42190         Tests for module 'unictype/combining-class-longname'.
42191         * modules/unictype/combining-class-longname-tests: New file.
42192         * tests/unictype/test-combiningclass_longname.c: New file.
42194         New module 'unictype/combining-class-longname'.
42195         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
42196         * lib/unictype/combiningclass_longname.c: New file.
42197         * modules/unictype/combining-class-longname: New file.
42199         Tests for module 'unictype/combining-class-name'.
42200         * modules/unictype/combining-class-name-tests: New file.
42201         * tests/unictype/test-combiningclass_name.c: New file.
42203         New module 'unictype/combining-class-name'.
42204         * lib/unictype.in.h (uc_combining_class_name): New declaration.
42205         * lib/unictype/combiningclass_name.c: New file.
42206         * modules/unictype/combining-class-name: New file.
42208 2011-03-25  Bruno Haible  <bruno@clisp.org>
42210         unictype/combining-class: Rename source files.
42211         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
42212         of unictype/combining.h.
42213         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
42214         Update.
42215         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
42216         * modules/unictype/combining-class (Description): Fix.
42217         (Files, Makefile.am): Update.
42218         * tests/unictype/test-combiningclass.c: Renamed from
42219         tests/unictype/test-combining.c.
42220         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
42222 2011-03-25  Bruno Haible  <bruno@clisp.org>
42224         unictype: Update list of canonical combining classes.
42225         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
42227 2011-03-25  Bruno Haible  <bruno@clisp.org>
42229         unictype/category-byname: Recognize long names as well.
42230         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
42231         a long name.
42232         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
42233         unictype/categ_byname.h.
42234         (UC_CATEGORY_INDEX_*): New enumeration values.
42235         (uc_general_category_byname): Use uc_general_category_lookup and
42236         convert from index to value.
42237         * lib/unictype/categ_byname.gperf: New file.
42238         * modules/unictype/category-byname (Files): Add
42239         lib/unictype/categ_byname.gperf.
42240         (Depends-on): Add gperf.
42241         (Makefile.am): Add rule for generating unictype/categ_byname.h.
42242         * tests/unictype/test-categ_byname.c (main): Test the recognition of
42243         long names.
42245         Tests for module 'unictype/category-longname'.
42246         * modules/unictype/category-longname-tests: New file.
42247         * tests/unictype/test-categ_longname.c: New file.
42249         New module 'unictype/category-longname'.
42250         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
42251         * lib/unictype/categ_longname.c: New file.
42252         * modules/unictype/category-longname: New file.
42253         * modules/unictype/category-all (Depends-on): Add it.
42255 2011-03-25  Bruno Haible  <bruno@clisp.org>
42257         Tests for module 'unictype/category-LC'.
42258         * modules/unictype/category-LC-tests: New file.
42259         * tests/unictype/test-categ_LC.c: New file, automatically generated.
42261         New module 'unictype/category-LC'.
42262         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
42263         (UC_CATEGORY_LC): New declaration.
42264         (UC_CASED_LETTER): New macro.
42265         * lib/gen-uni-tables.c (is_category_LC): New function.
42266         (output_categories): Also handle category LC.
42267         (UC_CATEGORY_MASK_LC): New enumeration value.
42268         (general_category_byname): Also handle category LC.
42269         * lib/unictype/categ_LC.c: New file.
42270         * lib/unictype/categ_LC.h: New file, automatically generated.
42271         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
42272         category LC.
42273         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
42274         * modules/unictype/category-LC: New file.
42275         * modules/unictype/category-byname (Depends-on): Add
42276         unictype/category-LC.
42277         * modules/unictype/category-all (Depends-on): Likewise.
42279 2011-03-25  Eric Blake  <eblake@redhat.com>
42281         xmalloc: revert yesterday's regression
42282         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
42283         realloc's underlying behavior (allowing allocation of zero-size
42284         objects, especially if malloc-gnu is also in use).
42286 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
42288         maint.mk: add missing version to VC-tag
42289         * top/maint.mk: git tag was missing actual tag name; add it.
42291         valgrind: do leak checking, and exit with code 1 on error (not 0)
42292         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
42293         to VALGRIND.
42295 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
42297         posix-modules: say what it does.
42298         * posix-modules: Add a line to the --help output saying what it does.
42300 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
42302         xmalloc: Do not leak if underlying realloc is C99 compatible.
42303         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
42304         This avoids a leak on C99-based systems.  See
42305         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
42307 2011-03-24  Eric Blake  <eblake@redhat.com>
42309         realloc: document portability problem
42310         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
42311         passing 0 size to realloc.
42313 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
42315         doc: update users.txt
42316         * users.txt: Add cvsps, tmpwatch
42318 2011-03-23  Matt Rice  <ratmice@gmail.com>
42320         doc: update users.txt
42321         * users.txt: Add gdb.
42323 2011-03-23  Jim Meyering  <meyering@redhat.com>
42325         doc: update users.txt
42326         Looking through matches up to the following URL (there are still
42327         several more pages), I found several projects that use gnulib:
42328         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
42329         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
42330         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
42332 2011-03-22  Bruno Haible  <bruno@clisp.org>
42334         unictype/bidi*: Rename functions.
42335         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
42336         uc_bidi_class, uc_is_bidi_class): New declarations.
42337         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
42338         uc_bidi_category_byname.
42339         (uc_bidi_category_byname): New function.
42340         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
42341         u_bidi_category_name.
42342         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
42343         (uc_bidi_category_name): New function.
42344         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
42345         uc_bidi_category.
42346         (uc_bidi_category): New function.
42347         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
42348         uc_is_bidi_category. Invoke uc_bidi_class.
42349         (uc_is_bidi_category): New function.
42350         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
42351         instead of uc_bidi_category_byname.
42352         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
42353         instead of uc_bidi_category_name.
42354         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
42355         uc_bidi_category.
42356         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
42357         instead of uc_is_bidi_category.
42359 2011-03-21  Bruno Haible  <bruno@clisp.org>
42361         New module 'unictype/joininggroup-all'.
42362         * modules/unictype/joininggroup-all: New file.
42364         Tests for module 'unictype/joininggroup-of'.
42365         * modules/unictype/joininggroup-of-tests: New file.
42366         * tests/unictype/test-joininggroup_of.c: New file.
42367         * tests/unictype/test-joininggroup_of.h: New file, automatically
42368         generated by gen-uni-tables.
42370         New module 'unictype/joininggroup-of'.
42371         * modules/unictype/joininggroup-of: New file.
42372         * lib/unictype/joininggroup_of.c: New file.
42373         * lib/unictype/joininggroup_of.h: New file, automatically generated by
42374         gen-uni-tables.
42376         Tests for module 'unictype/joininggroup-byname'.
42377         * modules/unictype/joininggroup-byname-tests: New file.
42378         * tests/unictype/test-joininggroup_byname.c: New file.
42380         New module 'unictype/joininggroup-byname'.
42381         * modules/unictype/joininggroup-byname: New file.
42382         * lib/unictype/joininggroup_byname.c: New file.
42383         * lib/unictype/joininggroup_byname.gperf: New file.
42385         Tests for module 'unictype/joininggroup-name'.
42386         * modules/unictype/joininggroup-name-tests: New file.
42387         * tests/unictype/test-joininggroup_name.c: New file.
42389         New module 'unictype/joininggroup-name'.
42390         * modules/unictype/joininggroup-name: New file.
42391         * lib/unictype/joininggroup_name.c: New file.
42392         * lib/unictype/joininggroup_name.h: New file.
42394         New module 'unictype/joiningtype-all'.
42395         * modules/unictype/joiningtype-all: New file.
42397         Tests for module 'unictype/joiningtype-of'.
42398         * modules/unictype/joiningtype-of-tests: New file.
42399         * tests/unictype/test-joiningtype_of.c: New file.
42400         * tests/unictype/test-joiningtype_of.h: New file, automatically
42401         generated by gen-uni-tables.
42403         New module 'unictype/joiningtype-of'.
42404         * modules/unictype/joiningtype-of: New file.
42405         * lib/unictype/joiningtype_of.c: New file.
42406         * lib/unictype/joiningtype_of.h: New file, automatically generated by
42407         gen-uni-tables.
42409         Tests for module 'unictype/joiningtype-byname'.
42410         * modules/unictype/joiningtype-byname-tests: New file.
42411         * tests/unictype/test-joiningtype_byname.c: New file.
42413         New module 'unictype/joiningtype-byname'.
42414         * modules/unictype/joiningtype-byname: New file.
42415         * lib/unictype/joiningtype_byname.c: New file.
42417         Tests for module 'unictype/joiningtype-name'.
42418         * modules/unictype/joiningtype-name-tests: New file.
42419         * tests/unictype/test-joiningtype_name.c: New file.
42421         New module 'unictype/joiningtype-name'.
42422         * modules/unictype/joiningtype-name: New file.
42423         * lib/unictype/joiningtype_name.c: New file.
42425         unictype: Add support for Arabic shaping properties.
42426         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
42427         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
42428         declarations.
42429         (UC_JOINING_GROUP_*): New enumeration values.
42430         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
42431         declarations.
42432         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
42433         (unicode_joining_type): New variable.
42434         (UC_JOINING_GROUP_*): New enumeration values.
42435         (unicode_joining_group): New variable.
42436         (fill_arabicshaping, joining_type_as_c_identifier,
42437         output_joining_type_test, output_joining_type,
42438         joining_group_as_c_identifier, output_joining_group_test,
42439         output_joining_group): New functions.
42440         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
42441         fill_arabicshaping and output_joining_type_test, output_joining_type,
42442         output_joining_group_test, output_joining_group.
42443         Reported by Simon Josefsson.
42445 2011-03-21  Jim Meyering  <meyering@redhat.com>
42447         strftime: fix a bug in yesterday's change
42448         * lib/strftime.c (add): Accommodate width's initial value of -1.
42449         Otherwise, nstrftime would copy uninitialized data into
42450         the result buffer.
42452 2011-03-21  Jim Meyering  <meyering@redhat.com>
42454         tests: add strftime-tests module
42455         * tests/test-strftime.c: New file.
42456         * modules/strftime-tests: New module.
42458 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42460         strftime: don't assume a byte count fits in 'int'
42461         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
42462         found this problem by static analysis, using gcc -Wstrict-overflow
42463         (GCC 4.5.2, x86-64).  This reported an optimization that depended
42464         on an integer overflow having undefined behavior, but it turns out
42465         that the argument is a size, which might not fit in 'int' anyway,
42467 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42469         stdio: don't require ignore_value around fwrite
42471         This patch works around libc bug 11959
42472         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
42473         Without this patch, applications must often write
42474         ignore_value (fwrite (...)) even though the ignore_value is
42475         not helpful here.  It's common to write many objects, using
42476         fwrite/printf/etc., and then use ferror to detect output error.
42478         I considered making this patch optional, but decided against it,
42479         because libc is obviously being inconsistent here: there is no
42480         reason libc should insist that user code must inspect fwrite
42481         return's value without also insisting that it inspect printf's,
42482         putchar's, etc.  If user code wants to have a strict style where
42483         all these functions' values are checked (so that ferror need not
42484         be checked), we could add support for that style in a new gnulib
42485         module, but in the meantime it's better to be consistent and to
42486         support common usage.
42488         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
42489         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
42490         that we are compiling in checking mode, and if not C++, and
42491         if not already wrapping fwrite for some other reason.
42492         (fwrite): #define to rpl_fwrite if the latter is defined.
42494 2011-03-20  Bruno Haible  <bruno@clisp.org>
42496         verror: Fix compilation error introduced on 2011-02-13.
42497         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
42498         instead of __attribute__.
42499         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42501 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
42502             Bruno Haible  <bruno@clisp.org>
42504         socklen: do not depend on sys_socket
42505         While trying to modify Emacs to use gnulib's socklen module,
42506         I discovered a circular dependency: socklen depends on sys_socket
42507         and vice versa.  Emacs can use socklen, but it does not need
42508         sys_socket because it has its own substitute for sys/socket.h.
42509         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
42510         gl_TYPE_SOCKLEN_T.
42511         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
42512         gl_PREREQ_SYS_H_SOCKET.
42513         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
42514         gl_PREREQ_SYS_H_SOCKET.
42515         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
42516         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
42517         * modules/socklen (Depends-on): Do not depend on sys_socket.
42518         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
42520 2011-03-20  Jim Meyering  <meyering@redhat.com>
42522         maint.mk: sort file names *after* new transformation
42523         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
42524         prefix would have led to an unwarranted failure in GNU parted.
42525         Sort after that transformation.
42527 2011-03-19  Jim Meyering  <meyering@redhat.com>
42529         maint.mk: fix po-file syntax-check rule
42530         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
42531         Patch by Bruno Haible.
42533 2011-03-19  Bruno Haible  <bruno@clisp.org>
42535         socklen: Update comment.
42536         * m4/socklen.m4: Update comment about platforms.
42538 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42539             Bruno Haible  <bruno@clisp.org>
42541         inet_ntop, inet_pton: Simplify.
42542         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
42543         documented to provide socklen_t and we already depend on sys_socket.
42544         * modules/inet_pton (Depends-on): Likewise.
42545         * lib/arpa_inet.in.h: Adjust comment.
42547 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42548             Bruno Haible  <bruno@clisp.org>
42550         netdb: Simplify.
42551         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
42552         documented to provide socklen_t and we already depend on sys_socket.
42553         * lib/netdb.in.h: Adjust comment.
42555 2011-03-19  Bruno Haible  <bruno@clisp.org>
42557         sys_socket, netdb: Document problem with socklen_t.
42558         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
42559         platforms.
42560         * doc/posix-headers/netdb.texi: Likewise.
42562 2011-03-18  Eric Blake  <eblake@redhat.com>
42564         maint.mk: let po check work in VPATH build
42565         * top/maint.mk (po_file): Allow cfg.mk override.
42566         (sc_po_check): Allow VPATH use.
42567         Reported by Jiri Denemark.
42569 2011-03-16  Jim Meyering  <meyering@redhat.com>
42571         maint.mk: allow fine-grained syntax-check exclusion via Make variables
42572         Before, you would have had to create one .x-sc_ file per rule in order
42573         to exempt offending files.  Now, you may instead use a Make variable --
42574         usually defined in cfg.mk -- whose name identifies the affected rule.
42575         * top/maint.mk (_sc_excl): Define.
42576         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
42577         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
42579 2011-03-13  Bruno Haible  <bruno@clisp.org>
42581         ignore-value tests: Avoid warnings.
42582         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
42583         empty for gcc < 3.4.
42585 2011-03-13  Bruno Haible  <bruno@clisp.org>
42587         passfd: Fix link error on Solaris.
42588         * modules/passfd (Description): Correct.
42589         (Depends-on): Add socketlib.
42590         (Link): New section.
42591         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
42593 2011-03-13  Bruno Haible  <bruno@clisp.org>
42595         passfd: Fix link error on AIX 5.2.
42596         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
42598 2011-03-13  Bruno Haible  <bruno@clisp.org>
42600         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
42601         * lib/sys_socket.in.h: Include <stddef.h>.
42602         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
42603         CMSG_FIRSTHDR. Remove unused variable.
42605 2011-03-13  Bruno Haible  <bruno@clisp.org>
42607         passfd: Fix compilation error on OpenBSD.
42608         * lib/passfd.c: Include <sys/uio.h>.
42610 2011-03-13  Bruno Haible  <bruno@clisp.org>
42612         passfd test: Fix warnings.
42613         * tests/test-passfd.c: Include <sys/wait.h>.
42614         (main): Fix typo.
42616 2011-03-13  Bruno Haible  <bruno@clisp.org>
42618         passfd module, part 4, tweaks.
42619         * tests/test-passfd.c: Reorder includes.
42620         (main): Fix perror and printf calls.
42622 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42624         passfd module, part 4.
42625         * modules/passfd-tests: New file.
42626         * tests/test-passfd.c: New file.
42628 2011-03-13  Jim Meyering  <meyering@redhat.com>
42630         Makefile: rely on GNU make; derive syntax-check rule names
42631         Rather than requiring that each sc_ rule be listed as a dependent
42632         of "check", use features of GNU make to derive the list.
42633         * Makefile (syntax-check-rules): Define.
42634         (check): Depend on the new variable, not the hard-coded list.
42636 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
42637             Bruno Haible  <bruno@clisp.org>
42639         passfd module, part 3.
42640         * lib/passfd.h (recvfd): Add a flags argument.
42641         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
42642         (recvfd): Add a flags argument.
42643         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
42644         exists.
42645         * modules/passfd (Depends-on): Add cloexec.
42646         Suggested by Eric Blake.
42648 2011-03-13  Bruno Haible  <bruno@clisp.org>
42650         passfd module, part 2, tweaks.
42651         * modules/passfd (Files): Reorder.
42652         (Depends-on): Remove errno.
42653         (Include): Remove <sys/socket.h>, <sys/un.h>.
42654         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
42655         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
42656         specification header. Include <sys/socket.h> always. Don't include
42657         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
42658         (sendfd): Clarify that it sets errno when it fails.
42659         (recvfd): Fix specification.
42661 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42663         passfd module, part 2.
42664         * modules/passfd: New file.
42665         * lib/passfd.h: New file.
42666         * lib/passfd.c: New file.
42668 2011-03-12  Bruno Haible  <bruno@clisp.org>
42670         wcswidth, mbswidth: Avoid integer overflow.
42671         * lib/wcswidth.c: Include <limits.h>.
42672         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
42673         * lib/mbswidth.c: Include <limits.h>.
42674         (mbsnwidth): Avoid 'int' overflow.
42675         Reported by Jim Meyering.
42677 2011-03-12  Bruno Haible  <bruno@clisp.org>
42679         futimens, utimensat: Avoid endless recursion on Solaris 10.
42680         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
42681         Solaris.
42682         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
42683         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
42685 2011-03-11  Jim Meyering  <meyering@redhat.com>
42687         maint.mk: relax a regexp to accommodate other formatting styles
42688         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
42689         between "ngettext" and the following "(".
42691 2011-03-11  Pádraig Brady  <P@draigBrady.com>
42693         maint.mk: suppress a false positive warning
42694         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
42695         diagnostics are marked with ngettext.
42697 2011-03-10  Eric Blake  <eblake@redhat.com>
42699         wchar: add explicit dependencies, for Tru64
42700         * modules/mbmemcasecoll (Depends-on): Add wchar.
42701         * modules/mbtowc (Depends-on): Likewise.
42702         * modules/vasnprintf (Depends-on): Likewise.
42703         * modules/unistdio/u-printf-args (Depends-on): Likewise.
42704         * modules/wctomb (Depends-on): Likewise.
42705         Reported by Peter O'Gorman.
42707 2011-03-08  Bruno Haible  <bruno@clisp.org>
42709         passfd module, part 1, tweaks.
42710         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
42711         Improve indentation. Improve AC_MSG_CHECKING messages.
42712         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
42713         gl_SOCKET_FAMILIES.
42715 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
42717         passfd module, part 1.
42718         * m4/afunix.m4: New file.
42719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
42720         sockets.
42722 2011-03-08  Bruno Haible  <bruno@clisp.org>
42724         regex-quote: New API.
42725         * lib/regex-quote.h: Include <stdbool.h>.
42726         (struct regex_quote_spec): New type.
42727         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42728         New declarations.
42729         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42730         'const struct regex_quote_spec *' argument.
42731         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
42732         (pcre_special): New constant.
42733         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
42734         New functions.
42735         (regex_quote_length, regex_quote_copy, regex_quote): Take a
42736         'const struct regex_quote_spec *' argument.
42737         * modules/regex-quote (Depends-on): Add stdbool.
42738         * tests/test-regex-quote.c (check): Update for new API. Add test for
42739         anchored results.
42740         * NEWS: Mention the API change.
42741         Reported by Reuben Thomas and Eric Blake.
42743 2011-03-06  Bruno Haible  <bruno@clisp.org>
42745         regex-quote: Fix creation of POSIX extended regular expressions.
42746         * lib/regex-quote.c (ere_special): Add grouping and alternation
42747         operators.
42749 2011-03-05  Bruno Haible  <bruno@clisp.org>
42751         doc: Improve doc regarding autopoint vs. gnulib.
42752         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
42753         disable autopoint while running autoreconf.
42754         Suggested by Ralf Wildenhues.
42756 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42758         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
42759         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
42761 2011-03-03  Bruce Korb  <bkorb@gnu.org>
42763         parse-duration: remove xalloc.h dependency
42764         * lib/parse-duration.c (parse_period): handle NULL return from
42765         strdup instead of calling xstrdup().
42766         * modules/parse-duration: remove "xalloc" dependency
42768 2011-03-03  Matthew Booth  <mbooth@redhat.com>
42770         bootstrap: honor m4_base when running aclocal
42771         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
42773 2011-03-02  Jim Meyering  <meyering@redhat.com>
42775         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
42776         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
42777         on request from Matt Booth.
42779 2011-03-01  Eric Blake  <eblake@redhat.com>
42781         test-link: work on Hurd
42782         * tests/test-link.h (test_link): Hurd rejects linking directories
42783         with EISDIR instead of the POSIX-mandated EPERM.
42785 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
42787         stdio: simplify by moving files to printf-posix, sigpipe
42788         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
42789         since this symbol is needed only if printf is replaced.
42790         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
42791         Require gl_ASM_SYMBOL_PREFIX.
42792         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
42793         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
42794         (Depends-on): Add 'raise'.
42795         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
42796         * modules/stdio (Files): Remove lib/stdio-write.c,
42797         m4/asm-underscore.m4.
42798         (Depends-on): Remove 'raise'.
42800         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
42801         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
42802         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
42803         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
42805 2011-02-28  Bruno Haible  <bruno@clisp.org>
42807         localcharset: Assume ANSI C behaviour of free().
42808         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
42809         calling free().
42810         Suggested by Simon Josefsson <simon@josefsson.org>.
42812 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
42813             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
42814             Bruno Haible  <bruno@clisp.org>  (tiny change)
42816         On Cygwin, use /proc file system instead of win32 API.
42817         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
42818         Win32 file names.
42819         (DllMain): Simplify by removing Cygwin specific code.
42820         (find_shared_library_fullname): Use Linux specific implementation also
42821         for Cygwin.
42822         (get_shared_library_fullname): Update accordingly.
42823         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
42824         Win32 file names.
42825         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
42826         Cygwin specific code.
42828 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
42829             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
42831         Fix OpenMP flag detection for various Fortran compilers.
42832         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
42833         OpenMP-conditional compilation construct, to force compile
42834         failure with missing OpenMP flag.
42835         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
42837 2011-02-25  Eric Blake  <eblake@redhat.com>
42839         strstr: expand test coverage
42840         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
42841         compilation.
42842         * tests/test-memmem.c (main): Duplicate tests.
42843         * tests/test-strcasestr.c (main): Likewise.
42844         * tests/test-c-strcasestr.c (main): Likewise.
42846 2011-02-25  Jim Meyering  <meyering@redhat.com>
42848         maint.mk: detect missing-NL-at-EOF, too
42849         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
42850         it also detects when a file lacks a newline at EOF.
42851         (require_exactly_one_NL_at_EOF_): Renamed from
42852         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
42853         since people may well have .x-sc_... file names tied to the
42854         existing name.  Suggested by Eric Blake.
42856 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
42858         dirname: move m4/dos.m4 functionality into lib/dosname.h
42860         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
42861         extracts symbols from it, puts them into config.h; but it's much
42862         easier to use the symbols directly.  filename.h already does this,
42863         but it disagrees with dos.m4 in some respects.  This patch
42864         introduces a different include file dosname.h that packages up
42865         dos.m4, and then later we can work on merging filename.h and
42866         dosname.h.  Applications that need only the easy-to-configure
42867         symbols should consider including dosname.h rather than dirname.h.
42868         * NEWS: Mention incompatible changes.
42869         * m4/dos.m4: Remove.
42870         * lib/dosname.h, modules/dosname: New files.
42871         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
42872         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
42873         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
42874         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
42875         Include dosname.h, not dirname.h.
42876         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
42877         Include dosname.h, for definitions of symbols like ISSLASH
42878         that used to be in config.h.
42879         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
42880         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
42881         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42882         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42883         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
42884         * modules/rmdir (Files): Likewise.
42885         * modules/stat (Files): Likewise.
42886         * modules/unlink (Files): Likewise.
42887         * modules/dirname-lgpl (Depends-on): Add dosname.
42888         * modules/lstat (Depends-on): Likewise.
42889         * modules/openat (Depends-on): Likewise.
42890         * modules/rmdir (Depends-on): Likewise.
42891         * modules/savewd (Depends-on): Likewise.
42892         * modules/stat (Depends-on): Likewise.
42893         * modules/unlink (Depends-on): Likewise.
42894         * modules/openat (Depends-on): Remove dirname-lgpl.
42895         * modules/savewd (Depends-on): Likewise.
42896         * tests/test-dirname.c: Do not use removed symbols like
42897         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
42898         the remaining symbols, e.g., ISSLASH ('\\').
42900 2011-02-25  Eric Blake  <eblake@redhat.com>
42902         strstr: revert patches that introduced bug and pessimization
42903         * lib/str-two-way.h: Add another reference.
42904         (two_way_short_needle, two_way_long_needle): Revert changes from
42905         2011-02-24; they pessimize search speed.
42906         (critical_factorization): Partially revert changes from
42907         2010-06-22; they violate the requirement that the left half of the
42908         needle be smaller than the period of the needle.
42910 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
42912         filenamecat: remove unnecessary dependency on dirname-lgpl
42913         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
42914         is no direct dependency, just an indirect one via filenamecat-lgpl.
42916         remove: remove unnecessary use of m4/dos.m4
42917         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
42918         * modules/remove (FILES): Remove m4/dos.m4.
42920         * lib/openat-proc.c: Don't include dirname.h; not needed.
42922         backupfile: remove unnecessary use of m4/dos.m4
42923         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
42924         of its symbols are used by the backupfile code.  backupfile.c does
42925         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
42926         for the rare case of programs that want all their backup file
42927         names to live within 8+3 limits, and dos.m4 doesn't address that.
42928         * modules/backupfile (Files): Remove m4/dos.m4.
42930 2011-02-24  Jim Meyering  <meyering@redhat.com>
42932         strstr: fix a bug whereby strstr would mistakenly return NULL
42933         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
42934         in period calculation.
42935         (two_way_long_needle): Likewise.
42936         The original problem was reported by Mike Stump in
42937         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
42938         Ralf Wildenhues provided the short needle and haystack.
42939         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
42940         Add a more involved test to trigger the bug in two_way_long_needle.
42942 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
42944         gnulib-tool: remove use of bold display in help screen
42945         * gnulib-tool (func_usage): Do not use bold display anymore in the
42946         help screen.  That was just meant to be a temporary emphasis for a
42947         backward-incompatible change.
42949 2011-02-23  Bruno Haible  <bruno@clisp.org>
42951         Fix misindentation of preprocessor directives.
42952         * lib/argp-namefrob.h: Reindent preprocessor directives.
42953         * lib/getopt_int.h (struct _getopt_data): Likewise.
42954         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
42955         * lib/vasnprintf.c (decode_long_double): Likewise.
42956         * tests/test-argmatch.c: Insert blank lines, for clarity.
42957         * tests/test-exclude.c: Likewise.
42959 2011-02-22  Bruno Haible  <bruno@clisp.org>
42961         ioctl: Fix for MacOS X in 64-bit mode.
42962         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
42963         value.
42964         Suggested by Eric Blake.
42965         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
42967 2011-02-22  Jim Meyering  <meyering@redhat.com>
42969         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
42970         * Makefile (sc_cpp_indent_check): Don't limit the check to files
42971         in lib/.
42973 2011-02-22  Eric Blake  <eblake@redhat.com>
42975         maint: avoid any CDPATH issue
42976         * Makefile (sc_cpp_indent_check): Anchor cd argument.
42978         maint: adjust cpp indentation for my modules, as well
42979         * Makefile (sc_cpp_indent_check): Add my name.
42980         * lib/fbufmode.c: Filter through cppi.
42981         * lib/fpurge.c: Likewise.
42982         * lib/freadable.c: Likewise.
42983         * lib/freading.c: Likewise.
42984         * lib/fwritable.c: Likewise.
42985         * lib/fwriting.c: Likewise.
42986         * lib/sigaction.c: Likewise.
42988 2011-02-22  Jim Meyering  <meyering@redhat.com>
42990         maint: adjust cpp indentation to reflect nesting depth
42991         I.e., in a block of code that begins with an unnested "#if",
42992         put one space between the "#" in column 1 and following token.
42993         For example,
42994         -#include <sys/vfs.h>
42995         +# include <sys/vfs.h>
42996         Do this only in .c files that are part of a module I maintain.
42997         * lib/linkat.c: Filter through cppi.
42998         * lib/nanosleep.c: Likewise.
42999         * lib/openat.c: Likewise.
43000         * lib/openat-die.c: Likewise.
43001         * lib/dup3.c: Likewise.
43002         * lib/fchownat.c: Likewise.
43003         * lib/flock.c: Likewise.
43004         * lib/fsync.c: Likewise.
43005         * lib/fts.c: Likewise.
43006         * lib/getpass.c: Likewise.
43007         * lib/gettimeofday.c: Likewise.
43008         * lib/userspec.c: Likewise.
43009         * Makefile (sc_cpp_indent_check): New rule, to check this.
43011 2011-02-22  Bruno Haible  <bruno@clisp.org>
43013         New module 'wctomb'.
43014         * lib/stdlib.in.h (wctomb): New declaration.
43015         * lib/wctomb.c: New file.
43016         * lib/wctomb-impl.h: New file.
43017         * m4/wctomb.m4: New file.
43018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
43019         REPLACE_WCTOMB.
43020         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
43021         REPLACE_WCTOMB.
43022         * modules/wctomb: New file.
43023         * tests/test-stdlib-c++.cc: Test signature of wctomb.
43024         * doc/posix-functions/wctomb.texi: Mention the new module.
43025         * modules/wctob (Depends-on): Add wctomb.
43027 2011-02-22  Bruno Haible  <bruno@clisp.org>
43029         New module 'mbtowc'.
43030         * lib/stdlib.in.h (mbtowc): New declaration.
43031         * lib/mbtowc.c: New file.
43032         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
43033         * m4/mbtowc.m4: New file.
43034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
43035         REPLACE_MBTOWC.
43036         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
43037         REPLACE_MBTOWC.
43038         * modules/mbtowc: New file.
43039         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
43040         * doc/posix-functions/mbtowc.texi: Mention the new module.
43041         * modules/btowc (Depends-on): Add mbtowc.
43043 2011-02-22  Bruno Haible  <bruno@clisp.org>
43045         wcrtomb: Add more tests for native Windows platforms.
43046         * tests/test-wcrtomb-w32-1.sh: New file.
43047         * tests/test-wcrtomb-w32-2.sh: New file.
43048         * tests/test-wcrtomb-w32-3.sh: New file.
43049         * tests/test-wcrtomb-w32-4.sh: New file.
43050         * tests/test-wcrtomb-w32-5.sh: New file.
43051         * tests/test-wcrtomb-w32.c: New file.
43052         * modules/wcrtomb-tests (Files): Add them.
43053         (Makefile.am): Arrange to run these tests.
43054         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
43055         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
43057 2011-02-20  Bruno Haible  <bruno@clisp.org>
43059         wcrtomb: Enhance test.
43060         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
43062 2011-02-20  Bruno Haible  <bruno@clisp.org>
43064         mbrtowc: Tiny optimization.
43065         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
43067 2011-02-20  Jim Meyering  <meyering@redhat.com>
43069         test-exclude.c: remove unmatched #endif
43070         * tests/test-exclude.c: Remove stray #endif, left over from
43071         the change of a week ago.
43073 2011-02-19  Jim Meyering  <meyering@redhat.com>
43075         git-version-gen: skip "-dirty" check when appropriate
43076         * build-aux/git-version-gen: Don't run any git commands when the
43077         version string comes from .tarball-version.  Prior to this, we
43078         would run git update-index --refresh even from a just-unpacked
43079         tarball directory, and that could affect a .git/ directory in a
43080         parent of the build directory.  Reported by Mike Frysinger.
43082 2011-02-19  Bruno Haible  <bruno@clisp.org>
43084         unictype/property-byname: Reduce the size of the 'data' segment.
43085         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
43087 2011-02-19  Bruno Haible  <bruno@clisp.org>
43089         unictype/scripts: Reduce the size of the 'data' segment.
43090         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
43091         '%pic'.
43092         * lib/unictype/scripts_byname.gperf: Regenerated.
43094 2011-02-19  Bruno Haible  <bruno@clisp.org>
43096         stdint: Update documentation.
43097         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
43099 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
43101         stdint: omit redundant check for wchar.h
43102         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
43103         always tests whether wchar.h exists, so remove the now-redundant test.
43105 2011-02-18  Bruno Haible  <bruno@clisp.org>
43107         stdint: Cut dependency to module 'wchar'.
43108         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
43109         include the necessary prerequisites.
43110         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
43111         * modules/stdint (Depends-on): Remove wchar.
43112         (Makefile.am): Substitute HAVE_WCHAR_H.
43113         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
43115 2011-02-18  Eric Blake  <eblake@redhat.com>
43117         longlong: skip, rather than fail, on cross-compilation
43118         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
43119         when cross-compiling; regression from 2011-02-16.
43121 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
43123         * NEWS: Mention 2011-02-08 change to stdlib.
43125 2011-02-17  Bruno Haible  <bruno@clisp.org>
43127         getloadavg: Add comments about platforms.
43128         * m4/getloadavg.m4: Add comment.
43129         * lib/getloadavg.c: Likewise.
43131 2011-02-17  Bruno Haible  <bruno@clisp.org>
43133         getloadavg: Fix link error on Solaris 2.6.
43134         * modules/getloadavg (Link): New section.
43135         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
43136         linking test-getloadavg.
43137         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
43138         getloadavg.
43140 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
43142         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
43143         It was 'int', but this doesn't match the IRIX 6.5 manual.
43144         Suggested by Bruno Haible in
43145         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
43147 2011-02-17  Bruno Haible  <bruno@clisp.org>
43149         havelib: Fix comments.
43150         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
43151         change.
43153 2011-02-17  Bruno Haible  <bruno@clisp.org>
43155         havelib: Update config.rpath.
43156         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
43158 2011-02-17  Bruno Haible  <bruno@clisp.org>
43160         getloadavg test: Add some plausibility checks.
43161         * tests/test-getloadavg.c (check_avg): Print a warning when the value
43162         is improbable.
43164 2011-02-16  Eric Blake  <eblake@redhat.com>
43166         maintainer-makefile: make syntax-check a no-op from tarballs
43167         * top/maint.mk (no-vc-detected): New rule.
43168         (local-checks-available): Use it to avoid hanging if someone tries
43169         'make syntax-check' from a tarball.  Also append to any non-syntax
43170         checks already defined in cfg.mk.
43172 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
43174         longlong: tune, particularly for common case of c99
43176         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
43177         or running anything if c99, or if unsigned long long int does not
43178         work.  In either case, we know the answer without further tests.
43179         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
43180         it at most once, and use its results for both long long int and
43181         unsigned long long int.  This is more likely to be efficient in
43182         the common case where the program wants to check for both long
43183         long int and unsigned long long int.
43184         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
43185         since the answer is already known.
43187 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
43189         getloadavg: set errno
43190         * lib/getloadavg.c: Set errno when returning -1.  If no other
43191         error number looks appropriate, set it to ENOSYS if the getloadavg
43192         looks like it can't possibly ever work, ENOTSUP otherwise.
43193         Suggested by Bruno Haible in
43194         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
43196         getloadavg: trim unused parts and speed up 'configure'
43197         * NEWS: Document this.
43198         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
43199         always compiled if getloadavg is absent.
43200         Move test code to ...
43201         * tests/test-getloadavg.c: New file, containing previous
43202         contents of test from lib/getloadavg.c.  It also contains
43203         suggestions by Bruno Haible in
43204         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
43205         * modules/getloadavg-tests: New file.
43206         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
43207         Do tests in the same order as they're needed for getloadavg.c.
43208         Omit setgid-related tests that generate symbols KMEM_GROUP,
43209         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
43210         Do only the tests that are needed to see whether the system has
43211         getloadavg, moving the other tests into ...
43212         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
43213         NLIST_NAME_UNION; nobody should be using it.  Do not define
43214         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
43215         relevant, as the user of this module shouldn't care how getloadavg
43216         is implemented.
43218         getloadavg: omit unused var
43219         * lib/getloadavg.c (getloadavg): Omit unused local variable.
43221 2011-02-15  Jim Meyering  <meyering@redhat.com>
43223         doc: update users.txt
43224         * users.txt: Update iwhd's URL.
43226 2011-02-13  Bruno Haible  <bruno@clisp.org>
43228         Consistent macro naming for macros that use GCC __attribute__.
43229         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
43230         _ATTRIBUTE_NONNULL_.
43231         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
43232         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
43233         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
43234         ATTRIBUTE_DEPRECATED.
43235         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
43236         ATTRIBUTE_NORETURN.
43237         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43238         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43239         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43240         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
43241         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
43242         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
43243         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
43244         ATTRIBUTE_SENTINEL.
43245         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
43246         ATTRIBUTE_RETURN_CHECK.
43247         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
43248         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
43249         ATTRIBUTE_NORETURN.
43250         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
43251         Reported by Paul Eggert.
43253 2011-02-13  Bruno Haible  <bruno@clisp.org>
43255         Don't interfere with a program's definition of __attribute__.
43256         * lib/argp.h (__attribute__): Remove definition.
43257         (_GL_ATTRIBUTE_FORMAT): New macro.
43258         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
43259         * lib/argp-fmtstream.h (__attribute__): Remove definition.
43260         (_GL_ATTRIBUTE_FORMAT): New macro.
43261         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
43262         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
43263         GCC 3 or newer.
43264         * lib/error.h (__attribute__): Remove definition.
43265         (_GL_ATTRIBUTE_FORMAT): New macro.
43266         (error, error_at_line): Use it.
43267         * lib/hash.h (__attribute__): Remove definition.
43268         (ATTRIBUTE_WUR): Update definition. Define always.
43269         * lib/openat.h (__attribute__): Remove definition.
43270         (ATTRIBUTE_NORETURN): Update definition. Define always.
43271         * lib/sigpipe-die.h (__attribute__): Remove definition.
43272         (ATTRIBUTE_NORETURN): Update definition. Define always.
43273         * lib/vasnprintf.h (__attribute__): Remove definition.
43274         (_GL_ATTRIBUTE_FORMAT): New macro.
43275         (asnprintf, vasnprintf): Use it.
43276         * lib/xalloc.h (__attribute__): Remove definition.
43277         (ATTRIBUTE_NORETURN): Update definition. Define always.
43278         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
43279         * lib/xmemdup0.h (__attribute__): Remove definition.
43280         (ATTRIBUTE_NORETURN): Update definition. Define always.
43281         * lib/xprintf.h (__attribute__): Remove definition.
43282         (_GL_ATTRIBUTE_FORMAT): New macro.
43283         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
43284         * lib/xstrtol.h (__attribute__): Remove definition.
43285         (ATTRIBUTE_NORETURN): Update definition. Define always.
43286         * lib/xvasprintf.h (__attribute__): Remove definition.
43287         (_GL_ATTRIBUTE_FORMAT): New macro.
43288         (xasprintf, xvasprintf): Use it.
43289         * tests/test-argmatch.c (__attribute__): Remove definition.
43290         (ATTRIBUTE_NORETURN): Update definition. Define always.
43291         * tests/test-exclude.c (__attribute__): Remove definition.
43292         (ATTRIBUTE_NORETURN): Update definition. Define always.
43293         Reported by Paul Eggert.
43295 2011-02-13  Bruno Haible  <bruno@clisp.org>
43297         mbrtowc: Add more tests for native Windows platforms.
43298         * tests/test-mbrtowc-w32-1.sh: New file.
43299         * tests/test-mbrtowc-w32-2.sh: New file.
43300         * tests/test-mbrtowc-w32-3.sh: New file.
43301         * tests/test-mbrtowc-w32-4.sh: New file.
43302         * tests/test-mbrtowc-w32-5.sh: New file.
43303         * tests/test-mbrtowc-w32.c: New file.
43304         * modules/mbrtowc-tests (Files): Add them.
43305         (Makefile.am): Arrange to run these tests.
43306         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
43307         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
43309 2011-02-13  Bruno Haible  <bruno@clisp.org>
43311         mbrtowc: Work around native Windows bug.
43312         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
43313         guess when no suitable locale for testing was found.
43314         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
43316 2011-02-13  Bruno Haible  <bruno@clisp.org>
43318         mbsinit: Work around mingw bug.
43319         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
43320         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
43321         Windows.
43322         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
43324 2011-02-13  Bruno Haible  <bruno@clisp.org>
43326         mbsinit: Don't crash for a NULL argument.
43327         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
43328         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
43330 2011-02-13  Bruno Haible  <bruno@clisp.org>
43332         Don't interfere with a program's definition of __attribute__.
43333         * lib/stdio.in.h (__attribute__): Remove definition.
43334         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
43335         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
43336         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
43337         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
43338         * lib/string.in.h (__attribute__): Remove definition.
43339         Reported by Paul Eggert.
43341 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43343         stdlib: don't get in the way of non-GCC __attribute__
43344         See thread starting at
43345         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
43346         Revert previous stdlib change, installing the following instead:
43347         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
43348         to get in the way of a non-GCC compiler that supports __attribute__.
43349         (_GL_ATTRIBUTE_RETURN): New macro.
43350         (_Exit): Use it instead of __attribute__.
43352 2011-02-12  Bruno Haible  <bruno@clisp.org>
43354         quotearg test: Avoid test failure on mingw.
43355         * tests/test-quotearg.sh: Convert the locale identifier from native
43356         Windows syntax to Unix syntax.
43358 2011-02-12  Bruno Haible  <bruno@clisp.org>
43360         setlocale: Prefer gnulib's override over libintl's override.
43361         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
43362         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
43363         GNULIB_defined_setlocale is set.
43365 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43367         stdlib: support non-GCC __attribute__
43369         Fix a serious and tricky problem encountered when attempting to
43370         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
43371         5.5, but it crashed due to memory corruption on Solaris 10 with
43372         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
43373         bits that are otherwise zero.  This tagging is optional inside
43374         Emacs but is preferred and is used when __attribute__ ((__aligned
43375         (8))) works, as it does with both recent-enough GCC and with Sun C
43376         5.11.  However, Sun C 5.11 is not GCC and does not #define
43377         __GNUC__ and __GNUC_MINOR__.
43379         When I added the getloadavg module to Emacs, it brought in
43380         stdlib.in.h, which contained this fragment:
43382            #ifndef __attribute__
43383            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
43384            #  define __attribute__(Spec)   /* empty */
43385            # endif
43386            #endif
43388         When files that include <stdlib.h> were compiled with Sun C 5.11,
43389         the above code disabled __attribute__ ((__aligned (8))), which
43390         caused variables to not be properly aligned, which eventually led
43391         to the pointer corruption mentioned above.  (This was a bit hard
43392         to diagnose, unfortunately.)
43394         Several "#define __attribute__(X) /* empty */" code snippets need
43395         to be eradicated from Gnulib to work with non-GCC compilers that
43396         support __attribute__.  The Autoconf way to do this is to test for
43397         each kind of attribute that we want support for, and selectively
43398         enable that in source code.
43400         Fix this problem just for stdlib.h, by adding a test for the
43401         __noreturn__ attribute, and change stdlib.in.h to use that test
43402         when needed.  This technique can be easily generalized to the
43403         other *.in.h files and attributes, and a similar technique can be
43404         used for *.h and *.c files.  This patch is enough to solve the
43405         problem for Emacs + getloadavg, and I thought I'd publish it for
43406         feedback before undertaking further, similar fixes in other
43407         modules.
43409         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
43410         because it's not needed for stdlib.h.  It merely substitutes the
43411         value directly into stdlib.h.  We may well need to #define it, or
43412         similar symbols, for other modules, but it's nice to also have an
43413         option to not #define it for applications like Emacs that do not
43414         need it.
43416         * lib/stdlib.in.h (__attribute__): Do not #define.
43417         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
43418         be defined only if the _Exit module is also used.
43419         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
43420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
43421         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
43422         platforms.
43423         * modules/_Exit (Files): Add m4/attribute.m4.
43424         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
43425         * m4/attribute.m4: New file.
43427 2011-02-12  Bruno Haible  <bruno@clisp.org>
43429         wcsrtombs: Work around bug on native Windows.
43430         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
43431         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
43432         instead of len.
43433         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
43435 2011-02-12  Bruno Haible  <bruno@clisp.org>
43437         mbsrtowcs: Work around bug on native Windows.
43438         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
43439         against mingw bug.
43440         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
43442 2011-02-12  Bruno Haible  <bruno@clisp.org>
43444         Avoid setlocale bugs in tests.
43445         * modules/btowc (Dependencies): Add setlocale.
43446         * modules/c-strcase (Dependencies): Likewise.
43447         * modules/mbmemcasecmp (Dependencies): Likewise.
43448         * modules/mbmemcasecoll (Dependencies): Likewise.
43449         * modules/mbrtowc (Dependencies): Likewise.
43450         * modules/mbscasecmp (Dependencies): Likewise.
43451         * modules/mbscasestr (Dependencies): Likewise.
43452         * modules/mbschr (Dependencies): Likewise.
43453         * modules/mbscspn (Dependencies): Likewise.
43454         * modules/mbsinit (Dependencies): Likewise.
43455         * modules/mbsncasecmp (Dependencies): Likewise.
43456         * modules/mbsnrtowcs (Dependencies): Likewise.
43457         * modules/mbspbrk (Dependencies): Likewise.
43458         * modules/mbspcasecmp (Dependencies): Likewise.
43459         * modules/mbsrchr (Dependencies): Likewise.
43460         * modules/mbsrtowcs (Dependencies): Likewise.
43461         * modules/mbsspn (Dependencies): Likewise.
43462         * modules/mbsstr (Dependencies): Likewise.
43463         * modules/nl_langinfo (Dependencies): Likewise.
43464         * modules/quotearg (Dependencies): Likewise.
43465         * modules/unicase/locale-language (Dependencies): Likewise.
43466         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
43467         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
43468         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
43469         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
43470         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
43471         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
43472         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
43473         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
43474         * modules/vasnprintf-posix (Dependencies): Likewise.
43475         * modules/wcrtomb (Dependencies): Likewise.
43476         * modules/wcsnrtombs (Dependencies): Likewise.
43477         * modules/wcsrtombs (Dependencies): Likewise.
43479 2011-02-12  Bruno Haible  <bruno@clisp.org>
43481         setlocale: Workaround native Windows bug.
43482         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
43483         succeeds but sets LC_CTYPE to "C", report a failure.
43484         * tests/test-setlocale2.sh: New file.
43485         * tests/test-setlocale2.c: New file.
43486         * modules/setlocale-tests (Files): Add the new files.
43487         (Makefile.am): Enable test-setlocale2.sh test.
43488         * doc/posix-functions/setlocale.texi: Mention workaround.
43490 2011-02-11  Bruno Haible  <bruno@clisp.org>
43492         Tests for module 'setlocale'.
43493         * modules/setlocale-tests: New file.
43494         * tests/test-setlocale1.sh: New file.
43495         * tests/test-setlocale1.c: New file.
43497         New module 'setlocale'.
43498         * lib/locale.in.h (setlocale): New declaration.
43499         * lib/setlocale.c: New file, based on
43500         gettext/gettext-runtime/intl/setlocale.c.
43501         * m4/setlocale.m4: New file.
43502         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
43503         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
43504         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
43505         REPLACE_SETLOCALE.
43506         * modules/setlocale: New file.
43507         * tests/test-locale-c++.cc: Test the declaration of setlocale.
43508         * doc/posix-functions/setlocale.texi: Mention the new module.
43510 2011-02-11  Bruno Haible  <bruno@clisp.org>
43512         Prepare for locale dependent tests on mingw.
43513         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
43514         because it has the wrong locale encoding.
43515         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
43516         French_France.1252 instead of "fr".
43517         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
43518         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
43519         because it has the wrong locale encoding.
43520         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
43521         native Windows, try Turkish_Turkey.65001.
43522         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
43523         Chinese_China.54936.
43525         Prepare for locale dependent tests on mingw.
43526         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
43527         differently.
43528         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
43529         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
43530         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
43531         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43533 2011-02-11  Eric Blake  <eblake@redhat.com>
43535         strptime: avoid compiler warnings
43536         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
43537         compiler warnings about dead code.
43538         Reported by Daniel P. Berrange.
43540 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
43542         doc: update users.txt
43543         * users.txt: Add rcs.
43545 2011-02-10  John W. Eaton  <jwe@gnu.org>
43547         doc: update users.txt
43548         * users.txt: Add octave.
43550 2011-02-10  Jim Meyering  <meyering@redhat.com>
43552         doc: update users.txt
43553         * users.txt: Add iwhd.
43555 2011-02-09  Bruno Haible  <bruno@clisp.org>
43557         gnulib-tool: Make copyright notice adjustment more robust.
43558         * gnulib-tool (func_import): In sed_transform_main_lib_file,
43559         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
43560         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
43561         License".
43562         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
43564 2011-02-06  Bruno Haible  <bruno@clisp.org>
43566         New module 'towctrans'.
43567         * modules/towctrans: New file.
43568         * lib/wctype.in.h (towctrans): New declaration.
43569         * lib/towctrans.c: New file.
43570         * lib/towctrans-impl.h: New file.
43571         * m4/towctrans.m4: New file.
43572         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
43573         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
43574         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
43575         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
43576         * doc/posix-functions/towctrans.texi: Mention the new module.
43578 2011-02-06  Bruno Haible  <bruno@clisp.org>
43580         New module 'wctrans'.
43581         * modules/wctrans: New file.
43582         * lib/wctype.in.h (wctrans): New declaration.
43583         * lib/wctrans.c: New file.
43584         * lib/wctrans-impl.h: New file.
43585         * m4/wctrans.m4: New file.
43586         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
43587         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
43588         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
43589         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
43590         * doc/posix-functions/wctrans.texi: Mention the new module.
43592 2011-02-06  Bruno Haible  <bruno@clisp.org>
43594         New module 'iswctype'.
43595         * modules/iswctype: New file.
43596         * lib/wctype.in.h (iswctype): New declaration.
43597         * lib/iswctype.c: New file.
43598         * lib/iswctype-impl.h: New file.
43599         * m4/iswctype.m4: New file.
43600         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
43601         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
43602         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
43603         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
43604         * doc/posix-functions/iswctype.texi: Mention the new module and the
43605         HP-UX 11.00 problem.
43607 2011-02-06  Bruno Haible  <bruno@clisp.org>
43609         New module 'wctype'.
43610         * modules/wctype: Change to represent the wctype() substitute.
43611         * lib/wctype.in.h (wctype): New declaration.
43612         * lib/wctype.c: New file.
43613         * lib/wctype-impl.h: New file.
43614         * m4/wctype.m4: New file.
43615         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
43616         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
43617         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
43618         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
43619         * doc/posix-functions/wctype.texi: Mention the new module and the
43620         HP-UX 11.00 problem.
43622 2011-02-06  Bruno Haible  <bruno@clisp.org>
43624         wctype-h: Ensure wctype_t and wctrans_t are defined.
43625         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
43626         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43627         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
43628         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
43629         HAVE_WCTRANS_T.
43630         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
43632 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43634         flock: fix license typo
43636         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
43637         omitted.
43639 2011-02-08  Bruno Haible  <bruno@clisp.org>
43641         Split large sed scripts, for HP-UX sed.
43642         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
43643         to avoid HP-UX limit of 99 commands, in the near future.
43644         * modules/stdlib (Makefile.am): Likewise.
43645         * modules/unistd (Makefile.am): Likewise.
43646         * modules/wchar (Makefile.am): Likewise.
43647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43648         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
43649         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
43651 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43652             Bruno Haible  <bruno@clisp.org>
43654         stdlib: improve random_r modularization
43655         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
43656         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
43657         you also need the random_r module to get this material right.
43658         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
43659         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
43660         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
43662 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
43664         stdlib: don't depend on stdint
43665         * lib/stdlib.in.h: Don't include <stdint.h> merely because
43666         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
43667         be independent of whether stdint.h is needed.
43668         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
43669         here, instead of ...
43670         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
43671         struct random_data should be using the random_r module, not just
43672         the stdlib module (which wouldn't make sense: what package needs
43673         just struct random_data without also needing random_r?).
43674         * modules/stdlib (Depends-on): Remove stdint.
43676         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
43677         See the thread rooted at
43678         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
43679         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
43680         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
43681         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
43682         __VMS)); previously it was always included (via fcntl--.h).
43683         (getloadavg): Do not use c_strtod.  Instead, approximate it by
43684         hand; this is good enough for load averages.  Also, do not use
43685         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
43686         flags directly if available and don't bother otherwise.  (Packages
43687         that need the extra reliability should use the modules that define
43688         these flags on older platforms that lack them.)
43689         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
43690         fcntl-safer.
43692 2011-02-08  Jim Meyering  <meyering@redhat.com>
43694         di-set.h, ino-map.h: add multiple-inclusion guard
43695         Technically, the guard is required only for ino-map.h, due to its
43696         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
43697         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
43698         * lib/ino-map.h: Likewise.
43700 2011-02-06  Bruno Haible  <bruno@clisp.org>
43702         iswblank: Ensure declaration on glibc systems.
43703         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
43704         * modules/iswblank (Dependencies): Add 'extensions'.
43705         * doc/posix-functions/iswblank.texi: Document the glibc problem.
43707 2011-02-06  Bruno Haible  <bruno@clisp.org>
43709         New module 'iswblank'.
43710         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
43711         * modules/iswblank: New file.
43712         * modules/wctype-h (Files): Remove lib/iswblank.c.
43713         (Makefile.am): Substitute GNULIB_ISWBLANK.
43714         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
43715         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
43716         (gl_WCTYPE_H_DEFAULTS): New macro.
43717         (gl_WCTYPE_H): Require it. Remove iswblank related code.
43718         * modules/iswblank-tests: New file.
43719         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
43720         * tests/test-wctype-h.c (main): Remove iswblank tests.
43721         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
43722         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
43723         of 'wctype-h'.
43724         * NEWS: Mention the change.
43725         * modules/mbchar (Depends-on): Add iswblank.
43727 2011-02-08  Bruno Haible  <bruno@clisp.org>
43729         di-set tests: Refactor.
43730         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
43731         unnecessary includes.
43732         (ASSERT): Remove macro.
43733         (main): Make C90 compliant by avoiding variable declaration after
43734         statement.
43735         * modules/di-set-tests (Files): Add tests/macros.h.
43737 2011-02-08  Bruno Haible  <bruno@clisp.org>
43739         ino-map tests: Refactor.
43740         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
43741         unnecessary includes.
43742         (ASSERT): Remove macro.
43743         (main): Make C90 compliant by avoiding variable declaration after
43744         statement.
43745         * modules/ino-map-tests (Files): Add tests/macros.h.
43747 2011-02-08  Jim Meyering  <meyering@redhat.com>
43749         di-set: add "const" to a cast
43750         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
43751         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
43753 2011-02-06  Bruno Haible  <bruno@clisp.org>
43755         Rename module 'wctype' to 'wctype-h'.
43756         * modules/wctype-h: Renamed from modules/wctype.
43757         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
43758         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
43759         (Files, Depends-on, Makefile.am): Update.
43760         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
43761         (Files, Makefile.am): Update.
43762         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
43763         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
43764         * doc/posix-headers/wctype.texi: Update.
43765         * doc/posix-functions/iswalnum.texi: Update.
43766         * doc/posix-functions/iswalpha.texi: Update.
43767         * doc/posix-functions/iswblank.texi: Update.
43768         * doc/posix-functions/iswcntrl.texi: Update.
43769         * doc/posix-functions/iswdigit.texi: Update.
43770         * doc/posix-functions/iswgraph.texi: Update.
43771         * doc/posix-functions/iswlower.texi: Update.
43772         * doc/posix-functions/iswprint.texi: Update.
43773         * doc/posix-functions/iswpunct.texi: Update.
43774         * doc/posix-functions/iswspace.texi: Update.
43775         * doc/posix-functions/iswupper.texi: Update.
43776         * doc/posix-functions/iswxdigit.texi: Update.
43777         * doc/posix-functions/towlower.texi: Update.
43778         * doc/posix-functions/towupper.texi: Update.
43779         * NEWS: Mention the change.
43780         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
43781         * modules/mbchar (Dependencies): Likewise.
43782         * modules/mbswidth (Dependencies): Likewise.
43783         * modules/quotearg (Dependencies): Likewise.
43784         * modules/regex (Dependencies): Likewise.
43785         * modules/wcscasecmp (Dependencies): Likewise.
43786         * modules/wcsncasecmp (Dependencies): Likewise.
43787         * modules/wcwidth (Dependencies): Likewise.
43789 2011-02-06  Bruno Haible  <bruno@clisp.org>
43791         New module 'wcswidth'.
43792         * modules/wcswidth: New file.
43793         * lib/wchar.in.h (wcswidth): New declaration.
43794         * lib/wcswidth.c: New file.
43795         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
43796         * m4/wcswidth.m4: New file.
43797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
43798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
43799         REPLACE_WCSWIDTH.
43800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
43801         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
43802         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
43803         * doc/posix-functions/wcswidth.texi: Mention the new module.
43805 2011-02-06  Bruno Haible  <bruno@clisp.org>
43807         New module 'wcstok'.
43808         * modules/wcstok: New file.
43809         * lib/wchar.in.h (wcstok): New declaration.
43810         * lib/wcstok.c: New file.
43811         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
43812         * m4/wcstok.m4: New file.
43813         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
43814         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
43815         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
43816         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
43817         * doc/posix-functions/wcstok.texi: Mention the new module.
43819 2011-02-06  Bruno Haible  <bruno@clisp.org>
43821         New module 'wcsstr'.
43822         * modules/wcsstr: New file.
43823         * lib/wchar.in.h (wcsstr): New declaration.
43824         * lib/wcsstr.c: New file.
43825         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
43826         * m4/wcsstr.m4: New file.
43827         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
43828         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
43829         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
43830         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
43831         * doc/posix-functions/wcsstr.texi: Mention the new module.
43833 2011-02-06  Bruno Haible  <bruno@clisp.org>
43835         New module 'wcspbrk'.
43836         * modules/wcspbrk: New file.
43837         * lib/wchar.in.h (wcspbrk): New declaration.
43838         * lib/wcspbrk.c: New file.
43839         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
43840         * m4/wcspbrk.m4: New file.
43841         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
43842         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
43843         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
43844         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
43845         * doc/posix-functions/wcspbrk.texi: Mention the new module.
43847 2011-02-06  Bruno Haible  <bruno@clisp.org>
43849         New module 'wcsspn'.
43850         * modules/wcsspn: New file.
43851         * lib/wchar.in.h (wcsspn): New declaration.
43852         * lib/wcsspn.c: New file.
43853         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
43854         * m4/wcsspn.m4: New file.
43855         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
43856         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
43857         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
43858         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
43859         * doc/posix-functions/wcsspn.texi: Mention the new module.
43861 2011-02-06  Bruno Haible  <bruno@clisp.org>
43863         New module 'wcscspn'.
43864         * modules/wcscspn: New file.
43865         * lib/wchar.in.h (wcscspn): New declaration.
43866         * lib/wcscspn.c: New file.
43867         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
43868         * m4/wcscspn.m4: New file.
43869         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
43870         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
43871         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
43872         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
43873         * doc/posix-functions/wcscspn.texi: Mention the new module.
43875 2011-02-06  Bruno Haible  <bruno@clisp.org>
43877         New module 'wcsrchr'.
43878         * modules/wcsrchr: New file.
43879         * lib/wchar.in.h (wcsrchr): New declaration.
43880         * lib/wcsrchr.c: New file.
43881         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
43882         * m4/wcsrchr.m4: New file.
43883         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
43884         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
43885         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
43886         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
43887         * doc/posix-functions/wcsrchr.texi: Mention the new module.
43889 2011-02-06  Bruno Haible  <bruno@clisp.org>
43891         New module 'wcschr'.
43892         * modules/wcschr: New file.
43893         * lib/wchar.in.h (wcschr): New declaration.
43894         * lib/wcschr.c: New file.
43895         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
43896         * m4/wcschr.m4: New file.
43897         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
43898         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
43899         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
43900         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
43901         * doc/posix-functions/wcschr.texi: Mention the new module.
43903 2011-02-06  Bruno Haible  <bruno@clisp.org>
43905         New module 'wcsdup'.
43906         * modules/wcsdup: New file.
43907         * lib/wchar.in.h (wcsdup): New declaration.
43908         * lib/wcsdup.c: New file.
43909         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
43910         * m4/wcsdup.m4: New file.
43911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
43912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
43913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
43914         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
43915         * doc/posix-functions/wcsdup.texi: Mention the new module.
43917 2011-02-06  Bruno Haible  <bruno@clisp.org>
43919         New module 'wcsxfrm'.
43920         * modules/wcsxfrm: New file.
43921         * lib/wchar.in.h (wcsxfrm): New declaration.
43922         * lib/wcsxfrm.c: New file.
43923         * lib/wcsxfrm-impl.h: New file.
43924         * m4/wcsxfrm.m4: New file.
43925         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
43926         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
43927         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
43928         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
43929         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
43931 2011-02-06  Bruno Haible  <bruno@clisp.org>
43933         New module 'wcscoll'.
43934         * modules/wcscoll: New file.
43935         * lib/wchar.in.h (wcscoll): New declaration.
43936         * lib/wcscoll.c: New file.
43937         * lib/wcscoll-impl.h: New file.
43938         * m4/wcscoll.m4: New file.
43939         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
43940         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
43941         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
43942         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
43943         * doc/posix-functions/wcscoll.texi: Mention the new module.
43945 2011-02-06  Bruno Haible  <bruno@clisp.org>
43947         New module 'wcsncasecmp'.
43948         * modules/wcsncasecmp: New file.
43949         * lib/wchar.in.h (wcsncasecmp): New declaration.
43950         * lib/wcsncasecmp.c: New file.
43951         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
43952         * m4/wcsncasecmp.m4: New file.
43953         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
43954         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
43955         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
43956         HAVE_WCSNCASECMP.
43957         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
43958         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
43960 2011-02-06  Bruno Haible  <bruno@clisp.org>
43962         New module 'wcscasecmp'.
43963         * modules/wcscasecmp: New file.
43964         * lib/wchar.in.h (wcscasecmp): New declaration.
43965         * lib/wcscasecmp.c: New file.
43966         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
43967         * m4/wcscasecmp.m4: New file.
43968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
43969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
43970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
43971         HAVE_WCSCASECMP.
43972         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
43973         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
43975 2011-02-05  Bruno Haible  <bruno@clisp.org>
43977         New module 'wcsncmp'.
43978         * modules/wcsncmp: New file.
43979         * lib/wchar.in.h (wcsncmp): New declaration.
43980         * lib/wcsncmp.c: New file.
43981         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
43982         * m4/wcsncmp.m4: New file.
43983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
43984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
43985         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
43986         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
43987         * doc/posix-functions/wcsncmp.texi: Mention the new module.
43989 2011-02-05  Bruno Haible  <bruno@clisp.org>
43991         New module 'wcscmp'.
43992         * modules/wcscmp: New file.
43993         * lib/wchar.in.h (wcscmp): New declaration.
43994         * lib/wcscmp.c: New file.
43995         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
43996         * m4/wcscmp.m4: New file.
43997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
43998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
43999         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
44000         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
44001         * doc/posix-functions/wcscmp.texi: Mention the new module.
44003 2011-02-05  Bruno Haible  <bruno@clisp.org>
44005         New module 'wcsncat'.
44006         * modules/wcsncat: New file.
44007         * lib/wchar.in.h (wcsncat): New declaration.
44008         * lib/wcsncat.c: New file.
44009         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
44010         * m4/wcsncat.m4: New file.
44011         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
44012         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
44013         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
44014         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
44015         * doc/posix-functions/wcsncat.texi: Mention the new module.
44017 2011-02-05  Bruno Haible  <bruno@clisp.org>
44019         New module 'wcscat'.
44020         * modules/wcscat: New file.
44021         * lib/wchar.in.h (wcscat): New declaration.
44022         * lib/wcscat.c: New file.
44023         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
44024         * m4/wcscat.m4: New file.
44025         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
44026         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
44027         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
44028         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
44029         * doc/posix-functions/wcscat.texi: Mention the new module.
44031 2011-02-05  Bruno Haible  <bruno@clisp.org>
44033         New module 'wcpncpy'.
44034         * modules/wcpncpy: New file.
44035         * lib/wchar.in.h (wcpncpy): New declaration.
44036         * lib/wcpncpy.c: New file.
44037         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
44038         * m4/wcpncpy.m4: New file.
44039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
44040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
44041         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
44042         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
44043         * doc/posix-functions/wcpncpy.texi: Mention the new module.
44045 2011-02-05  Bruno Haible  <bruno@clisp.org>
44047         New module 'wcsncpy'.
44048         * modules/wcsncpy: New file.
44049         * lib/wchar.in.h (wcsncpy): New declaration.
44050         * lib/wcsncpy.c: New file.
44051         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
44052         * m4/wcsncpy.m4: New file.
44053         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
44054         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
44055         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
44056         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
44057         * doc/posix-functions/wcsncpy.texi: Mention the new module.
44059 2011-02-05  Bruno Haible  <bruno@clisp.org>
44061         New module 'wcpcpy'.
44062         * modules/wcpcpy: New file.
44063         * lib/wchar.in.h (wcpcpy): New declaration.
44064         * lib/wcpcpy.c: New file.
44065         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
44066         * m4/wcpcpy.m4: New file.
44067         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
44068         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
44069         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
44070         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
44071         * doc/posix-functions/wcpcpy.texi: Mention the new module.
44073 2011-02-05  Bruno Haible  <bruno@clisp.org>
44075         New module 'wcscpy'.
44076         * modules/wcscpy: New file.
44077         * lib/wchar.in.h (wcscpy): New declaration.
44078         * lib/wcscpy.c: New file.
44079         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
44080         * m4/wcscpy.m4: New file.
44081         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
44082         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
44083         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
44084         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
44085         * doc/posix-functions/wcscpy.texi: Mention the new module.
44087 2011-02-05  Bruno Haible  <bruno@clisp.org>
44089         New module 'wcsnlen'.
44090         * modules/wcsnlen: New file.
44091         * lib/wchar.in.h (wcsnlen): New declaration.
44092         * lib/wcsnlen.c: New file.
44093         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
44094         * m4/wcsnlen.m4: New file.
44095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
44096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
44097         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
44098         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
44099         * doc/posix-functions/wcsnlen.texi: Mention the new module.
44101 2011-02-05  Bruno Haible  <bruno@clisp.org>
44103         New module 'wcslen'.
44104         * modules/wcslen: New file.
44105         * lib/wchar.in.h (wcslen): New declaration.
44106         * lib/wcslen.c: New file.
44107         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
44108         * m4/wcslen.m4: New file.
44109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
44110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
44111         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
44112         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
44113         * doc/posix-functions/wcslen.texi: Mention the new module.
44115 2011-02-05  Bruno Haible  <bruno@clisp.org>
44117         New module 'wmemset'.
44118         * modules/wmemset: New file.
44119         * lib/wchar.in.h (wmemset): New declaration.
44120         * lib/wmemset.c: New file.
44121         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
44122         * m4/wmemset.m4: New file.
44123         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
44124         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
44125         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
44126         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
44127         * doc/posix-functions/wmemset.texi: Mention the new module.
44129 2011-02-05  Bruno Haible  <bruno@clisp.org>
44131         New module 'wmemmove'.
44132         * modules/wmemmove: New file.
44133         * lib/wchar.in.h (wmemmove): New declaration.
44134         * lib/wmemmove.c: New file.
44135         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
44136         * m4/wmemmove.m4: New file.
44137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
44138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
44139         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
44140         HAVE_WMEMMOVE.
44141         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
44142         * doc/posix-functions/wmemmove.texi: Mention the new module.
44144 2011-02-05  Bruno Haible  <bruno@clisp.org>
44146         New module 'wmemcpy'.
44147         * modules/wmemcpy: New file.
44148         * lib/wchar.in.h (wmemcpy): New declaration.
44149         * lib/wmemcpy.c: New file.
44150         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
44151         * m4/wmemcpy.m4: New file.
44152         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
44153         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
44154         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
44155         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
44156         * doc/posix-functions/wmemcpy.texi: Mention the new module.
44158 2011-02-05  Bruno Haible  <bruno@clisp.org>
44160         New module 'wmemcmp'.
44161         * modules/wmemcmp: New file.
44162         * lib/wchar.in.h (wmemcmp): New declaration.
44163         * lib/wmemcmp.c: New file.
44164         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
44165         * m4/wmemcmp.m4: New file.
44166         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
44167         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
44168         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
44169         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
44170         * doc/posix-functions/wmemcmp.texi: Mention the new module.
44172 2011-02-07  Jim Meyering  <meyering@redhat.com>
44174         di-set, ino-map: new modules, from coreutils
44175         * lib/di-set.c: New file.
44176         * lib/di-set.h: Likewise.
44177         * lib/ino-map.c: Likewise.
44178         * lib/ino-map.h: Likewise.
44179         * modules/di-set: Likewise.
44180         * modules/di-set-tests: Likewise.
44181         * modules/ino-map: Likewise.
44182         * modules/ino-map-tests: Likewise.
44183         * tests/test-di-set.c: Likewise.
44184         * tests/test-ino-map.c: Likewise.
44186 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
44188         getloadavg: merge minor changes from Emacs
44190         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
44191         (getloadavg): Use memset, not bzero.
44193         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
44194         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
44195         clash (bug#86).
44197 2010-11-14  Bruno Haible  <bruno@clisp.org>
44199         Allow multiple gnulib generated replacements to coexist.
44200         * lib/getopt.in.h (struct option): Avoid identical redefinition.
44201         * lib/inttypes.in.h (imaxdiv_t): Likewise.
44202         * lib/langinfo.in.h (nl_item): Likewise.
44203         * lib/math.in.h (_NaN, NAN): Likewise.
44204         * lib/netdb.in.h (struct addrinfo): Likewise.
44205         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
44206         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
44207         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
44208         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
44209         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
44210         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
44211         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
44212         pthread_mutexattr_init, pthread_mutexattr_settype,
44213         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
44214         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
44215         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
44216         pthread_spin_trylock, pthread_spin_unlock): Likewise.
44217         * lib/sched.in.h (struct sched_param): Likewise.
44218         * lib/se-selinux.in.h (security_class_t, security_context_t,
44219         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
44220         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
44221         lsetfilecon, fsetfilecon, security_check_context,
44222         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
44223         Likewise.
44224         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
44225         Likewise.
44226         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
44227         _gl_function_taking_int_returning_void_t, union sigval,
44228         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
44229         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
44230         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
44231         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
44232         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
44233         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
44234         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
44235         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
44236         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
44237         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
44238         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
44239         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
44240         socklen_t, rpl_fd_isset): Likewise.
44241         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
44242         * lib/sys_time.in.h (struct timeval): Likewise.
44243         * lib/sys_times.in.h (struct tms): Likewise.
44244         * lib/sys_utsname.in.h (struct utsname):
44245         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
44246         * lib/unistd.in.h (getpagesize): Likewise.
44247         * lib/wchar.in.h (mbstate_t): Likewise.
44248         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
44249         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
44250         towlower, towupper): Likewise.
44251         Reported by Sam Steingold <sds@gnu.org>.
44253 2011-02-05  Eric Blake  <eblake@redhat.com>
44255         unsetenv: work around Haiku issues
44256         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
44257         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
44259 2010-12-30  Bruce Korb  <bkorb@gnu.org>
44261         libposix: avoid calling error() within libposix
44262         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
44263         is defined.
44265 2011-02-05  Eric Blake  <eblake@redhat.com>
44267         strerror_r-posix: port to cygwin
44268         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
44269         implementation.
44270         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
44271         * tests/test-strerror_r.c (main): Fix test.
44272         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
44273         issue.
44275 2011-02-05  Bruno Haible  <bruno@clisp.org>
44277         New module 'wmemchr'.
44278         * modules/wmemchr: New file.
44279         * lib/wchar.in.h (wmemchr): New declaration.
44280         * lib/wmemchr.c: New file.
44281         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
44282         * m4/wmemchr.m4: New file.
44283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
44284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
44285         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
44286         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
44287         * doc/posix-functions/wmemchr.texi: Mention the new module.
44289 2011-02-04  Eric Blake  <eblake@redhat.com>
44291         fdopendir: detect FreeBSD bug
44292         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
44293         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
44295 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44297         stdbool: do not define HAVE_STDBOOL_H
44298         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
44299         AC_HEADER_STDBOOL.  All uses changed.  Do not define
44300         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
44301         imported from the latest Autoconf git.  It was motivated by Emacs,
44302         which uses gnulib but does not need HAVE_STDBOOL_H.
44304 2011-02-04  Bruno Haible  <bruno@clisp.org>
44306         wcsnrtombs: Prepare for new module wwcsnrtombs.
44307         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
44308         * lib/wcsnrtombs.c: Include it.
44309         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
44311         wcsrtombs: Prepare for new module wwcsrtombs.
44312         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
44313         * lib/wcsrtombs.c: Include it.
44314         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
44316         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
44317         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
44318         * lib/mbsnrtowcs.c: Include it.
44319         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
44321         mbsrtowcs: Prepare for new module mbsrtowwcs.
44322         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
44323         * lib/mbsrtowcs.c: Include it.
44324         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
44326 2011-02-04  Bruno Haible  <bruno@clisp.org>
44328         vasnprintf: Reduce use of malloc for small format strings.
44329         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
44330         (arguments): Add room for the first 7 arguments.
44331         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
44332         (char_directives, u8_directives, u16_directives, u32_directives): Add
44333         room for the first 7 directives.
44334         * lib/printf-parse.c: Include <string.h>.
44335         (PRINTF_PARSE): Change memory handling code so that it uses the first
44336         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
44337         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
44338         Reported by Pádraig Brady <P@draigbrady.com>.
44340 2011-01-31  Eric Blake  <eblake@redhat.com>
44342         dup2: work around Haiku bug
44343         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
44344         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
44345         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44346         * tests/test-dup2.c (main): Enhance test.
44348 2011-01-31  Simon Josefsson  <simon@josefsson.org>
44350         doc: off_t is not available in eglibc 2.11.2 stdio.h.
44351         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
44352         declared by eglibc 2.11.2.
44353         * lib/stdio.in.h: Likewise.
44355 2011-01-31  Eric Blake  <eblake@redhat.com>
44357         ignore-value: add missing test dependency
44358         * tests/test-ignore-value.c: Revert previous change; stdio.h
44359         provides off_t.
44360         * modules/ignore-value-tests (Depends-on): Add missing dependency.
44362 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
44364         mktime: clarify long_int width checking
44365         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
44366         the top level, to make it clearer that the assumption about
44367         long_int width is being checked.  See
44368         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
44370 2011-01-30  Simon Josefsson  <simon@josefsson.org>
44372         ignore-value: Fix self-test.
44373         * tests/test-ignore-value.c: Include sys/types.h for off_t.
44375 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44377         TYPE_MAXIMUM: avoid theoretically undefined behavior
44378         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
44379         negative number, which the C Standard says has undefined behavior.
44380         In practice this is not a problem, but might as well do it by the book.
44381         Reported by Rich Felker and Eric Blake; see
44382         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
44383         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
44384         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
44385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
44386         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
44387         * m4/stdint.m4 (gl_STDINT_H): Likewise.
44388         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
44390         mktime: #undef mktime before #defining it
44391         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
44393         mktime: systematically normalize tm_isdst comparisons
44394         * lib/mktime.c (isdst_differ): New function.
44395         (__mktime_internal): Use it systematically for all isdst comparisons.
44396         This completes the fix for libc BZ #6723, and removes the need for
44397         normalizing tm_isdst.  See
44398         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
44399         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
44401         mktime: fix some integer overflow issues and sidestep the rest
44403         This was prompted by a bug report by Benjamin Lindner for MinGW
44404         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
44405         His bug is due to signed integer overflow (0 - INT_MIN), and I
44406         I scanned through mktime.c looking for other integer overflow
44407         problems, fixing all the bugs I found.
44409         Although the C Standard says the resulting code is still not safe
44410         in the presence of integer overflow, in practice it should be good
44411         enough for all real-world two's-complement implementations, except
44412         for debugging environments that deliberately trap on integer
44413         overflow (e.g., gcc -ftrapv).
44415         * lib/mktime.c (WRAPV): New macro.
44416         (SHR): Also check that long_int and time_t shift right in the
44417         usual way, before using the fast-but-unportable method.
44418         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
44419         used.  The code already assumed two's complement, so there's
44420         no need to test for alternatives.  All uses removed.
44421         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
44422         the C standard.  Problem reported by Rich Felker in
44423         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
44424         (twos_complement_arithmetic): Also check long_int and time_t.
44425         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
44426         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
44427         (__mktime_internal): Avoid integer overflow with unary subtraction
44428         in two instances where -1 - X is an adequate replacement for -X,
44429         since the calculations are approximate.
44431 2011-01-29  Eric Blake  <eblake@redhat.com>
44433         mktime: avoid infinite loop
44434         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
44435         type; behavior is still undefined but portable to all known targets.
44436         Reported by Rich Felker.
44438 2011-01-29  Simon Josefsson  <simon@josefsson.org>
44440         rename, unlink, same-inode: Relicense.
44441         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
44442         * modules/unlink (License): Likewise.
44443         * modules/same-inode (License): Likewise.
44445 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44447         mktime: avoid problems on NetBSD 5 / i386
44448         * lib/mktime.c (long_int): New type.  This works around a problem
44449         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
44450         but time_t is 64 bits, and where I expect the existing code is
44451         wrong in some cases.
44452         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
44453         (ydhms_diff): Bring back the compile-time check for wide-enough
44454         year and yday.
44456         mktime: fix misspelling in comment
44457         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
44458         This merges all recent glibc changes of importance.
44460 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44462         move-if-change: cope with concurrent mv of identical file.
44463         * build-aux/move-if-change (CMPPROG): Accept environment
44464         variable as an override for `cmp'.
44465         (usage): Document CMPPROG.
44466         Adjust comparison to drop stdout.  Cope with failure of mv if
44467         the target file exists and is identical to the source, for
44468         parallel builds.
44469         Report from H.J. Lu against binutils in PR binutils/12283.
44471 2011-01-28  Bruce Korb  <bkorb@gnu.org>
44473         * users.txt: Mention sharutils.
44475 2011-01-28  Simon Josefsson  <simon@josefsson.org>
44477         * users.txt: Mention OATH Toolkit.
44479 2011-01-27  Bruno Haible  <bruno@clisp.org>
44481         Prepare for supporting FreeBSD 10.
44482         * build-aux/config.libpath: Remove handling of freebsd1*.
44484 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
44486         Prepare for supporting FreeBSD 10.
44487         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
44488         match FreeBSD 10.0.
44490 2011-01-27  Bruno Haible  <bruno@clisp.org>
44492         vma-iter, get-rusage-as: Add OpenBSD support.
44493         * modules/vma-iter (configure.ac): Test for mquery.
44494         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
44495         * lib/vma-iter.c: Include <sys/mman.h>.
44496         (vma_iterate): Add an implementation based on mquery().
44497         * lib/resource-ext.h (get_rusage_as): Update comments.
44498         * lib/get-rusage-as.c: Likewise.
44499         * lib/get-rusage-data.c: Likewise.
44501 2011-01-26  Karl Berry  <karl@gnu.org>
44503         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
44504         variables to make it easier to override the makeinfo program used.
44506 2011-01-26  Eric Blake  <eblake@redhat.com>
44508         fcntl: work around Haiku F_DUPFD bugs
44509         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
44510         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
44511         cloexec bit on duplication.
44512         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
44514 2011-01-26  Bruno Haible  <bruno@clisp.org>
44516         Enable memory leak tests on AIX.
44517         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
44518         * tests/test-fprintf-posix3.c (main): Likewise.
44520 2011-01-26  Bruno Haible  <bruno@clisp.org>
44522         Tests for module 'get-rusage-data'.
44523         * modules/get-rusage-data-tests: New file.
44524         * tests/test-get-rusage-data.c: New file.
44526         New module 'get-rusage-data'.
44527         * lib/resource-ext.h (get_rusage_data): New declaration.
44528         * lib/get-rusage-data.c: New file.
44529         * modules/get-rusage-data: New file.
44531 2011-01-25  Bruno Haible  <bruno@clisp.org>
44533         get-rusage-as: Allow for easier testing.
44534         * lib/resource-ext.h (get_rusage_as): Add comment.
44535         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
44536         (main): New function for interactive testing.
44538 2011-01-25  Bruno Haible  <bruno@clisp.org>
44540         vma-iter: Treat Haiku like BeOS.
44541         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
44542         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
44544 2011-01-25  Eric Blake  <eblake@redhat.com>
44546         c-stack: fix regression on cygwin when libsigsegv is present
44547         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
44549 2011-01-24  Bruno Haible  <bruno@clisp.org>
44551         vma-iter: Avoid empty intervals.
44552         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
44553         on an empty interval.
44555 2011-01-24  Jim Meyering  <meyering@redhat.com>
44557         u64: remove unnecessary #include
44558         * lib/u64.h: Don't include <stddef.h>.  It was not used.
44560 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44562         Allow the user to avoid the HAVE_RAW_DECL_* macros.
44563         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
44565 2011-01-23  Bruno Haible  <bruno@clisp.org>
44567         New module 'vma-iter'.
44568         * lib/vma-iter.h: New file.
44569         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
44570         * modules/vma-iter: New file.
44571         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
44572         for get_rusage_as_via_iterator.
44573         (vma_iterate_callback): New function.
44574         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
44575         * modules/get-rusage-as (Depends-on): Add vma-iter.
44577 2011-01-23  Bruno Haible  <bruno@clisp.org>
44579         uninorm: Tweak includes.
44580         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
44581         Reported by Jim Meyering.
44583 2011-01-23  Bruno Haible  <bruno@clisp.org>
44585         get-rusage-as: Improve on NetBSD.
44586         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
44587         /proc, like on FreeBSD.
44589 2011-01-23  Jim Meyering  <meyering@redhat.com>
44591         xreadlink.h: remove unnecessary #include
44592         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
44594         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
44595         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
44597 2011-01-23  Bruno Haible  <bruno@clisp.org>
44599         get-rusage-as: Fix bug.
44600         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
44601         original limit when aborting the first loop.
44603 2011-01-23  Bruno Haible  <bruno@clisp.org>
44605         wctype: Ensure valid C syntax.
44606         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
44607         unconditionally, instead of gl_NEXT_HEADERS conditionally.
44609 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44611         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
44612         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
44613         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
44614         as they are needed only for configure's test case.
44615         This removes two unnecessary symbols from config.h.
44617         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
44618         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
44619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
44620         AC_CHECK_HEADERS_ONCE on a header that we also invoke
44621         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
44622         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
44623         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
44624         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
44625         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
44626         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
44627         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
44628         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
44629         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
44630         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
44631         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
44632         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
44633         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
44634         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
44636 2011-01-21  Eric Blake  <eblake@redhat.com>
44638         maintainer-makefile: work with older git for submodule check
44639         * top/maint.mk (public-submodule-commit): Rewrite to avoid
44640         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
44641         Reported by Matthias Bolte.
44643         bootstrap: minor portability fixes
44644         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
44645         (usage): Omit leading capital and trailing . on help phrases, per
44646         GNU Coding Standards.
44647         (check_versions, top level): Prefix messages with script name.
44649 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
44651         bootstrap: support --no-git option
44652         * build-aux/bootstrap: Add --no-git option, to be used when
44653         --gnulib-srcdir points to the exact desired checkout.
44655 2011-01-21  Eric Blake  <eblake@redhat.com>
44657         strerror_r-posix: work with glibc 2.13
44658         * lib/strerror_r.c (strerror_r): Fix return type.
44660 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44661             Bruno Haible  <bruno@clisp.org>
44663         uN_strstr: New unit tests.
44664         * modules/unistr/u8-strstr-tests: New file.
44665         * modules/unistr/u16-strstr-tests: New file.
44666         * modules/unistr/u32-strstr-tests: New file.
44667         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
44668         * tests/unistr/test-u8-strstr.c: New file.
44669         * tests/unistr/test-u16-strstr.c: New file.
44670         * tests/unistr/test-u32-strstr.c: New file.
44672 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44673             Bruno Haible  <bruno@clisp.org>
44675         Make uN_strstr functions O(n) worst-case.
44676         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
44677         16-bit and 32-bit unit cases, use the unibyte algorithm from
44678         lib/mbsstr.c.
44679         * lib/unistr/u8-strstr.c: Include <string.h>.
44680         (UNIT_IS_UINT8_T): New macro.
44681         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
44682         (U_STRLEN, U_STRNLEN): New macros.
44683         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
44684         (U_STRLEN, U_STRNLEN): New macros.
44685         * modules/unistr/u8-strstr (Depends-on): Add strstr.
44686         (configure.ac): Update required libunistring version.
44687         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
44688         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
44689         malloca.
44690         (configure.ac): Update required libunistring version.
44691         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
44692         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
44693         malloca.
44694         (configure.ac): Update required libunistring version.
44696 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44697             Bruno Haible  <bruno@clisp.org>
44699         Prepare for faster uN_strstr functions.
44700         * lib/str-kmp.h: Support definable UNITs.
44701         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
44702         needle_len argument.
44703         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
44704         * lib/mbscasestr.c (mbscasestr): Likewise.
44706 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44708         malloca-tests: make faster by unsetting MALLOC_PERTURB_
44709         * tests/test-malloca.c (main): Unset the environment variable
44710         to greatly speed up the test.
44711         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
44712         * modules/malloca-tests: Depend on unsetenv.
44714 2011-01-21  Pádraig Brady  <P@draigBrady.com>
44716         ignore-value: remove stdint dependency
44717         * lib/ignore-value.h: Remove <stdint.h>
44718         * modules/ignore-value: Remove stdint dependency.
44720 2011-01-21  Jim Meyering  <meyering@redhat.com>
44722         maint.mk: adjust variable name to be consistent with other gl_ vars
44723         * top/maint.mk (gl_public_submodule_commit): Rename the variable
44724         to be lower case.
44726 2011-01-20  Jim Meyering  <meyering@redhat.com>
44728         maint.mk: make "check" depend on public-submodule-commit by default
44729         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
44731 2011-01-20  Bruno Haible  <bruno@clisp.org>
44733         mbfile, mbiter: Complete change from 2008-12-21.
44734         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
44735         * m4/mbiter.m4 (gl_MBITER): Likewise.
44737 2011-01-20  Jim Meyering  <meyering@redhat.com>
44739         init.sh: insert space between each function name and "()"
44740         * tests/init.sh: Make it a little easier to see that a function's
44741         name is "warn_", and not "warn" when looking at the first part of
44742         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
44744 2011-01-20  Jim Meyering  <meyering@redhat.com>
44746         mountlist: clean up code formatting
44747         * lib/mountlist.c (read_file_system_list): Split a long line,
44748         correct bracing style, use NULL in place of "(struct statfs *)0",
44749         don't parenthesize return value, add spaces around "=" and after
44750         ";-in-for-stmt".
44752 2011-01-14  Markus Duft  <mduft@gentoo.org>
44754         mountlist: add support for Interix
44755         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
44756         Apply statvfs to all entries of /dev/fs.
44757         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
44758         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
44760 2011-01-20  Jim Meyering  <meyering@redhat.com>
44762         maint.mk: improve the public-submodule-commit rule
44763         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
44764         to suppress printing of its commands... unless V=1.
44765         Add git submodule's --quiet option to suppress printing of e.g.,
44766         "Entering gnulib" output.
44767         "cd" into $(srcdir) before running git submodule.
44769 2011-01-20  Bruno Haible  <bruno@clisp.org>
44771         include_next: Fix bug introduced on 2011-01-18.
44772         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
44773         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
44774         ac_cv_header_... variable if the second argument is not 'check'.
44775         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
44776         gl_NEXT_HEADERS_INTERNAL.
44778 2011-01-20  Bruno Haible  <bruno@clisp.org>
44780         Allow the user to avoid the GNULIB_TEST_* macros.
44781         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
44782         Suggested by Paul Eggert.
44784 2011-01-14  Jim Meyering  <meyering@redhat.com>
44786         bootstrap: avoid failure when there is no .gitmodules file
44787         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
44788         has been assigned to, even when its value is the empty string.
44789         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
44790         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
44791         Reported by John W. Eaton <jwe@gnu.org>.
44793 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44795         assume <ctype.h>, ..., <time.h> exist
44796         For years gnulib has been assuming the existence of the headers
44797         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
44798         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
44799         them, since they don't appear to be needed.
44800         * README (Portability guidelines): Document this.
44801         * lib/flock.c: Assume <fcntl.h> exists.
44802         * lib/regex_internal.h: Assume <locale.h> exists.
44803         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
44804         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
44805         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
44806         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
44807         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
44808         * m4/regex.m4 (gl_REGEX): Likewise.
44809         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
44810         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
44811         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
44812         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
44813         * tests/test-argp.c: Likewise.
44814         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
44816         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
44817         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
44818         AA_APPLE_UNIVERSAL_BUILD.  See
44819         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
44820         * NEWS: Document this.
44822 2011-01-19  Eric Blake  <eblake@redhat.com>
44824         c-stack: assume stack overflow if SA_SIGINFO unsupported
44825         * lib/c-stack.c (SIGACTION_WORKS): Rename...
44826         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
44827         sigaction will work.
44828         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
44829         behavior match Linux.
44830         * tests/test-c-stack.c (main): Prefer NULL for pointers.
44832         stdbool-tests: accommodate Haiku
44833         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
44835         binary-io: fix O_TEXT on Haiku
44836         * modules/binary-io (Depends-on): Add fcntl-h.
44837         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
44838         than blindly undefining O_TEXT.
44839         Reported by Scott McCreary.
44841 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44843         include_next: do not check for standard headers like stddef.h
44845         I found this problem when modifying Emacs to use gnulib.
44846         I noticed that it added HAVE_STDDEF_H to config.h, even though
44847         gnulib always assumes <stddef.h> exists as per README and this
44848         symbol is unnecessary.
44849         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
44850         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
44851         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
44852         faster for headers like stddef.h that are known to exist.
44853         (gl_CHECK_NEXT_HEADERS): Use it.
44854         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
44855         rather than gl_CHECK_NEXT_HEADERS.
44856         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
44857         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
44859 2011-01-18  Eric Blake  <eblake@redhat.com>
44861         ansi-c++-opt: skip C++ dependency style if C++ is unused
44862         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
44863         tests when we know C++ compilation is not desired.
44864         Reported by Scott McCreary.
44866 2011-01-18  Bruno Haible  <bruno@clisp.org>
44868         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
44869         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
44870         (main): Perform test also when getrlimit and setrlimit don't exist or
44871         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
44872         limiting the address space size using setrlimit, compare the address
44873         space size before and after the test.
44874         * tests/test-dprintf-posix2.c: Likewise.
44875         * tests/test-fprintf-posix3.sh: Update skip messages.
44876         * tests/test-dprintf-posix2.sh: Likewise.
44877         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
44878         * modules/dprintf-posix-tests (Depends-on): Likewise.
44879         Reported by Bruce Korb <bkorb@gnu.org> and
44880         Gary V. Vaughan <gary@gnu.org>.
44882 2011-01-18  Bruno Haible  <bruno@clisp.org>
44884         get-rusage-as: Improvement for Cygwin.
44885         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
44886         areas that are merely reserved.
44888 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44890         strftime: remove dependencies on multibyte modules
44892         strftime depended on mbrlen, mbsinit, and wchar, but these modules
44893         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
44894         only if __osf__ is defined, and I suspect OSF doesn't need these
44895         other modules.  If my guess is wrong, we'll need to come up with a
44896         variant of strftime that doesn't need the multibyte modules.
44898         I discovered this problem when attempting modify Emacs to use the
44899         strftime module.  With the previous gnulib, this caused Emacs to
44900         need 31 new files, ranging from lib/config.charset to
44901         m4/wint_t.m4.  This was overkill and I expect would be offputting
44902         to the Emacs maintainers.  After this change, only 6 new files are
44903         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
44904         stdbool.m4, and tm_gmtoff.m4.
44906         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
44907         Suggested by Bruno Haible in
44908         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
44909         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
44910         and do not check for wchar.h.
44911         * modules/strftime (Files): Remove m4/mbstate_t.m4.
44912         (Depends-on): Remove mbrlen, mbsinit, wchar.
44914 2011-01-18  Bruno Haible  <bruno@clisp.org>
44916         Tests for module 'get-rusage-as'.
44917         * modules/get-rusage-as-tests: New file.
44918         * tests/test-get-rusage-as.c: New file.
44920         New module 'get-rusage-as'.
44921         * modules/get-rusage-as: New file.
44922         * lib/resource-ext.h: New file.
44923         * lib/get-rusage-as.c: New file.
44925 2011-01-17  Eric Blake  <eblake@redhat.com>
44927         sigaction: relax license from LGPLv3+ to LGPLv2+
44928         * modules/sigaction (License): Relax to LGPLv2+.
44930 2011-01-14  Bruno Haible  <bruno@clisp.org>
44932         filemode: Make function declarations usable in C++ mode.
44933         * lib/filemode.h: Enclose function declarations in extern "C" block.
44934         Reported by John W. Eaton <jwe@gnu.org>.
44936 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
44938         save-cwd: no longer include "xgetcwd.h"
44939         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
44940         This avoids a compilation failure in projects that use save-cwd
44941         without also using the xgetcwd module.
44943 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44945         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
44946         This is so that a program like Emacs, which needs only dtoastr,
44947         does not have to bother with distributing and compiling ftoastr
44948         and ldtoastr.
44949         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
44950         * modules/dtoastr, modules/ldtoastr: New files.
44951         * modules/ftoastr: Now works just for 'float'.
44952         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
44953         (Makefile.am): Remove ftoastr.h (not needed and no effect),
44954         dtoastr.c, ldtoastr.c.
44956 2011-01-11  Jim Meyering  <meyering@redhat.com>
44958         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
44959         There is no need to work around the lack of the fchdir function,
44960         since gnulib can now provide a replacement when required.
44961         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
44962         * modules/save-cwd (Depends-on): Add fchdir.
44964 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
44966         openat, save-cwd: avoid xmalloc
44968         This removes a direct (but undocumented) dependency of openat on
44969         xalloc, along with an indirect dependency via save-cwd.  It also
44970         removes a dependency of save-cwd on xgetcwd, and thereby
44971         indirectly on xalloc.  This change causes the openat substitute
44972         to fall back on save_cwd when memory is tight, and for save_cwd to
44973         fail instead of dying when memory is tight, but that's good enough.
44974         Problem and initial idea for fix reported by Bastien Roucaries in
44975         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
44977         * lib/openat-proc.c: Include stdlib.h (for malloc), not
44978         xalloc.h (for xmalloc).
44979         (openat_proc_name): Use malloc, not xmalloc.
44980         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
44981         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
44983         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
44984         This avoids heap allocation for file names whose lengths are in
44985         the range 512..1023, with the upper bound increasing to at most
44986         4031 depending on the platform's PATH_MAX.  (We do not want
44987         pathmax.h here as it might supply a non-constant PATH_MAX.)
44988         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
44989         Perhaps they should be moved to malloca.h?
44990         (OPENAT_BUFFER_SIZE): Use them.
44992 2011-01-10  Bruno Haible  <bruno@clisp.org>
44994         doc: Update users.txt.
44995         * users.txt: Add recutils.
44997 2011-01-09  Karl Berry  <karl@gnu.org>
44999         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
45001         * doc/configmake.texi: New file.
45002         * doc/gnulib.texi: Include it.
45003         * modules/configmake: Move documentation from here.
45005 2011-01-09  Bruno Haible  <bruno@clisp.org>
45007         Update to Unicode 6.0.0.
45008         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
45009         (get_lbp): Update for Unicode 6.0.0.
45010         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
45011         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
45012         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
45013         U+11001, U+11038..U+11046. Remove U+06DE.
45014         (uc_width): Fix bounds of planes.
45015         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45016         lib/uniwidth/width.c.
45017         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
45018         trailing whitespace removed.
45019         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
45020         without comments, but with the original copyright notice.
45021         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
45022         * lib/unicase/ignorable.h: Likewise.
45023         * lib/unicase/tocasefold.h: Likewise.
45024         * lib/unicase/tolower.h: Likewise.
45025         * lib/unicase/totitle.h: Likewise.
45026         * lib/unicase/toupper.h: Likewise.
45027         * lib/unictype/bidi_of.h: Likewise.
45028         * lib/unictype/blocks.h: Likewise.
45029         * lib/unictype/categ_C.h: Likewise.
45030         * lib/unictype/categ_Cn.h: Likewise.
45031         * lib/unictype/categ_L.h: Likewise.
45032         * lib/unictype/categ_Ll.h: Likewise.
45033         * lib/unictype/categ_Lm.h: Likewise.
45034         * lib/unictype/categ_Lo.h: Likewise.
45035         * lib/unictype/categ_Lu.h: Likewise.
45036         * lib/unictype/categ_M.h: Likewise.
45037         * lib/unictype/categ_Mc.h: Likewise.
45038         * lib/unictype/categ_Me.h: Likewise.
45039         * lib/unictype/categ_Mn.h: Likewise.
45040         * lib/unictype/categ_N.h: Likewise.
45041         * lib/unictype/categ_Nd.h: Likewise.
45042         * lib/unictype/categ_No.h: Likewise.
45043         * lib/unictype/categ_P.h: Likewise.
45044         * lib/unictype/categ_Po.h: Likewise.
45045         * lib/unictype/categ_S.h: Likewise.
45046         * lib/unictype/categ_Sc.h: Likewise.
45047         * lib/unictype/categ_Sk.h: Likewise.
45048         * lib/unictype/categ_Sm.h: Likewise.
45049         * lib/unictype/categ_So.h: Likewise.
45050         * lib/unictype/categ_of.h: Likewise.
45051         * lib/unictype/combining.h: Likewise.
45052         * lib/unictype/ctype_alnum.h: Likewise.
45053         * lib/unictype/ctype_alpha.h: Likewise.
45054         * lib/unictype/ctype_graph.h: Likewise.
45055         * lib/unictype/ctype_lower.h: Likewise.
45056         * lib/unictype/ctype_print.h: Likewise.
45057         * lib/unictype/ctype_punct.h: Likewise.
45058         * lib/unictype/ctype_upper.h: Likewise.
45059         * lib/unictype/decdigit.h: Likewise.
45060         * lib/unictype/digit.h: Likewise.
45061         * lib/unictype/numeric.h: Likewise.
45062         * lib/unictype/pr_alphabetic.h: Likewise.
45063         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45064         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45065         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45066         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45067         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45068         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45069         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45070         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45071         * lib/unictype/pr_case_ignorable.h: Likewise.
45072         * lib/unictype/pr_cased.h: Likewise.
45073         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
45074         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
45075         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
45076         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
45077         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
45078         * lib/unictype/pr_combining.h: Likewise.
45079         * lib/unictype/pr_composite.h: Likewise.
45080         * lib/unictype/pr_currency_symbol.h: Likewise.
45081         * lib/unictype/pr_decimal_digit.h: Likewise.
45082         * lib/unictype/pr_deprecated.h: Likewise.
45083         * lib/unictype/pr_format_control.h: Likewise.
45084         * lib/unictype/pr_grapheme_base.h: Likewise.
45085         * lib/unictype/pr_grapheme_extend.h: Likewise.
45086         * lib/unictype/pr_grapheme_link.h: Likewise.
45087         * lib/unictype/pr_id_continue.h: Likewise.
45088         * lib/unictype/pr_id_start.h: Likewise.
45089         * lib/unictype/pr_ideographic.h: Likewise.
45090         * lib/unictype/pr_lowercase.h: Likewise.
45091         * lib/unictype/pr_math.h: Likewise.
45092         * lib/unictype/pr_numeric.h: Likewise.
45093         * lib/unictype/pr_other_alphabetic.h: Likewise.
45094         * lib/unictype/pr_other_id_continue.h: Likewise.
45095         * lib/unictype/pr_other_math.h: Likewise.
45096         * lib/unictype/pr_punctuation.h: Likewise.
45097         * lib/unictype/pr_sentence_terminal.h: Likewise.
45098         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45099         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45100         * lib/unictype/pr_unified_ideograph.h: Likewise.
45101         * lib/unictype/pr_uppercase.h: Likewise.
45102         * lib/unictype/pr_xid_continue.h: Likewise.
45103         * lib/unictype/pr_xid_start.h: Likewise.
45104         * lib/unictype/scripts.h: Likewise.
45105         * lib/unictype/scripts_byname.gperf: Likewise.
45106         * lib/unictype/sy_java_ident.h: Likewise.
45107         * lib/unigbrk/gbrkprop.h: Likewise.
45108         * lib/unilbrk/lbrkprop1.h: Likewise.
45109         * lib/unilbrk/lbrkprop2.h: Likewise.
45110         * lib/uninorm/decomposition-table2.h: Likewise.
45111         * lib/uniwbrk/wbrkprop.h: Likewise.
45112         * tests/unicase/test-cased.c: Likewise.
45113         * tests/unicase/test-ignorable.c: Likewise.
45114         * tests/unicase/test-uc_tolower.c: Likewise.
45115         * tests/unicase/test-uc_totitle.c: Likewise.
45116         * tests/unicase/test-uc_toupper.c: Likewise.
45117         * tests/unictype/test-categ_C.c: Likewise.
45118         * tests/unictype/test-categ_Cn.c: Likewise.
45119         * tests/unictype/test-categ_L.c: Likewise.
45120         * tests/unictype/test-categ_Ll.c: Likewise.
45121         * tests/unictype/test-categ_Lm.c: Likewise.
45122         * tests/unictype/test-categ_Lo.c: Likewise.
45123         * tests/unictype/test-categ_Lu.c: Likewise.
45124         * tests/unictype/test-categ_M.c: Likewise.
45125         * tests/unictype/test-categ_Mc.c: Likewise.
45126         * tests/unictype/test-categ_Me.c: Likewise.
45127         * tests/unictype/test-categ_Mn.c: Likewise.
45128         * tests/unictype/test-categ_N.c: Likewise.
45129         * tests/unictype/test-categ_Nd.c: Likewise.
45130         * tests/unictype/test-categ_No.c: Likewise.
45131         * tests/unictype/test-categ_P.c: Likewise.
45132         * tests/unictype/test-categ_Po.c: Likewise.
45133         * tests/unictype/test-categ_S.c: Likewise.
45134         * tests/unictype/test-categ_Sc.c: Likewise.
45135         * tests/unictype/test-categ_Sk.c: Likewise.
45136         * tests/unictype/test-categ_Sm.c: Likewise.
45137         * tests/unictype/test-categ_So.c: Likewise.
45138         * tests/unictype/test-ctype_alnum.c: Likewise.
45139         * tests/unictype/test-ctype_alpha.c: Likewise.
45140         * tests/unictype/test-ctype_graph.c: Likewise.
45141         * tests/unictype/test-ctype_lower.c: Likewise.
45142         * tests/unictype/test-ctype_print.c: Likewise.
45143         * tests/unictype/test-ctype_punct.c: Likewise.
45144         * tests/unictype/test-ctype_upper.c: Likewise.
45145         * tests/unictype/test-decdigit.h: Likewise.
45146         * tests/unictype/test-digit.h: Likewise.
45147         * tests/unictype/test-numeric.h: Likewise.
45148         * tests/unictype/test-pr_alphabetic.c: Likewise.
45149         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45150         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
45151         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
45152         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45153         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45154         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45155         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45156         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45157         * tests/unictype/test-pr_case_ignorable.c: Likewise.
45158         * tests/unictype/test-pr_cased.c: Likewise.
45159         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
45160         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
45161         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
45162         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
45163         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
45164         * tests/unictype/test-pr_combining.c: Likewise.
45165         * tests/unictype/test-pr_composite.c: Likewise.
45166         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45167         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45168         * tests/unictype/test-pr_deprecated.c: Likewise.
45169         * tests/unictype/test-pr_format_control.c: Likewise.
45170         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45171         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45172         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45173         * tests/unictype/test-pr_id_continue.c: Likewise.
45174         * tests/unictype/test-pr_id_start.c: Likewise.
45175         * tests/unictype/test-pr_ideographic.c: Likewise.
45176         * tests/unictype/test-pr_lowercase.c: Likewise.
45177         * tests/unictype/test-pr_math.c: Likewise.
45178         * tests/unictype/test-pr_numeric.c: Likewise.
45179         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45180         * tests/unictype/test-pr_other_id_continue.c: Likewise.
45181         * tests/unictype/test-pr_other_math.c: Likewise.
45182         * tests/unictype/test-pr_punctuation.c: Likewise.
45183         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45184         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45185         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45186         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45187         * tests/unictype/test-pr_uppercase.c: Likewise.
45188         * tests/unictype/test-pr_xid_continue.c: Likewise.
45189         * tests/unictype/test-pr_xid_start.c: Likewise.
45190         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45191         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45192         changes.
45193         * lib/unictype/categ_Cc.h: Likewise.
45194         * lib/unictype/categ_Cf.h: Likewise.
45195         * lib/unictype/categ_Co.h: Likewise.
45196         * lib/unictype/categ_Cs.h: Likewise.
45197         * lib/unictype/categ_Lt.h: Likewise.
45198         * lib/unictype/categ_Nl.h: Likewise.
45199         * lib/unictype/categ_Pc.h: Likewise.
45200         * lib/unictype/categ_Pd.h: Likewise.
45201         * lib/unictype/categ_Pe.h: Likewise.
45202         * lib/unictype/categ_Pf.h: Likewise.
45203         * lib/unictype/categ_Pi.h: Likewise.
45204         * lib/unictype/categ_Ps.h: Likewise.
45205         * lib/unictype/categ_Z.h: Likewise.
45206         * lib/unictype/categ_Zl.h: Likewise.
45207         * lib/unictype/categ_Zp.h: Likewise.
45208         * lib/unictype/categ_Zs.h: Likewise.
45209         * lib/unictype/ctype_blank.h: Likewise.
45210         * lib/unictype/ctype_cntrl.h: Likewise.
45211         * lib/unictype/ctype_digit.h: Likewise.
45212         * lib/unictype/ctype_space.h: Likewise.
45213         * lib/unictype/ctype_xdigit.h: Likewise.
45214         * lib/unictype/mirror.h: Likewise.
45215         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45216         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45217         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45218         * lib/unictype/pr_bidi_control.h: Likewise.
45219         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45220         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45221         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45222         * lib/unictype/pr_bidi_pdf.h: Likewise.
45223         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45224         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45225         * lib/unictype/pr_dash.h: Likewise.
45226         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45227         * lib/unictype/pr_diacritic.h: Likewise.
45228         * lib/unictype/pr_extender.h: Likewise.
45229         * lib/unictype/pr_hex_digit.h: Likewise.
45230         * lib/unictype/pr_hyphen.h: Likewise.
45231         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45232         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45233         * lib/unictype/pr_ignorable_control.h: Likewise.
45234         * lib/unictype/pr_iso_control.h: Likewise.
45235         * lib/unictype/pr_join_control.h: Likewise.
45236         * lib/unictype/pr_left_of_pair.h: Likewise.
45237         * lib/unictype/pr_line_separator.h: Likewise.
45238         * lib/unictype/pr_logical_order_exception.h: Likewise.
45239         * lib/unictype/pr_non_break.h: Likewise.
45240         * lib/unictype/pr_not_a_character.h: Likewise.
45241         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45242         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45243         * lib/unictype/pr_other_id_start.h: Likewise.
45244         * lib/unictype/pr_other_lowercase.h: Likewise.
45245         * lib/unictype/pr_other_uppercase.h: Likewise.
45246         * lib/unictype/pr_paired_punctuation.h: Likewise.
45247         * lib/unictype/pr_paragraph_separator.h: Likewise.
45248         * lib/unictype/pr_pattern_syntax.h: Likewise.
45249         * lib/unictype/pr_pattern_white_space.h: Likewise.
45250         * lib/unictype/pr_private_use.h: Likewise.
45251         * lib/unictype/pr_quotation_mark.h: Likewise.
45252         * lib/unictype/pr_radical.h: Likewise.
45253         * lib/unictype/pr_soft_dotted.h: Likewise.
45254         * lib/unictype/pr_space.h: Likewise.
45255         * lib/unictype/pr_titlecase.h: Likewise.
45256         * lib/unictype/pr_variation_selector.h: Likewise.
45257         * lib/unictype/pr_white_space.h: Likewise.
45258         * lib/unictype/pr_zero_width.h: Likewise.
45259         * lib/unictype/sy_c_ident.h: Likewise.
45260         * lib/unictype/sy_c_whitespace.h: Likewise.
45261         * lib/unictype/sy_java_whitespace.h: Likewise.
45262         * lib/uninorm/composition-table.gperf: Likewise.
45263         * lib/uninorm/decomposition-table1.h: Likewise.
45264         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
45265         LB8.
45266         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45267         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45268         * modules/unictype/*: Bump version number of expected libunistring
45269         version.
45271 2011-01-09  Bruno Haible  <bruno@clisp.org>
45273         Update to Unicode 5.2.0.
45274         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
45275         trailing whitespace removed.
45277 2011-01-09  Bruno Haible  <bruno@clisp.org>
45279         New Unicode character properties, from Unicode 5.2.0.
45280         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
45281         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
45282         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
45283         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
45284         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
45285         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
45286         uc_is_property_cased, uc_is_property_case_ignorable,
45287         uc_is_property_changes_when_lowercased,
45288         uc_is_property_changes_when_uppercased,
45289         uc_is_property_changes_when_titlecased,
45290         uc_is_property_changes_when_casefolded,
45291         uc_is_property_changes_when_casemapped): New declarations.
45292         * lib/unictype/pr_byname.gperf: Add the new properties.
45293         * modules/unictype/property-byname (Depends-on): Depend on the new
45294         properties modules.
45295         * modules/unictype/property-all (Depends-on): Likewise.
45296         * MODULES.html.sh (Unicode string functions): Add
45297         unictype/property-case-ignorable, unictype/property-cased,
45298         unictype/property-changes-when-casefolded,
45299         unictype/property-changes-when-casemapped,
45300         unictype/property-changes-when-lowercased,
45301         unictype/property-changes-when-titlecased,
45302         unictype/property-changes-when-uppercased.
45304         New module 'unictype/property-changes-when-casemapped'.
45305         * modules/unictype/property-changes-when-casemapped: New file.
45306         * lib/unictype/pr_changes_when_casemapped.c: New file.
45307         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
45308         generated by gen-uni-tables.
45309         * modules/unictype/property-changes-when-casemapped-tests: New file.
45310         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
45311         automatically generated by gen-uni-tables.
45313         New module 'unictype/property-changes-when-casefolded'.
45314         * modules/unictype/property-changes-when-casefolded: New file.
45315         * lib/unictype/pr_changes_when_casefolded.c: New file.
45316         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
45317         generated by gen-uni-tables.
45318         * modules/unictype/property-changes-when-casefolded-tests: New file.
45319         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
45320         automatically generated by gen-uni-tables.
45322         New module 'unictype/property-changes-when-titlecased'.
45323         * modules/unictype/property-changes-when-titlecased: New file.
45324         * lib/unictype/pr_changes_when_titlecased.c: New file.
45325         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
45326         generated by gen-uni-tables.
45327         * modules/unictype/property-changes-when-titlecased-tests: New file.
45328         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
45329         automatically generated by gen-uni-tables.
45331         New module 'unictype/property-changes-when-uppercased'.
45332         * modules/unictype/property-changes-when-uppercased: New file.
45333         * lib/unictype/pr_changes_when_uppercased.c: New file.
45334         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
45335         generated by gen-uni-tables.
45336         * modules/unictype/property-changes-when-uppercased-tests: New file.
45337         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
45338         automatically generated by gen-uni-tables.
45340         New module 'unictype/property-changes-when-lowercased'.
45341         * modules/unictype/property-changes-when-lowercased: New file.
45342         * lib/unictype/pr_changes_when_lowercased.c: New file.
45343         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
45344         generated by gen-uni-tables.
45345         * modules/unictype/property-changes-when-lowercased-tests: New file.
45346         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
45347         automatically generated by gen-uni-tables.
45349         New module 'unictype/property-case-ignorable'.
45350         * modules/unictype/property-case-ignorable: New file.
45351         * lib/unictype/pr_case_ignorable.c: New file.
45352         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
45353         by gen-uni-tables.
45354         * modules/unictype/property-case-ignorable-tests: New file.
45355         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
45356         generated by gen-uni-tables.
45358         New module 'unictype/property-cased'.
45359         * modules/unictype/property-cased: New file.
45360         * lib/unictype/pr_cased.c: New file.
45361         * lib/unictype/pr_cased.h: New file, automatically generated by
45362         gen-uni-tables.
45363         * modules/unictype/property-cased-tests: New file.
45364         * tests/unictype/test-pr_cased.c: New file, automatically generated by
45365         gen-uni-tables.
45367 2011-01-09  Bruno Haible  <bruno@clisp.org>
45369         Update to Unicode 5.2.0.
45370         * lib/gen-uni-tables.c (output_predicate, output_category,
45371         output_combclass, output_bidi_category, output_decimal_digit_test,
45372         output_decimal_digit, output_digit_test, output_digit,
45373         output_numeric_test, output_numeric, output_mirror, output_scripts,
45374         output_scripts_byname, output_blocks, output_ident_category): Fix
45375         comment header.
45376         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
45377         get_wbp.
45378         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
45379         items.
45380         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
45381         Changes_When_Lowercased, Changes_When_Uppercased,
45382         Changes_When_Titlecased, Changes_When_Casefolded,
45383         Changes_When_Casemapped.
45384         (is_property_alphabetic, is_property_default_ignorable_code_point):
45385         Update for Unicode 5.2.0.
45386         (is_property_cased, is_property_case_ignorable,
45387         is_property_changes_when_lowercased,
45388         is_property_changes_when_uppercased,
45389         is_property_changes_when_titlecased,
45390         is_property_changes_when_casefolded,
45391         is_property_changes_when_casemapped): New functions.
45392         (output_properties): Output also the properties cased, case_ignorable,
45393         changes_when_lowercased, changes_when_uppercased,
45394         changes_when_titlecased, changes_when_casefolded,
45395         changes_when_casemapped.
45396         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
45397         Unicode TR#11 revision 17 -> 19.
45398         (LBP_CP): New enumeration value.
45399         (LBP_*): Adjust values accordingly.
45400         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45401         TR#14 revision 22 -> 24.
45402         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
45403         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
45404         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
45405         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
45406         is_WBP_MIDLETTER.
45407         (output_composition_tables): Allow for 24 bits instead of 16 bits in
45408         the code1 and code2 of each composition rule.
45409         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
45410         * lib/unicase/ignorable.h: Likewise.
45411         * lib/unicase/tocasefold.h: Likewise.
45412         * lib/unicase/tolower.h: Likewise.
45413         * lib/unicase/totitle.h: Likewise.
45414         * lib/unicase/toupper.h: Likewise.
45415         * lib/unictype/bidi_of.h: Likewise.
45416         * lib/unictype/blocks.h: Likewise.
45417         * lib/unictype/categ_C.h: Likewise.
45418         * lib/unictype/categ_Cf.h: Likewise.
45419         * lib/unictype/categ_Cn.h: Likewise.
45420         * lib/unictype/categ_L.h: Likewise.
45421         * lib/unictype/categ_Ll.h: Likewise.
45422         * lib/unictype/categ_Lm.h: Likewise.
45423         * lib/unictype/categ_Lo.h: Likewise.
45424         * lib/unictype/categ_Lu.h: Likewise.
45425         * lib/unictype/categ_M.h: Likewise.
45426         * lib/unictype/categ_Mc.h: Likewise.
45427         * lib/unictype/categ_Mn.h: Likewise.
45428         * lib/unictype/categ_N.h: Likewise.
45429         * lib/unictype/categ_Nd.h: Likewise.
45430         * lib/unictype/categ_Nl.h: Likewise.
45431         * lib/unictype/categ_No.h: Likewise.
45432         * lib/unictype/categ_P.h: Likewise.
45433         * lib/unictype/categ_Pd.h: Likewise.
45434         * lib/unictype/categ_Po.h: Likewise.
45435         * lib/unictype/categ_S.h: Likewise.
45436         * lib/unictype/categ_Sc.h: Likewise.
45437         * lib/unictype/categ_So.h: Likewise.
45438         * lib/unictype/categ_of.h: Likewise.
45439         * lib/unictype/combining.h: Likewise.
45440         * lib/unictype/ctype_alnum.h: Likewise.
45441         * lib/unictype/ctype_alpha.h: Likewise.
45442         * lib/unictype/ctype_graph.h: Likewise.
45443         * lib/unictype/ctype_lower.h: Likewise.
45444         * lib/unictype/ctype_print.h: Likewise.
45445         * lib/unictype/ctype_punct.h: Likewise.
45446         * lib/unictype/ctype_upper.h: Likewise.
45447         * lib/unictype/decdigit.h: Likewise.
45448         * lib/unictype/digit.h: Likewise.
45449         * lib/unictype/numeric.h: Likewise.
45450         * lib/unictype/pr_alphabetic.h: Likewise.
45451         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
45452         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
45453         * lib/unictype/pr_bidi_european_digit.h: Likewise.
45454         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
45455         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
45456         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
45457         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
45458         * lib/unictype/pr_combining.h: Likewise.
45459         * lib/unictype/pr_composite.h: Likewise.
45460         * lib/unictype/pr_currency_symbol.h: Likewise.
45461         * lib/unictype/pr_dash.h: Likewise.
45462         * lib/unictype/pr_decimal_digit.h: Likewise.
45463         * lib/unictype/pr_deprecated.h: Likewise.
45464         * lib/unictype/pr_diacritic.h: Likewise.
45465         * lib/unictype/pr_extender.h: Likewise.
45466         * lib/unictype/pr_grapheme_base.h: Likewise.
45467         * lib/unictype/pr_grapheme_extend.h: Likewise.
45468         * lib/unictype/pr_grapheme_link.h: Likewise.
45469         * lib/unictype/pr_id_continue.h: Likewise.
45470         * lib/unictype/pr_id_start.h: Likewise.
45471         * lib/unictype/pr_ideographic.h: Likewise.
45472         * lib/unictype/pr_ignorable_control.h: Likewise.
45473         * lib/unictype/pr_logical_order_exception.h: Likewise.
45474         * lib/unictype/pr_lowercase.h: Likewise.
45475         * lib/unictype/pr_numeric.h: Likewise.
45476         * lib/unictype/pr_other_alphabetic.h: Likewise.
45477         * lib/unictype/pr_punctuation.h: Likewise.
45478         * lib/unictype/pr_sentence_terminal.h: Likewise.
45479         * lib/unictype/pr_terminal_punctuation.h: Likewise.
45480         * lib/unictype/pr_unassigned_code_value.h: Likewise.
45481         * lib/unictype/pr_unified_ideograph.h: Likewise.
45482         * lib/unictype/pr_uppercase.h: Likewise.
45483         * lib/unictype/pr_xid_continue.h: Likewise.
45484         * lib/unictype/pr_xid_start.h: Likewise.
45485         * lib/unictype/pr_zero_width.h: Likewise.
45486         * lib/unictype/scripts.h: Likewise.
45487         * lib/unictype/scripts_byname.gperf: Likewise.
45488         * lib/unictype/sy_java_ident.h: Likewise.
45489         * lib/unigbrk/gbrkprop.h: Likewise.
45490         * lib/unilbrk/lbrkprop1.h: Likewise.
45491         * lib/unilbrk/lbrkprop2.h: Likewise.
45492         * lib/unilbrk/lbrktables.h: Likewise.
45493         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
45494         LBP_CP. Implement rule LB30.
45495         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
45496         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
45497         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
45498         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
45499         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
45500         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
45501         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
45502         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
45503         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
45504         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
45505         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
45506         bits instead of 16 bits in the code1 and code2 of each composition
45507         rule.
45508         (uc_composition): Update for Unicode 5.2.0.
45509         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
45510         * lib/uninorm/decomposition-table2.h: Likewise.
45511         * lib/uniwbrk/wbrkprop.h: Likewise.
45512         * tests/unicase/test-cased.c: Likewise.
45513         * tests/unicase/test-ignorable.c: Likewise.
45514         * tests/unicase/test-uc_tolower.c: Likewise.
45515         * tests/unicase/test-uc_totitle.c: Likewise.
45516         * tests/unicase/test-uc_toupper.c: Likewise.
45517         * tests/unictype/test-categ_C.c: Likewise.
45518         * tests/unictype/test-categ_Cf.c: Likewise.
45519         * tests/unictype/test-categ_Cn.c: Likewise.
45520         * tests/unictype/test-categ_L.c: Likewise.
45521         * tests/unictype/test-categ_Ll.c: Likewise.
45522         * tests/unictype/test-categ_Lm.c: Likewise.
45523         * tests/unictype/test-categ_Lo.c: Likewise.
45524         * tests/unictype/test-categ_Lu.c: Likewise.
45525         * tests/unictype/test-categ_M.c: Likewise.
45526         * tests/unictype/test-categ_Mc.c: Likewise.
45527         * tests/unictype/test-categ_Mn.c: Likewise.
45528         * tests/unictype/test-categ_N.c: Likewise.
45529         * tests/unictype/test-categ_Nd.c: Likewise.
45530         * tests/unictype/test-categ_Nl.c: Likewise.
45531         * tests/unictype/test-categ_No.c: Likewise.
45532         * tests/unictype/test-categ_P.c: Likewise.
45533         * tests/unictype/test-categ_Pd.c: Likewise.
45534         * tests/unictype/test-categ_Po.c: Likewise.
45535         * tests/unictype/test-categ_S.c: Likewise.
45536         * tests/unictype/test-categ_Sc.c: Likewise.
45537         * tests/unictype/test-categ_So.c: Likewise.
45538         * tests/unictype/test-ctype_alnum.c: Likewise.
45539         * tests/unictype/test-ctype_alpha.c: Likewise.
45540         * tests/unictype/test-ctype_graph.c: Likewise.
45541         * tests/unictype/test-ctype_lower.c: Likewise.
45542         * tests/unictype/test-ctype_print.c: Likewise.
45543         * tests/unictype/test-ctype_punct.c: Likewise.
45544         * tests/unictype/test-ctype_upper.c: Likewise.
45545         * tests/unictype/test-decdigit.h: Likewise.
45546         * tests/unictype/test-digit.h: Likewise.
45547         * tests/unictype/test-numeric.h: Likewise.
45548         * tests/unictype/test-pr_alphabetic.c: Likewise.
45549         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
45550         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
45551         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
45552         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
45553         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
45554         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
45555         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
45556         * tests/unictype/test-pr_combining.c: Likewise.
45557         * tests/unictype/test-pr_composite.c: Likewise.
45558         * tests/unictype/test-pr_currency_symbol.c: Likewise.
45559         * tests/unictype/test-pr_dash.c: Likewise.
45560         * tests/unictype/test-pr_decimal_digit.c: Likewise.
45561         * tests/unictype/test-pr_deprecated.c: Likewise.
45562         * tests/unictype/test-pr_diacritic.c: Likewise.
45563         * tests/unictype/test-pr_extender.c: Likewise.
45564         * tests/unictype/test-pr_grapheme_base.c: Likewise.
45565         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
45566         * tests/unictype/test-pr_grapheme_link.c: Likewise.
45567         * tests/unictype/test-pr_id_continue.c: Likewise.
45568         * tests/unictype/test-pr_id_start.c: Likewise.
45569         * tests/unictype/test-pr_ideographic.c: Likewise.
45570         * tests/unictype/test-pr_ignorable_control.c: Likewise.
45571         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
45572         * tests/unictype/test-pr_lowercase.c: Likewise.
45573         * tests/unictype/test-pr_numeric.c: Likewise.
45574         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
45575         * tests/unictype/test-pr_punctuation.c: Likewise.
45576         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
45577         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
45578         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
45579         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
45580         * tests/unictype/test-pr_uppercase.c: Likewise.
45581         * tests/unictype/test-pr_xid_continue.c: Likewise.
45582         * tests/unictype/test-pr_xid_start.c: Likewise.
45583         * tests/unictype/test-pr_zero_width.c: Likewise.
45584         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
45585         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
45586         changed behaviour: line breaking is now disallowed between a letter
45587         or '=' and '('.
45588         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45589         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45590         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45591         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
45592         * tests/uniwidth/test-uc_width2.sh: Same updates as in
45593         lib/uniwidth/width.c.
45594         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
45595         without comments, but with the original copyright notice.
45596         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
45597         changes.
45598         * lib/unictype/categ_Cc.h: Likewise.
45599         * lib/unictype/categ_Co.h: Likewise.
45600         * lib/unictype/categ_Cs.h: Likewise.
45601         * lib/unictype/categ_Lt.h: Likewise.
45602         * lib/unictype/categ_Me.h: Likewise.
45603         * lib/unictype/categ_Pc.h: Likewise.
45604         * lib/unictype/categ_Pe.h: Likewise.
45605         * lib/unictype/categ_Pf.h: Likewise.
45606         * lib/unictype/categ_Pi.h: Likewise.
45607         * lib/unictype/categ_Ps.h: Likewise.
45608         * lib/unictype/categ_Sk.h: Likewise.
45609         * lib/unictype/categ_Sm.h: Likewise.
45610         * lib/unictype/categ_Z.h: Likewise.
45611         * lib/unictype/categ_Zl.h: Likewise.
45612         * lib/unictype/categ_Zp.h: Likewise.
45613         * lib/unictype/categ_Zs.h: Likewise.
45614         * lib/unictype/ctype_blank.h: Likewise.
45615         * lib/unictype/ctype_cntrl.h: Likewise.
45616         * lib/unictype/ctype_digit.h: Likewise.
45617         * lib/unictype/ctype_space.h: Likewise.
45618         * lib/unictype/ctype_xdigit.h: Likewise.
45619         * lib/unictype/mirror.h: Likewise.
45620         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
45621         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
45622         * lib/unictype/pr_bidi_block_separator.h: Likewise.
45623         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
45624         * lib/unictype/pr_bidi_common_separator.h: Likewise.
45625         * lib/unictype/pr_bidi_control.h: Likewise.
45626         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
45627         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
45628         * lib/unictype/pr_bidi_pdf.h: Likewise.
45629         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
45630         * lib/unictype/pr_bidi_whitespace.h: Likewise.
45631         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
45632         * lib/unictype/pr_format_control.h: Likewise.
45633         * lib/unictype/pr_hex_digit.h: Likewise.
45634         * lib/unictype/pr_hyphen.h: Likewise.
45635         * lib/unictype/pr_ids_binary_operator.h: Likewise.
45636         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
45637         * lib/unictype/pr_iso_control.h: Likewise.
45638         * lib/unictype/pr_join_control.h: Likewise.
45639         * lib/unictype/pr_left_of_pair.h: Likewise.
45640         * lib/unictype/pr_line_separator.h: Likewise.
45641         * lib/unictype/pr_math.h: Likewise.
45642         * lib/unictype/pr_non_break.h: Likewise.
45643         * lib/unictype/pr_not_a_character.h: Likewise.
45644         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
45645         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
45646         * lib/unictype/pr_other_id_continue.h: Likewise.
45647         * lib/unictype/pr_other_id_start.h: Likewise.
45648         * lib/unictype/pr_other_lowercase.h: Likewise.
45649         * lib/unictype/pr_other_math.h: Likewise.
45650         * lib/unictype/pr_other_uppercase.h: Likewise.
45651         * lib/unictype/pr_paired_punctuation.h: Likewise.
45652         * lib/unictype/pr_paragraph_separator.h: Likewise.
45653         * lib/unictype/pr_pattern_syntax.h: Likewise.
45654         * lib/unictype/pr_pattern_white_space.h: Likewise.
45655         * lib/unictype/pr_private_use.h: Likewise.
45656         * lib/unictype/pr_quotation_mark.h: Likewise.
45657         * lib/unictype/pr_radical.h: Likewise.
45658         * lib/unictype/pr_soft_dotted.h: Likewise.
45659         * lib/unictype/pr_space.h: Likewise.
45660         * lib/unictype/pr_titlecase.h: Likewise.
45661         * lib/unictype/pr_variation_selector.h: Likewise.
45662         * lib/unictype/pr_white_space.h: Likewise.
45663         * lib/unictype/sy_c_ident.h: Likewise.
45664         * lib/unictype/sy_c_whitespace.h: Likewise.
45665         * lib/unictype/sy_java_whitespace.h: Likewise.
45666         * modules/uni*/*: Bump version number of expected libunistring version.
45667         Reported by Simon Josefsson.
45669 2011-01-09  Karl Heuer  <kwzh@gnu.org>
45671         useless-if-before-free: fix typo in --help and make the internal,
45672         automatic version date update process work once again.
45673         --help output contained a NUL character instead of the
45674         backslash-zero that was intended.  Also, the "must lie within
45675         the first 8 lines" line is on line 9, and hence not getting
45676         automatically updated.
45677         * build-aux/useless-if-before-free: Fix the former by adding a
45678         backslash, and the latter by condensing the three lines of what-it-does
45679         to a single line, leaving one line of slack for the future.
45681 2011-01-09  Bruno Haible  <bruno@clisp.org>
45683         uniwidth/width: Fix width of U+1D173..U+1D17A.
45684         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
45685         symbolic_width, output_width_property_test): New functions.
45686         (main): Invoke output_nonspacing_property, output_width_property_test.
45687         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
45688         U+1D173..U+1D17A.
45689         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
45690         1.
45691         * modules/uniwidth/*: Bump version number of expected libunistring
45692         version.
45693         * modules/unilbrk/*: Likewise.
45695 2011-01-08  Bruno Haible  <bruno@clisp.org>
45697         uninorm tests: Preserve copyright of Unicode data file.
45698         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
45699         Mention modifications.
45701 2011-01-08  Bruno Haible  <bruno@clisp.org>
45703         gen-uni-tables: Prepare for Unicode 5.2.0.
45704         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
45705         (debug_output_lbp, output_lbp): Update.
45707 2011-01-08  Bruno Haible  <bruno@clisp.org>
45709         unilbrk: Clarify gen-uni-tables.c code.
45710         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
45711         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
45712         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
45714 2011-01-07  Bruno Haible  <bruno@clisp.org>
45716         strtod: Restore errno when successfully parsing Infinity or NaN.
45717         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
45718         restore the original errno.
45720 2011-01-07  Bruno Haible  <bruno@clisp.org>
45722         remove test: Avoid failure on HP-UX 11.
45723         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
45725 2011-01-07  Bruno Haible  <bruno@clisp.org>
45727         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
45728         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
45729         error code.
45731 2011-01-07  Pádraig Brady  <P@draigBrady.com>
45733         ignore-value: fixup comments, and add Eric Blake
45734         as an author since he rewrote the macros.
45735         * lib/ignore-value.h (ignore_value):  State that
45736         we now support aggregates.  Also specify exactly
45737         when the GCC warn_unused_result feature was added.
45739 2011-01-06  Eric Blake  <eblake@redhat.com>
45741         ignore-value: support aggregate types
45742         * lib/ignore-value.h (ignore_value): Provide separate gcc
45743         definition.
45744         * modules/ignore-value-tests: New test module.
45745         * tests/test-ignore-value.c: New test.
45747         maint.mk: improve sc_prohibit_strcmp regex
45748         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
45749         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
45750         definition of STRNEQ.
45752         signal: work around Haiku issue with SIGBUS
45753         * lib/siglist.h: Add comment.
45754         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
45755         strsignal's favoring of SIGSEGV.
45756         * tests/test-signal.c (main): Avoid test failure.
45757         * doc/posix-headers/signal.texi (signal.h): Document the issue.
45758         Reported by Scott McCreary.
45760         maint.mk: add pre-release check to ensure submodule commits are public
45761         * top/maint.mk (public-submodule-commit): New rule.
45762         (submodule-checks): New variable.
45763         (alpha beta stable): Depend on the variable.
45765 2011-01-05  Pádraig Brady  <P@draigBrady.com>
45766         and Jim Meyering  <meyering@redhat.com>
45768         ignore-value: make ignore_value more generic; deprecate ignore_ptr
45769         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
45770         (ATTRIBUTE_DEPRECATED): Define.
45771         (_ignore_case): New function.
45772         (ignore_value): New macro, to replace the old function.
45773         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
45774         * modules/ignore-value (Depends-on): Add stdint.
45776 2011-01-04  Eric Blake  <eblake@redhat.com>
45778         doc: regenerate INSTALL
45779         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
45780         @firstparagraphindent support, now that autoconf dropped it.
45781         (INSTALL_PRELUDE): Reinstate old macro.
45782         * doc/install.texi: Resync from autoconf.
45783         * doc/INSTALL: Reflect recent autoconf update.
45784         * doc/INSTALL.ISO: Likewise.
45785         * doc/INSTALL.UTF-8: Likewise.
45786         Reported by Karl Berry.
45788 2011-01-04  Bruce Korb  <address@hidden>
45790         git-version-gen: avoid a sub-shell
45791         * build-aux/git-version-gen: Redirect stderr in `...` via
45792         "exec 2>...", rather than via an added sub-shell.
45794 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
45796         git-version-gen: use (...) rather than sh -c '...'
45797         * build-aux/git-version-gen: Rather than hard-coding a shell's name
45798         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
45800 2011-01-03  Jim Meyering  <meyering@redhat.com>
45802         git-version-gen: convert leading TABs to spaces
45803         * build-aux/git-version-gen: Expand leading TABs.
45805         git-version-gen: handle failed "git rev-list"
45806         * build-aux/git-version-gen: Rather than leaking a "fatal" error
45807         from git and proceeding as if it had succeeded but printed no SHA1
45808         checksums, suppress the diagnostic and handle the failure.
45809         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
45811         git-version-gen: include command name in one more diagnostic
45812         * build-aux/git-version-gen: When the required .tarball-version file
45813         was missing or unreadable, you might see the diagnostic from "cat",
45814         but no trace of the name of the invoking script.  Now, you still see
45815         the diagnostic from cat, but also get one from "git-version-gen: ".
45816         Inspired by a patch from Bruce Korb.
45818         update-copyright: adjust test to match changed code
45819         * tests/test-update-copyright.sh: Change test's expected output
45820         to match new actual output.
45822 2011-01-02  Bruno Haible  <bruno@clisp.org>
45824         getlogin_r: Avoid test failure on HP-UX 11.
45825         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
45826         ERANGE when the second argument is zero.
45827         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
45828         portability problem.
45830 2011-01-02  Bruce Korb  <bkorb@gnu.org>
45832         * build-aux/update-copyright: doc Simon's changes
45834 2011-01-02  Simon Josefsson  <simon@josefsson.org>
45836         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
45837         environment variable.
45839 2011-01-02  Bruno Haible  <bruno@clisp.org>
45841         unigbrk: Avoid gcc warnings.
45842         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
45843         unused variable.
45844         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
45845         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
45846         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
45847         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
45848         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
45849         Change type of first argument to 'const char *'.
45850         (main): Remove unused variable.
45851         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
45852         type of first argument to 'const char *'.
45853         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
45854         Likewise.
45855         (main): Change type of variable 's'.
45856         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
45857         to 'int'.
45859 2011-01-02  Bruno Haible  <bruno@clisp.org>
45861         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
45862         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
45863         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
45864         bug.
45865         * lib/pwrite.c: Undo 2010-12-31 patch.
45866         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
45868 2011-01-02  Bruno Haible  <bruno@clisp.org>
45870         pread: Fix test whether it works.
45871         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
45873 2011-01-02  Bruno Haible  <bruno@clisp.org>
45875         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
45876         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
45877         ends in "6". Don't require a specific month name. Try also the locale
45878         names found on HP-UX 11 and Solaris 7.
45880 2011-01-02  Bruno Haible  <bruno@clisp.org>
45882         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
45883         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
45884         C linkage.
45885         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
45887 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45889         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
45890         for consistency, since the "cluster" term is not used elsewhere.
45891         * lib/unigbrk.in.h: Update name.
45892         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
45893         * lib/unigbrk/u16-grapheme-next.c: Update name.
45894         * lib/unigbrk/u16-grapheme-prev.c: Update name.
45895         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
45896         * lib/unigbrk/u32-grapheme-next.c: Update name.
45897         * lib/unigbrk/u32-grapheme-prev.c: Update name.
45898         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
45899         * lib/unigbrk/u8-grapheme-next.c: Update name.
45900         * lib/unigbrk/u8-grapheme-prev.c: Update name.
45901         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
45902         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
45903         Suggested by Bruno Haible.
45905 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45907         Remove module 'u8-grapheme-len' as too redundant with
45908         'u8-grapheme-next'.
45909         * modules/unigbrk/u8-grapheme-len: Delete file.
45910         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
45911         * lib/unigbrk.in.h: Remove prototype for deleted function.
45912         * lib/unigbrk/u8-grapheme-len.c: Delete file.
45913         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
45915         Remove module 'u16-grapheme-len' as too redundant with
45916         'u16-grapheme-next'.
45917         * modules/unigbrk/u16-grapheme-len: Delete file.
45918         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
45919         * lib/unigbrk.in.h: Remove prototype for deleted function.
45920         * lib/unigbrk/u16-grapheme-len.c: Delete file.
45921         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
45923         Remove module 'u32-grapheme-len' as too redundant with
45924         'u32-grapheme-next'.
45925         * modules/unigbrk/u32-grapheme-len: Delete file.
45926         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
45927         * lib/unigbrk.in.h: Remove prototype for deleted function.
45928         * lib/unigbrk/u32-grapheme-len.c: Delete file.
45929         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
45931         Suggested by Bruno Haible.
45933 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
45935         * unigbrk.in.h: Fix typo: "ben" => "been".
45936         Reported by Bruno Haible.
45938 2011-01-01  Jim Meyering  <meyering@redhat.com>
45940         maint: update almost all copyright ranges to include 2011
45941         Run the new "make update-copyright" rule.
45943 2011-01-01  Jim Meyering  <meyering@redhat.com>
45945         maint: update-copyright: exempt doc/INSTALL*
45946         * Makefile (update-copyright): Also exclude doc/INSTALL*,
45947         since they are generated.  Suggested by Bruno Haible.
45949 2011-01-01  Jim Meyering  <meyering@redhat.com>
45951         maint: refine the update-copyright rule
45952         * Makefile (update-copyright): Also exclude any file that includes
45953         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
45954         code that merely generates the comment.
45956 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
45958         New module 'u8-grapheme-len'.
45959         * modules/unigbrk/u8-grapheme-len: New file.
45960         * modules/unigbrk/u8-grapheme-len-tests: New file.
45961         * lib/unigbrk.in.h: Add prototype for new function.
45962         * lib/unigbrk/u8-grapheme-len.c: New file.
45963         * tests/unigbrk/test-u8-grapheme-len.c: New file.
45965         New module 'u16-grapheme-len'.
45966         * modules/unigbrk/u16-grapheme-len: New file.
45967         * modules/unigbrk/u16-grapheme-len-tests: New file.
45968         * lib/unigbrk.in.h: Add prototype for new function.
45969         * lib/unigbrk/u16-grapheme-len.c: New file.
45970         * tests/unigbrk/test-u16-grapheme-len.c: New file.
45972         New module 'u32-grapheme-len'.
45973         * modules/unigbrk/u32-grapheme-len: New file.
45974         * modules/unigbrk/u32-grapheme-len-tests: New file.
45975         * lib/unigbrk.in.h: Add prototype for new function.
45976         * lib/unigbrk/u32-grapheme-len.c: New file.
45977         * tests/unigbrk/test-u32-grapheme-len.c: New file.
45979         New module 'u8-grapheme-next'.
45980         * modules/unigbrk/u8-grapheme-next: New file.
45981         * modules/unigbrk/u8-grapheme-next-tests: New file.
45982         * lib/unigbrk.in.h: Add prototype for new function.
45983         * lib/unigbrk/u8-grapheme-next.c: New file.
45984         * tests/unigbrk/test-u8-grapheme-next.c: New file.
45986         New module 'u16-grapheme-next'.
45987         * modules/unigbrk/u16-grapheme-next: New file.
45988         * modules/unigbrk/u16-grapheme-next-tests: New file.
45989         * lib/unigbrk.in.h: Add prototype for new function.
45990         * lib/unigbrk/u16-grapheme-next.c: New file.
45991         * tests/unigbrk/test-u16-grapheme-next.c: New file.
45993         New module 'u32-grapheme-next'.
45994         * modules/unigbrk/u32-grapheme-next: New file.
45995         * modules/unigbrk/u32-grapheme-next-tests: New file.
45996         * lib/unigbrk.in.h: Add prototype for new function.
45997         * lib/unigbrk/u32-grapheme-next.c: New file.
45998         * tests/unigbrk/test-u32-grapheme-next.c: New file.
46000         New module 'u8-grapheme-prev'.
46001         * modules/unigbrk/u8-grapheme-prev: New file.
46002         * modules/unigbrk/u8-grapheme-prev-tests: New file.
46003         * lib/unigbrk.in.h: Add prototype for new function.
46004         * lib/unigbrk/u8-grapheme-prev.c: New file.
46005         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
46007         New module 'u16-grapheme-prev'.
46008         * modules/unigbrk/u16-grapheme-prev: New file.
46009         * modules/unigbrk/u16-grapheme-prev-tests: New file.
46010         * lib/unigbrk.in.h: Add prototype for new function.
46011         * lib/unigbrk/u16-grapheme-prev.c: New file.
46012         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
46014         New module 'u32-grapheme-prev'.
46015         * modules/unigbrk/u32-grapheme-prev: New file.
46016         * modules/unigbrk/u32-grapheme-prev-tests: New file.
46017         * lib/unigbrk.in.h: Add prototype for new function.
46018         * lib/unigbrk/u32-grapheme-prev.c: New file.
46019         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
46021         New module 'u8-grapheme-breaks'.
46022         * modules/unigbrk/u8-grapheme-breaks: New file.
46023         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
46024         * lib/unigbrk.in.h: Add prototype for new function.
46025         * lib/unigbrk/u8-grapheme-breaks.c: New file.
46026         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
46028         New module 'u16-grapheme-breaks'.
46029         * modules/unigbrk/u16-grapheme-breaks: New file.
46030         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
46031         * lib/unigbrk.in.h: Add prototype for new function.
46032         * lib/unigbrk/u16-grapheme-breaks.c: New file.
46033         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
46035         New module 'u32-grapheme-breaks'.
46036         * modules/unigbrk/u32-grapheme-breaks: New file.
46037         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
46038         * lib/unigbrk.in.h: Add prototype for new function.
46039         * lib/unigbrk/u32-grapheme-breaks.c: New file.
46040         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
46042         New module 'ulc-grapheme-breaks'.
46043         * modules/unigbrk/ulc-grapheme-breaks: New file.
46044         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
46045         * m4/locale-ar.m4: New file.
46046         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
46047         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
46048         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
46050 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
46052         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
46053         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
46054         modified how this file was generated before I initially submitted
46055         the module, but failed to regenerate it.  This meant that several
46056         of the level2 entries were wrong.
46057         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
46058         Remove the division-by-2 that is folded into the table now that
46059         gbrkprop.h has been regenerated properly.  Now -1 entries are
46060         handled correctly.
46062         New module 'unigbrk/uc-gbrk-prop-tests'.
46063         * modules/unigbrk/uc-gbrk-prop-tests: New file.
46064         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
46065         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
46066         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
46068 2011-01-01  Bruno Haible  <bruno@clisp.org>
46070         Avoid use of hexadecimal escapes.
46071         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
46072         instead of hexadecimal escapes.
46074 2011-01-01  Jim Meyering  <meyering@redhat.com>
46076         maint: new rule to update copyright year ranges
46077         * Makefile (update-copyright): New rule.
46079         maint: indent with TABs in Makefile
46080         * Makefile: Expand leading sequences of spaces to TABs
46082         version-etc: update the copyright year it reports
46083         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
46085 2010-12-31  Bruno Haible  <bruno@clisp.org>
46087         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
46088         * lib/isfinite.c (zerof, zerod, zerol): New variables.
46089         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
46090         zero.
46092 2010-12-31  Bruno Haible  <bruno@clisp.org>
46094         pwrite: Work around HP-UX 11.11 bug.
46095         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
46096         works and set REPLACE_PWRITE if not.
46097         * lib/pwrite.c (pwrite): Add an implementation that uses the system
46098         function.
46099         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
46101 2010-12-31  Bruno Haible  <bruno@clisp.org>
46103         pread: Work around HP-UX 11 bugs.
46104         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
46105         and set REPLACE_PREAD if not.
46106         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
46108 2010-12-31  Eric Blake  <eblake@redhat.com>
46110         nl_langinfo: fix YESEXPR on Irix 6.5
46111         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
46112         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
46113         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
46114         it.
46116 2010-12-31  Bruno Haible  <bruno@clisp.org>
46118         iconv: Document HP-UX 11 bug.
46119         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
46121 2010-12-31  Bruno Haible  <bruno@clisp.org>
46123         ldexpl: Fix link error on HP-UX 11.
46124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
46125         LDEXPL_LIBM, using $ISNANL_LIBM.
46127 2010-12-31  Eric Blake  <eblake@redhat.com>
46129         ftello: avoid compilation failure with SunStudio c89
46130         * lib/ftello.c (ftello): Use lseek, not llseek.
46132         tests: avoid failing coreutils tests on cygwin
46133         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
46134         (create_exe_shims_): Return 0 when skipping.
46136 2010-12-31  Bruno Haible  <bruno@clisp.org>
46138         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
46139         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
46141 2010-12-31  Bruno Haible  <bruno@clisp.org>
46143         waitpid: Fix link error in C++ mode.
46144         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
46146 2010-12-31  Bruno Haible  <bruno@clisp.org>
46148         isnan: Use GCC built-ins when possible.
46149         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
46150         __builtin_isnan.
46151         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
46152         (isnan): Define using GCC built-ins for GCC >= 4.0.
46154 2010-12-31  Bruno Haible  <bruno@clisp.org>
46156         isnand: Fix mistake.
46157         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
46158         __builtin_isnand.
46160 2010-12-31  Bruno Haible  <bruno@clisp.org>
46162         open: Avoid C++ error on HP-UX 11.
46163         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
46165 2010-12-31  Bruno Haible  <bruno@clisp.org>
46167         time_r: Add missing declarations on HP-UX 11.
46168         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
46169         instead of HAVE_LOCALTIME_R.
46170         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
46171         HAVE_LOCALTIME_R always.
46172         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
46173         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
46174         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
46175         HAVE_LOCALTIME_R.
46176         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
46177         * doc/posix-functions/localtime_r.texi: Likewise.
46179 2010-12-29  Eric Blake  <eblake@redhat.com>
46181         mountlist: tweak previous commit
46182         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
46183         Reported by Paul Eggert.
46185         mountlist: fix local drive detection on cygwin
46186         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
46187         that works for cygwin.
46189 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46191         ftoastr, snprintf: ftoastr + snprintf module
46192         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
46193         since the snprintf module now should be good enough here.
46194         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
46195         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
46196         and gl_MODULE_INDICATOR([snprintf]), but the former enables
46197         GNULIB_SNPRINTF only for the test directory, and the latter
46198         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
46199         seems to suffice by itself.
46201 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46203         alloca: one step towards thread-safety
46204         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
46205         need for a static variable.  All callers changed.  This does not
46206         make the alloca replacement thread-safe, but it's one step.
46208         tests: minor indenting change
46209         * tests/init.sh: Sync from coreutils housekeeping patch
46210         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
46211         to keep lines within 80 columns.
46213 2010-12-28  Jim Meyering  <meyering@redhat.com>
46215         regex: don't infloop on persistent failing calloc
46216         * lib/regexec.c (build_trtable): Return failure indication upon
46217         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
46218         In glibc, this was fixed for version 2.13:
46219         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
46221 2010-12-28  Bruno Haible  <bruno@clisp.org>
46222             Paul Eggert <eggert@cs.ucla.edu>
46224         linkat: Make implementation robust against system behaviour variations.
46225         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
46226         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
46227         way, and to -2 if it needs a generic runtime test.
46228         * lib/linkat.c (solaris_optimized_link_immediate,
46229         solaris_optimized_link_follow): New functions.
46230         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
46231         (check_same_link): Use it.
46233 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
46235         New module 'unigbrk/base'.
46236         * modules/unigbrk/base: New file.
46237         * lib/unigbrk.in.h: New file.
46239         New module 'unigbrk/uc-gbrk-prop'.
46240         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
46241         * modules/unigbrk/uc-gbrk-prop: New file.
46242         * lib/unigbrk/gbrkprop.h: New file.
46243         * lib/unigbrk/uc-gbrk-prop.c: New file.
46245         New module 'unigbrk/uc-is-grapheme-break'.
46246         * modules/unigbrk/uc-is-grapheme-break: New file.
46247         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
46248         * lib/unigbrk/uc-is-grapheme-break.c: New file.
46249         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
46250         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
46251         * tests/unigbrk/GraphemeBreakTest.txt: New file.
46253         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
46255 2010-12-27  Bruno Haible  <bruno@clisp.org>
46257         linkat test: Avoid failure on Solaris 11 2010-11.
46258         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
46260 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46262         utimens: work around glibc rounding bug on more platforms
46263         * lib/utimens.c (fdutimens): Work around rounding bug even if
46264         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
46265         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
46267 2010-12-27  Bruno Haible  <bruno@clisp.org>
46269         select tests: Improve comments.
46270         * tests/test-select.c (do_select): Add comments.
46272 2010-12-27  Bruno Haible  <bruno@clisp.org>
46274         select tests: Safer way of handling timeout.
46275         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
46276         at every invocation.
46278 2010-12-27  Bruno Haible  <bruno@clisp.org>
46280         select tests: Use 'bool' where appropriate.
46281         * tests/test-select.c (connect_to_socket): Change argument type to
46282         'bool'.
46284 2010-12-27  Bruno Haible  <bruno@clisp.org>
46286         select tests: Use existing modules.
46287         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
46288         (configure.ac): Don't test for unistd.h.
46289         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
46290         declared in <unistd.h>.
46292 2010-12-27  Bruno Haible  <bruno@clisp.org>
46294         mbrtowc: Work around a Solaris 7 bug.
46295         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
46296         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
46297         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
46298         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
46299         MBRTOWC_NULL_ARG1_BUG.
46300         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
46301         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
46302         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
46303         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
46305 2010-12-27  Jim Meyering  <meyering@redhat.com>
46307         read-file.c: tweak syntax
46308         * lib/read-file.c (fread_file): Remove space after "*" in function
46309         definitions.
46311 2010-12-27  Bruno Haible  <bruno@clisp.org>
46313         times test: Avoid gcc warnings on OSF/1.
46314         * tests/test-times.c (main): Cast printf arguments from clock_t to
46315         'long int'.
46317 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46319         utimens: work around glibc rounding bug on older Linux kernels
46320         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
46321         on Linux with a glibc whose utimes might not work, then work
46322         around a longstanding glibc bug involving rounding rather than
46323         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
46324         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46326 2010-12-26  Bruno Haible  <bruno@clisp.org>
46328         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
46329         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
46330         _GL_CXXALIAS_SYS.
46331         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46333 2010-12-26  Bruno Haible  <bruno@clisp.org>
46335         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
46336         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
46337         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
46338         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
46339         looking for the declaration.
46340         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
46341         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
46342         problem.
46343         * doc/posix-functions/inet_pton.texi: Likewise.
46345 2010-12-26  Bruno Haible  <bruno@clisp.org>
46347         arpa_inet: Use the common idioms with C++ support.
46348         * lib/arpa_inet.in.h: Include c++defs.h.
46349         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
46350         support.
46351         * modules/arpa_inet (Depends-on): Add c++defs.
46352         (Makefile.am): Substitute the contents of c++defs.h.
46353         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
46354         * modules/arpa_inet-c++-tests: New file.
46355         * tests/test-arpa_inet-c++.cc: New file.
46357 2010-12-25  Bruno Haible  <bruno@clisp.org>
46359         Fix more C++ link errors on Solaris 8.
46360         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
46361         $(LIB_EACCESS).
46362         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
46363         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
46364         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
46365         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
46366         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
46368 2010-12-25  Bruno Haible  <bruno@clisp.org>
46370         printf-posix: Fix link error when a non-GCC compiler is used.
46371         * lib/stdio.in.h (printf): When not using GCC, override printf
46372         correctly.
46373         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46375 2010-12-25  Bruno Haible  <bruno@clisp.org>
46377         strerror_r-posix: Update doc.
46378         * doc/posix-functions/strerror_r.texi: Update doc about the return
46379         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
46381 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46383         utimens: simplify the logic of the previous change
46384         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
46385         This should not affect whether the test succeeds or fails.
46387         utimens: configure better on hosts with NFS clock skew
46388         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
46389         uses the clock of the local host.  It might use the clock of the
46390         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
46391         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
46393 2010-12-25  Bruno Haible  <bruno@clisp.org>
46395         ptsname test: Avoid failure on Solaris.
46396         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
46397         open a pseudo-terminal; don't use BSD-style ptys.
46398         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
46400 2010-12-25  Bruno Haible  <bruno@clisp.org>
46402         ptsname: Avoid ERANGE failure on some systems.
46403         * lib/ptsname.c (buffer): Increase size.
46405 2010-12-25  Bruno Haible  <bruno@clisp.org>
46407         rename, renameat: Avoid test failures at NFS mounted locations.
46408         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
46409         so that subsequent mkdir calls succeed.
46411 2010-12-25  Bruno Haible  <bruno@clisp.org>
46413         iswblank: Fix C++ link error on Solaris 8.
46414         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
46415         _GL_FUNCDECL_SYS.
46417 2010-12-25  Bruno Haible  <bruno@clisp.org>
46419         unistd: Fix C++ link error on Solaris 8.
46420         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
46422 2010-12-25  Bruno Haible  <bruno@clisp.org>
46424         readlink doc: Mention an old glibc bug.
46425         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
46427 2010-12-25  Bruno Haible  <bruno@clisp.org>
46429         fcntl-h: Fix for use of C++ on glibc systems.
46430         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
46431         also on glibc systems in C++ mode.
46432         Reported by Gary V. Vaughan <gary@gnu.org>.
46434 2010-12-25  Bruno Haible  <bruno@clisp.org>
46436         roundl-ieee: Make it work on OSF/1 5.1 with cc.
46437         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
46439 2010-12-25  Bruno Haible  <bruno@clisp.org>
46441         truncl-ieee: Make it work on OSF/1 5.1 with cc.
46442         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
46443         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
46444         test whether truncl works according to ISO C 99 with IEC 60559.
46445         * m4/truncl-ieee.m4: New file.
46446         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
46447         m4/signbit.m4.
46448         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
46450 2010-12-25  Bruno Haible  <bruno@clisp.org>
46452         ceill-ieee: Make it work on OSF/1 5.1 with cc.
46453         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
46454         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
46455         test whether ceill works according to ISO C 99 with IEC 60559.
46456         * m4/ceill-ieee.m4: New file.
46457         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
46458         m4/signbit.m4.
46459         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
46461 2010-12-25  Bruno Haible  <bruno@clisp.org>
46463         Ensure all prerequisites of <wchar.h> are included.
46464         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
46465         before <wchar.h>.
46466         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
46467         gl_MBRLEN_NUL_RETVAL): Likewise.
46468         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46469         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
46470         AC_FUNC_MBRTOWC): Likewise.
46471         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46472         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46473         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
46474         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46475         Likewise.
46476         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46477         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
46478         (gl_WCHAR_H): Improve comments.
46479         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
46481 2010-12-25  Bruno Haible  <bruno@clisp.org>
46483         strtok_r: Fix C syntax error in autoconf macro.
46484         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
46485         characters in test program.
46487 2010-12-24  Bruno Haible  <bruno@clisp.org>
46489         ceil, trunc, round: Fix gcc warnings.
46490         * lib/ceil.c (MIN): Undefine before redefining.
46491         * lib/trunc.c (MIN): Likewise.
46492         * lib/round.c (MIN): Likewise.
46493         Include <math.h> first.
46495 2010-12-24  Bruno Haible  <bruno@clisp.org>
46497         select tests: Avoid failures on OSF/1 5.1.
46498         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
46499         failure of closing the last socket; it may fail with ECONNRESET.
46501 2010-12-24  Eric Blake  <eblake@redhat.com>
46503         stdint: avoid HP-UX 10.20 preprocessor bug
46504         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
46505         than #if.
46506         * tests/test-floor2.c (main): Likewise.
46507         Reported by Peter O'Gorman.
46509         pipe: make obsoletion transition easier
46510         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
46511         * modules/pipe (Files): Include revived file.
46512         (Include): Drop reference, to mirror getdate's behavior.
46514 2010-12-24  Bruno Haible  <bruno@clisp.org>
46516         sys_socket: Hide mismatch of declarations on NonStop Kernel.
46517         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
46518         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
46519         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46521 2010-12-24  Bruno Haible  <bruno@clisp.org>
46523         gethostname: Ensure declaration on NonStop Kernel.
46524         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
46525         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46527 2010-12-24  Bruno Haible  <bruno@clisp.org>
46529         sys_select: Ensure all necessary types on NonStop Kernel.
46530         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
46531         include <sys/time.h>.
46532         * doc/posix-headers/sys_select.texi: Mention that it's missing on
46533         NonStop Kernel.
46534         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46536 2010-12-24  Bruno Haible  <bruno@clisp.org>
46538         sys_select: Remove unneeded include.
46539         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
46540         have <sys/select.h>.
46542 2010-12-24  Bruno Haible  <bruno@clisp.org>
46544         gethostname: Provide a fallback for HOST_NAME_MAX.
46545         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
46546         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
46547         instead.
46548         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46550 2010-12-24  Bruno Haible  <bruno@clisp.org>
46552         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
46553         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
46554         (SA_RESTART): Likewise.
46555         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46557 2010-12-24  Bruno Haible  <bruno@clisp.org>
46559         signal: Define NSIG.
46560         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
46561         * tests/test-signal.c (nsig): New variable.
46562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46564 2010-12-24  Bruno Haible  <bruno@clisp.org>
46566         rename, renameat: Avoid test failures on OSF/1 5.1.
46567         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
46568         alternative error codes.
46569         * tests/test-renameat.c (main): Likewise.
46571 2010-12-24  Bruno Haible  <bruno@clisp.org>
46573         *printf: Detect large precisions bug on Solaris 10/SPARC.
46574         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
46575         by Paul Eggert.
46576         * tests/test-snprintf-posix.h (test_function): Add this test code here
46577         too.
46578         * tests/test-sprintf-posix.h (test_function): Likewise.
46579         * tests/test-vasnprintf-posix.c (test_function): Likewise.
46580         * tests/test-vasprintf-posix.c (test_function): Likewise.
46581         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
46582         around by gnulib.
46583         * doc/posix-functions/printf.texi: Likewise.
46584         * doc/posix-functions/snprintf.texi: Likewise.
46585         * doc/posix-functions/sprintf.texi: Likewise.
46586         * doc/posix-functions/vfprintf.texi: Likewise.
46587         * doc/posix-functions/vprintf.texi: Likewise.
46588         * doc/posix-functions/vsnprintf.texi: Likewise.
46589         * doc/posix-functions/vsprintf.texi: Likewise.
46590         * doc/posix-functions/dprintf.texi: Undo last commit.
46591         * doc/posix-functions/vdprintf.texi: Likewise.
46593 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46595         tests: port test-fdutimensat.c to Solaris 8
46596         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
46597         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
46598         On Solaris 8, it fails with errno == ENOSYS, because there is no
46599         futimens (so it can't use the fd), and there is no lutimens (so it
46600         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
46602         vsnprintf: make more consistent with snprintf; doc fixes
46604         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
46605         the byte count return problem was promoted from the snprintf-posix
46606         to the snprintf module.
46607         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46608         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
46609         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
46610         * tests/test-snprintf.c (main): Check the byte count returned.
46611         * tests/test-vsnprintf.c (main): Likewise.
46613 2010-12-23  Eric Blake  <eblake@redhat.com>
46615         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
46616         * modules/sigpipe (License): Relax license.
46618 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46620         doc: document Solaris printf bug with large float precisions
46621         * doc/posix-functions/dprintf.texi (dprintf):
46622         * doc/posix-functions/fprintf.texi (fprintf):
46623         * doc/posix-functions/printf.texi (printf):
46624         * doc/posix-functions/snprintf.texi (snprintf):
46625         * doc/posix-functions/sprintf.texi (sprintf):
46626         * doc/posix-functions/vdprintf.texi (vdprintf):
46627         * doc/posix-functions/vfprintf.texi (vfprintf):
46628         * doc/posix-functions/vprintf.texi (vprintf):
46629         * doc/posix-functions/vsnprintf.texi (vsnprintf):
46630         * doc/posix-functions/vsprintf.texi (vsprintf):
46631         Mention that these functions mishandle large floating point
46632         precisions on Solaris 10.  The same bug is also present in Solaris
46633         8, and I assume earlier.  This causes "cd gnulib-tests; make
46634         check" to fail on Solaris 8 (and I assume, later) when building
46635         the latest coreutils, in test-vasprintf-posix's call to
46636         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
46637         the wide flavors (e.g., wprintf) so this patch just updates the
46638         documentation for the narrow ones.
46640         test-posixtm.c: add two tests
46641         * tests/test-posixtm.c: Add two tests, to highlight the
46642         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
46643         around this bug; this is merely to document it.
46645 2010-12-22  Bruno Haible  <bruno@clisp.org>
46647         getlogin_r: Work around portability problem on OSF/1.
46648         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
46649         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
46650         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
46651         test for a truncated result.
46652         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
46653         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
46654         * modules/getlogin_r (Depends-on): Add memchr.
46655         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
46657 2010-12-22  Bruno Haible  <bruno@clisp.org>
46659         ptsname: Avoid test failure on OSF/1 5.1.
46660         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
46661         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
46662         (same_slave): New function.
46663         (main): Use it to compare ptsname's result with the expected file name.
46665 2010-12-22  Bruno Haible  <bruno@clisp.org>
46667         Port extended stdio modules to HP NonStop Kernel.
46668         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
46669         macros.
46670         * lib/fbufmode.c: Update comments.
46671         * lib/fflush.c: Likewise.
46672         * lib/fpurge.c: Likewise.
46673         * lib/freadable.c: Likewise.
46674         * lib/freadahead.c: Likewise.
46675         * lib/freading.c: Likewise.
46676         * lib/freadptr.c: Likewise.
46677         * lib/freadseek.c: Likewise.
46678         * lib/fseeko.c: Likewise.
46679         * lib/fseterr.c: Likewise.
46680         * lib/fwritable.c: Likewise.
46681         * lib/fwriting.c: Likewise.
46682         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
46684 2010-12-22  Bruno Haible  <bruno@clisp.org>
46686         ttyname_r: Work around bug on OSF/1 5.1.
46687         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
46688         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
46689         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
46690         present.
46691         * lib/ttyname_r.c (ttyname_r): Update comments.
46693 2010-12-22  Bruno Haible  <bruno@clisp.org>
46695         round: Implement result sign according to IEEE 754.
46696         * lib/round.c (MIN, MINUS_ZERO): New macros.
46697         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
46698         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
46699         * tests/test-round-ieee.c (main): Likewise.
46700         * tests/test-roundl-ieee.c (main): Likewise.
46702         trunc: Implement result sign according to IEEE 754.
46703         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
46704         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
46705         * tests/test-trunc2.c: Include minus-zero.h.
46706         (MINUS_ZERO): New macro.
46707         (trunc_reference): Keep in sync with lib/trunc.c.
46708         * tests/test-truncf2.c: Include minus-zero.h.
46709         (MINUS_ZERO): New macro.
46710         (truncf_reference): Keep in sync with lib/trunc.c.
46711         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
46712         * tests/test-trunc-ieee.c (main): Likewise.
46713         * tests/test-truncl-ieee.c (main): Likewise.
46715         ceil: Implement result sign according to IEEE 754.
46716         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
46717         (FUNC): Return -0.0 for -1 < x < 0.
46718         * tests/test-ceil2.c: Include minus-zero.h.
46719         (MINUS_ZERO): New macro.
46720         (ceil_reference): Keep in sync with lib/ceil.c.
46721         * tests/test-ceilf2.c: Include minus-zero.h.
46722         (MINUS_ZERO): New macro.
46723         (ceilf_reference): Keep in sync with lib/ceil.c.
46724         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
46725         * tests/test-ceil-ieee.c (main): Likewise.
46726         * tests/test-ceill-ieee.c (main): Likewise.
46728         floor: Implement result sign according to IEEE 754.
46729         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
46730         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
46731         * tests/test-floorf2.c (floorf_reference): Likewise.
46732         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
46733         * tests/test-floor-ieee.c (main): Likewise.
46734         * tests/test-floorl-ieee.c (main): Likewise.
46736 2010-12-22  Bruno Haible  <bruno@clisp.org>
46738         getaddrinfo: Update doc.
46739         * doc/posix-functions/gai_strerror.texi: Return type is also different
46740         on AIX and HP-UX.
46742 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46744         getaddrinfo, inet_ntop: Update doc for Solaris.
46745         * doc/posix-functions/gai_strerror.texi: Return type is also an
46746         issue on Solaris 9 and earlier.
46747         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
46748         on Solaris 10 and earlier.
46750 2010-12-21  Bruno Haible  <bruno@clisp.org>
46752         New module 'roundl-ieee'.
46753         * modules/roundl-ieee: New file.
46754         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
46755         test whether roundl works according to ISO C 99 with IEC 60559.
46756         * m4/roundl-ieee.m4: New file.
46757         * modules/roundl-ieee-tests: New file.
46758         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
46759         * tests/test-roundl.c (main): Remove signbit tests.
46760         * modules/roundl-tests (Depends-on): Remove signbit.
46761         * doc/posix-functions/roundl.texi: Mention the new module.
46763 2010-12-21  Bruno Haible  <bruno@clisp.org>
46765         New module 'truncl-ieee'.
46766         * modules/truncl-ieee: New file.
46767         * modules/truncl-ieee-tests: New file.
46768         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
46769         * tests/test-truncl.c (main): Remove signbit tests.
46770         * modules/truncl-tests (Depends-on): Remove signbit.
46771         * doc/posix-functions/truncl.texi: Mention the new module.
46773 2010-12-21  Bruno Haible  <bruno@clisp.org>
46775         New module 'ceill-ieee'.
46776         * modules/ceill-ieee: New file.
46777         * modules/ceill-ieee-tests: New file.
46778         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
46779         * tests/test-ceill.c (main): Remove signbit tests.
46780         * modules/ceill-tests (Depends-on): Remove signbit.
46781         * doc/posix-functions/ceill.texi: Mention the new module.
46783 2010-12-21  Bruno Haible  <bruno@clisp.org>
46785         New module 'floorl-ieee'.
46786         * modules/floorl-ieee: New file.
46787         * modules/floorl-ieee-tests: New file.
46788         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
46789         * tests/test-floorl.c (main): Remove signbit tests.
46790         * modules/floorl-tests (Depends-on): Remove signbit.
46791         * doc/posix-functions/floorl.texi: Mention the new module.
46793 2010-12-21  Bruno Haible  <bruno@clisp.org>
46795         New module 'round-ieee'.
46796         * modules/round-ieee: New file.
46797         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
46798         whether round works according to ISO C 99 with IEC 60559.
46799         * m4/round-ieee.m4: New file.
46800         * modules/round-ieee-tests: New file.
46801         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
46802         * tests/test-round1.c (main): Remove signbit tests.
46803         * modules/round-tests (Depends-on): Remove 'signbit'.
46804         * doc/posix-functions/round.texi: Mention the new module.
46806 2010-12-21  Bruno Haible  <bruno@clisp.org>
46808         New module 'trunc-ieee'.
46809         * modules/trunc-ieee: New file.
46810         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
46811         whether trunc works according to ISO C 99 with IEC 60559.
46812         * m4/trunc-ieee.m4: New file.
46813         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
46814         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
46815         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
46816         * modules/trunc-ieee-tests: New file.
46817         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
46818         * tests/test-trunc1.c (main): Remove signbit tests.
46819         * modules/trunc-tests (Depends-on): Remove 'signbit'.
46820         * doc/posix-functions/trunc.texi: Mention the new module.
46822 2010-12-21  Bruno Haible  <bruno@clisp.org>
46824         New module 'ceil-ieee'.
46825         * modules/ceil-ieee: New file.
46826         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
46827         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
46828         ISO C 99 with IEC 60559.
46829         * m4/ceil-ieee.m4: New file.
46830         * modules/ceil (Files): Add lib/ceil.c.
46831         (Depends-on): Add 'float'.
46832         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46833         * lib/math.in.h (ceil): New declaration.
46834         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
46835         REPLACE_CEIL.
46836         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
46837         * modules/ceil-ieee-tests: New file.
46838         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
46839         * tests/test-math-c++.cc: Check the signature of 'ceil'.
46840         * doc/posix-functions/ceil.texi: Mention the new module.
46842 2010-12-21  Bruno Haible  <bruno@clisp.org>
46844         New module 'floor-ieee'.
46845         * modules/floor-ieee: New file.
46846         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
46847         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
46848         ISO C 99 with IEC 60559.
46849         * m4/floor-ieee.m4: New file.
46850         * modules/floor (Files): Add lib/floor.c.
46851         (Depends-on): Add 'float'.
46852         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
46853         * lib/math.in.h (floor): New declaration.
46854         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
46855         REPLACE_FLOOR.
46856         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
46857         * modules/floor-ieee-tests: New file.
46858         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
46859         * tests/test-math-c++.cc: Check the signature of 'floor'.
46860         * doc/posix-functions/floor.texi: Mention the new module.
46862 2010-12-21  Bruno Haible  <bruno@clisp.org>
46864         New module 'roundf-ieee'.
46865         * modules/roundf-ieee: New file.
46866         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
46867         test whether roundf works according to ISO C 99 with IEC 60559.
46868         * m4/roundf-ieee.m4: New file.
46869         * modules/roundf-ieee-tests: New file.
46870         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
46871         * tests/test-roundf1.c (main): Remove signbit tests.
46872         * modules/roundf-tests (Depends-on): Remove 'signbit'.
46873         * doc/posix-functions/roundf.texi: Mention the new module.
46875 2010-12-21  Bruno Haible  <bruno@clisp.org>
46877         New module 'truncf-ieee'.
46878         * modules/truncf-ieee: New file.
46879         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
46880         test whether truncf works according to ISO C 99 with IEC 60559.
46881         * m4/truncf-ieee.m4: New file.
46882         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
46883         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
46884         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
46885         * modules/truncf-ieee-tests: New file.
46886         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
46887         * tests/test-truncf1.c (main): Remove signbit tests.
46888         * modules/truncf-tests (Depends-on): Remove 'signbit'.
46889         * doc/posix-functions/truncf.texi: Mention the new module.
46891 2010-12-21  Bruno Haible  <bruno@clisp.org>
46893         New module 'ceilf-ieee'.
46894         * modules/ceilf-ieee: New file.
46895         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
46896         test whether ceilf works according to ISO C 99 with IEC 60559.
46897         * m4/ceilf-ieee.m4: New file.
46898         * modules/ceilf-ieee-tests: New file.
46899         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
46900         * tests/test-ceilf1.c (main): Remove signbit tests.
46901         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
46902         * doc/posix-functions/ceilf.texi: Mention the new module.
46904 2010-12-21  Bruno Haible  <bruno@clisp.org>
46906         New module 'floorf-ieee'.
46907         * modules/floorf-ieee: New file.
46908         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
46909         test whether floorf works according to ISO C 99 with IEC 60559.
46910         * m4/floorf-ieee.m4: New file.
46911         * modules/floorf-ieee-tests: New file.
46912         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
46913         * tests/test-floorf1.c (main): Remove signbit tests.
46914         * modules/floorf-tests (Depends-on): Remove 'signbit'.
46915         * doc/posix-functions/floorf.texi: Mention the new module.
46917 2010-12-21  Bruno Haible  <bruno@clisp.org>
46919         Support for minus zero in autoconf macros.
46920         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
46921         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
46922         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
46923         * tests/minus-zero.h: Update comments.
46925 2010-12-21  Bruno Haible  <bruno@clisp.org>
46927         Tests for module 'ceil'.
46928         * modules/ceil-tests: New file.
46929         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
46930         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
46932 2010-12-21  Bruno Haible  <bruno@clisp.org>
46934         Tests for module 'floor'.
46935         * modules/floor-tests: New file.
46936         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
46937         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
46939 2010-12-21  Bruno Haible  <bruno@clisp.org>
46941         math: Fix indentation.
46942         * lib/math.in.h (floorf): Fix indentation.
46944 2010-12-21  Bruno Haible  <bruno@clisp.org>
46946         Fix cross-compilation guesses on Solaris.
46947         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
46948         not match "solaris2.10".
46949         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
46950         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
46951         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
46953 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46955         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
46956         This fixes a problem observed with the latest coreutils snapshot
46957         that caused a test to fail on Solaris 8.  src/csplit.c's call
46958         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
46959         earlier, instead of returning the number of bytes that would have
46960         been generated; this causes csplit to incorrectly report memory
46961         exhaustion.
46962         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
46963         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
46964         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
46965         comments to match.
46966         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
46967         Fix typo in matching older versions of Solaris: "solaris2.10"
46968         is matched by the shell pattern "solaris2.[0-9]*".  This matters
46969         only for guessing while cross-compiling.
46970         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
46972 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46974         ftoastr: fix comment again
46975         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
46976         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
46977         Also, simplify example a bit by using flags = 0.
46979 2010-12-20  Bruno Haible  <bruno@clisp.org>
46981         round*, trunc*: Update documentation regarding glibc.
46982         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
46983         * doc/posix-functions/round.texi: Likewise.
46984         * doc/posix-functions/roundl.texi: Likewise.
46985         * doc/posix-functions/truncf.texi: Likewise.
46986         * doc/posix-functions/trunc.texi: Likewise.
46987         * doc/posix-functions/truncl.texi: Likewise.
46989 2010-12-20  Bruno Haible  <bruno@clisp.org>
46991         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
46992         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
46993         * doc/posix-functions/round.texi: Likewise.
46994         * doc/posix-functions/roundl.texi: Likewise.
46996 2010-12-20  Bruno Haible  <bruno@clisp.org>
46998         ttyname_r: Add missing declaration on HP-UX 11.
46999         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
47000         HAVE_TTYNAME_R.
47001         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
47002         declared. Set HAVE_TTYNAME_R always.
47003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47004         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
47005         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
47006         HAVE_TTYNAME_R.
47007         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
47009 2010-12-20  Bruno Haible  <bruno@clisp.org>
47011         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
47012         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
47013         * doc/posix-functions/getlogin_r.texi: Likewise.
47014         * tests/test-getlogin.c: Include <errno.h>.
47015         (main): Avoid test failure on HP-UX 11.11.
47016         * tests/test-getlogin_r.c (main): Likewise.
47018 2010-12-20  Bruno Haible  <bruno@clisp.org>
47020         getlogin_r: Add missing declaration on HP-UX 11.
47021         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
47022         declared also when it exists as a function.
47023         * doc/posix-functions/getlogin_r.texi: Document this workaround.
47025 2010-12-20  Bruno Haible  <bruno@clisp.org>
47027         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
47028         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
47029         through wcrtomb.
47031 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
47033         ftoastr: fix comment
47034         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
47035         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
47037 2010-12-19  Bruno Haible  <bruno@clisp.org>
47039         isnan: Ensure it is a macro.
47040         * lib/math.in.h (isnan): Define as a macro if not already a macro.
47041         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
47042         Solaris.
47044 2010-12-19  Bruno Haible  <bruno@clisp.org>
47046         ldexpl test: Fix link error on OSF/1 5.1.
47047         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
47049 2010-12-19  Bruno Haible  <bruno@clisp.org>
47051         wctype: Make it work in C++ mode on OSF/1 5.1.
47052         * lib/wctype.in.h (iswblank): Declare but not define here.
47053         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
47054         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
47055         * modules/wctype (Files): Add lib/iswblank.c.
47057 2010-12-19  Bruno Haible  <bruno@clisp.org>
47059         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
47060         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
47061         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
47063 2010-12-19  Bruno Haible  <bruno@clisp.org>
47065         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
47066         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
47067         _POSIX_PII_SOCKET.
47068         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
47069         * doc/posix-functions/recvfrom.texi: Likewise.
47070         * doc/posix-functions/send.texi: Likewise.
47071         * doc/posix-functions/sendto.texi: Likewise.
47073 2010-12-19  Bruno Haible  <bruno@clisp.org>
47075         tcgetsid: Add missing declaration on OSF/1 5.1.
47076         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
47077         HAVE_TCGETSID.
47078         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
47079         Don't set HAVE_TCGETSID.
47080         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
47081         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
47082         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
47083         HAVE_TCGETSID.
47084         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
47086 2010-12-19  Bruno Haible  <bruno@clisp.org>
47088         stdio: Fix problem with popen() declaration on OSF/1 5.1.
47089         * lib/stdio.in.h: During the include_next statement, let recursive
47090         includes of this file include only the system header file.
47092 2010-12-19  Bruno Haible  <bruno@clisp.org>
47094         iconv_open: Fix regression from 2010-12-04.
47095         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
47096         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
47098 2010-12-19  Bruno Haible  <bruno@clisp.org>
47100         stdbool test: Avoid a gcc warning.
47101         * tests/test-stdbool.c (main): Fail if e1 is false.
47102         Reported by Jim Meyering.
47104 2010-12-19  Jim Meyering  <meyering@redhat.com>
47106         setenv: restore to working order
47107         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
47108         mistakenly removed.
47109         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
47110         HAVE_SETENV.
47111         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
47112         HAVE_SETENV.
47114 2010-12-19  Bruno Haible  <bruno@clisp.org>
47116         Document some different function declarations on OSF/1 5.1.
47117         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
47118         * doc/posix-functions/inet_ntop.texi: Likewise.
47119         * doc/posix-functions/gethostname.texi: Likewise.
47120         * lib/unistd.in.h (gethostname): Update comment.
47122 2010-12-19  Bruno Haible  <bruno@clisp.org>
47124         doc: Mention vasprintf-posix module.
47125         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
47126         the 'vasprintf-posix' module.
47127         * doc/glibc-functions/vasprintf.texi: Likewise.
47129 2010-12-19  Bruno Haible  <bruno@clisp.org>
47131         unsetenv: Add missing declaration on OSF/1 5.1.
47132         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
47133         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
47134         Don't set HAVE_UNSETENV. In the test program, set _BSD.
47135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
47136         not HAVE_UNSETENV.
47137         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
47138         HAVE_UNSETENV.
47139         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
47141 2010-12-19  Bruno Haible  <bruno@clisp.org>
47143         setenv: Add missing declaration on OSF/1 5.1.
47144         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
47145         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
47146         declared. Don't set HAVE_SETENV.
47147         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
47148         not HAVE_SETENV.
47149         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
47150         HAVE_SETENV.
47151         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
47153 2010-12-19  Bruno Haible  <bruno@clisp.org>
47155         nl_langinfo tests: Avoid gcc warning.
47156         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
47158 2010-12-19  Bruno Haible  <bruno@clisp.org>
47160         mknod: Avoid error in C++ mode on OSF/1 with GCC.
47161         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
47162         _GL_CXXALIAS_SYS.
47164 2010-12-19  Bruno Haible  <bruno@clisp.org>
47166         stdbool: Relax test.
47167         * tests/test-stdbool.c (e): Don't require that casts from a variable's
47168         address to 'bool' work in static initializer, for compilers other than
47169         GCC.
47171 2010-12-19  Bruno Haible  <bruno@clisp.org>
47173         ftello: Add missing declaration on OSF/1 5.1.
47174         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
47175         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
47176         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
47177         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
47178         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
47180 2010-12-19  Bruno Haible  <bruno@clisp.org>
47182         fseeko: Add missing declaration on OSF/1 5.1.
47183         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
47184         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
47185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
47186         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
47187         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
47189 2010-12-19  Bruno Haible  <bruno@clisp.org>
47191         fchdir: Add missing declaration on OSF/1 5.1.
47192         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
47193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
47194         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
47195         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
47196         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
47198 2010-12-19  Bruno Haible  <bruno@clisp.org>
47200         relocatable-prog-wrapper: Separate from relocatable-prog.
47201         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
47202         uninstall-relocwrapper rule here.
47203         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
47204         Reported by Ian Beckwith <ianb@erislabs.net>.
47206 2010-12-19  Bruno Haible  <bruno@clisp.org>
47208         unistr/u8-mbsnlen: Add missing dependency.
47209         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
47210         Reported by Ian Beckwith <ianb@erislabs.net>.
47212 2010-12-19  Bruno Haible  <bruno@clisp.org>
47214         iconv: Make it possible again to use this module without 'iconv-h'.
47215         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
47216         if it is not defined.
47217         Reported by Ian Beckwith <ianb@erislabs.net>.
47219 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
47221         acl: port to Solaris 8 when copying from tmpfs to ufs
47222         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
47223         error number.  Problem observed on Solaris 8 with latest
47224         coreutils, with "mv A B", where A is on a tmpfs file system and B
47225         is on a ufs file system.  This caused coreutils' mv/part-symlink
47226         test to fail.
47228         tests: set fail=0 at start
47229         * tests/init.sh (setup_): Move fail=0 initialization here ...
47230         (mktempd_): ... from here, so that tests can rely on fail being
47231         set to 0 initially.  This fixes a problem in coreutils; see:
47232         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
47234 2010-12-18  Bruno Haible  <bruno@clisp.org>
47236         memmem-simple: Stylistic changes.
47237         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
47238         Fix preprocessor directive indentation.
47240 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47242         memmem, memmem-simple: reorganize and expand empty needle check
47243         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
47244         functional checks to memmem-simple so that one has a fully functional
47245         memmem by using just this module.
47246         Restrict the performance only check to the memmem module.
47247         Also expand the empty needle check to ensure the correct
47248         pointer is returned, not just a non NULL pointer.
47249         * doc/glibc-functions/memmem.texi: Rearrange the portability
47250         documentation to correlate with the rearranged checks.
47251         Clarify exactly how the memmem and memmem-simple modules
47252         relate to each other.
47254 2010-12-15  Pádraig Brady  <P@draigBrady.com>
47255             Bruno Haible  <bruno@clisp.org>
47257         Improve cross-compilation guesses for uClibc.
47258         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
47259         that uClibc does not have the glibc bug.
47260         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
47261         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
47263 2010-12-14  Eric Blake  <eblake@redhat.com>
47265         configmake: provide fallbacks for oldest supported autotools
47266         * m4/configmake.m4: New file.
47267         * modules/configmake (Files): Ship it.
47268         (configure.ac): Use it to guarantee fallbacks.
47270 2010-12-13  Pádraig Brady  <P@draigBrady.com>
47272         read-file: Improve handling of large files
47273         * lib/read-file.c (fread_file): Minimize realloc()s
47274         for regular files, and better manage sizes around SIZE_MAX.
47276 2010-12-13  Eric Blake  <eblake@redhat.com>
47278         cloexec, fcntl: relax license
47279         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
47280         consent from all contributors.
47281         * modules/fcntl (License): Likewise.
47283 2010-12-10  Bruno Haible  <bruno@clisp.org>
47285         Tests for module 'pipe-posix'.
47286         * modules/pipe-posix-tests: New file.
47287         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
47289 2010-12-10  Bruno Haible  <bruno@clisp.org>
47291         pipe-posix: Make it work in C++ mode.
47292         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
47293         (pipe): Use common idiom, not a macro definition.
47294         * lib/pipe.c: New file.
47295         * m4/pipe.m4: New file.
47296         * modules/pipe-posix (Description): Enhance.
47297         (Files): Add lib/pipe.c, m4/pipe.m4.
47298         (configure.ac): Invoke gl_FUNC_PIPE.
47299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
47300         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
47301         * tests/test-unistd-c++.cc: Check the signature of pipe.
47303 2010-12-10  Bruno Haible  <bruno@clisp.org>
47305         Rename module 'pipe' to 'spawn-pipe'.
47306         * modules/spawn-pipe: New file, renamed from modules/pipe.
47307         (Files, configure.ac, Makefile.am): Update.
47308         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
47309         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
47310         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
47311         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
47312         "spawn-pipe.h" instead of "pipe.h".
47313         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
47314         to gl_SPAWN_PIPE.
47315         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
47316         (Files, Makefile.am): Update.
47317         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
47318         Update.
47319         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
47320         Include "spawn-pipe.h" instead of "pipe.h".
47321         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
47322         * lib/javacomp.c: Likewise.
47323         * lib/javaversion.c: Likewise.
47324         * lib/pipe-filter-gi.c: Likewise.
47325         * lib/pipe-filter-ii.c: Likewise.
47326         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
47327         * modules/javacomp (Depends-on): Likewise.
47328         * modules/javaversion (Depends-on): Likewise.
47329         * modules/pipe-filter-gi (Depends-on): Likewise.
47330         * modules/pipe-filter-ii (Depends-on): Likewise.
47331         * MODULES.html.sh (Executing programs): Update.
47332         * NEWS: Mention the change.
47334 2010-12-10  Eric Blake  <eblake@redhat.com>
47336         pipe-posix: new module
47337         * modules/pipe-posix: New file.
47338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
47339         (gl_UNISTD_H): Check for declaration.
47340         * modules/unistd (Makefile.am): Substitute it.
47341         * lib/unistd.in.h (pipe): Provide it for mingw.
47342         * doc/posix-functions/pipe.texi (pipe): Update documentation.
47343         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
47345 2010-12-07  Bruno Haible  <bruno@clisp.org>
47347         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
47348         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
47349         u8_strcmp_gnu.
47350         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
47352 2010-12-06  Bruno Haible  <bruno@clisp.org>
47354         Update internal documentation.
47355         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
47357 2010-12-04  Bruno Haible  <bruno@clisp.org>
47359         Put more information about failed tests into the test return codes.
47360         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
47361         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
47362         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
47363         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
47364         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
47365         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47366         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47367         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47368         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
47369         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47370         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
47371         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47372         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
47373         * m4/stdint.m4 (gl_STDINT_H): Likewise.
47374         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
47375         returns a bit mask.
47376         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
47377         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
47378         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
47379         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
47380         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
47381         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
47382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
47383         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47384         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
47385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
47386         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47387         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
47388         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47389         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
47390         * m4/link.m4 (gl_FUNC_LINK): Likewise.
47391         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
47392         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
47393         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
47394         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47395         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
47396         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47397         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
47398         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
47399         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47400         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
47401         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
47402         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
47403         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
47404         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
47405         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
47406         gl_PRINTF_PRECISION): Likewise.
47407         * m4/regex.m4 (gl_REGEX): Likewise.
47408         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
47409         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
47410         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
47411         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
47412         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
47413         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47414         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
47415         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
47416         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47417         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47418         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
47419         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
47420         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
47421         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
47422         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
47423         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
47424         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
47425         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
47426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47427         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
47428         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
47429         enumerated value.
47430         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
47432 2010-12-04  Bruno Haible  <bruno@clisp.org>
47434         Update for Solaris 11 2010-11.
47435         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
47436         Express, released in November 2010.
47438 2010-12-04  Bruno Haible  <bruno@clisp.org>
47440         nproc: Relax license.
47441         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
47442         and Paul Eggert.
47443         Requested by Ludovic Courtès <ludo@gnu.org>.
47445 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
47447         utimecmp: fine-grained src to nearby coarse-grained dest
47449         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
47450         and the source is on a file system with higher-resolution time
47451         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
47452         not work, and the time stamps are close together, the algorithm to
47453         determine the exact resolution from the read-back mtime was buggy:
47454         it had a "!=" where it should have had an "==".  This bug has been
47455         in the code ever since it was introduced to gnulib.
47456         Problem reported by Dan Jacobson in
47457         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
47459 2010-11-30  Bruno Haible  <bruno@clisp.org>
47461         strerror_r-posix: Fix autoconf test.
47462         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
47464 2010-11-28  Bruno Haible  <bruno@clisp.org>
47465             Paul Eggert  <eggert@cs.ucla.edu>
47467         Tests for module 'getdomainname'.
47468         * modules/getdomainname-tests: New file.
47469         * tests/test-getdomainname.c: New file, based on
47470         tests/test-gethostname.c.
47472 2010-11-28  Bruno Haible  <bruno@clisp.org>
47473             Paul Eggert  <eggert@cs.ucla.edu>
47475         getdomainname: Use the system function when possible.
47476         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
47477         (getdomainname): Replace if needed. Provide the declaration if it is
47478         missing. Don't use _GL_CXXALIAS_SYS_CAST.
47479         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
47480         (getdomainname): When the system has getdomainname, call the system
47481         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
47482         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47483         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
47484         found in libnsl. Look for the declaration also in <netdb.h>. Replace
47485         the function if its second argument is of type 'int' or if it is found
47486         in libnsl.
47487         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
47488         <sys/systeminfo.h> and sysinfo().
47489         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
47490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47491         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
47492         HAVE_GETDOMAINNAME.
47493         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
47494         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
47495         * doc/glibc-functions/getdomainname.texi: Document the problems with
47496         the getdomainname declaration.
47498 2010-11-28  Bruno Haible  <bruno@clisp.org>
47500         sys_socket: Ensure ss_family field on AIX.
47501         * lib/sys_socket.in.h (ss_family): New macro definition.
47502         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
47503         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
47504         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47505         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47506         * modules/sys_socket (Makefile.am): Substitute
47507         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
47508         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
47510 2010-11-27  Bruno Haible  <bruno@clisp.org>
47512         readline: Improve configure output.
47513         * m4/readline.m4 (gl_FUNC_READLINE): Make the
47514         "checking for readline..." result understandable.
47516 2010-11-27  Bruno Haible  <bruno@clisp.org>
47518         *printf-posix: Detect a bug on Solaris 10/x86.
47519         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
47520         for floating-point output.
47521         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
47522         directive.
47523         * tests/test-snprintf-posix.h (test_function): Likewise.
47524         * tests/test-sprintf-posix.h (test_function): Likewise.
47525         * tests/test-vasprintf-posix.c (test_function): Likewise.
47526         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
47527         * doc/posix-functions/printf.texi: Likewise.
47528         * doc/posix-functions/snprintf.texi: Likewise.
47529         * doc/posix-functions/sprintf.texi: Likewise.
47530         * doc/posix-functions/vfprintf.texi: Likewise.
47531         * doc/posix-functions/vprintf.texi: Likewise.
47532         * doc/posix-functions/vsnprintf.texi: Likewise.
47533         * doc/posix-functions/vsprintf.texi: Likewise.
47534         * doc/glibc-functions/obstack_printf.texi: Likewise.
47535         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47537 2010-11-27  Bruno Haible  <bruno@clisp.org>
47539         Fix link error when module libunistring-optional is in use.
47540         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
47541         * modules/striconveha-tests (Makefile.am): Likewise.
47543 2010-11-27  Bruno Haible  <bruno@clisp.org>
47545         regex: Mention link dependencies.
47546         * modules/regex (Link): New section.
47547         * modules/rpmatch (Link): Likewise.
47548         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
47550 2010-11-27  Bruno Haible  <bruno@clisp.org>
47552         ftoastr: Fix compilation error on Solaris.
47553         * lib/ftoastr.c: Include <config.h>.
47555 2010-11-27  Bruno Haible  <bruno@clisp.org>
47557         getloadavg: Update documentation.
47558         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
47560 2010-11-27  Bruno Haible  <bruno@clisp.org>
47562         sys_socket: Fix test whether the functions are declared.
47563         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
47564         not <sys/select.h>.
47566 2010-11-27  Bruno Haible  <bruno@clisp.org>
47568         getpass: Make sure to get system declaration on some platforms.
47569         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
47570         gl_USE_SYSTEM_EXTENSIONS.
47571         * modules/getpass (Depends-on): Add extensions.
47573 2010-11-26  Bruno Haible  <bruno@clisp.org>
47575         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
47576         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
47577         'iconv' module is present.
47578         (ICONV_CONST): New macro.
47579         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
47580         ICONV_CONST.
47581         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
47582         set ICONV_CONST.
47583         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
47584         here.
47585         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
47586         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
47587         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
47588         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
47589         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
47590         present.
47592 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
47594         ftoastr: comment fix
47595         * lib/ftoastr.c: "little" -> "little or no" in comment
47597 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
47599         stdint: port to GCC 4.3 + OSX + Octave
47600         On this platform, stdint.h is buggy and defines int64_t to long
47601         long int.  The replacement defined it to long int, causing
47602         problems with C++ style name mangling.  Instead, trust the system
47603         definition if INT64_MAX is defined, and likewise for the unsigned
47604         variant.   Problem reported by Jarno Rajahalme in
47605         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
47606         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
47607         and don't mess with int64_t and INT64_MAX in this case.
47608         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
47610 2010-11-24  Bruno Haible  <bruno@clisp.org>
47612         doc: Corrections regarding MacOS X 10.4 and 10.5.
47613         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
47614         MacOS X.
47615         Reported by Simon Josefsson.
47617 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
47619         Uninstall ".bin" files installed by relocwrapper.
47620         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
47621         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
47622         unless it is already there.
47624 2010-11-21  Bruno Haible  <bruno@clisp.org>
47626         Update for NetBSD 5.0.
47627         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47628         NetBSD; the test fails on NetBSD 5.0.
47629         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47630         about NetBSD.
47632 2010-11-21  Bruno Haible  <bruno@clisp.org>
47634         Update for HP-UX 11.23 and HP-UX 11.31.
47635         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
47636         HP-UX.
47638 2010-11-21  Bruno Haible  <bruno@clisp.org>
47640         Update for MacOS X 10.5.
47641         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
47642         MacOS X; the test fails on MacOS X 10.5.8.
47643         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
47644         about MacOS X.
47646 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
47648         bootstrap: add bootstrap_sync option.
47649         See discussion at
47650         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
47651         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
47652         * build-aux/bootstrap: Accept --bootstrap-sync to update
47653         bootstrap if it is not identical to the local gnulib's
47654         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
47655         enable this by default.  Accept --no-bootstrap-sync to disable
47656         it.
47658 2010-11-20  Bruno Haible  <bruno@clisp.org>
47660         Ensure that <features.h> is included before __GLIBC__ is tested.
47661         * lib/printf-parse.h: Include <features.h>.
47662         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
47663         Reported by Mike Frysinger <vapier@gentoo.org>.
47665         Ensure that <features.h> is included before __GLIBC__ is tested.
47666         * lib/wchar.in.h: Include <features.h>.
47667         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
47668         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
47669         Reported by Mike Frysinger <vapier@gentoo.org>.
47671         Ensure that <features.h> is included before __GLIBC__ is tested.
47672         * lib/arpa_inet.in.h: Include <features.h>.
47673         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
47674         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
47675         Reported by Mike Frysinger <vapier@gentoo.org>.
47677         Ensure that <features.h> is included before __GLIBC__ is tested.
47678         * build-aux/link-warning.h: Include <features.h>.
47679         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
47680         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
47681         Reported by Mike Frysinger <vapier@gentoo.org>.
47683         Ensure that <features.h> is included before __GLIBC__ is tested.
47684         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
47685         Reported by Mike Frysinger <vapier@gentoo.org>.
47687 2010-11-20  Bruno Haible  <bruno@clisp.org>
47689         memmem: Fix autoconf test.
47690         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
47692 2010-11-20  Bruno Haible  <bruno@clisp.org>
47694         Port to uClibc.
47695         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
47696         * lib/fcntl.in.h: Likewise.
47697         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
47698         * lib/mbrtowc.c (mbrtowc): Likewise.
47699         * lib/relocatable.c (find_shared_library_fullname): Likewise.
47700         * lib/strerror_r.c: Likewise.
47701         * lib/unistr/u8-strnlen.c: Likewise.
47702         * lib/vasnprintf.c (decimal_point_char): Likewise.
47703         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
47704         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
47705         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
47706         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47707         * tests/test-sigaction.c (handler, main): Likewise.
47708         * lib/freading.h: Treat uClibc like a non-glibc platform.
47709         * lib/freading.c: Likewise.
47710         * lib/gettext.h: Likewise.
47711         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
47712         Likewise.
47713         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
47714         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47715         * lib/propername.c (proper_name_utf8): Likewise.
47716         * lib/spawn.in.h: Likewise.
47717         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
47718         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
47719         mem_cd_iconveh_internal): Likewise.
47720         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
47721         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
47722         strstr, strcasestr): Likewise.
47723         * lib/unicodeio.c (unicode_to_mb): Likewise.
47724         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
47725         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
47726         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
47727         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
47728         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
47729         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
47730         * lib/unistr/u8-stpncpy.c: Likewise.
47731         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47732         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
47733         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
47734         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
47735         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47736         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
47737         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
47738         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
47739         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
47740         Likewise.
47741         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
47742         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
47743         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
47744         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47745         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47746         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
47747         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
47748         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
47749         * tests/test-getopt.h (OPTIND_MIN): Likewise.
47750         * tests/test-striconveha.c (main): Likewise.
47751         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47752         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
47753         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
47754         * doc/posix-functions/getline.texi: Likewise.
47755         Reported by Mike Frysinger <vapier@gentoo.org>.
47757 2010-11-20  Bruno Haible  <bruno@clisp.org>
47759         nproc: Fix condition.
47760         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
47761         HAVE_PTHREAD_AFFINITY_NP.
47763 2010-11-20  Bruno Haible  <bruno@clisp.org>
47765         Fix a comment.
47766         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
47768 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
47770         ftoastr: don't assume snprintf
47771         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
47772         Implement a subset of snprintf here, by using sprintf safely.
47773         * modules/ftoastr (Depends-on): Remove snprintf.
47775 2010-11-19  Jim Meyering  <meyering@redhat.com>
47777         test-rename.h: fix compilation failure
47778         * tests/test-rename.h (test_rename): Add omitted "}".
47780 2010-11-17  Jim Meyering  <meyering@redhat.com>
47782         maint.mk: add a URL discussing the no-@acronym policy
47783         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
47785 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
47787         ftoastr: depend on snprintf, improve comments
47788         * lib/ftoastr.c: Also mention Loitsch's draft.
47789         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
47790         needed in the current implementation, but it might simplify
47791         speeding up the code later.
47792         * modules/ftoastr: Depend on snprintf; this improves portability.
47793         Suggested by Bruno Haible in the same email.
47795         ftoastr: port to hosts lacking strtof and strtold
47796         Problem reported by Bruno Haible in
47797         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
47798         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
47799         environment and strtold (and presumably strtof) are not available.
47800         * modules/ftoastr (Files): Add m4/c-strtod.m4.
47801         (configure.ac): Require gl_C99_STRTOLD.
47803 2010-11-18  Bruno Haible  <bruno@clisp.org>
47805         c-strtold: Avoid link error on AIX 7.
47806         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
47807         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
47808         (gl_C_STRTOLD): Test whether strtold_l exists.
47809         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47811 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
47813         intprops: new macro INT_BITS_STRLEN_BOUND
47814         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
47815         ftoastr.h.  This exposes an internal of intprops.h that was formerly
47816         not exposed.  Also, it uses a slightly tighter bound than before;
47817         though this makes no practical difference, we might as well be as
47818         tight as we easily can.
47820         ftoastr: new module, for lossless conversion of floats to short strings
47821         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
47822         * modules/ftoastr: New files.
47824 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
47826         bootstrap: port to Solaris sed
47827         * build-aux/bootstrap (get_version): Port to Solaris sed.
47828         See Ralf Wildenhues's note in
47829         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
47831 2010-11-14  Jim Meyering  <meyering@redhat.com>
47833         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
47834         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
47835         and move definition closer to sole use.
47837 2010-11-13  Jim Meyering  <meyering@redhat.com>
47839         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
47840         Now we require at least autoconf-2.59, which means the work-around
47841         is no longer needed.
47842         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
47843         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
47844         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
47845         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47846         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47848 2010-11-13  Bruno Haible  <bruno@clisp.org>
47850         rename, renameat: Avoid test failures at NFS mounted locations.
47851         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
47852         functions.
47853         (test_rename): Use assert_nonexistent.
47854         * tests/test-rename.c: Include <dirent.h>.
47855         * tests/test-renameat.c: Likewise.
47856         Reported by Gary V. Vaughan <gary@gnu.org>.
47858         rename, renameat: Document Linux bug with NFS
47859         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
47860         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
47861         * doc/posix-functions/renameat.texi: Likewise.
47862         Suggested by Eric Blake.
47864 2010-11-13  Bruno Haible  <bruno@clisp.org>
47866         rename test: Add comments.
47867         * tests/test-rename.h (test_rename): Add structure and comments.
47869 2010-11-13  Eric Blake  <eblake@redhat.com>
47871         maintainer-makefile: cover a few more files
47872         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
47873         scripts generated within C files, for libvirt.
47875 2010-11-13  Bruno Haible  <bruno@clisp.org>
47877         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
47878         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
47879         character, return the number of bytes that belong together, not always
47880         1.
47881         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
47882         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
47883         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
47884         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
47885         number of bytes of an invalid character.
47886         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
47887         (main): Invoke it.
47888         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
47889         results.
47890         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
47891         malformed byte sequences.
47892         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
47893         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
47894         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
47895         Reported by Ben Pfaff and Paolo Bonzini.
47897 2010-11-13  Bruno Haible  <bruno@clisp.org>
47899         openat: Work around glibc bug with fchownat() and empty file names.
47900         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
47901         (gl_FUNC_FCHOWNAT): Invoke it.
47902         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
47903         * doc/posix-functions/fchownat.texi: Document the glibc bug.
47904         Reported by Gary V. Vaughan <gary@gnu.org>.
47906 2010-11-13  Bruno Haible  <bruno@clisp.org>
47908         openat: Ensure autoconf macro ordering.
47909         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
47910         gl_USE_SYSTEM_EXTENSIONS.
47911         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
47913 2010-11-13  Bruno Haible  <bruno@clisp.org>
47915         Update comments.
47916         * lib/unistr/u8-check.c: Update file name in comments.
47917         * lib/unistr/u8-mblen.c: Likewise.
47918         * lib/unistr/u8-prev.c: Likewise.
47919         * lib/unistr/u8-strmblen.c: Likewise.
47920         * lib/unistr/u8-strmbtouc.c: Likewise.
47922 2010-11-13  Jim Meyering  <meyering@redhat.com>
47924         tests: avoid test failure on Solaris 10 due to lack of PATH export
47925         * tests/test-update-copyright.sh: Don't forget to export PATH.
47927         init.sh: ensure that IFS is defined, just in case...
47928         * tests/init.sh (setup_): Ensure that IFS is defined,
47929         so that saving and restoring it works as expected.  This
47930         appears to be useful at least for an old version of dash
47931         from a long time ago (RH 6).  See here for details:
47932         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
47934         maint.mk: tighten "test a == b" check
47935         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
47936         test to files that contain something like #!/bin/sh.
47937         Without this, coreutils would get two false positives in
47938         the comments of C source files.
47940 2010-11-12  Eric Blake  <eblake@redhat.com>
47942         bootstrap: fix typo in previous attempt
47943         * build-aux/bootstrap (buildreq): Correct the grouping.
47944         Reported by Paul Eggert.
47946         maintainer-makefile: prohibit test x == x
47947         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
47948         Based on a report by Matthias Bolte.
47950         bootstrap: allow FreeBSD gzip
47951         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
47952         which has no '.' and goes to stderr.
47953         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
47954         Reported by Matthias Bolte.
47956         maintainer-makefile: check for i18n setup
47957         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
47958         will likely work.
47960 2010-11-12  Bruno Haible  <bruno@clisp.org>
47962         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
47963         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
47964         * lib/nanosleep.c (nanosleep): Likewise.
47966 2010-11-11  Bruno Haible  <bruno@clisp.org>
47968         fcntl-h: Fix for use of C++ on glibc systems.
47969         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
47970         also on glibc systems in C++ mode.
47971         Reported by Gary V. Vaughan <gary@gnu.org>.
47973 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
47975         mknod: avoid false failure with dash
47976         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
47978 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
47980         unlink: Fix "is it should" typo in diagnostic.
47981         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
47982         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
47984 2010-11-11  Bruno Haible  <bruno@clisp.org>
47986         Tests for module 'strerror_r-posix'.
47987         * modules/strerror_r-posix-tests: New file.
47988         * tests/test-strerror_r.c: New file.
47989         * tests/test-string-c++.cc: Check the signature of strerror_r.
47991         New module 'strerror_r-posix'.
47992         * lib/string.in.h (strerror_r): New declaration.
47993         * lib/strerror_r.c: New file.
47994         * m4/strerror_r.m4: New file.
47995         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
47996         of strerror_r.
47997         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
47998         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
47999         * modules/strerror_r-posix: New file.
48000         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
48001         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
48002         * doc/posix-functions/strerror_r.texi: Mention the new module and the
48003         portability problems.
48005 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
48007         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
48008         line is also considered for output. Quoted function name in shell
48009         command, so temporary files for functions like MyClass::operator()
48010         are removed correctly without errors.
48012 2010-11-09  Bruno Haible  <bruno@clisp.org>
48014         * doc/posix-functions/strerror.texi: List more failing platforms.
48016         * doc/posix-functions/strerror.texi: Add a comment.
48018 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
48020         fdopendir: fix bug on MacOS X when low on file descriptors
48022         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
48023         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
48024         All callers changed.
48025         (fdopendir): Invoke save_cwd at the top level, not after using
48026         multiple dup() calls to use up file descriptors.  Then retry
48027         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
48028         less than the maximum number of open file descriptors, because
48029         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
48030         on Mac OS X 10.6.4 for tar 1.24
48031         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
48032         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
48033         and for tar 1.25
48034         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
48036 2010-11-07  Bruno Haible  <bruno@clisp.org>
48038         vasnprintf: Support I flag on glibc systems.
48039         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
48040         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
48041         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
48042         snprintf function.
48043         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
48044         glibc systems.
48045         * tests/test-vasnprintf-posix3.c: New file.
48046         * modules/vasnprintf-posix-tests (Files): Add it.
48047         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
48049 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48051         [html] Fix copy/paste bug: Use unique name for compiler warnings.
48052         * MODULES.html.sh: For compiler warnings, use name
48053         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
48055 2010-11-05  Eric Blake  <eblake@redhat.com>
48057         ceil, floor: avoid spurious failure with icc
48058         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
48059         [denormals-as-zero] when optimizing without -mieee-fp option.
48060         * tests/test-floorf2.c (floorf_reference): Likewise.
48061         * tests/test-ceilf1.c (dummy): New function.
48062         (main): Use it to outsmart icc's optimization.
48063         * tests/test-floorf1.c (dummy, main): Likewise.
48065         tests: require working signbit
48066         * modules/ceilf-tests (Depends-on): Add signbit.
48067         * modules/ceill-tests (Depends-on): Likewise.
48068         * modules/floorf-tests (Depends-on): Likewise.
48069         * modules/floorl-tests (Depends-on): Likewise.
48070         * modules/round-tests (Depends-on): Likewise.
48071         * modules/roundf-tests (Depends-on): Likewise.
48072         * modules/roundl-tests (Depends-on): Likewise.
48073         * modules/trunc-tests (Depends-on): Likewise.
48074         * modules/truncf-tests (Depends-on): Likewise.
48075         * modules/truncl-tests (Depends-on): Likewise.
48077         strtod: work around icc bug
48078         * lib/strtod.c (minus_zero): Define to working value.
48079         (strtod): Use it to avoid icc bug.
48081         copysign: enhance tests
48082         * modules/copysign-tests (Files): Add minus-zero.h.
48083         * tests/test-copysign.c (main): Also test zeros.
48085 2010-11-04  Eric Blake  <eblake@redhat.com>
48087         ceil, floor, round, trunc: enhance tests of -0
48088         * tests/test-ceilf1.c (main): Ensure correct sign of result.
48089         * tests/test-ceill.c (main): Likewise.
48090         * tests/test-floorf1.c (main): Likewise.
48091         * tests/test-floorl.c (main): Likewise.
48092         * tests/test-round1.c (main): Likewise.
48093         * tests/test-roundf1.c (main): Likewise.
48094         * tests/test-roundl.c (main): Likewise.
48095         * tests/test-trunc1.c (main): Likewise.
48096         * tests/test-truncf1.c (main): Likewise.
48097         * tests/test-truncl.c (main): Likewise.
48099 2010-11-04  Eric Blake  <eblake@redhat.com>
48101         frexp, tests: work around ICC bug with -zero
48102         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
48103         works with more compilers.
48104         * tests/minus-zero.h: New file.
48105         * modules/ceilf-tests (Files): Include it.
48106         * modules/ceill-tests (Files): Likewise.
48107         * modules/floorf-tests (Files): Likewise.
48108         * modules/floorl-tests (Files): Likewise.
48109         * modules/frexp-nolibm-tests (Files): Likewise.
48110         * modules/frexp-tests (Files): Likewise.
48111         * modules/frexpl-nolibm-tests (Files): Likewise.
48112         * modules/frexpl-tests (Files): Likewise.
48113         * modules/isnan-tests (Files): Likewise.
48114         * modules/isnand-nolibm-tests (Files): Likewise.
48115         * modules/isnand-tests (Files): Likewise.
48116         * modules/isnanf-nolibm-tests (Files): Likewise.
48117         * modules/isnanf-tests (Files): Likewise.
48118         * modules/isnanl-nolibm-tests (Files): Likewise.
48119         * modules/isnanl-tests (Files): Likewise.
48120         * modules/round-tests (Files): Likewise.
48121         * modules/roundf-tests (Files): Likewise.
48122         * modules/roundl-tests (Files): Likewise.
48123         * modules/ldexpl-tests (Files): Likewise.
48124         * modules/signbit-tests (Files): Likewise.
48125         * modules/snprintf-posix-tests (Files): Likewise.
48126         * modules/sprintf-posix-tests (Files): Likewise.
48127         * modules/strtod-tests (Files): Likewise.
48128         * modules/trunc-tests (Files): Likewise.
48129         * modules/truncf-tests (Files): Likewise.
48130         * modules/truncl-tests (Files): Likewise.
48131         * modules/vsnprintf-posix-tests (Files): Likewise.
48132         * modules/vsprintf-posix-tests (Files): Likewise.
48133         * modules/vasnprintf-posix-tests (Files): Likewise.
48134         * modules/vasprintf-posix-tests (Files): Likewise.
48135         * tests/test-ceilf1.c (main): Use it.
48136         * tests/test-ceill.c (main): Likewise.
48137         * tests/test-floorf1.c (main): Likewise.
48138         * tests/test-floorl.c (main): Likewise.
48139         * tests/test-frexp.c (main): Likewise.
48140         * tests/test-frexpl.c (main): Likewise.
48141         * tests/test-isnan.c (main): Likewise.
48142         * tests/test-isnand.h (main): Likewise.
48143         * tests/test-isnanf.h (main): Likewise.
48144         * tests/test-isnanl.h (main): Likewise.
48145         * tests/test-ldexpl.c (main): Likewise.
48146         * tests/test-round.c (main): Likewise.
48147         * tests/test-roundf.c (main): Likewise.
48148         * tests/test-roundl.c (main): Likewise.
48149         * tests/test-signbit.c (test_signbitf, test_signbitd)
48150         (test_signbitl): Likewise.
48151         * tests/test-snprintf-posix.h (test_function): Likewise.
48152         * tests/test-sprintf-posix.h (test_function): Likewise.
48153         * tests/test-strtod.c (main): Likewise.
48154         * tests/test-trunc1.c (main): Likewise.
48155         * tests/test-truncf1.c (main): Likewise.
48156         * tests/test-truncl.c (main): Likewise.
48158         isnanl: work around icc bug
48159         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
48161 2010-11-03  Eric Blake  <eblake@redhat.com>
48163         tests: fix compiler warnings
48164         * tests/test-getopt.h (test_getopt): Fix condition.
48165         * tests/test-getopt_long.h (test_getopt_long): Likewise.
48166         * tests/test-pipe2.c (main): Likewise.
48167         * tests/test-quotearg-simple.c (main): Avoid icc warning.
48169         utimens: fix broken m4 test
48170         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
48172 2010-10-28  Bruno Haible  <bruno@clisp.org>
48174         posix_spawn*, getdtablesize: Relax license.
48175         * modules/posix_spawn (License): Change to LGPLv2+.
48176         * modules/posix_spawnp (License): Likewise.
48177         * modules/posix_spawn-internal (License): Likewise.
48178         * modules/posix_spawnattr_init (License): Likewise.
48179         * modules/posix_spawnattr_getflags (License): Likewise.
48180         * modules/posix_spawnattr_setflags (License): Likewise.
48181         * modules/posix_spawnattr_getpgroup (License): Likewise.
48182         * modules/posix_spawnattr_setpgroup (License): Likewise.
48183         * modules/posix_spawnattr_getschedparam (License): Likewise.
48184         * modules/posix_spawnattr_setschedparam (License): Likewise.
48185         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
48186         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
48187         * modules/posix_spawnattr_getsigdefault (License): Likewise.
48188         * modules/posix_spawnattr_setsigdefault (License): Likewise.
48189         * modules/posix_spawnattr_getsigmask (License): Likewise.
48190         * modules/posix_spawnattr_setsigmask (License): Likewise.
48191         * modules/posix_spawnattr_destroy (License): Likewise.
48192         * modules/posix_spawn_file_actions_init (License): Likewise.
48193         * modules/posix_spawn_file_actions_addclose (License): Likewise.
48194         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
48195         * modules/posix_spawn_file_actions_addopen (License): Likewise.
48196         * modules/posix_spawn_file_actions_destroy (License): Likewise.
48197         * modules/getdtablesize (License): Likewise.
48198         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
48200 2010-10-26  Bruno Haible  <bruno@clisp.org>
48202         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
48203         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
48204         Cygwin and mingw.
48205         Suggested by Eric Blake.
48207 2010-10-26  Bruno Haible  <bruno@clisp.org>
48209         stdio: Work around compilation error due to renameat() on Solaris 10.
48210         * lib/stdio.in.h: Include <unistd.h> on Solaris.
48211         * lib/renameat.c: Don't include <unistd.h> here.
48212         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
48213         Reported by Paul Eggert and Eric Blake.
48215 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
48217         renameat: port to Solaris 10, which declares renameat in unistd.h
48219         * lib/renameat.c: Include unistd.h before stdio.h, because
48220         Solaris 10 declares renameat in unistd.h.  Problem encountered
48221         when building GNU tar 1.24 on Solaris 10.
48223 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
48225         fdopendir: fix C89 compilation
48226         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
48227         compilers.
48229 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
48231         inttostr: simplify by removing unnecessary redundancy
48232         * lib/anytostr.c: Don't include verify.h.
48233         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
48234         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
48235         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
48236         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
48237         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
48238         Likewise.
48239         * modules/inttostr (Depends-on): Remove 'verify'.
48241 2010-10-23  Bruno Haible  <bruno@clisp.org>
48243         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
48244         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
48245         Reported by Eric Blake.
48247 2010-10-23  Bruno Haible  <bruno@clisp.org>
48249         Tests: Fix LOCALE_JA on MirBSD 10.
48250         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
48251         to an UTF-8 locale.
48252         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
48253         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48254         Reported by Eric Blake.
48256 2010-10-21  Bruno Haible  <bruno@clisp.org>
48258         nl_langinfo test: Avoid test failure on NetBSD 5.
48259         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
48260         Reported by Eric Blake.
48262 2010-10-21  Eric Blake  <eblake@redhat.com>
48264         c-stack: work around libsigsegv 2.8 bug
48265         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
48266         overflow on at least PowerPC64.
48268 2010-10-17  Bruno Haible  <bruno@clisp.org>
48270         userspec: Drop redundant file.
48271         * modules/userspec (Files): Remove lib/inttostr.h.
48273 2010-10-17  Bruno Haible  <bruno@clisp.org>
48275         nl_langinfo tests: Silence some warnings.
48276         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
48277         Reported by Jim Meyering.
48279 2010-10-17  Bruno Haible  <bruno@clisp.org>
48281         Make use of GCC's attribute __alloc_size__.
48282         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
48283         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
48284         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
48285         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
48286         __alloc_size__.
48287         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
48288         Suggested by Jim Meyering.
48290 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
48292         bootstrap: anchor .gitignore entries.
48293         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
48294         with...
48295         (insert_vc_ignore): ... this new function, which prepends `/' to
48296         all .gitignore entries before passing them to
48297         insert_sorted_if_absent.
48299 2010-10-16  Bruno Haible  <bruno@clisp.org>
48301         nextafter: Fix configure check.
48302         * modules/nextafter (configure.ac): Correct expected prototype.
48304 2010-10-16  Bruno Haible  <bruno@clisp.org>
48306         termios: Update documentation.
48307         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
48309 2010-10-16  Bruno Haible  <bruno@clisp.org>
48311         tests: Make them compile with TinyCC.
48312         * tests/test-strstr.c (main): Remove parentheses around array
48313         initializer.
48315 2010-10-15  Eric Blake  <eblake@redhat.com>
48317         ignore-value: make header idempotent
48318         * lib/ignore-value.h: Add double-inclusion guards.
48319         Reported by Stefan Berger.
48321 2010-10-15  Jim Meyering  <meyering@redhat.com>
48323         GNUmakefile: handle "stable" target, not "major"
48324         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
48325         lists in maint.mk and announce-gen.  Without this, "make stable"
48326         would fail to ensure that $(VERSION) is up to date.
48328 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
48330         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
48331         & co.
48333 2010-10-14  Bruno Haible  <bruno@clisp.org>
48335         vasnprintf: Don't set errno to 0.
48336         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
48337         block that sets it to 0.
48338         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
48340 2010-10-14  Bruno Haible  <bruno@clisp.org>
48342         socketlib: Fix.
48343         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
48344         gl_PREREQ_SYS_H_WINSOCK2.
48345         Reported by Ian Beckwith <ianb@erislabs.net>.
48347 2010-10-13  Jim Meyering  <meyering@redhat.com>
48349         test-select-stdin.c: avoid warn_unused_result warnings
48350         * tests/test-select-stdin.c: Include "macros.h".
48351         ASSERT that read and fflush succeed.
48353 2010-10-13  Jim Meyering  <meyering@redhat.com>
48355         git-version-gen: do require git-VC'd files in cwd
48356         * build-aux/git-version-gen: Reject a git version string
48357         if there are no commits associated with the current directory.
48358         This avoids an unlikely false-positive (unrelated dir whose parent
48359         repository also contains a tag matching v*), as pointed out
48360         by Giuseppe Scrivano in
48361         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
48363 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
48365         argv-iter: omit nonconforming declaration
48366         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
48367         enum arg_iter_err declaration, which doesn't conform to C99.
48368         Solaris 10 cc warns about this.
48370 2010-10-13  Eric Blake  <eblake@redhat.com>
48372         termios: fix compilation on mingw
48373         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
48374         (gl_TERMIOS_H): Adjust it on mingw.
48375         * modules/termios (Makefile.am): Substitute new key.
48376         * lib/termios.in.h (includes): Make include_next conditional.
48377         * doc/posix-headers/termios.texi (termios.h): Update
48378         documentation.
48379         Reported by Daniel P. Berrange.
48381 2010-10-13  Jim Meyering  <meyering@redhat.com>
48383         git-version-gen: don't require that .git/ be in the current dir
48384         * build-aux/git-version-gen: Adjust this script so that it works
48385         when run from any working directory beneath the top-level .git/-
48386         containing directory.  Inspired by a patch from Giuseppe Scrivano,
48387         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
48389         test-select: avoid warn_unused_result warnings
48390         * tests/test-select.c: Include "macros.h".
48391         ASSERT that each call to read, write, and pipe succeeds.
48392         While not technically required, also check each "close".
48393         * modules/select-tests (Files): Add tests/macros.h.
48395         test-symlinkat: remove declaration of unused local
48396         * tests/test-symlinkat.c (main): Remove unused local, "buf".
48398         test-inttostr: avoid shadowing warnings
48399         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
48400         and use malloc rather than the stack for the same reason as
48401         mentioned in the comment justifying the other allocation.
48403 2010-10-11  Bruno Haible  <bruno@clisp.org>
48405         stdlib: Allow multiple gnulib generated replacements to coexist.
48406         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
48407         Reported by Sam Steingold <sds@gnu.org>.
48409 2010-10-11  Jim Meyering  <meyering@redhat.com>
48411         fix a documentation typo
48412         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
48414 2010-10-11  Eric Blake  <eblake@redhat.com>
48416         futimens: work around Solaris 11 bug
48417         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
48418         * tests/test-futimens.h (test_futimens): Enhance, rather than
48419         weaken test.
48420         * doc/posix-functions/futimens.texi (futimens): Document the bug.
48422 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48424         Indentation.
48425         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
48426         higher-level operators more to the left.
48428 2010-10-11  Jim Meyering  <meyering@redhat.com>
48430         test-futimens: avoid unwarranted test failure on Solaris 5.11
48431         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
48432         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
48433         because it tries to dereference the NULL name argument.
48435 2010-10-11  Bruno Haible  <bruno@clisp.org>
48437         Indentation.
48438         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
48439         indentation.
48441 2010-10-11  Jim Meyering  <meyering@redhat.com>
48443         spawn.in.h: make indentation consistent with parentheses
48444         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
48445         Make indentation consistent with parentheses.
48447 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
48449         Fix mismatched parens in previous commit
48450         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
48451         parens.
48453 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48455         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
48457         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
48458         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
48459         * lib/malloca.c: Include "verify.h".
48460         (verify1): Remove, replacing with a verify call.
48461         * lib/relocwrapper.c (verify1): Likewise.
48462         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
48463         Likewise.
48464         * modules/malloca (Depends-on): Add 'verify'.
48465         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
48466         * modules/vasnprintf (Depends-on): Add 'verify'.
48467         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48468         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48469         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48470         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48471         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48472         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48473         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48475         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
48477         Formerly the style was sometimes 2*X - 1, because the C standard
48478         was wrongly thought to disallow ?: in integral constant expressions.
48479         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
48480         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
48481         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
48482         * lib/stdint.in.h (_verify_intmax_size): Likewise.
48483         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
48484         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
48485         verify that time_t cannot be floating.
48487 2010-10-08  Eric Blake  <eblake@redhat.com>
48489         time: enforce recent POSIX ruling that time_t is integral
48490         * lib/time.in.h (__time_t_must_be_integral): Detect any
48491         problematic systems, allowing the rest of gnulib to assume POSIX.
48493 2010-10-08  Jim Meyering  <meyering@redhat.com>
48495         fdopendir: fix a bug on systems lacking openat and /proc support
48496         OpenBSD 4.7 is one such system.  The most noticeable effect was
48497         failure of any application making nontrivial use of fts: rm, du,
48498         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
48499           ./rm: traversal failed: `a': Bad file descriptor
48500         Debugging that, you see that even though FD 6 was closed just
48501         prior to the opendir call in fd_clone_opendir, its resulting
48502         dir->dd_fd was 8, rather than the expected value of 6:
48504         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
48505         93                close (fd);
48506         (gdb) n
48507         94                dir = fd_clone_opendir (dupfd);
48508         (gdb) n
48509         95                saved_errno = errno;
48510         (gdb) p dir->dd_fd
48511         $11 = 8
48513         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
48514         The problem is that on OpenBSD, fd_clone_opendir has to resort
48515         to using the old-style save/restore CWD mechanism, due to its
48516         lack of openat/proc support, and *that* would steal the FD (6)
48517         that opendir was supposed to use.
48519         The fix is to squirrel away the desired FD so that save_cwd uses a
48520         different one, and then free the dest FD right before calling opendir.
48521         That guarantees opendir will use the required file descriptor.
48523         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
48525 2010-10-08  Bruno Haible  <bruno@clisp.org>
48527         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
48528         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
48530 2010-10-08  Bruno Haible  <bruno@clisp.org>
48532         nanosleep: Make replacement POSIX compliant.
48533         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
48534         is out of range.
48535         Reported by Jim Meyering.
48537 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48539         bootstrap: add hook for altering gnulib.mk, for Bison
48540         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
48541         the Bison bootstrapping process can rewrite file names and variables
48542         in this file before later parts of 'bootstrap' use the file.
48543         Bison wants to include lib/gnulib.mk from the top-level makefile,
48544         so it needs the file names in this file to be relative to the top
48545         level, not relative to lib; plus it needs variable names to be
48546         rewritten.
48547         (slurp): Use the new function.
48549         bootstrap: reformat for readability
48550         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
48552 2010-10-08  Eric Blake  <eblake@redhat.com>
48554         docs: update cygwin progress
48555         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
48556         1.7.7.
48557         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
48558         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
48559         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
48560         * doc/posix-functions/carg.texi (carg): Likewise.
48561         * doc/posix-functions/cargf.texi (cargf): Likewise.
48562         * doc/posix-functions/casin.texi (casin): Likewise.
48563         * doc/posix-functions/casinf.texi (casinf): Likewise.
48564         * doc/posix-functions/casinh.texi (casinh): Likewise.
48565         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
48566         * doc/posix-functions/catan.texi (catan): Likewise.
48567         * doc/posix-functions/catanf.texi (catanf): Likewise.
48568         * doc/posix-functions/catanh.texi (catanh): Likewise.
48569         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
48570         * doc/posix-functions/ccos.texi (ccos): Likewise.
48571         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
48572         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
48573         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
48574         * doc/posix-functions/cexp.texi (cexp): Likewise.
48575         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
48576         * doc/posix-functions/cimag.texi (cimag): Likewise.
48577         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
48578         * doc/posix-functions/clog.texi (clog): Likewise.
48579         * doc/posix-functions/clogf.texi (clogf): Likewise.
48580         * doc/posix-functions/conj.texi (conj): Likewise.
48581         * doc/posix-functions/conjf.texi (conjf): Likewise.
48582         * doc/posix-functions/cpow.texi (cpow): Likewise.
48583         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
48584         * doc/posix-functions/cproj.texi (cproj): Likewise.
48585         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
48586         * doc/posix-functions/creal.texi (creal): Likewise.
48587         * doc/posix-functions/crealf.texi (crealf): Likewise.
48588         * doc/posix-functions/csin.texi (csin): Likewise.
48589         * doc/posix-functions/csinf.texi (csinf): Likewise.
48590         * doc/posix-functions/csinh.texi (csinh): Likewise.
48591         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
48592         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
48593         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
48594         * doc/posix-functions/ctan.texi (ctan): Likewise.
48595         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
48596         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
48597         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
48598         * doc/posix-headers/complex.texi (complex.h): Likewise.
48600 2010-10-07  Jim Meyering  <meyering@redhat.com>
48602         parse-datetime: avoid compilation failure on OpenBSD 4.7
48603         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
48604         This works around a compilation failure on OpenBSD 4.7:
48605         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
48607 2010-10-07  Eric Blake  <eblake@redhat.com>
48609         docs: update cygwin progress
48610         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
48611         1.7.6.
48612         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
48613         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
48614         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
48615         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
48616         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
48617         Likewise.
48618         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
48619         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
48620         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
48621         Likewise.
48622         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
48623         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
48624         Likewise.
48625         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
48626         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
48627         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
48628         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
48629         Likewise.
48630         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
48631         Likewise.
48632         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
48634         docs: update parse-datetime history
48635         * doc/parse-datetime.texi (Authors of parse_datetime): Better
48636         documentation of this function's history and alternatives.
48638         cygwin: use more robust version check
48639         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
48640         exclude an eventual cygwin 1.9.1.
48641         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48642         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48643         (gl_FUNC_STRCASESTR): Likewise.
48644         Reported by Bruno Haible.
48646 2010-10-06  Bruno Haible  <bruno@clisp.org>
48648         string, sys_select: Avoid #including large headers unless necessary.
48649         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
48650         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
48651         OSF/1, BeOS, Haiku.
48652         Reported by Jim Meyering.
48654 2010-10-05  Eric Blake  <eblake@redhat.com>
48656         memmem, strstr, strcasestr: fix bug with long periodic needle
48657         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
48658         periodic needle having false positive.
48659         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
48660         and cygwin 1.7.7.
48661         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
48662         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
48663         (gl_FUNC_STRCASESTR): Likewise.
48664         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
48665         * tests/test-memmem.c (main): Expose the bug.
48666         * tests/test-strcasestr.c (main): Likewise.
48667         * tests/test-strstr.c (main): Likewise.
48668         * tests/test-c-strcasestr.c (main): Likewise.
48669         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
48670         * doc/posix-functions/strstr.texi (strstr): Likewise.
48671         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
48672         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
48674 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48676         parse-datetime: do some more renaming
48677         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
48678         parse_datetime, not get_date.  Mention the renaming.
48679         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
48680         in comments.
48681         * m4/bison.m4: Likewise.
48683 2010-10-05  Eric Blake  <eblake@redhat.com>
48685         parse-datetime: better name than get_date
48686         * NEWS: Reword the deprecation notice.
48687         * modules/get_date: Rename to modules/parse-datetime.
48688         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
48689         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
48690         * lib/get_date.y: Rename to lib/parse-datetime.y.
48691         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
48692         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
48693         * doc/getdate.texi: Provide fallback wrapper.
48694         * lib/getdate.h: Move guts, and wrap...
48695         * lib/parse-datetime.h: ...new file.
48696         * lib/parse-datetime.y (get_date): Rename...
48697         (parse_datetime): ...to this.
48698         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
48699         (gl_PARSE_DATETIME): ...to this.
48700         * doc/posix-functions/getdate.texi (get_date): Provide fallback
48701         documentation.
48702         * modules/getdate (Files): Provide fallback docs and header.
48703         (Notice, Depends-on): Update references.
48704         * tests/test-parse-datetime.c: Likewise.
48705         * DEPENDENCIES: Likewise.
48706         * MODULES.html.sh (Date and time <time.h>): Likewise.
48707         * doc/parse-datetime.texi (Date input formats)
48708         (Authors of parse_datetime): Likewise.
48709         * modules/parse-datetime (Files, configure.ac, Makefile.am)
48710         (Include): Likewise.
48711         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
48712         * gnulib-tool: Likewise.
48713         * m4/bison.m4 (gl_BISON): Likewise.
48714         Suggested by Bruno Haible.
48716 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48718         more ports to Solaris tr, which needs [] around ranges
48719         * gnulib-tool: Solaris tr needs [] around ranges.
48720         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
48721         * tests/test-pipe-filter-gi1.c (main): Likewise.
48722         * tests/test-pipe-filter-ii1.c (main): Likewise.
48724 2010-10-05  Eric Blake  <eblake@redhat.com>
48726         bootstrap: fix Solaris regression
48727         * build-aux/bootstrap (check_versions): Solaris tr still needs []
48728         around ranges.
48729         Reported by Pádraig Brady.
48731         bootstrap: work with pkg-config
48732         * build-aux/bootstrap (check_versions): Also transliterate - in
48733         prerequisite name.
48734         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
48735         prerequisites that were already found, to avoid confusion.
48736         Reported by Justin Clift.
48738         faccessat: remove unused wrappers
48739         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
48740         presence of these wrappers dragged in -lgen on Solaris.
48741         Reported by Clemens Brogi; fix suggested by Paul Eggert.
48743 2010-10-05  Jim Meyering  <meyering@redhat.com>
48745         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
48746         * Makefile (sc_pragma_columns): New syntax-check rule.
48748 2010-10-04  Bruno Haible  <bruno@clisp.org>
48750         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
48751         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
48752         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
48753         Reported by Bruce Korb and Eric Blake.
48755 2010-10-04  Bruno Haible  <bruno@clisp.org>
48757         threadlib: Make option --with-libpth-prefix work.
48758         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
48759         use $LIBPTH, not just -lpth.
48761 2010-10-04  Bruno Haible  <bruno@clisp.org>
48763         Avoid line length limitation from HP NonStop system header files.
48764         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
48765         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
48766         * lib/ctype.in.h: Likewise.
48767         * lib/dirent.in.h: Likewise.
48768         * lib/errno.in.h: Likewise.
48769         * lib/fcntl.in.h: Likewise.
48770         * lib/float.in.h: Likewise.
48771         * lib/getopt.in.h: Likewise.
48772         * lib/iconv.in.h: Likewise.
48773         * lib/inttypes.in.h: Likewise.
48774         * lib/langinfo.in.h: Likewise.
48775         * lib/locale.in.h: Likewise.
48776         * lib/math.in.h: Likewise.
48777         * lib/netdb.in.h: Likewise.
48778         * lib/netinet_in.in.h: Likewise.
48779         * lib/poll.in.h: Likewise.
48780         * lib/pthread.in.h: Likewise.
48781         * lib/pty.in.h: Likewise.
48782         * lib/sched.in.h: Likewise.
48783         * lib/se-selinux.in.h: Likewise.
48784         * lib/search.in.h: Likewise.
48785         * lib/signal.in.h: Likewise.
48786         * lib/spawn.in.h: Likewise.
48787         * lib/stdarg.in.h: Likewise.
48788         * lib/stddef.in.h: Likewise.
48789         * lib/stdint.in.h: Likewise.
48790         * lib/stdio.in.h: Likewise.
48791         * lib/stdlib.in.h: Likewise.
48792         * lib/string.in.h: Likewise.
48793         * lib/strings.in.h: Likewise.
48794         * lib/sys_file.in.h: Likewise.
48795         * lib/sys_ioctl.in.h: Likewise.
48796         * lib/sys_select.in.h: Likewise.
48797         * lib/sys_socket.in.h: Likewise.
48798         * lib/sys_stat.in.h: Likewise.
48799         * lib/sys_time.in.h: Likewise.
48800         * lib/sys_times.in.h: Likewise.
48801         * lib/sys_utsname.in.h: Likewise.
48802         * lib/sys_wait.in.h: Likewise.
48803         * lib/sysexits.in.h: Likewise.
48804         * lib/termios.in.h: Likewise.
48805         * lib/time.in.h: Likewise.
48806         * lib/unistd.in.h: Likewise.
48807         * lib/wchar.in.h: Likewise.
48808         * lib/wctype.in.h: Likewise.
48809         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
48810         * modules/ctype (Makefile.am): Likewise.
48811         * modules/dirent (Makefile.am): Likewise.
48812         * modules/errno (Makefile.am): Likewise.
48813         * modules/fcntl-h (Makefile.am): Likewise.
48814         * modules/float (Makefile.am): Likewise.
48815         * modules/getopt-posix (Makefile.am): Likewise.
48816         * modules/iconv-h (Makefile.am): Likewise.
48817         * modules/inttypes (Makefile.am): Likewise.
48818         * modules/langinfo (Makefile.am): Likewise.
48819         * modules/locale (Makefile.am): Likewise.
48820         * modules/math (Makefile.am): Likewise.
48821         * modules/netdb (Makefile.am): Likewise.
48822         * modules/netinet_in (Makefile.am): Likewise.
48823         * modules/poll-h (Makefile.am): Likewise.
48824         * modules/pthread (Makefile.am): Likewise.
48825         * modules/pty (Makefile.am): Likewise.
48826         * modules/sched (Makefile.am): Likewise.
48827         * modules/search (Makefile.am): Likewise.
48828         * modules/selinux-h (Makefile.am): Likewise.
48829         * modules/signal (Makefile.am): Likewise.
48830         * modules/spawn (Makefile.am): Likewise.
48831         * modules/stdarg (Makefile.am): Likewise.
48832         * modules/stddef (Makefile.am): Likewise.
48833         * modules/stdint (Makefile.am): Likewise.
48834         * modules/stdio (Makefile.am): Likewise.
48835         * modules/stdlib (Makefile.am): Likewise.
48836         * modules/string (Makefile.am): Likewise.
48837         * modules/strings (Makefile.am): Likewise.
48838         * modules/sys_file (Makefile.am): Likewise.
48839         * modules/sys_ioctl (Makefile.am): Likewise.
48840         * modules/sys_select (Makefile.am): Likewise.
48841         * modules/sys_socket (Makefile.am): Likewise.
48842         * modules/sys_stat (Makefile.am): Likewise.
48843         * modules/sys_time (Makefile.am): Likewise.
48844         * modules/sys_times (Makefile.am): Likewise.
48845         * modules/sys_utsname (Makefile.am): Likewise.
48846         * modules/sys_wait (Makefile.am): Likewise.
48847         * modules/sysexits (Makefile.am): Likewise.
48848         * modules/termios (Makefile.am): Likewise.
48849         * modules/time (Makefile.am): Likewise.
48850         * modules/unistd (Makefile.am): Likewise.
48851         * modules/wchar (Makefile.am): Likewise.
48852         * modules/wctype (Makefile.am): Likewise.
48854 2010-10-04  Bruno Haible  <bruno@clisp.org>
48856         read-file tests: Avoid a test failure on NonStop Kernel.
48857         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
48858         a regular file.
48859         Reported by Joachim Schmitz <schmitz@hp.com>.
48861 2010-10-03  Bruno Haible  <bruno@clisp.org>
48863         gnulib-tool: Fixes for --create-testdir with --libtool.
48864         * gnulib-tool (func_get_automake_snippet): Don't augment
48865         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
48866         an executable.
48867         (func_create_testdir): Handle module 'alloca' like func_import.
48868         Reported by Bruce Korb <bruce.korb@gmail.com>.
48870 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
48872         Avoid some lines longer than 80 characters.
48873         * lib/stdint.in.h: Break long comment lines.
48874         * lib/math.in.h: Likewise.
48875         (_GL_NUM_UINT_WORDS): New macro, for readability.
48876         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
48877         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
48878         * lib/stdlib.in.h: Likewise.
48879         * lib/spawn.in.h: Likewise.
48880         * lib/sys_socket.in.h: Update an URL.
48881         * lib/sys_stat.in.h: Break long line.
48883 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
48885         Improve pmccabe2html.
48886         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
48887         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
48888         when the sources change. Remove the line in the HTML about "Used
48889         ranges" (which implied that there might be other unused ranges),
48890         rename "Resume" to "Summary" (easier to understand for more users).
48891         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
48892         styles, and some unnecessary blank lines.
48894 2010-10-03  Bruno Haible  <bruno@clisp.org>
48895             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
48897         acl: Add support for ACLs on NonStop Kernel.
48898         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
48899         Check whether the function aclsort() exists.
48900         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
48901         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
48902         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48903         (acl_nontrivial [HAVE_ACLSORT]: New function.
48904         (file_has_acl): Implement for NonStop Kernel.
48905         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48906         (qset_acl): Implement for NonStop Kernel.
48907         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
48908         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
48909         (main): Implement for NonStop Kernel.
48910         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
48911         Kernel. Handle this flavor.
48912         * tests/test-set-mode-acl.sh: Likewise.
48913         * tests/test-copy-acl.sh: Likewise.
48914         * tests/test-copy-file.sh: Likewise.
48916 2010-10-03  Bruno Haible  <bruno@clisp.org>
48918         Info about ACLs on NonStop Kernel.
48919         * doc/acl-resources.txt: Add info about NonStop Kernel.
48920         References by Joachim Schmitz <schmitz@hp.com>.
48922 2010-10-02  Bruno Haible  <bruno@clisp.org>
48924         Define missing EDQUOT on NonStop Kernel.
48925         * lib/errno.in.h (EDQUOT): Assign a value if missing.
48926         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
48927         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
48928         missing.
48929         * doc/posix-headers/errno.texi: Mention the NSK bug.
48930         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
48931         Reported by Joachim Schmitz <schmitz@hp.com>.
48933 2010-10-02  Bruno Haible  <bruno@clisp.org>
48935         Update doc for POSIX:2008.
48936         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
48937         Update URL of POSIX specification.
48939 2010-10-02  Bruno Haible  <bruno@clisp.org>
48941         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
48942         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
48943         from gnulib, not from Automake.
48945 2010-10-02  Bruno Haible  <bruno@clisp.org>
48947         New module 'system-posix'.
48948         * modules/system-posix: New file.
48949         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
48950         module is present.
48951         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
48952         GNULIB_SYSTEM_POSIX.
48953         * modules/stdlib (Depends-on): Remove sys_wait.
48954         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
48955         * doc/posix-functions/system.texi: Mention the new module.
48956         * doc/posix-headers/stdlib.texi: Likewise.
48957         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
48958         define test_sys_wait_macros to a no-op.
48959         Reported by Sam Steingold <sds@gnu.org>.
48961 2010-09-30  Bruno Haible  <bruno@clisp.org>
48963         More renaming from 'getdate' to 'get_date'.
48964         * doc/get_date.texi: Renamed from doc/getdate.texi.
48965         * modules/get_date (Files): Update.
48966         * MODULES.html.sh (Date and time <time.h>): Update.
48967         * DEPENDENCIES: Update.
48968         * gnulib-tool: Update comment.
48969         * m4/bison.m4 (gl_BISON): Likewise.
48970         * m4/get_date.m4 (gl_GET_DATE): Likewise.
48972 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
48974         bootstrap: support ACLOCAL_FLAGS during aclocal
48975         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
48976         can add additional -I dir for third-party .m4 files.
48978 2010-09-30  Eric Blake  <eblake@redhat.com>
48980         bootstrap: use glibtoolize on MacOS
48981         * build-aux/bootstrap (check_versions): Convert libtool into
48982         libtoolize.
48983         (tool search): Move libtool check earlier, and look for
48984         glibtoolize for MacOS.
48985         (gnulib_tool_options): Auto-add --libtool when appropriate.
48986         Reported by Justin Clift.
48988         poll: fix typo that broke test on MacOS
48989         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
48990         Reported by Justin Clift.
48992         getdate: rename to get_date
48993         Note: getdate.h is not renamed, to minimize client impact.
48994         * modules/getdate: Mark obsolete.  Move old contents...
48995         * modules/get_date: ...to new module name.
48996         * modules/getdate-tests: Move...
48997         * modules/get_date-tests: ...here.
48998         * m4/getdate.m4: Move...
48999         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
49000         * lib/getdate.y: Move...
49001         * lib/get_date.y: ...here.
49002         * tests/test-getdate.c: Move...
49003         * tests/test-get_date.c: ...here.
49004         * doc/posix-functions/getdate.texi (getdate): Update name.
49005         * NEWS: Mention the change.
49007 2010-09-29  Bruno Haible  <bruno@clisp.org>
49009         Separate the module 'waitpid' from the module 'sys_wait'.
49010         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
49011         present.
49012         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
49013         gl_MODULE_INDICATOR_FOR_TESTS.
49014         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
49015         * modules/sys_wait (Depends-on): Remove waitpid.
49016         (Makefile.am): Substitute GNULIB_WAITPID.
49017         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
49018         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
49019         signature only if the 'waitpid' module is present.
49020         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
49021         * NEWS: Mention the change.
49022         * modules/grantpt (Depends-on): Add waitpid.
49023         * modules/wait-process (Depends-on): Likewise.
49025 2010-09-29  Bruno Haible  <bruno@clisp.org>
49027         More tests for module 'sys_wait'.
49028         * modules/sys_wait-c++-tests: New file.
49029         * tests/test-sys_wait-c++.cc: New file.
49030         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
49031         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
49033 2010-09-29  Bruno Haible  <bruno@clisp.org>
49035         New module 'waitpid'.
49036         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
49037         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
49038         Don't include <process.h>.
49039         (waitpid): Declare only, using modern idiom.
49040         * m4/waitpid.m4: New file.
49041         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
49042         * modules/waitpid: New file.
49043         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
49044         (Makefile.am): Update.
49045         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
49047 2010-09-28  Bruno Haible  <bruno@clisp.org>
49049         poll: Assume ANSI C.
49050         * lib/poll.c (poll): Use an ANSI C declaration.
49052 2010-09-28  Bruno Haible  <bruno@clisp.org>
49054         poll-h: Create poll.h on all platforms.
49055         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
49056         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
49057         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
49058         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
49059         (gl_REPLACE_POLL_H): Don't set POLL_H.
49060         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
49061         * modules/poll-h (Depends-on): Add include_next.
49062         (Makefile.am): Create poll.h unconditionally. Substitute also
49063         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
49065 2010-09-28  Bruno Haible  <bruno@clisp.org>
49067         Tests for module 'poll-h'.
49068         * modules/poll-h-c++-tests: New file.
49069         * tests/test-poll-h-c++.cc: New file.
49071         Tests for module 'poll-h'.
49072         * modules/poll-h-tests: New file.
49073         * tests/test-poll-h.c: New file.
49075 2010-09-28  Bruno Haible  <bruno@clisp.org>
49077         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
49078         * modules/poll-h (Depends-on): Add 'extensions'.
49080 2010-09-28  Bruno Haible  <bruno@clisp.org>
49082         New module 'poll-h'.
49083         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
49084         (poll): Use modern idiom.
49085         * modules/poll-h: New file.
49086         * modules/poll (Files): Remove lib/poll.in.h.
49087         (Depends-on): Add poll-h.
49088         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
49089         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
49090         * m4/poll_h.m4: New file.
49091         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
49092         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
49093         and invoke gl_REPLACE_POLL_H.
49094         * lib/poll.c: Use common idiom.
49095         * tests/test-poll.c: Likewise.
49096         * doc/posix-headers/poll.texi: Mention the poll-h module.
49097         Suggested by Eric Blake.
49099 2010-09-26  Bruno Haible  <bruno@clisp.org>
49101         sys_wait: Implement WSTOPSIG.
49102         * lib/sys_wait.in.h (WSTOPSIG): New macro.
49103         Reported by Simon Josefsson.
49105 2010-09-26  Simon Josefsson  <simon@josefsson.org>
49107         stdlib, sys_wait: Avoid compilation error on mingw.
49108         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
49110 2010-09-26  Bruno Haible  <bruno@clisp.org>
49112         stdlib tests: Avoid code duplication.
49113         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
49114         * modules/sys_wait-tests (Files): Likewise.
49115         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
49116         * tests/test-stdlib.c: Include test-sys_wait.h.
49117         (main): Invoke test_sys_wait_macros.
49118         * tests/test-sys_wait.c: Include test-sys_wait.h.
49119         (main): Invoke test_sys_wait_macros.
49121 2010-09-25  Simon Josefsson  <simon@josefsson.org>
49123         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
49124         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
49125         sure Windows sockets are working before calling getaddrinfo.
49126         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
49127         * doc/gnulib.texi (Windows sockets): Fix typo.
49129 2010-09-25  Bruno Haible  <bruno@clisp.org>
49131         Tests for module 'regex-quote'.
49132         * modules/regex-quote-tests: New file.
49133         * tests/test-regex-quote.c: New file.
49135         New module 'regex-quote'.
49136         * lib/regex-quote.h: New file.
49137         * lib/regex-quote.c: New file.
49138         * modules/regex-quote: New file.
49139         Suggested by Reuben Thomas <rrt@sc3d.org>.
49141 2010-09-24  Bruno Haible  <bruno@clisp.org>
49143         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
49144         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
49146 2010-09-23  Bruno Haible  <bruno@clisp.org>
49148         setenv: Relax license.
49149         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
49150         Blake.
49151         Requested by Eric Blake.
49153 2010-09-22  Bruno Haible  <bruno@clisp.org>
49155         termios: Relax license.
49156         * modules/termios (License): Change to LGPLv2+.
49157         Requested by Eric Blake.
49159 2010-09-22  Bruno Haible  <bruno@clisp.org>
49161         threadlib: Allow the package to change the default to 'no'.
49162         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
49163         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
49164         Reported by Paul Eggert.
49166 2010-09-22  Pádraig Brady  <P@draigbrady.com>
49167             Bruno Haible  <bruno@clisp.org>
49169         Fix endless loop in mbmemcasecoll.
49170         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
49171         byte.
49172         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
49174 2010-09-22  Bruno Haible  <bruno@clisp.org>
49176         Tests for module 'memcoll'.
49177         * modules/memcoll-tests: New file.
49178         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
49180         memcoll, xmemcoll: Clarify size vs. length.
49181         * modules/memcoll.c (memcoll0): Clarify specification.
49182         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
49183         passed to collate_error.
49185 2010-09-22  Bruno Haible  <bruno@clisp.org>
49187         Tests for module 'memcasecmp'.
49188         * modules/memcasecmp-tests: New file.
49189         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
49191 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
49193         * lib/pthread.in.h: Add split double-inclusion guard, and include
49194         system <pthread.h> if there is one.  Use @@-style as in other
49195         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
49196         pthread.h doesn't.
49197         (pthread_mutexattr_destroy, pthread_mutexattr_init):
49198         (pthread_mutexattr_settype, pthread_mutex_trylock):
49199         New static inline functions, if there's no system <pthread.h>.
49200         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
49201         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
49202         Approximate with mutexes if the system lacks spinlocks, as in
49203         MacOS.
49204         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
49205         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
49206         @@-style.  Check for spinlocks separately.
49207         (gl_PTHREAD_DEFAULTS): New macro.
49208         * modules/pthread: Redo to use a more typical style for in.h files.
49210 2010-09-21  Eric Blake  <eblake@redhat.com>
49212         net_if: enhance tests
49213         * tests/test-net_if.c (main): Move signature checks earlier.
49214         Print failures to stderr.
49215         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
49216         Document the bug that we do not yet fix.
49218 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49220         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
49221         about gnulib, not GSS.
49223 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
49225         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
49226         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
49227         for Emacs.
49228         * build-aux/pmccabe2html: Make Makefile.am example code more
49229         cut-and-paste friendly.
49231 2010-09-21  Simon Josefsson  <simon@josefsson.org>
49233         * tests/test-net_if.c: New file.
49234         * modules/net_if-tests: New file.
49236 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
49238         pthread: add pthread_spin_destroy
49239         * lib/pthread.in.h (pthread_spin_destroy): New function.
49241 2010-09-19  Bruno Haible  <bruno@clisp.org>
49243         gnulib-tool: Fix --help output.
49244         * gnulib-tool (func_usage): Fix help message.
49245         Reported by Reuben Thomas <rrt@sc3d.org>.
49247 2010-09-18  Jim Meyering  <meyering@redhat.com>
49249         maint.mk: avoid unexpanded \n in two diagnostics
49250         * top/maint.mk (sc_prohibit_always_true_header_tests):
49251         Don't use a literal \n in a halt=... assignment.  It would not be
49252         expanded, and the two \n bytes would appear in the diagnostic output
49253         rather than the desired newline.  Use halt=$$(printf ... instead.
49254         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
49256 2010-09-18  Bruno Haible  <bruno@clisp.org>
49258         netinet_in: Doc tweak.
49259         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
49260         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49262 2010-09-18  Jim Meyering  <meyering@redhat.com>
49264         init.sh: correct an outdated comment
49265         * tests/init.sh (create_exe_shims_):  s/function/alias/
49267         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
49268         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
49269         a file named "*.exe" is removed between the glob expansion and the
49270         processing of that oddly named file.
49272 2010-09-17  Eric Blake  <eblake@redhat.com>
49274         mirbsd: add some more support
49275         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
49276         in BSD family.
49277         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
49278         devices as OpenBSD.
49279         * m4/host-os.m4 (mirbsd): Add MirBSD.
49281         tests: fix unportable assumption on sys/wait.h
49282         * tests/test-sys_wait.c (main): Relax test.
49283         * tests/test-stdlib.c (main): Likewise.
49285         init.sh: accommodate directory with no .exes
49286         * tests/init.sh: Accomodate directory containing only scripts.
49288         tests: avoid compiler warning
49289         * tests/test-stdlib.c (main): Use the variable.
49291         fdutimens, fdutimensat: update signature, again
49292         * lib/utimens.h (gl_futimens): Delete, and move signature...
49293         (fdutimens): ...here.
49294         (fdutimensat): Rearrange signature.
49295         (lutimensat): Rename variable for clarity.
49296         * lib/fdutimensat.c (fdutimensat): Update signature.
49297         * lib/utimens.c (fdutimens): Likewise.
49298         (gl_futimens): Delete.
49299         (utimens, lutimens): Update callers.
49300         * lib/futimens.c (futimens): Likewise.
49301         * tests/test-fdutimensat.c: Likewise.
49302         * tests/test-utimens.c: Likewise.
49303         * tests/test-futimens.h: Update comment.
49304         * NEWS: Mention this.
49305         Suggested by Paul Eggert.
49307 2010-09-17  Bruno Haible  <bruno@clisp.org>
49309         Take over the maintenance of some older macros from Autoconf.
49310         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
49311         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
49312         GNU Autoconf.
49313         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
49314         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
49316 2010-09-17  Eric Blake  <eblake@redhat.com>
49318         fdutimensat: drop atflag validation
49319         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
49320         with valid fd, to close a race scenario where futimens is
49321         unsupported and FILE was replaced by a symlink.
49322         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
49323         accordingly.
49324         Suggested by Paul Eggert.
49326 2010-09-16  Bruno Haible  <bruno@clisp.org>
49328         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
49329         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
49331 2010-09-16  Bruno Haible  <bruno@clisp.org>
49333         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
49334         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
49335         login_tty exists.
49336         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49338 2010-09-16  Bruno Haible  <bruno@clisp.org>
49340         login_tty: Make the replacement code work on BSD systems.
49341         * lib/login_tty.c: Include <sys/ioctl.h>.
49342         (login_tty): Use ioctl TIOCSCTTY when available.
49343         * modules/login_tty (Depends-on): Add sys_ioctl.
49344         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49346 2010-09-16  Bruno Haible  <bruno@clisp.org>
49348         login_tty: Stricter unit test.
49349         * modules/login_tty-tests (Depends-on): Add tcgetsid.
49350         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
49351         and tcgetsid() after login_tty.
49352         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49354 2010-09-16  Bruno Haible  <bruno@clisp.org>
49356         New module 'tcgetsid'.
49357         * lib/tcgetsid.c: New file.
49358         * m4/tcgetsid.m4: New file.
49359         * modules/tcgetsid: New file.
49360         * modules/termios (Depends-on): Add c++defs, warn-on-use.
49361         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
49362         GNULIB_TCGETSID, HAVE_TCGETSID.
49363         * lib/termios.in.h: Include <sys/types.h>.
49364         (tcgetsid): New declaration.
49365         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
49366         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
49367         * doc/posix-functions/tcgetsid.texi: Mention the new module.
49368         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
49370 2010-09-16  Bruno Haible  <bruno@clisp.org>
49372         Tests for module 'termios'.
49373         * modules/termios-c++-tests: New file.
49374         * modules/termios-tests: New file.
49375         * tests/test-termios-c++.cc: New file.
49376         * tests/test-termios.c: New file.
49378         New module 'termios'.
49379         * modules/termios: New file.
49380         * lib/termios.in.h: New file.
49381         * m4/termios_h.m4: New file.
49382         * doc/posix-headers/termios.texi: Mention the new module.
49384 2010-09-16  Eric Blake  <eblake@redhat.com>
49386         fdutimensat: add an atflag parameter
49387         * lib/fdutimensat.c (fdutimensat): Add new parameter.
49388         * lib/utimens.h (fdutimensat): Update prototype.
49389         * tests/test-fdutimensat.c: Adjust test to match.
49390         * NEWS: Document the change.
49391         Suggested by Paul Eggert.
49393 2010-09-16  Bruno Haible  <bruno@clisp.org>
49395         Fix typos in comments.
49396         * lib/striconveh.h: Fix typo in comment.
49397         * lib/login_tty.c (login_tty): Likewise.
49399 2010-09-15  Bruno Haible  <bruno@clisp.org>
49401         stdlib: clarify MirBSD WEXITSTATUS bug
49402         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
49403         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49405 2010-09-15  Eric Blake  <eblake@redhat.com>
49407         stdlib: work around MirBSD WEXITSTATUS bug
49408         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
49409         * modules/stdlib (Depends-on): Add sys_wait.
49410         * tests/test-sys_wait.c (main): Enhance test.
49411         * tests/test-stdlib.c (main): Likewise.
49412         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
49414         docs: mention MacOS issue with WEXITSTATUS(constant)
49415         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
49416         issue.
49417         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
49419         strnlen: add tests
49420         * modules/strnlen-tests: New file.
49421         * tests/test-strnlen.c: Likewise.
49423 2010-09-14  Bruno Haible  <bruno@clisp.org>
49425         unistr/base: Avoid link errors when module 'libunistring' is also used.
49426         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
49427         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
49428         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
49429         Declare also when HAVE_LIBUNISTRING is set.
49430         Reported by Pádraig Brady <P@draigbrady.com>.
49432 2010-09-14  Eric Blake  <eblake@redhat.com>
49434         test-rawmemchr: make more robust
49435         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
49436         (Depends-on, configure.ac): Add needed prerequisites to use it.
49437         * modules/memchr-tests (Files, Depends-on, configure.ac):
49438         Likewise, to avoid implicit reliance on memchr module prereqs.
49439         * tests/test-memchr.c (main): Ensure proper masking.
49440         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
49441         reads.
49443         memchr: detect glibc Alpha bug
49444         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
49445         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
49446         Alpha.
49447         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
49448         * tests/test-memchr.c (main): Enhance test.
49449         Reported by Nelson H. F. Beebe.
49451 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49453         fts, getcwd, glob: audit for dirfd returning -1
49454         * lib/fts.c (opendir): Remove #define; no longer used.
49455         (opendirat): New arg PDIR_FD.  All callers changed.
49456         (fts_build, _opendir2): Use new opendirat to avoid the need for
49457         dirfd, or for checking whether dirfd returns a negative value.
49458         Don't use opendir; always use openat followed by fdopendir.
49459         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
49460         it.
49461         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
49462         returns -1 here.
49463         * modules/fts (Depends-on): Remove dirfd.
49464         * modules/getcwd (Depends-on): Likewise.
49466 2010-09-13  Eric Blake  <eblake@redhat.com>
49468         float: fix broken MirBSD header
49469         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
49470         * doc/posix-headers/float.texi (float.h): Document it.
49472 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49474         fts: use O_NOFOLLOW to avoid race condition when opening a directory
49475         * lib/fts.c (opendirat): New arg extra_flags.
49476         (__opendir2): Use it to avoid following symlinks when opening
49477         a directory, if symlinks are not supposed to be followed.  See
49478         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
49480         fdopendir: preserve argument fd before returning
49481         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
49482         (fdopendir_with_dup, fd_clone_opendir): New static functions.
49483         (fdopendir): Use them, arranging for FD to be open to the same
49484         directory that it was when it started.  (It might be temporarily
49485         closed while fdopendir is running, so this not thread- or
49486         signal-safe.)  Be careful to do the right thing even when file
49487         descriptors are scarce and dup fails with errno == EMFILE.  See
49488         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
49490 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
49492         regex: Pass the system regex if its only problem is 32-bit regoff_t.
49493         * NEWS: Document change.
49494         * m4/regex.m4: Disable test for regoff_t size.
49496 2010-09-13  Jim Meyering  <meyering@redhat.com>
49498         fts: don't operate on an invalid file descriptor after failed dup
49499         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
49500         negative file descriptor.
49502 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
49504         savedir: add streamsavedir, deprecate fdsavedir
49505         * NEWS: Mention deprecation of fdsavedir.
49506         * lib/savedir.c (streamsavedir): New extern function, whose name
49507         ends in "savedir" to be consistent with the others.  This differs
49508         from savedirstream in that it doesn't close its argument.  The
49509         next version of GNU tar will use this instead of fdsavedir, to
49510         avoid some race conditions and conserve file descriptors.
49511         (savedirstream): Reimplement as a wrapper around streamsavedir.
49512         (fdsavedir): Add a comment deprecating this function.  As far as
49513         I know, only GNU tar used it, and GNU tar doesn't need it any more.
49514         * lib/savedir.h (streamsavedir): New decl.
49515         (fdsavedir): Add a comment deprecating this.
49517 2010-09-10  Bruno Haible  <bruno@clisp.org>
49519         langinfo: Fix last commit.
49520         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
49521         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
49522         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49524 2010-09-10  Bruno Haible  <bruno@clisp.org>
49526         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
49527         * lib/progreloc.c (O_EXEC): Define fallback.
49529 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
49531         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
49532         * NEWS: Document recent changes to fcntl-h.
49533         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
49534         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
49535         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
49536         Similarly for O_SEARCH; this last was already true, but not documented.
49537         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
49538         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
49539         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
49540         Likewise.
49541         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
49542         is zero, not whether it is defined.
49543         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
49544         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
49545         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
49547 2010-09-10  Bruno Haible  <bruno@clisp.org>
49549         langinfo, nl_langinfo: Fix for IRIX 5.3.
49550         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
49551         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
49552         HAVE_LANGINFO_YESEXPR.
49553         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
49554         HAVE_LANGINFO_YESEXPR.
49555         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
49556         HAVE_LANGINFO_T_FMT_AMPM is 0.
49557         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
49558         HAVE_LANGINFO_YESEXPR is 0.
49559         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
49560         NOEXPR.
49561         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
49562         * doc/posix-functions/nl_langinfo.texi: Likewise.
49563         Reported by Eric Blake.
49565 2010-09-10  Bruno Haible  <bruno@clisp.org>
49567         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
49568         * doc/glibc-functions/login_tty.texi: Mention the include file problem
49569         on FreeBSD 8.0 and OpenBSD 4.6.
49570         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
49571         * m4/pty_h.m4 (gl_PTY_H): Likewise.
49572         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
49573         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
49574         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
49575         ac_includes_default.
49576         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
49578 2010-09-09  Eric Blake  <eblake@redhat.com>
49580         strsignal: work around NetBSD bug
49581         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
49582         * lib/string.in.h (includes): Likewise.
49583         * doc/posix-functions/strsignal.texi (strsignal): Document the
49584         bug.
49585         Reported by Nelson H. F. Beebe.
49587         gnulib-tool: work with NetBSD /bin/sh
49588         * gnulib-tool (func_cache_var, func_cache_lookup_module)
49589         (func_get_description, func_get_comment, func_get_status)
49590         (func_get_notice, func_get_applicability, func_get_filelist)
49591         (func_get_dependencies, func_get_autoconf_early_snippet)
49592         (func_get_autoconf_snippet, func_get_automake_snippet)
49593         (func_get_include_directive, func_get_link_directive)
49594         (func_get_license, func_get_maintainer, func_import): Avoid
49595         shell syntax errors from parsing syntax extensions.
49597 2010-09-09  Bruno Haible  <bruno@clisp.org>
49599         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49600         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
49601         a reliable way to determine whether the 'alias' command works.
49603 2010-09-08  Jim Meyering  <meyering@redhat.com>
49605         init.sh: penalize a set-x-impaired shell; don't disqualify it
49606         * tests/init.sh: Too many shells corrupt application stderr when
49607         you set -x, so we can't afford to disqualify them, since at least
49608         on Irix-6.5, that would disqualify all bourne shells.
49609         Instead, use a two-pass approach.
49610         On the first pass, try to find a shell that meets the stricter
49611         condition that set -x does not corrupt stderr.
49612         If no shell meets the stricter condition, retest each candidate
49613         shell, but without that extra condition.  Finally, when
49614         VERBOSE=yes is requested and set -x might cause trouble, simply
49615         issue a warning and refrain from enabling debug output.
49617 2010-09-08  Eric Blake  <eblake@redhat.com>
49619         unsetenv: fix OpenBSD bug
49620         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
49621         * doc/posix-functions/unsetenv.texi (unsetenv): Update
49622         documentation.
49623         Reported by Jim Meyering.
49625         strtod: work around IRIX 6.5 bug
49626         * lib/strtod.c (strtod): Reparse number on shorter string if
49627         exponent parse was invalid.
49628         * tests/test-strtod.c (main): Add check for "0x1p 2".
49629         Reported by Tom G. Christensen.
49631         getopt: optimize previous patch
49632         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
49633         empty variable.  Speed up awk script.
49634         Reported by Paolo Bonzini.
49636 2010-09-08  Jim Meyering  <meyering@redhat.com>
49638         test.sh: disqualify shells for which set -x corrupts stderr
49639         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
49640         and OpenBSD 4.7.  They make it so with "set -x", environment settings
49641         appear in stderr output.  For example, this command:
49642             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
49643         prints "P=1" on those two systems:
49645 2010-09-08  Bruno Haible  <bruno@clisp.org>
49647         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
49648         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
49649         commands, because some shells ignore redirections when there is an
49650         error in the command lookup.
49651         Reported by Eric Blake.
49653 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
49655         * lib/regex.h: Fix a mention of `regex_compile' (should be
49656         `re_compile_pattern').
49657         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
49658         (re_set_registers): Correct name of parameter in comment.
49660         * doc/regex.texi: Add documentation for missing syntax flags.
49661         Remove commented-out documentation of defunct syntax option
49662         RE_NO_EMPTY_ALTS.
49663         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
49664         Add documentation of re_set_registers.
49665         Document trick to re-use a pattern buffer by setting fastmap manually.
49666         Update documentation of struct re_pattern_buffer per public members.
49667         Uncomment documentation of equivalence class operators and
49668         collating symbol operators, since they are now implemented,
49669         Explain leftmost-longest matching in relation to alternatives.
49670         Tidy documentation of substring matching.
49671         Remove POSIX documentation, which is done better in
49672         glibc, and refer the reader there. Keep BSD API documentation, as
49673         that is not readily available elsewhere.
49675 2010-09-07  Eric Blake  <eblake@redhat.com>
49677         getopt: handle POSIXLY_CORRECT set but not exported
49678         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
49679         export state of POSIXLY_CORRECT, due to bash set -o posix.
49680         Reported by Dustin J. Mitchell.
49682 2010-09-05  Bruno Haible  <bruno@clisp.org>
49684         gnulib-tool: Highlight the changed options.
49685         * gnulib-tool (func_usage): Display the --import, --add-import,
49686         --remove-import explanations in bold font.
49688 2010-09-06  Karl Berry  <karl@gnu.org>
49690         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
49692 2010-09-05  Bruno Haible  <bruno@clisp.org>
49694         uniwidth/width: Update comment.
49695         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
49696         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
49698 2010-09-05  Bruno Haible  <bruno@clisp.org>
49700         isinf, isnan: Relax license.
49701         * modules/isinf (License): Change from GPL to LGPL, with consent from
49702         Ben Pfaff.
49703         * modules/isnan (License): Likewise.
49704         Requested by Ludovic Courtès.
49706 2010-09-04  Bruno Haible  <bruno@clisp.org>
49708         gnulib-tool: Help migration from --import to --add-import or --update.
49709         * gnulib-tool: Emit a verbose error message when --import is used
49710         without any module name.
49712 2010-09-04  Bruno Haible  <bruno@clisp.org>
49714         Update doc about gnulib-tool.
49715         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
49716         'gnulib-tool --update' in more detail.
49717         Reported by Eric Blake.
49719 2010-09-04  Bruno Haible  <bruno@clisp.org>
49721         gnulib-tool: Change --import. New options --add/remove-import.
49722         * gnulib-tool: New options --add-import, --remove-import.
49723         (func_usage): Document them.
49724         (have_associative): Define always.
49725         (func_import): In import mode, don't merge the specified settings with
49726         the cached settings. Implement remove-import mode.
49727         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
49728         Explain when to use them versus --import.
49729         (Simple update): Use --add-import instead of --import.
49730         * NEWS: Mention the change.
49732 2010-09-04  Bruno Haible  <bruno@clisp.org>
49734         * doc/gnulib-tool.texi (Initial import): Update paragraph about
49735         separate gnulib.mk.
49737 2010-09-04  Bruno Haible  <bruno@clisp.org>
49739         gnulib-tool: Don't talk about CVS any more.
49740         * gnulib-tool (func_usage, func_import): Write "version control"
49741         instead of CVS.
49743 2010-09-04  Jim Meyering  <meyering@redhat.com>
49745         maint.mk: avoid obscure sc_copyright_check failure in coreutils
49746         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
49747         false positives (whose names may be ill-chosen) when searching
49748         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
49749         would cause a false-positive.
49751         avoid coreutils "make distcheck" failure
49752         Coreutils tests with an absolute build directory name that contains
49753         a space.  Not quoting this directory name caused a failure.
49754         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
49755         * tests/test-vc-list-files-cvs.sh: Likewise.
49757 2010-09-04  Bruno Haible  <bruno@clisp.org>
49759         gnulib-tool: Avoid error when run in a package without Makefile.am.
49760         * gnulib-tool: When collecting the m4dirs in a package that does not
49761         have a Makefile.am, eliminate those directories that contain no
49762         gnulib-cache.m4. Fix expression that counts these directories.
49764 2010-09-04  Bruno Haible  <bruno@clisp.org>
49766         update-copyright test: Improve output when perl is missing or too old.
49767         * tests/test-update-copyright.sh: Move test of Perl version down after
49768         the test whether Perl exists. Provide an explanation relating Perl's
49769         error message to Automake's SKIP: message.
49771 2010-09-04  Bruno Haible  <bruno@clisp.org>
49773         Don't augment PATH in TESTS_ENVIRONMENT.
49774         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
49775         set abs_aux_dir instead of augmenting PATH.
49776         * modules/vc-list-files-tests (Makefile.am): Likewise.
49777         * tests/test-update-copyright.sh: Augment PATH here.
49778         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
49779         path_prepend_.
49780         * tests/test-vc-list-files-git.sh: Likewise.
49782 2010-09-04  Jim Meyering  <meyering@redhat.com>
49784         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
49785         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
49787 2010-09-04  Bruno Haible  <bruno@clisp.org>
49789         strdup: Fix compilation error in C++ mode.
49790         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
49791         the macro.
49793 2010-09-04  Bruno Haible  <bruno@clisp.org>
49795         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
49796         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
49797         macro into a function.
49798         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
49800 2010-09-04  Bruno Haible  <bruno@clisp.org>
49802         Set PATH_SEPARATOR the same way autoconf does.
49803         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
49804         the value of PATH_SEPARATOR the same way autoconf-generated configure
49805         scripts do.
49806         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
49807         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
49809 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
49811         Set PATH_SEPARATOR the same way autoconf does.
49812         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
49813         the same way autoconf-generated configure scripts do.
49814         * posix-modules: Likewise.
49816 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
49818         hash: fix safe_hasher const typo
49819         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
49820         const; otherwise, there is a type error later.
49822 2010-09-02  Jim Meyering  <meyering@redhat.com>
49824         test-update-copyright.sh: require perl 5.8.0
49825         * tests/test-update-copyright.sh: Require 5.8.0,
49826         which Tom G. Christensen has confirmed is adequate,
49827         while 5.6.1 is not.
49829 2010-09-02  Eric Blake  <eblake@redhat.com>
49831         tests: init.sh improvements for re-exec'ing with zsh
49832         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
49833         -vx through shell re-exec.
49834         Reported by Tom G. Christensen.
49836         wctype: fix typo in previous commit
49837         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
49838         Reported by Ludovic Courtès.
49840 2010-09-02  Jim Meyering  <meyering@redhat.com>
49842         test-update-copyright.sh: skip test if Perl is too old
49843         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
49844         Reported by Tom G. Christensen.
49846 2010-09-02  Bruno Haible  <bruno@clisp.org>
49848         wctype: Avoid compilation error on IRIX 6.5.30.
49849         * lib/wctype.in.h (iswblank): Declare with a replacement if
49850         REPLACE_ISWBLANK is set.
49851         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
49852         declared. Set REPLACE_ISWBLANK.
49853         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
49854         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
49855         * doc/posix-headers/wctype.texi: Likewise.
49856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49858 2010-09-01  Bruno Haible  <bruno@clisp.org>
49860         New module 'socketlib'.
49861         * modules/socketlib: New file.
49862         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
49863         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
49864         * modules/sockets (Depends-on): Add socketlib.
49865         Suggested by Sam Steingold <sds@gnu.org>.
49867 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49869         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
49871         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
49872         when one needs search access to a directory but not read access.
49873         On systems where it is available, it works in some cases where
49874         O_RDONLY does not, namely on directories that are searchable but
49875         not readable, and which need only to be searchable.  If O_SEARCH
49876         is not available, fall back to the traditional method of using
49877         O_RDONLY.
49879         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
49880         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
49881         when opening a directory that needs only to be searchable.
49882         * lib/chdir-safer.c (chdir_no_follow): Likewise.
49883         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
49884         * lib/openat-proc.c (openat_proc_name): Likewise.
49885         * lib/openat.c (openat_needs_fchdir): Likewise.
49886         * lib/save-cwd.c (save_cwd): Likewise.
49887         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
49889 2010-08-28  Bruno Haible  <bruno@clisp.org>
49891         New module 'host-cpu-c-abi'.
49892         * modules/host-cpu-c-abi: New file.
49893         * m4/host-cpu-c-abi.m4: New file, based on part of
49894         clisp/src/m4/general.m4.
49895         Requested by Sam Steingold <sds@gnu.org>.
49897 2010-08-31  Eric Blake  <eblake@redhat.com>
49898         and Jim Meyering  <meyering@redhat.com>
49900         hash: factor, and guard against misbehaving hasher function
49901         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
49902         of table->hasher's return value.  Also protect against a hash value
49903         so large that adding it to table->bucket results in a NULL pointer.
49904         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
49905         Use it in place of open-coded check-and-abort.
49907 2010-08-30  Bruno Haible  <bruno@clisp.org>
49909         hash: silence spurious clang warning
49910         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
49911         Reported by Eric Blake.
49913 2010-08-30  Eric Blake  <eblake@redhat.com>
49915         strstr, memmem, strcasestr: avoid leaked shell message
49916         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
49917         FreeBSD.
49918         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
49919         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
49921         tests: silence clang warning
49922         * tests/test-malloca.c (do_allocation): Avoid dead store.
49924 2010-08-29  Bruno Haible  <bruno@clisp.org>
49926         gettext: Fix recent mistake.
49927         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
49929 2010-08-29  Bruno Haible  <bruno@clisp.org>
49931         selinux-h: Offer a --without-selinux option.
49932         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
49933         --without-selinux was specified, skip all tests and define
49934         HAVE_SELINUX_SELINUX_H to 0.
49935         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
49936         set LIB_SELINUX to empty.
49937         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
49938         gl_LIBSELINUX. If --without-selinux was specified, replace
49939         selinux/context.h.
49940         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
49942 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49943             Bruno Haible  <bruno@clisp.org>
49945         Make the module 'realloc-gnu' work again on AIX and OSF/1.
49946         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
49947         of HAVE_REALLOC.
49948         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
49949         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
49950         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
49951         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49953 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49954             Bruno Haible  <bruno@clisp.org>
49956         Make the module 'calloc-gnu' work again on AIX and OSF/1.
49957         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
49958         HAVE_CALLOC.
49959         * lib/xmalloc.c: Update accordingly.
49960         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
49961         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
49962         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
49964 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49965             Bruno Haible  <bruno@clisp.org>
49967         Make the module 'malloc-gnu' work again on AIX and OSF/1.
49968         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
49969         HAVE_MALLOC.
49970         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
49971         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
49972         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
49974 2010-08-29  Bruno Haible  <bruno@clisp.org>
49976         Update modules list.
49977         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49978         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
49979         (String handling <string.h>): Add astrxfrm.
49980         (File system functions): Add readlinkat.
49982 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49984         Tests for module 'realloc-gnu'.
49985         * modules/realloc-gnu-tests: New file.
49986         * tests/test-realloc-gnu.c: New file.
49988         Tests for module 'calloc-gnu'.
49989         * modules/calloc-gnu-tests: New file.
49990         * tests/test-calloc-gnu.c: New file.
49992         Tests for module 'malloc-gnu'.
49993         * modules/malloc-gnu-tests: New file.
49994         * tests/test-malloc-gnu.c: New file.
49996 2010-08-28  Bruno Haible  <bruno@clisp.org>
49998         Rename module 'realloc' -> 'realloc-gnu'.
49999         * modules/realloc-gnu: New file, copied from modules/realloc.
50000         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
50001         obsolete.
50002         * modules/mgetgroups (Depends-on): Update.
50003         * doc/posix-functions/realloc.texi: Update.
50004         * NEWS: Mention the change.
50006         Rename module 'calloc' -> 'calloc-gnu'.
50007         * modules/calloc-gnu: New file, copied from modules/calloc.
50008         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
50009         obsolete.
50010         * doc/posix-functions/calloc.texi: Update.
50011         * NEWS: Mention the change.
50013         Rename module 'malloc' -> 'malloc-gnu'.
50014         * modules/malloc-gnu: New file, copied from modules/malloc.
50015         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
50016         obsolete.
50017         * modules/argp (Depends-on): Update.
50018         * modules/regex (Depends-on): Update.
50019         * doc/posix-functions/malloc.texi: Update.
50020         * NEWS: Mention the change.
50022 2010-08-28  Eric Blake  <eblake@redhat.com>
50024         pread, pwrite: add missing dependency
50025         * modules/pread (Depends-on): Add extensions.
50026         * modules/pwrite (Depends-on): Likewise.
50028 2010-08-28  Bruno Haible  <bruno@clisp.org>
50030         unistr/u*-strchr: Fix tests dependencies.
50031         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
50032         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
50033         Reported by Ian Beckwith <ianb@erislabs.net>.
50035 2010-08-28  Bruno Haible  <bruno@clisp.org>
50037         read-file: Don't occupy too much unused memory.
50038         * lib/read-file.c (fread_file): Shrink the buffer at the end.
50040 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
50041             Eric Blake  <eblake@redhat.com>
50042             Bruno Haible  <bruno@clisp.org>
50044         read-file: Avoid memory reallocations with regular files.
50045         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
50046         (fread_file): With regular files, use the remaining length as the
50047         initial buffer size.  Check against overflow.
50048         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
50049         sys_stat.
50051 2010-08-28  Bruno Haible  <bruno@clisp.org>
50053         ftello: Relax license.
50054         * modules/ftello (License): Relax to LGPLv2+.
50055         Reported by Eric Blake.
50057 2010-08-28  Bruno Haible  <bruno@clisp.org>
50059         Avoid relocwrapper link errors due to gnulib replacement functions.
50060         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
50061         function.
50062         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50064 2010-08-28  Bruno Haible  <bruno@clisp.org>
50066         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
50067         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
50068         defined.
50069         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
50070         Suggested by Eric Blake.
50072 2010-08-28  Bruno Haible  <bruno@clisp.org>
50074         sys_socket, netdb: Ensure socklen_t gets defined.
50075         * modules/sys_socket (Depends-on): Add socklen.
50076         * modules/netdb (Depends-on): Likewise.
50077         * modules/getaddrinfo (Depends-on): Remove socklen.
50078         * modules/getsockopt (Depends-on): Likewise.
50079         * modules/setsockopt (Depends-on): Likewise.
50080         * tests/test-sys_socket.c: Check that socklen_t is defined.
50081         * tests/test-netdb.c: Likewise.
50082         * m4/socklen.m4: Update comments.
50083         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50085 2010-08-27  Eric Blake  <eblake@redhat.com>
50087         login_tty: add missing dependency
50088         * modules/login_tty (Depends-on): Add pty.
50090 2010-08-26  Eric Blake  <eblake@redhat.com>
50092         lib-symbol-versions: fix m4 quoting
50093         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
50094         format for AC_LINK_IFELSE.
50096         glob: fix compile test
50097         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
50099         btowc: fix missing file
50100         * modules/btowc (Files): Also ship locale-fr.m4.
50102         lseek: fix link test
50103         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
50104         AC_LINK_IFELSE.
50106         include_next: silence autoconf 2.68 warning
50107         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
50108         AC_COMPILE_IFELSE as special.
50109         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
50110         autoconf < 2.68.
50112         acl: fix compilation test
50113         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
50114         AC_COMPILE_IFELSE.
50116 2010-08-26  Bruno Haible  <bruno@clisp.org>
50118         Modernize AC_TRY_RUN invocations.
50119         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
50120         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
50121         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
50122         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
50123         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
50124         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
50126         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
50127         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
50128         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
50129         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
50130         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50131         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
50132         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50133         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
50134         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
50135         gl_MBRLEN_NUL_RETVAL): Likewise.
50136         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
50137         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
50138         Likewise.
50139         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
50140         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
50141         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
50142         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
50143         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
50144         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
50145         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
50146         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
50147         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
50148         Likewise.
50149         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50150         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
50151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
50152         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50153         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50154         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
50155         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
50156         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
50157         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
50158         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
50160 2010-08-26  Bruno Haible  <bruno@clisp.org>
50162         Modernize AC_TRY_LINK invocations.
50163         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
50164         AC_TRY_LINK.
50165         * m4/argp.m4 (gl_ARGP): Likewise.
50166         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
50167         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
50168         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50169         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50170         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50171         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
50172         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
50173         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
50174         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50175         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50176         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50177         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
50178         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
50179         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
50180         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50181         * m4/hostent.m4 (gl_HOSTENT): Likewise.
50182         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
50183         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
50184         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50185         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
50186         Likewise.
50187         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
50188         Likewise.
50189         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
50190         Likewise.
50191         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50192         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
50193         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
50194         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
50195         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
50196         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
50197         * m4/servent.m4 (gl_SERVENT): Likewise.
50198         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
50199         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
50200         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
50201         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
50202         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50203         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
50204         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
50205         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
50206         * modules/tsearch-tests (configure.ac): Likewise.
50208 2010-08-26  Bruno Haible  <bruno@clisp.org>
50210         Modernize AC_TRY_COMPILE invocations.
50211         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
50212         AC_TRY_COMPILE.
50213         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
50214         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
50215         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50216         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
50217         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50218         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50219         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
50220         * m4/lock.m4 (gl_LOCK): Likewise.
50221         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
50222         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50223         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
50224         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
50225         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50226         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
50227         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50228         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
50229         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50230         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50231         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50232         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50233         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
50234         extraneous semicolon.
50236 2010-08-26  Jim Meyering  <meyering@redhat.com>
50238         stat-time: relax license LGPL
50239         * modules/stat-time (License): Change from GPL to LGPL,
50240         with consent from all contributors, for use in libguile.
50241         Requested by Ludovic Courtès.
50243 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
50245         poll: return immediately on POLLHUP.
50246         * lib/poll.c (poll): Always set timeout before wait_timeout is
50247         computed.
50249 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50251         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
50252         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
50253         rmdir ("dir/.//"), unlinkat.
50255 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
50257         stdbool: avoid spurious failure with modern xlc
50258         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50260 2010-08-24  Bruno Haible  <bruno@clisp.org>
50262         getloadavg: simplify code
50263         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
50264         gl_have_func. Update comments.
50266 2010-08-24  Eric Blake  <eblake@redhat.com>
50268         getloadavg: don't define SVR4 on cygwin
50269         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
50270         only define SVR4 when -lkvm is required.
50271         Reported by Yaakov Selkowitz.
50273 2010-08-24  Bruno Haible  <bruno@clisp.org>
50275         priv-set: fix comment
50276         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
50278 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
50280         priv-set: fix comments
50281         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
50282         to match code, as suggested by David Bartley in:
50283         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
50285 2010-08-23  Eric Blake  <eblake@redhat.com>
50287         stdbool: avoid rejecting clang
50288         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
50289         * tests/test-stdbool.c: Enable more tests if using the system
50290         <stdbool.h> instead of the gnulib replacement.
50291         (main): Move xlc bug test to a runtime test for all compilers.
50292         Reported by Anders Kaseorg.
50294         argz: fix shell quoting issue
50295         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
50296         Reported by Charles Wilson.
50298 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
50299             Erik Faye-Lund <kusmabite@gmail.com>
50301         poll, select: handle ERROR_BROKEN_PIPE.
50302         * lib/poll.c (win32_compute_revents): Return POLLHUP when
50303         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50304         * lib/select.c (win32_compute_revents): Do not mark a pipe
50305         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
50307 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
50309         fts: allow compilation with C++
50310         * lib/fts_.h: Specify extern "C" linkage with C++.
50312 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50314         Fix gnulib-tool sed script de-commentation for AIX sed.
50315         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
50316         sed.
50318 2010-08-17  Eric Blake  <eblake@redhat.com>
50320         test-stddef: test for (some) offsetof bugs
50321         * tests/test-stddef.c: Enhance test to ensure correct type of
50322         offsetof.
50323         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
50324         that we are not fixing at this time.
50326 2010-08-15  Bruno Haible  <bruno@clisp.org>
50328         stpncpy: Allow stpncpy to be defined as a macro.
50329         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
50330         if it's already correctly declared.
50331         * lib/string.in.h (stpncpy): Undefine before redefining.
50332         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
50334 2010-08-14  Bruno Haible  <bruno@clisp.org>
50336         Rename module 'memxfrm' to 'amemxfrm'.
50337         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
50338         (amemxfrm): Renamed from memxfrm.
50339         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
50340         (amemxfrm): Renamed from memxfrm.
50341         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
50342         * NEWS: Mention the change.
50343         * MODULES.html.sh (String handling <string.h>): Update.
50344         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
50345         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
50346         * lib/unicase/u16-casexfrm.c: Likewise.
50347         * lib/unicase/u32-casexfrm.c: Likewise.
50348         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
50349         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
50350         * lib/uninorm/u16-normxfrm.c: Likewise.
50351         * lib/uninorm/u32-normxfrm.c: Likewise.
50352         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
50353         memxfrm.
50354         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
50355         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
50356         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
50357         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
50358         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
50359         Suggested by Paul Eggert.
50361 2010-08-14  Bruno Haible  <bruno@clisp.org>
50363         Tests for module 'astrxfrm'.
50364         * modules/astrxfrm-tests: New file.
50365         * tests/test-astrxfrm.c: New file.
50367         New module 'astrxfrm'.
50368         * lib/astrxfrm.h: New file.
50369         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
50370         * modules/astrxfrm: New file.
50372 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
50374         regex: Tweak doc.
50375         * doc/regex.texi (Overview): Don't mention regex.c.
50376         (GNU Regular Expression Compiling): Likewise.
50377         (Match-end-of-line Operator): Mention 'not_eol'.
50379 2010-08-14  Brian Gough  <bjg@gnu.org>
50380             Bruno Haible  <bruno@clisp.org>
50382         git-merge-changelog: add doc relating to use with bzr and hg.
50383         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
50385 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
50387         pthread: fix pthread.h creation for srcdir != builddir
50388         * modules/pthread (Makefile.am): Fix the rule to work also in a
50389         non-srcdir build.
50391 2010-08-13  Karl Berry  <karl@gnu.org>
50393         * doc/regex.texi (Predefined Syntaxes): @smallexample.
50394         * doc/posix-*/*: force line break before @url of POSIX
50395         specifications.
50396         Suggested by Werner Lemberg.
50398 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50400         strtod: fix const diagnostic
50401         * lib/strtod.c (strtod): Don't assign const char * to char *,
50402         as this elicits a warning from GCC when warnings are enabled.
50404 2010-08-10  Pádraig Brady  <P@draigbrady.com>
50405         and Eric Blake  <eblake@redhat.com>
50407         copy-acl: ignore ENOTSUP on HP-UX
50408         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
50409         so that it is available for HP-UX.
50410         * lib/copy-acl.c (qcopy_acl): Use it.
50411         Reported by Patrick M. Callahan.
50413 2010-08-10  Eric Blake  <eblake@redhat.com>
50415         open, chown: relax license
50416         * modules/open (License): Change to LGPLv2+, with consent by all
50417         authors, for use in augeas.
50418         * modules/chown (License): Likewise.
50419         * modules/lchown (Likewise): Likewise.
50420         Requested by Adam Stokes.
50422 2010-08-09  Karl Berry  <karl@gnu.org>
50424         * build-aux/ar-lib: new file, import from Automake.
50425         * config/srclist.txt: autocheck for updates.
50427 2010-08-09  Eric Blake  <eblake@redhat.com>
50429         readlinkat: adjust client modules
50430         * modules/areadlinkat (Depends-on): Use readlinkat, not
50431         symlinkat.
50432         * modules/areadlinkat-with-size (Depends-on): Likewise.
50434         mknod: be more vocal about danger of running tests as root
50435         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
50436         root, since that is just asking for problems.
50437         Suggested by Bruno Haible, based on a report by Rainer Tammer.
50439         readlinkat: split into its own module
50440         * modules/symlinkat: Split readlinkat...
50441         * modules/readlinkat: ...into separate module.
50442         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
50443         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
50444         * lib/symlinkat.c (readlinkat): Move...
50445         * lib/readlinkat.c: ...into new file.
50446         * modules/symlinkat-tests: Split readlinkat test...
50447         * modules/readlinkat-tests: ...into separate module.
50448         * tests/test-symlinkat.c: Split...
50449         * tests/test-readlinkat.c: ...into new file.
50450         * NEWS: Document the split.
50451         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
50452         * lib/unistd.in.h (readlinkat): Likewise.
50453         Suggested by Bruno Haible.
50455 2010-08-08  Bruno Haible  <bruno@clisp.org>
50457         memxfrm: Speed up.
50458         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
50459         that usually only one call to strxfrm is necessary for each string
50460         part.
50461         Reported by Paul Eggert <eggert@cs.ucla.edu>.
50463 2010-08-07  Karl Berry  <karl@gnu.org>
50465         * doc/posix-headers/limits.texi,
50466         * doc/posix-functions/malloc.texi,
50467         * doc/posix-functions/strsignal.texi: missing @item.
50468         * doc/ld-version-script.texi: spurious leading i.
50469         * doc/regex.texi (Interval Operators): no commas inside @var.
50471 2010-08-01  Bruno Haible  <bruno@clisp.org>
50473         Integrate the regex documentation.
50474         * doc/gnulib.texi: Define 'cn' index.
50475         (Regular expressions): New a chapter that includes regex.texi and
50476         regexprops-generic.texi.
50477         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
50478         syntax.
50480         Whitespace cleanup.
50481         * doc/regex.texi: Remove trailing spaces.
50483         Add regex documentation.
50484         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
50485         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
50486         Written by Kathy A. Hargreaves and Karl Berry.
50488 2010-08-01  Bruno Haible  <bruno@clisp.org>
50490         link: Update documentation.
50491         * doc/posix-functions/link.texi: Update regarding Solaris.
50493 2010-07-31  Bruno Haible  <bruno@clisp.org>
50495         Update modules list.
50496         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
50497         (String handling <string.h>): Add memcmp2, memxfrm.
50498         (Container data structures): Add xlist, xsublist, xoset.
50499         (Core language properties): Add alignof, unused-parameter.
50500         (Process control, Numeric conversion functions <stdlib.h>): Renamed
50501         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
50502         (Unibyte characters <ctype.h>): New section.
50503         (String handling <string.h>): New section.
50504         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
50505         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
50506         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
50507         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
50508         tan, tanh, tanl, y0, y1, yn.
50509         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
50510         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
50511         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
50512         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
50513         unlockpt, vdprintf, vdprintf-posix.
50514         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
50515         (File system functions): Add concat-filename, sys_file, sys_ioctl,
50516         xconcat-filename.
50517         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
50518         getdtablesize, pipe2, pipe2-safer.
50519         (Security): New section.
50520         (Networking functions): Add accept4.
50521         (Signal handling): Add sigpipe.
50522         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
50523         mbmemcasecoll.
50524         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
50525         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
50526         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
50527         pipe-filter-ii.
50528         (Misc): Add argp-version-etc, login_tty, parse-duration.
50530 2010-07-31  Bruno Haible  <bruno@clisp.org>
50532         Improve doc in MODULES.html.
50533         * modules/linkat (Description): Add the word "function".
50534         * modules/mkfifo (Description): Likewise.
50535         * modules/mknod (Description): Likewise.
50536         * modules/remove (Description): Likewise.
50537         * modules/renameat (Description): Likewise.
50538         * modules/stat (Description): Likewise.
50539         * modules/symlink (Description): Likewise.
50540         * modules/unlink (Description): Likewise.
50542 2010-07-31  Bruno Haible  <bruno@clisp.org>
50544         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
50545         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
50546         option --enable/disable-c++ instead of --enable/disable-cxx.
50547         * NEWS: Mention the change.
50549 2010-07-31  Bruno Haible  <bruno@clisp.org>
50551         readlink, areadlink: Relax test a bit.
50552         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
50553         alternative to ENOTDIR.
50554         * tests/test-areadlink.h (test_areadlink): Likewise.
50555         Reported by Rainer Tammer.
50557 2010-07-31  Bruno Haible  <bruno@clisp.org>
50559         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
50560         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
50561         character, perform the search using U_STRCHR.
50562         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
50563         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
50564         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
50565         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
50566         Suggested by Paolo Bonzini.
50568 2010-07-31  Bruno Haible  <bruno@clisp.org>
50570         unistr/u*-strstr: Fix dependencies.
50571         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
50572         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
50573         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
50575 2010-07-31  Bruno Haible  <bruno@clisp.org>
50577         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
50578         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
50579         the beginning of the loop.
50580         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
50581         cases in 'switch' statement.
50583         unistr/u8-strchr: Fix several bugs.
50584         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
50585         the string. When not found, return NULL, not a pointer near the end.
50587         More tests for unistr/u8-strchr.
50588         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
50589         that the function does not read past the first occurrence of the byte
50590         being searched.
50591         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
50592         * tests/unistr/test-u16-strchr.c (main): New function.
50593         * tests/unistr/test-u32-strchr.c (main): New function.
50595 2010-07-31  Bruno Haible  <bruno@clisp.org>
50597         posix-modules: Ignore backup files of documentation files.
50598         * posix-modules: grep only through files named *.texi.
50600 2010-07-31  Bruno Haible  <bruno@clisp.org>
50602         symlinkat: Fix documentation.
50603         * doc/posix-functions/readlinkat.texi: Fix module name.
50605 2010-07-31  Bruno Haible  <bruno@clisp.org>
50607         fchownat: Replace also when chown has the trailing slash bug.
50608         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
50609         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
50610         introduced on 2010-04-10.
50611         Reported by Rainer Tammer.
50613 2010-07-31  Bruno Haible  <bruno@clisp.org>
50615         linkat: Work around AIX 7.1 bug.
50616         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
50617         whether linkat handles trailing slash correctly. If not, replace linkat
50618         and define LINKAT_TRAILING_SLASH_BUG.
50619         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
50620         check whether (fd1,file1) points to a directory if file1 or file2 ends
50621         in a slash. Code taken from lib/link.c.
50622         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
50623         Reported by Rainer Tammer.
50625 2010-07-31  Bruno Haible  <bruno@clisp.org>
50627         Correctly determine whether pow is available in libc on AIX 7 with xlc.
50628         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
50629         This disables an xlc optimization that was causing wrong test results.
50630         Reported by Rainer Tammer.
50632 2010-07-31  Bruno Haible  <bruno@clisp.org>
50634         iconv: Work around AIX 6.1..7.1 bug.
50635         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
50636         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
50637         cross-compiling, guess no on all versions of AIX.
50638         Reported by Rainer Tammer.
50640 2010-07-31  Bruno Haible  <bruno@clisp.org>
50642         readlink: Relax test a bit.
50643         * tests/test-readlink.h (test_readlink): Allow different errno value
50644         when readlink is called with a file name that ends in / and refers to
50645         a file.
50646         Suggested by Eric Blake.
50647         Reported by Rainer Tammer.
50649 2010-07-31  Bruno Haible  <bruno@clisp.org>
50651         copysign: Does not require -lm on glibc systems.
50652         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
50653         gl_COMMON_DOUBLE_MATHFUNC.
50654         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
50656 2010-07-31  Bruno Haible  <bruno@clisp.org>
50658         duplocale: Work around AIX 7.1 bug.
50659         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
50660         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
50661         * lib/duplocale.c (rpl_duplocale): Update comment.
50662         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
50663         Reported by Rainer Tammer.
50665 2010-07-30  Bruno Haible  <bruno@clisp.org>
50667         dirfd: Avoid link error on AIX 7.1.
50668         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
50669         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
50670         exist, set REPLACE_DIRFD.
50671         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
50672         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
50673         * doc/posix-functions/dirfd.texi: Update.
50674         Reported by Rainer Tammer.
50676 2010-07-30  Eric Blake  <eblake@redhat.com>
50678         strtod: next round of AIX fixes
50679         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
50680         exponent.
50681         * tests/test-strtod.c (main): Enhance tests.
50682         * doc/posix-functions/strtod.texi (strtod): Document next bug.
50683         Reported by Rainer Tammer.
50685         futimens: fix configure check
50686         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
50687         Reported by Bruno Haible.
50689 2010-07-30  Bruno Haible  <bruno@clisp.org>
50691         getline: Update regarding AIX.
50692         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
50693         Reported by Rainer Tammer.
50695 2010-07-30  Bruno Haible  <bruno@clisp.org>
50697         wcwidth: Drop replacement on AIX 7.
50698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
50699         AIX 7.
50700         Reported by Rainer Tammer.
50702 2010-07-30  Bruno Haible  <bruno@clisp.org>
50704         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
50705         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
50706         a 'char *'.
50707         Reported by Rainer Tammer.
50709 2010-07-30  Bruno Haible  <bruno@clisp.org>
50711         unlink: Update regarding AIX.
50712         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
50713         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
50714         Reported by Rainer Tammer.
50716 2010-07-30  Bruno Haible  <bruno@clisp.org>
50718         symlink: Update regarding AIX.
50719         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
50720         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
50721         Reported by Rainer Tammer.
50723 2010-07-30  Bruno Haible  <bruno@clisp.org>
50725         strndup: Update regarding AIX.
50726         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
50727         AIX 7.
50728         Reported by Rainer Tammer.
50730 2010-07-30  Bruno Haible  <bruno@clisp.org>
50732         stat: Update regarding AIX.
50733         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
50734         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
50735         Reported by Rainer Tammer.
50737 2010-07-30  Bruno Haible  <bruno@clisp.org>
50739         truncl: Fix autoconf test.
50740         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
50741         whether truncl works.
50742         Reported by Rainer Tammer.
50744 2010-07-30  Bruno Haible  <bruno@clisp.org>
50746         round: Update regarding AIX.
50747         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
50748         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
50749         Reported by Rainer Tammer.
50751 2010-07-30  Bruno Haible  <bruno@clisp.org>
50753         rename: Update regarding AIX.
50754         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
50755         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
50756         Reported by Rainer Tammer.
50758 2010-07-30  Bruno Haible  <bruno@clisp.org>
50760         printf.m4: Update regarding AIX.
50761         * m4/printf.m4: Update comments regarding AIX.
50762         Reported by Rainer Tammer.
50764 2010-07-30  Bruno Haible  <bruno@clisp.org>
50766         iconv: Update regarding AIX.
50767         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
50768         AIX 7.
50769         Reported by Rainer Tammer.
50771 2010-07-30  Bruno Haible  <bruno@clisp.org>
50773         getopt: Update regarding AIX.
50774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
50775         no on AIX.
50776         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
50777         Reported by Rainer Tammer.
50779 2010-07-30  Bruno Haible  <bruno@clisp.org>
50781         ldexpl; Update regarding AIX.
50782         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
50783         on AIX 7.
50784         Reported by Rainer Tammer.
50786 2010-07-30  Bruno Haible  <bruno@clisp.org>
50788         frexpl: Update regarding AIX.
50789         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
50790         on AIX 7.
50791         Reported by Rainer Tammer.
50793 2010-07-30  Bruno Haible  <bruno@clisp.org>
50795         open, fopen: Update regarding AIX.
50796         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
50797         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
50798         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
50799         * doc/posix-functions/fopen.texi: Likewise.
50800         Reported by Rainer Tammer.
50802 2010-07-30  Bruno Haible  <bruno@clisp.org>
50804         chown: Update doc regarding AIX.
50805         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
50806         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
50807         Reported by Rainer Tammer.
50809 2010-07-30  Eric Blake  <eblake@redhat.com>
50811         strtod: fix bug in replacement function on AIX
50812         * lib/strtod.c (strtod): Special case broken "0x" parse in
50813         underlying strtod.
50814         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
50815         * doc/posix-functions/strtod.texi (strtod): Likewise.
50816         Reported by Rainer Tammer.
50818 2010-07-30  Bruno Haible  <bruno@clisp.org>
50820         mbrlen: Fix cross-compilation guess for AIX.
50821         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
50822         guess. Leftover from 2008-12-22.
50824 2010-07-30  Bruno Haible  <bruno@clisp.org>
50826         mbrtowc: Fix cross-compilation guess for AIX.
50827         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
50828         guess. Leftover from 2008-12-21.
50830 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
50832         init.sh: work around trap limitation of some shells
50833         * tests/init.sh (setup_): Move exit trap outside of shell function.
50835 2010-07-29  Eric Blake  <eblake@redhat.com>
50837         strtod: aid debugging
50838         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
50839         understanding why strtod is rejected.
50841 2010-07-28  Bruno Haible  <bruno@clisp.org>
50843         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
50844         * lib/unistr/u8-chr.c: Include <string.h>.
50845         * tests/unistr/test-u8-chr.c: Likewise.
50846         * tests/unistr/test-u16-chr.c: Likewise.
50847         * tests/unistr/test-u32-chr.c: Likewise.
50848         * tests/unistr/test-u8-strchr.c: Likewise.
50849         * tests/unistr/test-u16-strchr.c: Likewise.
50850         * tests/unistr/test-u32-strchr.c: Likewise.
50851         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
50852         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
50853         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
50854         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
50856 2010-07-28  Bruno Haible  <bruno@clisp.org>
50858         Use spaces for indentation, not tabs.
50859         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
50861 2010-07-27  Bruno Haible  <bruno@clisp.org>
50863         mbspcasecmp: Fix function specification.
50864         * lib/string.in.h (mbspcasecmp): Fix specification comment.
50865         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
50866         Reported by Eric Blake <eblake@redhat.com>.
50868 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
50870         timespec: use cast and not conditional, as truncation isn't possible
50871         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
50872         instead of a conditional.  Comment about the situation in more detail.
50873         This undoes most of the 2009-10-29 patch.
50875 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
50877         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
50878         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
50879         * lib/unistr/u8-strchr.c: Likewise.
50880         * modules/unistr/u8-chr: Depend on memchr.
50882         unistr/u*-strchr: add tests
50883         * modules/unistr/u8-strchr-tests: New file.
50884         * modules/unistr/u16-strchr-tests: New file.
50885         * modules/unistr/u32-strchr-tests: New file.
50886         * tests/unistr/test-strchr.h: New file.
50887         * tests/unistr/test-u8-strchr.c: New file.
50888         * tests/unistr/test-u16-strchr.c: New file.
50889         * tests/unistr/test-u32-strchr.c: New file.
50891         unistr/u*-chr: test multibyte sequences more
50892         * tests/unistr/test-chr.h: Do complete testing of the characters in the
50893         test vector.
50894         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
50895         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
50896         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
50898         unistr/u*-chr: test multibyte sequences
50899         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
50901         unistr/u*-chr: prepare for multibyte tests
50902         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
50903         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
50904         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
50905         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
50906         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
50907         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
50909 2010-07-18  Bruno Haible  <bruno@clisp.org>
50911         unistr/u8-strchr: Optimize non-ASCII argument case.
50912         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
50913         because the first byte often matches anyway.
50914         Reported by Pádraig Brady <P@draigbrady.com>.
50916 2010-07-15  Karl Berry  <karl@gnu.org>
50918         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
50920 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
50922         getcwd: on Solaris, work better if ancestors are inaccessible
50923         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
50924         buffer and size, try again with a large buffer.  This works better
50925         on Solaris, since its getcwd succeeds even if the path to the root
50926         is inaccessible, and this is helpful in common cases such as .zfs
50927         hidden directories.  Problem reported by J Chapman Flack in
50928         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
50929         Use system getcwd if it's declared, not merely if it's partly
50930         working; use the partly-working test only to avoid needless effort
50931         if the system getcwd fails.
50932         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
50933         comment that was already obsolete and is now even more obsolete.
50934         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
50935         now might call strdup.
50937 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
50939         pthread: Add enough so that coreutils/src/sort.c compiles.
50940         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
50941         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
50942         gnulib. Include <sched.h> and <time.h>, as per POSIX.
50943         Include <sys/types.h>, in case it defines pthread_t.
50944         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
50945         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
50946         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
50947         (pthread_rwlockattr_t, pthread_spinlock_t):
50948         New typedefs, if HAVE_PTHREAD_T is not defined.
50949         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
50950         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
50951         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
50952         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
50953         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
50954         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
50955         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
50956         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
50957         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
50958         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
50959         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
50960         New macros.
50961         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
50962         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
50963         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
50964         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
50965         (pthread_spin_unlock): New dummy functions.
50966         (pthread_create): Return EAGAIN; don't set errno.
50967         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
50968         require AC_C_INLINE.
50969         * modules/pthread (Depends-on): Add sched, time.
50970         (pthread.h): Use AM_V_GEN.
50972 2010-07-13  Bruno Haible  <bruno@clisp.org>
50974         striconveh: Don't malloc memory if the result buffer is sufficient.
50975         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
50976         buffer if its size is sufficient.
50977         Reported by Ludovic Courtès <ludo@gnu.org>.
50979 2010-07-13  Bruno Haible  <bruno@clisp.org>
50981         strtod: Add safety check.
50982         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
50984 2010-07-12  Bruno Haible  <bruno@clisp.org>
50986         Unify tests that set gl_cv_func_ldexpl_no_libm.
50987         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
50988         gl_FUNC_LDEXPL.
50989         (gl_FUNC_LDEXPL): Invoke it.
50990         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
50992 2010-07-12  Bruno Haible  <bruno@clisp.org>
50994         Unify tests that set gl_cv_func_ldexp_no_libm.
50995         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
50996         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
50997         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
50998         (configure.ac): Simply invoke gl_FUNC_LDEXP.
50999         * modules/strtod (Files): Add m4/ldexp.m4.
51001 2010-07-12  Bruno Haible  <bruno@clisp.org>
51003         Unify tests that set gl_cv_func_frexpl_no_libm.
51004         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
51005         gl_FUNC_FREXPL_NO_LIBM.
51006         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
51007         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
51009 2010-07-12  Bruno Haible  <bruno@clisp.org>
51011         Unify tests that set gl_cv_func_frexp_no_libm.
51012         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
51013         gl_FUNC_FREXP_NO_LIBM.
51014         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
51015         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
51017 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
51019         memcoll: clarify sizes versus lengths, document better, and tweak perf
51020         * lib/memcoll.c (strcoll_loop, memcoll0):
51021         Improve quality of descriptive comments.  Name variables
51022         consistently as to whether they are lengths (which do not include
51023         terminating null) versus sizes (which do).
51024         * lib/xmemcoll.c (xmemcoll0): Likewise.
51025         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
51026         returned when s1size == 0; this is easier to compile and saves
51027         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
51029 2010-07-12  Bruno Haible  <bruno@clisp.org>
51031         Tests for module '_Exit'.
51032         * modules/_Exit-tests: New file.
51033         * tests/test-_Exit.sh: New file.
51034         * tests/test-_Exit.c: New file.
51036         New module '_Exit'.
51037         * lib/stdlib.in.h (__attribute__): New macro.
51038         (_Exit): New declaration.
51039         * lib/_Exit.c: New file.
51040         * m4/_Exit.m4: New file.
51041         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
51042         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
51043         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
51044         * modules/_Exit: New file.
51045         * tests/test-stdlib-c++.cc (_Exit): Check signature.
51046         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
51048 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
51050         strtod: make it more-accurate typically, and don't require libm
51051         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
51052         Include limits.h.  Don't include string.h.
51053         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
51054         (locale_isspace): New function, so that no casts are needed to
51055         check whether *s is a space.
51056         (ldexp): Provide an unused dummy if not available.
51057         (scale_radix_exp, parse_number, underlying_strtod): New functions.
51058         (strtod): Use them.  This implementation prefers to use the
51059         underlying strtod if available, falling back on our own code
51060         only to fix known bugs.  This is more likely to produce an
51061         accurate result.  Also, it avoids the use of libm functions.
51062         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
51063         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
51064         was absent, but it caused a test failure with coreutils.
51065         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
51066         with libm.
51067         * modules/strtod (Makefile.am, Link): libm is no longer needed.
51068         * modules/strtod-tests (Makefile.am): Likewise.
51070 2010-07-11  Pádraig Brady  <P@draigBrady.com>
51071             Bruno Haible  <bruno@clisp.org>
51073         unistr/u8-strchr: Optimize ASCII argument case.
51074         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
51076 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51078         (x)memcoll: minor tweaks
51079         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
51080         is after the type that it qualifies.
51081         (memcoll0): Likewise.
51082         * lib/memcoll.h (memcoll0): Likewise.
51083         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
51084         * lib/xmemcoll.h (xmemcoll0): Likewise.
51085         * lib/memcoll.c (memcoll0): Correct the comment.  This function
51086         differs from memcoll in that the NUL byte is part of the argument.
51087         Omit the abort-checks, as performance is a real issue here.  Plus,
51088         the checks were wrong anyway (an off-by-one error).  Omit local
51089         variable 'diff', as it's a bit clearer that way.
51090         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
51091         no longer needed.
51093 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
51095         (x)memcoll: speedup when input is known to be NUL delimited
51096         * lib/memcoll.c: Include stdlib.
51097         (memcoll0): New function.
51098         (strcoll_loop): New function, refactored for use in both memcoll
51099         and memcoll0.
51100         * lib/memcoll.h (memcoll0): Add prototype.
51101         * lib/xmemcoll.c (xmemcoll0): New function.
51102         (collate_error): New function, refactored for use in both xmemcoll
51103         and xmemcoll0.
51104         * lib/xmemcoll.h (xmemcoll0): Add prototype.
51105         * m4/memcoll.m4: add inline invocation.
51107 2010-07-06  Pádraig Brady  <P@draigBrady.com>
51109         * build-aux/bootstrap: Remove any local translations
51110         from the translation project synchronization directory,
51111         so that local only translations are not distributed.
51113 2010-07-04  Bruno Haible  <bruno@clisp.org>
51115         fsusage: Clarify which code applies to which platforms.
51116         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
51117         platform.
51118         * lib/fsusage.c (get_fs_usage): Likewise.
51120 2010-07-04  Bruno Haible  <bruno@clisp.org>
51122         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
51123         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
51124         Reported by Martin Lambers <marlam@marlam.de>.
51126 2010-07-04  Jim Meyering  <meyering@redhat.com>
51128         hash: once again explicitly disallow insertion of NULL
51129         * lib/hash.c (hash_insert0): Reinstate just-removed test:
51130         inserting a NULL pointer cannot work with these functions.
51131         Add a comment with details.
51132         This reverts part of the 2010-07-01 commit, 5bef1a35
51133         "hash: extend module to deal with non-pointer keys".
51135 2010-07-01  Bruno Haible  <bruno@clisp.org>
51137         stdbool: Update doc.
51138         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
51139         Info from Christian Weisgerber <naddy@mips.inka.de>.
51141 2010-07-01  Jim Meyering  <meyering@redhat.com>
51143         hash: extend module to deal with non-pointer keys
51144         * lib/hash.c (hash_insert0): New interface, much like hash_insert
51145         but that allows insertion of non-pointer entries.
51146         Do not disallow an ENTRY value of NULL.
51147         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
51148         * lib/hash.h (hash_insert0): Declare.
51150 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
51152         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
51153         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
51154         not present (i.e. with autoconf 2.59 and when using gettextize, not
51155         gnulib), require AC_GNU_SOURCE instead.
51157 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
51159         idpriv-drop: Fix tests.
51160         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
51161         not to the test-idpriv-droptemp program.
51163 2010-06-29  Bruno Haible  <bruno@clisp.org>
51165         string: Fix syntax error with g++ 2.96.
51166         * lib/string.in.h (__pure__): Remove definition.
51167         (_GL_ATTRIBUTE_PURE): New macro.
51168         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
51169         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
51170         Reported by Christian Weisgerber <naddy@mips.inka.de>.
51172 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
51174         unitypes: Fix bug introduced on 2010-05-18.
51175         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
51177 2010-06-22  Eric Blake  <eblake@redhat.com>
51179         memmem: slight optimization
51180         * lib/str-two-way.h (critical_factorization): Update comments.
51181         Reduce work during factorization phase.
51182         Reported by Carlos Bueno <carlos@bueno.org>.
51184 2010-06-21  Bruno Haible  <bruno@clisp.org>
51186         Fix HAVE_CALLOC_POSIX misnomer.
51187         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
51188         !HAVE_CALLOC_POSIX.
51189         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
51190         HAVE_CALLOC_POSIX.
51191         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
51192         instead of HAVE_CALLOC_POSIX.
51193         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
51194         HAVE_CALLOC_POSIX.
51196         Use modern idiom for calloc() replacement.
51197         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
51198         AC_FUNC_CALLOC.
51199         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
51200         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
51201         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51202         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
51203         (gl_REPLACE_CALLOC): New macro.
51205 2010-06-21  Bruno Haible  <bruno@clisp.org>
51207         Fix HAVE_REALLOC_POSIX misnomer.
51208         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
51209         !HAVE_REALLOC_POSIX.
51210         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
51211         HAVE_REALLOC_POSIX.
51212         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
51213         instead of HAVE_REALLOC_POSIX.
51214         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
51215         HAVE_REALLOC_POSIX.
51217         Use modern idiom for realloc() replacement.
51218         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
51219         AC_FUNC_REALLOC.
51220         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
51221         Autoconf's AC_FUNC_REALLOC.
51222         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51223         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
51224         (gl_REPLACE_REALLOC): New macro.
51225         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51227 2010-06-21  Bruno Haible  <bruno@clisp.org>
51229         Fix HAVE_MALLOC_POSIX misnomer.
51230         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
51231         !HAVE_MALLOC_POSIX.
51232         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
51233         HAVE_MALLOC_POSIX.
51234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
51235         instead of HAVE_MALLOC_POSIX.
51236         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
51237         HAVE_MALLOC_POSIX.
51239         Use modern idiom for malloc() replacement.
51240         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
51241         AC_FUNC_MALLOC.
51242         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
51243         Autoconf's AC_FUNC_MALLOC.
51244         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
51245         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
51246         (gl_REPLACE_MALLOC): New macro.
51247         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
51249 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
51251         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
51252         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
51253         This macro takes 3 arguments, not 4.
51255 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
51257         ipv6: fix detection under mingw
51258         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
51259         in6_addr.
51261 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
51263         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
51264         that strtod() works when cross-compiling to a glibc version known
51265         to work.
51267 2010-06-15  Bruno Haible  <bruno@clisp.org>
51269         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
51271 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
51273         select: Correct timeout.
51274         * lib/select.c (rpl_select): Compute wait_timeout correctly.
51276 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
51278         git-version-gen: init shell var to avoid env var influence
51279         * build-aux/git-version-gen (v): Init shell var to empty.
51281 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
51283         priv-set: Don't assume that priv.h exists merely because getppriv does.
51284         See Jan Andersen's bug report about AIX 5L in
51285         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
51286         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
51287         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
51288         * lib/priv-set.h: Likewise.
51289         * tests/test-priv-set.c: Likewise.
51291 2010-06-13  Bruno Haible  <bruno@clisp.org>
51293         relocatable: Make it easier to test whether to install wrappers.
51294         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
51295         RELOCATABLE_VIA_WRAPPER.
51297 2010-06-13  Bruno Haible  <bruno@clisp.org>
51299         gnulib-tool: Display specified modules and dependencies differently.
51300         * gnulib-tool (func_show_module_list): New function.
51301         (func_import, func_create_testdir): Invoke it.
51302         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
51304 2010-06-13  Bruno Haible  <bruno@clisp.org>
51306         gnulib-tool: Align code of func_import and func_create_testdir.
51307         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
51308         specified_modules.
51310 2010-06-12  Jim Meyering  <meyering@redhat.com>
51312         test-inttostr: avoid spurious failure on Solaris 9
51313         * tests/test-inttostr.c (main): Skip the test when snprintf fails
51314         to accept "%ju".  Reported by Bruno Haible.
51316 2010-06-11  Jim Meyering  <meyering@redhat.com>
51318         test-sys_socket: mark variables as used more readably
51319         * tests/test-sys_socket.c (main): Mark otherwise unused variables
51320         as "used" explicitly via (void) statement casts.  This is more
51321         readable than using them in an artificial return expression.
51322         Suggestion from Bruno Haible.
51324 2010-06-11  Bruno Haible  <bruno@clisp.org>
51326         Avoid some more warnings from "gcc -Wwrite-strings".
51327         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
51328         to 'const char *'.
51329         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
51330         * tests/test-c-strcasestr.c (main): Likewise.
51331         * tests/test-mbscasestr1.c (main): Likewise.
51332         * tests/test-mbscasestr2.c (main): Likewise.
51333         * tests/test-memmem.c (main): Likewise.
51334         * tests/test-strstr.c (main): Likewise.
51335         * tests/test-strcasestr.c (main): Likewise.
51337 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51339         init.sh: change framework_failure_ to fail with status 99, not 1
51340         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
51341         automake's parallel-tests rule that this is an unexpected failure,
51342         even if the test is listed in XFAIL_TESTS.
51344 2010-06-11  Jim Meyering  <meyering@redhat.com>
51346         test-inttostr: avoid warnings about 4-6KB literal strings
51347         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
51348         Include "macros.h", for its definition of ASSERT.
51349         (CK): s/assert/ASSERT/
51350         * modules/inttostr-tests (Files): Add macros.h.
51352         init.sh: don't use $ME_ or skip_ before they are defined
51353         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
51354         their first uses.  Also hoist their companions: warn_, fail_,
51355         framework_failure_, $stderr_fileno.  Prompted by a patch from
51356         Stefano Lattarini.
51358         test-sys_socket: avoid set-but-not-used warnings from gcc
51359         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
51360         avoid warning about set-but-not-used variables.
51362         test-xvasprintf: avoid 'const' discard warnings
51363         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
51364         "const" when assigning from literal strings.
51365         (test_xasprintf): Add "void" in function argument list to placate
51366         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
51368         tests: avoid compilation warnings in argmatch and exclude tests...
51369         in packages that define ARGMATCH_DIE_DECL, like coreutils.
51370         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
51371         Since it always exits, declare with the "noreturn" attribute.
51372         * tests/test-argmatch.c: Likewise.
51374         tests: avoid 'const' discard warnings in mbsstr tests
51375         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
51376         * tests/test-mbsstr2.c (main): Likewise.
51378         test-verify: avoid warning from gcc's -Wmissing-declarations
51379         * tests/test-verify.c (function): Declare to be static.
51381         test-inttostr.c: include <string.h> for use of strcmp
51382         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
51384         test-linkat: avoid failed assertion on "other" architectures
51385         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
51386         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
51387         sparc: https://bugs.launchpad.net/bugs/591968
51389 2010-06-11  Jim Meyering  <meyering@redhat.com>
51391         printf.m4: avoid autoconf's "Expanded Before Required" warning
51392         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
51393         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
51394         autoconf warning.
51396 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
51398         Replacement header templates are now named with ".in", not "_".
51399         * doc/gnulib-intro.texi: Correct.
51401 2010-06-10  Jim Meyering  <meyering@redhat.com>
51403         inttostr-tests: depend on snprintf, not snprintf-posix
51404         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
51405         snprintf-posix, to avoid this aclocal failure:
51406           missing file gnulib-tests/vasnprintf.c
51407           configure.ac:45: error: expected source file, required through \
51408           AC_LIBSOURCES, not found
51410 2010-06-10  Jim Meyering  <meyering@redhat.com>
51412         inttostr: add a new function, inttostr, and tests
51413         The namesake function was not available.  The existence of the
51414         template file, inttostr.c makes its addition nontrivial.
51415         * lib/anytostr.c: Rename from inttostr.c.
51416         (anytostr): Rename from inttostr.
51417         * lib/inttostr.c: New file.
51418         * modules/inttostr (Files): Add anytostr.c.
51419         (Makefile.am): Set lib_SOURCES instead of ...
51420         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
51421         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
51422         * lib/offtostr.c: Likewise.
51423         * lib/uinttostr.c: Likewise.
51424         * lib/umaxtostr.c: Likewise.
51425         * modules/inttostr-tests: New file.
51426         * tests/test-inttostr.c: New file.  Test these functions.
51428 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
51429             Bruno Haible  <bruno@clisp.org>
51431         Add "Extending Gnulib" chapter to manual.
51432         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
51433         chapter.
51434         (Extending Gnulib): New chapter.
51435         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
51436         chapter.
51438 2010-06-09  Bruno Haible  <bruno@clisp.org>
51440         Avoid relocwrapper link errors due to gnulib replacement functions.
51441         * lib/areadlink.c: Use the system's malloc, realloc functions.
51442         (areadlink): Set errno to ENOMEM explicitly.
51443         * modules/areadlink (Depends-on): Remove malloc-posix.
51444         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51446 2010-06-09  Bruno Haible  <bruno@clisp.org>
51448         Avoid relocwrapper link errors due to gnulib replacement functions.
51449         * lib/canonicalize-lgpl.c: Use the system's malloc function.
51450         * lib/malloca.c: Likewise.
51451         * lib/relocatable.c: Likewise.
51452         * lib/progreloc.c: Use the system's malloc, sprintf functions.
51453         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
51454         * lib/setenv.c: Use the system's malloc, realloc functions.
51455         * lib/strerror.c: Use the system's sprintf function.
51456         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51458 2010-06-04  Bruno Haible  <bruno@clisp.org>
51460         Prefer documented low-level autoconf macro names.
51461         * m4/lib-link.m4: Use m4_translit instead of translit.
51462         * m4/environ.m4: Likewise.
51463         * m4/mathfunc.m4: Likewise.
51464         * m4/onceonly.m4: Likewise.
51465         * m4/stdint.m4: Likewise.
51466         Suggested by Eric Blake.
51468 2010-06-04  Martin Lambers  <marlam@marlam.de>
51469             Bruno Haible  <bruno@clisp.org>
51471         havelib: Allow library names with '+' characters.
51472         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
51473         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
51475 2010-06-09  Bruno Haible  <bruno@clisp.org>
51477         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
51478         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
51479         realloc failed.
51481 2010-06-08  Peter Simons  <simons@cryp.to>
51483         maint.mk: make the news-check rule more configurable
51484         * top/maint.mk (news-check-lines-spec): New variable.
51485         (news-check): Use "sed -n 1,10p" in place of "head".
51487 2010-06-07  Jim Meyering  <meyering@redhat.com>
51489         do-release-commit-and-tag: fix typo in --help
51490         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
51492         regex: avoid new dead-code warning with gcc-4.6.0
51493         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
51494         if-block containing a while-loop.  It's been unused for at least
51495         5 years.
51497 2010-06-05  Bruno Haible  <bruno@clisp.org>
51499         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
51500         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
51502 2010-06-04  Bruno Haible  <bruno@clisp.org>
51504         Update to GNU gettext 0.18.1.
51505         * modules/gettext (configure.ac): Require gettext infrastructure from
51506         version 0.18.1.
51508 2010-06-03  Bruno Haible  <bruno@clisp.org>
51510         Don't use AC_LIBOBJ with file names in subdirectories.
51511         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
51512         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
51513         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
51514         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
51515         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
51516         gl_LIBUNISTRING_LIBSOURCE.
51517         (Makefile.am): Augment lib_SOURCES here, conditionally.
51518         * NEWS: Drop requirement for Automake option 'subdir-objects'.
51520 2010-06-03  Bruno Haible  <bruno@clisp.org>
51522         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
51523         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
51524         expansion does not end with a newline.
51525         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
51526         unnecessary newline.
51528 2010-06-03  Bruno Haible  <bruno@clisp.org>
51530         Reduce dependencies.
51531         * tests/test-quotearg.h: New file, extracted from
51532         tests/test-quotearg.c.
51533         * tests/test-quotearg-simple.c: New file, extracted from
51534         tests/test-quotearg.c.
51535         * tests/test-quotearg.c: Don't include <ctype.h>.
51536         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
51537         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
51538         use_quote_double_quotes, use_quotearg_colon): Moved to
51539         tests/test-quotearg.h.
51540         (results_g, flag_results, custom_quotes, custom_results): Moved
51541         to tests/test-quotearg-simple.c.
51542         (main): Moved the part that does not depend on gettext to
51543         tests/test-quotearg-simple.c. Return 77 if the test cannot be
51544         performed.
51545         * modules/quotearg-simple: New file.
51546         * modules/quotearg-simple-tests: New file.
51547         * modules/quotearg (Depends-on): Add quotearg-simple.
51548         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
51549         (Files): Add tests/test-quotearg.h.
51550         Reported by Paolo Bonzini.
51552 2010-06-03  Bruno Haible  <bruno@clisp.org>
51554         Reduce dependencies.
51555         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
51557 2010-06-03  Bruno Haible  <bruno@clisp.org>
51559         time: Undefine more broken macros.
51560         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
51561         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
51562         Reported by Eric Blake.
51564 2010-06-03  Bruno Haible  <bruno@clisp.org>
51566         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
51567         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
51568         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
51569         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
51570         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
51571         Reported by Ludovic Courtès <ludo@gnu.org>.
51573 2010-06-02  Eric Blake  <eblake@redhat.com>
51575         time: work with mingw + pthreads-win32 library
51576         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
51577         if timespec is defined only in pthread.h.
51578         * modules/time (Makefile.am): Substitute it.
51579         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
51580         <pthread.h>, when needed.
51581         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
51582         from the library.
51584 2010-05-31  Bruno Haible  <bruno@clisp.org>
51586         Avoid expanding two macros in the wrong order.
51587         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
51588         gl_LIBUNISTRING if it is defined.
51589         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
51590         autoconf >= 2.64.
51591         Reported by Ludovic Courtès <ludo@gnu.org>.
51593 2010-05-27  Jim Meyering  <meyering@redhat.com>
51595         maint.mk: also prohibit "#undef" of always-defined symbols
51596         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
51597         Allow more than one space before the symbol name.
51598         (sc_prohibit_always-defined_macros): Use grep's -E, now that
51599         the regexp uses alternation.
51601 2010-05-26  Eric Blake  <eblake@redhat.com>
51603         maint.mk: avoid echo -e
51604         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
51605         Convert all uses of echo -* to printf.
51606         Reported by Matthias Bolte.
51608 2010-05-25  Bruno Haible  <bruno@clisp.org>
51610         Update to GNU gettext 0.18, part 2.
51611         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
51612         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
51614 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51616         Add missing include in test-pwrite.c.
51617         * tests/test-pwrite.c: Include string.h, for strcmp.
51619 2010-05-24  Bruno Haible  <bruno@clisp.org>
51621         * NEWS: Mention requirement for Automake option 'subdir-objects'.
51623 2010-05-24  Bruno Haible  <bruno@clisp.org>
51625         Don't use conversion with transliteration in u{8,16,32}_strcoll.
51626         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
51627         iconveh_error argument.
51628         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
51629         U_STRCONV_TO_LOCALE.
51630         * lib/unistr/u16-strcoll.c: Likewise.
51631         * lib/unistr/u32-strcoll.c: Likewise.
51632         * modules/unistr/u8-strcoll (Depends-on): Add
51633         uniconv/u8-strconv-to-enc, localcharset. Remove
51634         uniconv/u8-strconv-to-locale.
51635         (configure.ac): Bump version number.
51636         * modules/unistr/u16-strcoll (Depends-on): Add
51637         uniconv/u16-strconv-to-enc, localcharset. Remove
51638         uniconv/u16-strconv-to-locale.
51639         (configure.ac): Bump version number.
51640         * modules/unistr/u32-strcoll (Depends-on): Add
51641         uniconv/u32-strconv-to-enc, localcharset. Remove
51642         uniconv/u32-strconv-to-locale.
51643         (configure.ac): Bump version number.
51645 2010-05-24  Bruno Haible  <bruno@clisp.org>
51647         Avoid a test failure on NetBSD 5.0.
51648         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
51649         an iconv() bug.
51651 2010-05-24  Bruno Haible  <bruno@clisp.org>
51653         Adjust #include directive style.
51654         * modules/regex (Includes): Recommend to write <regex.h>.
51656 2010-05-24  Bruno Haible  <bruno@clisp.org>
51658         regex: Don't require alloca.
51659         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
51660         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
51661         only inside if (0).
51663 2010-05-23  Jim Meyering  <meyering@redhat.com>
51665         test-renameat.c: include <sys/stat.h>
51666         * tests/test-renameat.c: Include <sys/stat.h>; required for
51667         definition of S_IS* macros.
51669 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
51671         Update maintainer documentation for 'relocatable-prog' module.
51672         * doc/relocatable-maint.texi: Update.
51673         Comments by Bruno Haible.
51675 2010-05-23  Bruno Haible  <bruno@clisp.org>
51677         git-merge-changelog: Enable --split-merged-entry by default.
51678         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
51679         (usage): Don't mention this option any more.
51680         Reported by Ralf Wildenhues.
51682 2010-05-23  Jim Meyering  <meyering@redhat.com>
51684         test-pwrite: do not leave behind a test file named "out"
51685         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
51686         The trivial-looking use of init.sh is really necessary.
51687         It ensures that the temporary file, "out", is created in
51688         a temporary directory, and removed upon termination.
51689         * tests/test-pwrite.sh: Re-add file.
51690         * modules/pwrite-tests: Reference it.
51692 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51694         Fix output redirection buglet in init.sh.
51695         * tests/init.sh: Fix redirection of stderr.
51697 2010-05-20  Simon Josefsson  <simon@josefsson.org>
51699         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
51701 2010-05-17  Simon Josefsson  <simon@josefsson.org>
51703         * modules/valgrind-tests: New file.
51704         * m4/valgrind-tests.m4: New file.
51705         * doc/valgrind-tests.texi: New file.
51706         * doc/gnulib.texi (Running self-tests under valgrind): New
51707         section.
51709 2010-05-19  Bruno Haible  <bruno@clisp.org>
51711         Clean up dead code in recent commit.
51712         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
51713         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
51714         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
51715         Suggested by Paolo Bonzini.
51717 2010-05-19  Bruno Haible  <bruno@clisp.org>
51719         Avoid valgrind error reports from libunistring.
51720         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
51721         * modules/libunistring (Files): Add it.
51722         * modules/libunistring-optional (Files): Likewise.
51724 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
51725             Bruno Haible  <bruno@clisp.org>
51727         New module 'libunistring-optional'.
51728         * modules/libunistring-optional: New file.
51729         * m4/libunistring-base.m4: New file.
51730         * m4/libunistring-optional.m4: New file.
51731         * lib/unicase.in.h: Renamed from lib/unicase.h.
51732         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
51733         * lib/unictype.in.h: Renamed from lib/unictype.h.
51734         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
51735         * lib/uniname.in.h: Renamed from lib/uniname.h.
51736         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
51737         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
51738         * lib/unistr.in.h: Renamed from lib/unistr.h.
51739         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
51740         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
51741         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
51742         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
51743         gl_LIBUNISTRING. If the library was found, determine the installed
51744         version and set LIBUNISTRING_VERSION.
51745         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
51746         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
51747         handle a configuration option --with-included-libunistring.
51748         * modules/libunistring (Files): Add m4/absolute-header.m4.
51749         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
51750         Add m4/libunistring-base.m4.
51751         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51752         (Makefile.am): Build unicase.h from unicase.in.h.
51753         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
51754         Add m4/libunistring-base.m4.
51755         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51756         (Makefile.am): Build uniconv.h from uniconv.in.h.
51757         * modules/unictype/base (Files): Use unictype.in.h instead of
51758         unictype.h. Add m4/libunistring-base.m4.
51759         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51760         (Makefile.am): Build unictype.h from unictype.in.h.
51761         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
51762         Add m4/libunistring-base.m4.
51763         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51764         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
51765         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
51766         Add m4/libunistring-base.m4.
51767         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51768         (Makefile.am): Build uniname.h from uniname.in.h.
51769         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
51770         Add m4/libunistring-base.m4.
51771         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51772         (Makefile.am): Build uninorm.h from uninorm.in.h.
51773         * modules/unistdio/base (Files): Use unistdio.in.h instead of
51774         unistdio.h. Add m4/libunistring-base.m4.
51775         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51776         (Makefile.am): Build unistdio.h from unistdio.in.h.
51777         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
51778         Add m4/libunistring-base.m4.
51779         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51780         (Makefile.am): Build unistr.h from unistr.in.h.
51781         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
51782         Add m4/libunistring-base.m4.
51783         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51784         (Makefile.am): Build unitypes.h from unitypes.in.h.
51785         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
51786         Add m4/libunistring-base.m4.
51787         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51788         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
51789         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
51790         uniwidth.h. Add m4/libunistring-base.m4.
51791         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
51792         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
51793         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
51794         instead of augmenting lib_SOURCES.
51795         * modules/unicase/empty-suffix-context: Likewise.
51796         * modules/unicase/locale-language: Likewise.
51797         * modules/unicase/tolower: Likewise.
51798         * modules/unicase/totitle: Likewise.
51799         * modules/unicase/toupper: Likewise.
51800         * modules/unicase/u8-casecmp: Likewise.
51801         * modules/unicase/u8-casecoll: Likewise.
51802         * modules/unicase/u8-casefold: Likewise.
51803         * modules/unicase/u8-casexfrm: Likewise.
51804         * modules/unicase/u8-ct-casefold: Likewise.
51805         * modules/unicase/u8-ct-tolower: Likewise.
51806         * modules/unicase/u8-ct-totitle: Likewise.
51807         * modules/unicase/u8-ct-toupper: Likewise.
51808         * modules/unicase/u8-is-cased: Likewise.
51809         * modules/unicase/u8-is-casefolded: Likewise.
51810         * modules/unicase/u8-is-lowercase: Likewise.
51811         * modules/unicase/u8-is-titlecase: Likewise.
51812         * modules/unicase/u8-is-uppercase: Likewise.
51813         * modules/unicase/u8-prefix-context: Likewise.
51814         * modules/unicase/u8-suffix-context: Likewise.
51815         * modules/unicase/u8-tolower: Likewise.
51816         * modules/unicase/u8-totitle: Likewise.
51817         * modules/unicase/u8-toupper: Likewise.
51818         * modules/unicase/u16-casecmp: Likewise.
51819         * modules/unicase/u16-casecoll: Likewise.
51820         * modules/unicase/u16-casefold: Likewise.
51821         * modules/unicase/u16-casexfrm: Likewise.
51822         * modules/unicase/u16-ct-casefold: Likewise.
51823         * modules/unicase/u16-ct-tolower: Likewise.
51824         * modules/unicase/u16-ct-totitle: Likewise.
51825         * modules/unicase/u16-ct-toupper: Likewise.
51826         * modules/unicase/u16-is-cased: Likewise.
51827         * modules/unicase/u16-is-casefolded: Likewise.
51828         * modules/unicase/u16-is-lowercase: Likewise.
51829         * modules/unicase/u16-is-titlecase: Likewise.
51830         * modules/unicase/u16-is-uppercase: Likewise.
51831         * modules/unicase/u16-prefix-context: Likewise.
51832         * modules/unicase/u16-suffix-context: Likewise.
51833         * modules/unicase/u16-tolower: Likewise.
51834         * modules/unicase/u16-totitle: Likewise.
51835         * modules/unicase/u16-toupper: Likewise.
51836         * modules/unicase/u32-casecmp: Likewise.
51837         * modules/unicase/u32-casecoll: Likewise.
51838         * modules/unicase/u32-casefold: Likewise.
51839         * modules/unicase/u32-casexfrm: Likewise.
51840         * modules/unicase/u32-ct-casefold: Likewise.
51841         * modules/unicase/u32-ct-tolower: Likewise.
51842         * modules/unicase/u32-ct-totitle: Likewise.
51843         * modules/unicase/u32-ct-toupper: Likewise.
51844         * modules/unicase/u32-is-cased: Likewise.
51845         * modules/unicase/u32-is-casefolded: Likewise.
51846         * modules/unicase/u32-is-lowercase: Likewise.
51847         * modules/unicase/u32-is-titlecase: Likewise.
51848         * modules/unicase/u32-is-uppercase: Likewise.
51849         * modules/unicase/u32-prefix-context: Likewise.
51850         * modules/unicase/u32-suffix-context: Likewise.
51851         * modules/unicase/u32-tolower: Likewise.
51852         * modules/unicase/u32-totitle: Likewise.
51853         * modules/unicase/u32-toupper: Likewise.
51854         * modules/unicase/ulc-casecmp: Likewise.
51855         * modules/unicase/ulc-casecoll: Likewise.
51856         * modules/unicase/ulc-casexfrm: Likewise.
51857         * modules/uniconv/u8-conv-from-enc: Likewise.
51858         * modules/uniconv/u8-conv-to-enc: Likewise.
51859         * modules/uniconv/u8-strconv-from-enc: Likewise.
51860         * modules/uniconv/u8-strconv-from-locale: Likewise.
51861         * modules/uniconv/u8-strconv-to-enc: Likewise.
51862         * modules/uniconv/u8-strconv-to-locale: Likewise.
51863         * modules/uniconv/u16-conv-from-enc: Likewise.
51864         * modules/uniconv/u16-conv-to-enc: Likewise.
51865         * modules/uniconv/u16-strconv-from-enc: Likewise.
51866         * modules/uniconv/u16-strconv-from-locale: Likewise.
51867         * modules/uniconv/u16-strconv-to-enc: Likewise.
51868         * modules/uniconv/u16-strconv-to-locale: Likewise.
51869         * modules/uniconv/u32-conv-from-enc: Likewise.
51870         * modules/uniconv/u32-conv-to-enc: Likewise.
51871         * modules/uniconv/u32-strconv-from-enc: Likewise.
51872         * modules/uniconv/u32-strconv-from-locale: Likewise.
51873         * modules/uniconv/u32-strconv-to-enc: Likewise.
51874         * modules/uniconv/u32-strconv-to-locale: Likewise.
51875         * modules/unictype/bidicategory-byname: Likewise.
51876         * modules/unictype/bidicategory-name: Likewise.
51877         * modules/unictype/bidicategory-of: Likewise.
51878         * modules/unictype/bidicategory-test: Likewise.
51879         * modules/unictype/block-list: Likewise.
51880         * modules/unictype/block-test: Likewise.
51881         * modules/unictype/category-C: Likewise.
51882         * modules/unictype/category-Cc: Likewise.
51883         * modules/unictype/category-Cf: Likewise.
51884         * modules/unictype/category-Cn: Likewise.
51885         * modules/unictype/category-Co: Likewise.
51886         * modules/unictype/category-Cs: Likewise.
51887         * modules/unictype/category-L: Likewise.
51888         * modules/unictype/category-Ll: Likewise.
51889         * modules/unictype/category-Lm: Likewise.
51890         * modules/unictype/category-Lo: Likewise.
51891         * modules/unictype/category-Lt: Likewise.
51892         * modules/unictype/category-Lu: Likewise.
51893         * modules/unictype/category-M: Likewise.
51894         * modules/unictype/category-Mc: Likewise.
51895         * modules/unictype/category-Me: Likewise.
51896         * modules/unictype/category-Mn: Likewise.
51897         * modules/unictype/category-N: Likewise.
51898         * modules/unictype/category-Nd: Likewise.
51899         * modules/unictype/category-Nl: Likewise.
51900         * modules/unictype/category-No: Likewise.
51901         * modules/unictype/category-P: Likewise.
51902         * modules/unictype/category-Pc: Likewise.
51903         * modules/unictype/category-Pd: Likewise.
51904         * modules/unictype/category-Pe: Likewise.
51905         * modules/unictype/category-Pf: Likewise.
51906         * modules/unictype/category-Pi: Likewise.
51907         * modules/unictype/category-Po: Likewise.
51908         * modules/unictype/category-Ps: Likewise.
51909         * modules/unictype/category-S: Likewise.
51910         * modules/unictype/category-Sc: Likewise.
51911         * modules/unictype/category-Sk: Likewise.
51912         * modules/unictype/category-Sm: Likewise.
51913         * modules/unictype/category-So: Likewise.
51914         * modules/unictype/category-Z: Likewise.
51915         * modules/unictype/category-Zl: Likewise.
51916         * modules/unictype/category-Zp: Likewise.
51917         * modules/unictype/category-Zs: Likewise.
51918         * modules/unictype/category-and: Likewise.
51919         * modules/unictype/category-and-not: Likewise.
51920         * modules/unictype/category-byname: Likewise.
51921         * modules/unictype/category-name: Likewise.
51922         * modules/unictype/category-none: Likewise.
51923         * modules/unictype/category-of: Likewise.
51924         * modules/unictype/category-or: Likewise.
51925         * modules/unictype/category-test: Likewise.
51926         * modules/unictype/combining-class: Likewise.
51927         * modules/unictype/ctype-alnum: Likewise.
51928         * modules/unictype/ctype-alpha: Likewise.
51929         * modules/unictype/ctype-blank: Likewise.
51930         * modules/unictype/ctype-cntrl: Likewise.
51931         * modules/unictype/ctype-digit: Likewise.
51932         * modules/unictype/ctype-graph: Likewise.
51933         * modules/unictype/ctype-lower: Likewise.
51934         * modules/unictype/ctype-print: Likewise.
51935         * modules/unictype/ctype-punct: Likewise.
51936         * modules/unictype/ctype-space: Likewise.
51937         * modules/unictype/ctype-upper: Likewise.
51938         * modules/unictype/ctype-xdigit: Likewise.
51939         * modules/unictype/decimal-digit: Likewise.
51940         * modules/unictype/digit: Likewise.
51941         * modules/unictype/mirror: Likewise.
51942         * modules/unictype/numeric: Likewise.
51943         * modules/unictype/property-alphabetic: Likewise.
51944         * modules/unictype/property-ascii-hex-digit: Likewise.
51945         * modules/unictype/property-bidi-arabic-digit: Likewise.
51946         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
51947         * modules/unictype/property-bidi-block-separator: Likewise.
51948         * modules/unictype/property-bidi-boundary-neutral: Likewise.
51949         * modules/unictype/property-bidi-common-separator: Likewise.
51950         * modules/unictype/property-bidi-control: Likewise.
51951         * modules/unictype/property-bidi-embedding-or-override: Likewise.
51952         * modules/unictype/property-bidi-eur-num-separator: Likewise.
51953         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
51954         * modules/unictype/property-bidi-european-digit: Likewise.
51955         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
51956         * modules/unictype/property-bidi-left-to-right: Likewise.
51957         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
51958         * modules/unictype/property-bidi-other-neutral: Likewise.
51959         * modules/unictype/property-bidi-pdf: Likewise.
51960         * modules/unictype/property-bidi-segment-separator: Likewise.
51961         * modules/unictype/property-bidi-whitespace: Likewise.
51962         * modules/unictype/property-byname: Likewise.
51963         * modules/unictype/property-combining: Likewise.
51964         * modules/unictype/property-composite: Likewise.
51965         * modules/unictype/property-currency-symbol: Likewise.
51966         * modules/unictype/property-dash: Likewise.
51967         * modules/unictype/property-decimal-digit: Likewise.
51968         * modules/unictype/property-default-ignorable-code-point: Likewise.
51969         * modules/unictype/property-deprecated: Likewise.
51970         * modules/unictype/property-diacritic: Likewise.
51971         * modules/unictype/property-extender: Likewise.
51972         * modules/unictype/property-format-control: Likewise.
51973         * modules/unictype/property-grapheme-base: Likewise.
51974         * modules/unictype/property-grapheme-extend: Likewise.
51975         * modules/unictype/property-grapheme-link: Likewise.
51976         * modules/unictype/property-hex-digit: Likewise.
51977         * modules/unictype/property-hyphen: Likewise.
51978         * modules/unictype/property-id-continue: Likewise.
51979         * modules/unictype/property-id-start: Likewise.
51980         * modules/unictype/property-ideographic: Likewise.
51981         * modules/unictype/property-ids-binary-operator: Likewise.
51982         * modules/unictype/property-ids-trinary-operator: Likewise.
51983         * modules/unictype/property-ignorable-control: Likewise.
51984         * modules/unictype/property-iso-control: Likewise.
51985         * modules/unictype/property-join-control: Likewise.
51986         * modules/unictype/property-left-of-pair: Likewise.
51987         * modules/unictype/property-line-separator: Likewise.
51988         * modules/unictype/property-logical-order-exception: Likewise.
51989         * modules/unictype/property-lowercase: Likewise.
51990         * modules/unictype/property-math: Likewise.
51991         * modules/unictype/property-non-break: Likewise.
51992         * modules/unictype/property-not-a-character: Likewise.
51993         * modules/unictype/property-numeric: Likewise.
51994         * modules/unictype/property-other-alphabetic: Likewise.
51995         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
51996         * modules/unictype/property-other-grapheme-extend: Likewise.
51997         * modules/unictype/property-other-id-continue: Likewise.
51998         * modules/unictype/property-other-id-start: Likewise.
51999         * modules/unictype/property-other-lowercase: Likewise.
52000         * modules/unictype/property-other-math: Likewise.
52001         * modules/unictype/property-other-uppercase: Likewise.
52002         * modules/unictype/property-paired-punctuation: Likewise.
52003         * modules/unictype/property-paragraph-separator: Likewise.
52004         * modules/unictype/property-pattern-syntax: Likewise.
52005         * modules/unictype/property-pattern-white-space: Likewise.
52006         * modules/unictype/property-private-use: Likewise.
52007         * modules/unictype/property-punctuation: Likewise.
52008         * modules/unictype/property-quotation-mark: Likewise.
52009         * modules/unictype/property-radical: Likewise.
52010         * modules/unictype/property-sentence-terminal: Likewise.
52011         * modules/unictype/property-soft-dotted: Likewise.
52012         * modules/unictype/property-space: Likewise.
52013         * modules/unictype/property-terminal-punctuation: Likewise.
52014         * modules/unictype/property-test: Likewise.
52015         * modules/unictype/property-titlecase: Likewise.
52016         * modules/unictype/property-unassigned-code-value: Likewise.
52017         * modules/unictype/property-unified-ideograph: Likewise.
52018         * modules/unictype/property-uppercase: Likewise.
52019         * modules/unictype/property-variation-selector: Likewise.
52020         * modules/unictype/property-white-space: Likewise.
52021         * modules/unictype/property-xid-continue: Likewise.
52022         * modules/unictype/property-xid-start: Likewise.
52023         * modules/unictype/property-zero-width: Likewise.
52024         * modules/unictype/scripts: Likewise.
52025         * modules/unictype/syntax-c-ident: Likewise.
52026         * modules/unictype/syntax-c-whitespace: Likewise.
52027         * modules/unictype/syntax-java-ident: Likewise.
52028         * modules/unictype/syntax-java-whitespace: Likewise.
52029         * modules/unilbrk/u8-possible-linebreaks: Likewise.
52030         * modules/unilbrk/u8-width-linebreaks: Likewise.
52031         * modules/unilbrk/u16-possible-linebreaks: Likewise.
52032         * modules/unilbrk/u16-width-linebreaks: Likewise.
52033         * modules/unilbrk/u32-possible-linebreaks: Likewise.
52034         * modules/unilbrk/u32-width-linebreaks: Likewise.
52035         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
52036         * modules/unilbrk/ulc-width-linebreaks: Likewise.
52037         * modules/uniname/uniname: Likewise.
52038         * modules/uninorm/canonical-decomposition: Likewise.
52039         * modules/uninorm/composition: Likewise.
52040         * modules/uninorm/decomposing-form: Likewise.
52041         * modules/uninorm/decomposition: Likewise.
52042         * modules/uninorm/filter: Likewise.
52043         * modules/uninorm/nfc: Likewise.
52044         * modules/uninorm/nfd: Likewise.
52045         * modules/uninorm/nfkc: Likewise.
52046         * modules/uninorm/nfkd: Likewise.
52047         * modules/uninorm/u8-normalize: Likewise.
52048         * modules/uninorm/u8-normcmp: Likewise.
52049         * modules/uninorm/u8-normcoll: Likewise.
52050         * modules/uninorm/u8-normxfrm: Likewise.
52051         * modules/uninorm/u16-normalize: Likewise.
52052         * modules/uninorm/u16-normcmp: Likewise.
52053         * modules/uninorm/u16-normcoll: Likewise.
52054         * modules/uninorm/u16-normxfrm: Likewise.
52055         * modules/uninorm/u32-normalize: Likewise.
52056         * modules/uninorm/u32-normcmp: Likewise.
52057         * modules/uninorm/u32-normcoll: Likewise.
52058         * modules/uninorm/u32-normxfrm: Likewise.
52059         * modules/unistdio/u8-asnprintf: Likewise.
52060         * modules/unistdio/u8-asprintf: Likewise.
52061         * modules/unistdio/u8-snprintf: Likewise.
52062         * modules/unistdio/u8-sprintf: Likewise.
52063         * modules/unistdio/u8-u8-asnprintf: Likewise.
52064         * modules/unistdio/u8-u8-asprintf: Likewise.
52065         * modules/unistdio/u8-u8-snprintf: Likewise.
52066         * modules/unistdio/u8-u8-sprintf: Likewise.
52067         * modules/unistdio/u8-u8-vasnprintf: Likewise.
52068         * modules/unistdio/u8-u8-vasprintf: Likewise.
52069         * modules/unistdio/u8-u8-vsnprintf: Likewise.
52070         * modules/unistdio/u8-u8-vsprintf: Likewise.
52071         * modules/unistdio/u8-vasnprintf: Likewise.
52072         * modules/unistdio/u8-vasprintf: Likewise.
52073         * modules/unistdio/u8-vsnprintf: Likewise.
52074         * modules/unistdio/u8-vsprintf: Likewise.
52075         * modules/unistdio/u16-asnprintf: Likewise.
52076         * modules/unistdio/u16-asprintf: Likewise.
52077         * modules/unistdio/u16-snprintf: Likewise.
52078         * modules/unistdio/u16-sprintf: Likewise.
52079         * modules/unistdio/u16-u16-asnprintf: Likewise.
52080         * modules/unistdio/u16-u16-asprintf: Likewise.
52081         * modules/unistdio/u16-u16-snprintf: Likewise.
52082         * modules/unistdio/u16-u16-sprintf: Likewise.
52083         * modules/unistdio/u16-u16-vasnprintf: Likewise.
52084         * modules/unistdio/u16-u16-vasprintf: Likewise.
52085         * modules/unistdio/u16-u16-vsnprintf: Likewise.
52086         * modules/unistdio/u16-u16-vsprintf: Likewise.
52087         * modules/unistdio/u16-vasnprintf: Likewise.
52088         * modules/unistdio/u16-vasprintf: Likewise.
52089         * modules/unistdio/u16-vsnprintf: Likewise.
52090         * modules/unistdio/u16-vsprintf: Likewise.
52091         * modules/unistdio/u32-asnprintf: Likewise.
52092         * modules/unistdio/u32-asprintf: Likewise.
52093         * modules/unistdio/u32-snprintf: Likewise.
52094         * modules/unistdio/u32-sprintf: Likewise.
52095         * modules/unistdio/u32-u32-asnprintf: Likewise.
52096         * modules/unistdio/u32-u32-asprintf: Likewise.
52097         * modules/unistdio/u32-u32-snprintf: Likewise.
52098         * modules/unistdio/u32-u32-sprintf: Likewise.
52099         * modules/unistdio/u32-u32-vasnprintf: Likewise.
52100         * modules/unistdio/u32-u32-vasprintf: Likewise.
52101         * modules/unistdio/u32-u32-vsnprintf: Likewise.
52102         * modules/unistdio/u32-u32-vsprintf: Likewise.
52103         * modules/unistdio/u32-vasnprintf: Likewise.
52104         * modules/unistdio/u32-vasprintf: Likewise.
52105         * modules/unistdio/u32-vsnprintf: Likewise.
52106         * modules/unistdio/u32-vsprintf: Likewise.
52107         * modules/unistdio/ulc-asnprintf: Likewise.
52108         * modules/unistdio/ulc-asprintf: Likewise.
52109         * modules/unistdio/ulc-fprintf: Likewise.
52110         * modules/unistdio/ulc-snprintf: Likewise.
52111         * modules/unistdio/ulc-sprintf: Likewise.
52112         * modules/unistdio/ulc-vasnprintf: Likewise.
52113         * modules/unistdio/ulc-vasprintf: Likewise.
52114         * modules/unistdio/ulc-vfprintf: Likewise.
52115         * modules/unistdio/ulc-vsnprintf: Likewise.
52116         * modules/unistdio/ulc-vsprintf: Likewise.
52117         * modules/unistr/u8-check: Likewise.
52118         * modules/unistr/u8-chr: Likewise.
52119         * modules/unistr/u8-cmp: Likewise.
52120         * modules/unistr/u8-cmp2: Likewise.
52121         * modules/unistr/u8-cpy: Likewise.
52122         * modules/unistr/u8-cpy-alloc: Likewise.
52123         * modules/unistr/u8-endswith: Likewise.
52124         * modules/unistr/u8-mblen: Likewise.
52125         * modules/unistr/u8-mbsnlen: Likewise.
52126         * modules/unistr/u8-mbtouc: Likewise.
52127         * modules/unistr/u8-mbtouc-unsafe: Likewise.
52128         * modules/unistr/u8-mbtoucr: Likewise.
52129         * modules/unistr/u8-move: Likewise.
52130         * modules/unistr/u8-next: Likewise.
52131         * modules/unistr/u8-prev: Likewise.
52132         * modules/unistr/u8-set: Likewise.
52133         * modules/unistr/u8-startswith: Likewise.
52134         * modules/unistr/u8-stpcpy: Likewise.
52135         * modules/unistr/u8-stpncpy: Likewise.
52136         * modules/unistr/u8-strcat: Likewise.
52137         * modules/unistr/u8-strchr: Likewise.
52138         * modules/unistr/u8-strcmp: Likewise.
52139         * modules/unistr/u8-strcoll: Likewise.
52140         * modules/unistr/u8-strcpy: Likewise.
52141         * modules/unistr/u8-strcspn: Likewise.
52142         * modules/unistr/u8-strdup: Likewise.
52143         * modules/unistr/u8-strlen: Likewise.
52144         * modules/unistr/u8-strmblen: Likewise.
52145         * modules/unistr/u8-strmbtouc: Likewise.
52146         * modules/unistr/u8-strncat: Likewise.
52147         * modules/unistr/u8-strncmp: Likewise.
52148         * modules/unistr/u8-strncpy: Likewise.
52149         * modules/unistr/u8-strnlen: Likewise.
52150         * modules/unistr/u8-strpbrk: Likewise.
52151         * modules/unistr/u8-strrchr: Likewise.
52152         * modules/unistr/u8-strspn: Likewise.
52153         * modules/unistr/u8-strstr: Likewise.
52154         * modules/unistr/u8-strtok: Likewise.
52155         * modules/unistr/u8-to-u16: Likewise.
52156         * modules/unistr/u8-to-u32: Likewise.
52157         * modules/unistr/u8-uctomb: Likewise.
52158         * modules/unistr/u16-check: Likewise.
52159         * modules/unistr/u16-chr: Likewise.
52160         * modules/unistr/u16-cmp: Likewise.
52161         * modules/unistr/u16-cmp2: Likewise.
52162         * modules/unistr/u16-cpy: Likewise.
52163         * modules/unistr/u16-cpy-alloc: Likewise.
52164         * modules/unistr/u16-endswith: Likewise.
52165         * modules/unistr/u16-mblen: Likewise.
52166         * modules/unistr/u16-mbsnlen: Likewise.
52167         * modules/unistr/u16-mbtouc: Likewise.
52168         * modules/unistr/u16-mbtouc-unsafe: Likewise.
52169         * modules/unistr/u16-mbtoucr: Likewise.
52170         * modules/unistr/u16-move: Likewise.
52171         * modules/unistr/u16-next: Likewise.
52172         * modules/unistr/u16-prev: Likewise.
52173         * modules/unistr/u16-set: Likewise.
52174         * modules/unistr/u16-startswith: Likewise.
52175         * modules/unistr/u16-stpcpy: Likewise.
52176         * modules/unistr/u16-stpncpy: Likewise.
52177         * modules/unistr/u16-strcat: Likewise.
52178         * modules/unistr/u16-strchr: Likewise.
52179         * modules/unistr/u16-strcmp: Likewise.
52180         * modules/unistr/u16-strcoll: Likewise.
52181         * modules/unistr/u16-strcpy: Likewise.
52182         * modules/unistr/u16-strcspn: Likewise.
52183         * modules/unistr/u16-strdup: Likewise.
52184         * modules/unistr/u16-strlen: Likewise.
52185         * modules/unistr/u16-strmblen: Likewise.
52186         * modules/unistr/u16-strmbtouc: Likewise.
52187         * modules/unistr/u16-strncat: Likewise.
52188         * modules/unistr/u16-strncmp: Likewise.
52189         * modules/unistr/u16-strncpy: Likewise.
52190         * modules/unistr/u16-strnlen: Likewise.
52191         * modules/unistr/u16-strpbrk: Likewise.
52192         * modules/unistr/u16-strrchr: Likewise.
52193         * modules/unistr/u16-strspn: Likewise.
52194         * modules/unistr/u16-strstr: Likewise.
52195         * modules/unistr/u16-strtok: Likewise.
52196         * modules/unistr/u16-to-u32: Likewise.
52197         * modules/unistr/u16-to-u8: Likewise.
52198         * modules/unistr/u16-uctomb: Likewise.
52199         * modules/unistr/u32-check: Likewise.
52200         * modules/unistr/u32-chr: Likewise.
52201         * modules/unistr/u32-cmp: Likewise.
52202         * modules/unistr/u32-cmp2: Likewise.
52203         * modules/unistr/u32-cpy: Likewise.
52204         * modules/unistr/u32-cpy-alloc: Likewise.
52205         * modules/unistr/u32-endswith: Likewise.
52206         * modules/unistr/u32-mblen: Likewise.
52207         * modules/unistr/u32-mbsnlen: Likewise.
52208         * modules/unistr/u32-mbtouc: Likewise.
52209         * modules/unistr/u32-mbtouc-unsafe: Likewise.
52210         * modules/unistr/u32-mbtoucr: Likewise.
52211         * modules/unistr/u32-move: Likewise.
52212         * modules/unistr/u32-next: Likewise.
52213         * modules/unistr/u32-prev: Likewise.
52214         * modules/unistr/u32-set: Likewise.
52215         * modules/unistr/u32-startswith: Likewise.
52216         * modules/unistr/u32-stpcpy: Likewise.
52217         * modules/unistr/u32-stpncpy: Likewise.
52218         * modules/unistr/u32-strcat: Likewise.
52219         * modules/unistr/u32-strchr: Likewise.
52220         * modules/unistr/u32-strcmp: Likewise.
52221         * modules/unistr/u32-strcoll: Likewise.
52222         * modules/unistr/u32-strcpy: Likewise.
52223         * modules/unistr/u32-strcspn: Likewise.
52224         * modules/unistr/u32-strdup: Likewise.
52225         * modules/unistr/u32-strlen: Likewise.
52226         * modules/unistr/u32-strmblen: Likewise.
52227         * modules/unistr/u32-strmbtouc: Likewise.
52228         * modules/unistr/u32-strncat: Likewise.
52229         * modules/unistr/u32-strncmp: Likewise.
52230         * modules/unistr/u32-strncpy: Likewise.
52231         * modules/unistr/u32-strnlen: Likewise.
52232         * modules/unistr/u32-strpbrk: Likewise.
52233         * modules/unistr/u32-strrchr: Likewise.
52234         * modules/unistr/u32-strspn: Likewise.
52235         * modules/unistr/u32-strstr: Likewise.
52236         * modules/unistr/u32-strtok: Likewise.
52237         * modules/unistr/u32-to-u16: Likewise.
52238         * modules/unistr/u32-to-u8: Likewise.
52239         * modules/unistr/u32-uctomb: Likewise.
52240         * modules/uniwbrk/u8-wordbreaks: Likewise.
52241         * modules/uniwbrk/u16-wordbreaks: Likewise.
52242         * modules/uniwbrk/u32-wordbreaks: Likewise.
52243         * modules/uniwbrk/ulc-wordbreaks: Likewise.
52244         * modules/uniwbrk/wordbreak-property: Likewise.
52245         * modules/uniwidth/u8-strwidth: Likewise.
52246         * modules/uniwidth/u8-width: Likewise.
52247         * modules/uniwidth/u16-strwidth: Likewise.
52248         * modules/uniwidth/u16-width: Likewise.
52249         * modules/uniwidth/u32-strwidth: Likewise.
52250         * modules/uniwidth/u32-width: Likewise.
52251         * modules/uniwidth/width: Likewise.
52252         * modules/unicase/cased-tests (Makefile.am): Link all test programs
52253         with $(LIBUNISTRING).
52254         * modules/unicase/ignorable-tests: Likewise.
52255         * modules/unicase/locale-language-tests: Likewise.
52256         * modules/unicase/tolower-tests: Likewise.
52257         * modules/unicase/totitle-tests: Likewise.
52258         * modules/unicase/toupper-tests: Likewise.
52259         * modules/unicase/u8-casecmp-tests: Likewise.
52260         * modules/unicase/u8-casecoll-tests: Likewise.
52261         * modules/unicase/u8-casefold-tests: Likewise.
52262         * modules/unicase/u8-is-cased-tests: Likewise.
52263         * modules/unicase/u8-is-casefolded-tests: Likewise.
52264         * modules/unicase/u8-is-lowercase-tests: Likewise.
52265         * modules/unicase/u8-is-titlecase-tests: Likewise.
52266         * modules/unicase/u8-is-uppercase-tests: Likewise.
52267         * modules/unicase/u8-tolower-tests: Likewise.
52268         * modules/unicase/u8-totitle-tests: Likewise.
52269         * modules/unicase/u8-toupper-tests: Likewise.
52270         * modules/unicase/u16-casecmp-tests: Likewise.
52271         * modules/unicase/u16-casecoll-tests: Likewise.
52272         * modules/unicase/u16-casefold-tests: Likewise.
52273         * modules/unicase/u16-is-cased-tests: Likewise.
52274         * modules/unicase/u16-is-casefolded-tests: Likewise.
52275         * modules/unicase/u16-is-lowercase-tests: Likewise.
52276         * modules/unicase/u16-is-titlecase-tests: Likewise.
52277         * modules/unicase/u16-is-uppercase-tests: Likewise.
52278         * modules/unicase/u16-tolower-tests: Likewise.
52279         * modules/unicase/u16-totitle-tests: Likewise.
52280         * modules/unicase/u16-toupper-tests: Likewise.
52281         * modules/unicase/u32-casecmp-tests: Likewise.
52282         * modules/unicase/u32-casecoll-tests: Likewise.
52283         * modules/unicase/u32-casefold-tests: Likewise.
52284         * modules/unicase/u32-is-cased-tests: Likewise.
52285         * modules/unicase/u32-is-casefolded-tests: Likewise.
52286         * modules/unicase/u32-is-lowercase-tests: Likewise.
52287         * modules/unicase/u32-is-titlecase-tests: Likewise.
52288         * modules/unicase/u32-is-uppercase-tests: Likewise.
52289         * modules/unicase/u32-tolower-tests: Likewise.
52290         * modules/unicase/u32-totitle-tests: Likewise.
52291         * modules/unicase/u32-toupper-tests: Likewise.
52292         * modules/unicase/ulc-casecmp-tests: Likewise.
52293         * modules/unicase/ulc-casecoll-tests: Likewise.
52294         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
52295         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
52296         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
52297         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
52298         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
52299         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
52300         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
52301         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
52302         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
52303         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
52304         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
52305         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
52306         * modules/unictype/bidicategory-byname-tests: Likewise.
52307         * modules/unictype/bidicategory-name-tests: Likewise.
52308         * modules/unictype/bidicategory-of-tests: Likewise.
52309         * modules/unictype/bidicategory-test-tests: Likewise.
52310         * modules/unictype/block-list-tests: Likewise.
52311         * modules/unictype/block-of-tests: Likewise.
52312         * modules/unictype/block-test-tests: Likewise.
52313         * modules/unictype/category-C-tests: Likewise.
52314         * modules/unictype/category-Cc-tests: Likewise.
52315         * modules/unictype/category-Cf-tests: Likewise.
52316         * modules/unictype/category-Cn-tests: Likewise.
52317         * modules/unictype/category-Co-tests: Likewise.
52318         * modules/unictype/category-Cs-tests: Likewise.
52319         * modules/unictype/category-L-tests: Likewise.
52320         * modules/unictype/category-Ll-tests: Likewise.
52321         * modules/unictype/category-Lm-tests: Likewise.
52322         * modules/unictype/category-Lo-tests: Likewise.
52323         * modules/unictype/category-Lt-tests: Likewise.
52324         * modules/unictype/category-Lu-tests: Likewise.
52325         * modules/unictype/category-M-tests: Likewise.
52326         * modules/unictype/category-Mc-tests: Likewise.
52327         * modules/unictype/category-Me-tests: Likewise.
52328         * modules/unictype/category-Mn-tests: Likewise.
52329         * modules/unictype/category-N-tests: Likewise.
52330         * modules/unictype/category-Nd-tests: Likewise.
52331         * modules/unictype/category-Nl-tests: Likewise.
52332         * modules/unictype/category-No-tests: Likewise.
52333         * modules/unictype/category-P-tests: Likewise.
52334         * modules/unictype/category-Pc-tests: Likewise.
52335         * modules/unictype/category-Pd-tests: Likewise.
52336         * modules/unictype/category-Pe-tests: Likewise.
52337         * modules/unictype/category-Pf-tests: Likewise.
52338         * modules/unictype/category-Pi-tests: Likewise.
52339         * modules/unictype/category-Po-tests: Likewise.
52340         * modules/unictype/category-Ps-tests: Likewise.
52341         * modules/unictype/category-S-tests: Likewise.
52342         * modules/unictype/category-Sc-tests: Likewise.
52343         * modules/unictype/category-Sk-tests: Likewise.
52344         * modules/unictype/category-Sm-tests: Likewise.
52345         * modules/unictype/category-So-tests: Likewise.
52346         * modules/unictype/category-Z-tests: Likewise.
52347         * modules/unictype/category-Zl-tests: Likewise.
52348         * modules/unictype/category-Zp-tests: Likewise.
52349         * modules/unictype/category-Zs-tests: Likewise.
52350         * modules/unictype/category-and-not-tests: Likewise.
52351         * modules/unictype/category-and-tests: Likewise.
52352         * modules/unictype/category-byname-tests: Likewise.
52353         * modules/unictype/category-name-tests: Likewise.
52354         * modules/unictype/category-none-tests: Likewise.
52355         * modules/unictype/category-of-tests: Likewise.
52356         * modules/unictype/category-or-tests: Likewise.
52357         * modules/unictype/category-test-withtable-tests: Likewise.
52358         * modules/unictype/combining-class-tests: Likewise.
52359         * modules/unictype/ctype-alnum-tests: Likewise.
52360         * modules/unictype/ctype-alpha-tests: Likewise.
52361         * modules/unictype/ctype-blank-tests: Likewise.
52362         * modules/unictype/ctype-cntrl-tests: Likewise.
52363         * modules/unictype/ctype-digit-tests: Likewise.
52364         * modules/unictype/ctype-graph-tests: Likewise.
52365         * modules/unictype/ctype-lower-tests: Likewise.
52366         * modules/unictype/ctype-print-tests: Likewise.
52367         * modules/unictype/ctype-punct-tests: Likewise.
52368         * modules/unictype/ctype-space-tests: Likewise.
52369         * modules/unictype/ctype-upper-tests: Likewise.
52370         * modules/unictype/ctype-xdigit-tests: Likewise.
52371         * modules/unictype/decimal-digit-tests: Likewise.
52372         * modules/unictype/digit-tests: Likewise.
52373         * modules/unictype/mirror-tests: Likewise.
52374         * modules/unictype/numeric-tests: Likewise.
52375         * modules/unictype/property-alphabetic-tests: Likewise.
52376         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
52377         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
52378         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
52379         * modules/unictype/property-bidi-block-separator-tests: Likewise.
52380         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
52381         * modules/unictype/property-bidi-common-separator-tests: Likewise.
52382         * modules/unictype/property-bidi-control-tests: Likewise.
52383         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
52384         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
52385         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
52386         * modules/unictype/property-bidi-european-digit-tests: Likewise.
52387         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
52388         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
52389         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
52390         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
52391         * modules/unictype/property-bidi-pdf-tests: Likewise.
52392         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
52393         * modules/unictype/property-bidi-whitespace-tests: Likewise.
52394         * modules/unictype/property-byname-tests: Likewise.
52395         * modules/unictype/property-combining-tests: Likewise.
52396         * modules/unictype/property-composite-tests: Likewise.
52397         * modules/unictype/property-currency-symbol-tests: Likewise.
52398         * modules/unictype/property-dash-tests: Likewise.
52399         * modules/unictype/property-decimal-digit-tests: Likewise.
52400         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
52401         * modules/unictype/property-deprecated-tests: Likewise.
52402         * modules/unictype/property-diacritic-tests: Likewise.
52403         * modules/unictype/property-extender-tests: Likewise.
52404         * modules/unictype/property-format-control-tests: Likewise.
52405         * modules/unictype/property-grapheme-base-tests: Likewise.
52406         * modules/unictype/property-grapheme-extend-tests: Likewise.
52407         * modules/unictype/property-grapheme-link-tests: Likewise.
52408         * modules/unictype/property-hex-digit-tests: Likewise.
52409         * modules/unictype/property-hyphen-tests: Likewise.
52410         * modules/unictype/property-id-continue-tests: Likewise.
52411         * modules/unictype/property-id-start-tests: Likewise.
52412         * modules/unictype/property-ideographic-tests: Likewise.
52413         * modules/unictype/property-ids-binary-operator-tests: Likewise.
52414         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
52415         * modules/unictype/property-ignorable-control-tests: Likewise.
52416         * modules/unictype/property-iso-control-tests: Likewise.
52417         * modules/unictype/property-join-control-tests: Likewise.
52418         * modules/unictype/property-left-of-pair-tests: Likewise.
52419         * modules/unictype/property-line-separator-tests: Likewise.
52420         * modules/unictype/property-logical-order-exception-tests: Likewise.
52421         * modules/unictype/property-lowercase-tests: Likewise.
52422         * modules/unictype/property-math-tests: Likewise.
52423         * modules/unictype/property-non-break-tests: Likewise.
52424         * modules/unictype/property-not-a-character-tests: Likewise.
52425         * modules/unictype/property-numeric-tests: Likewise.
52426         * modules/unictype/property-other-alphabetic-tests: Likewise.
52427         * modules/unictype/property-other-default-ignorable-code-point-tests:
52428         Likewise.
52429         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
52430         * modules/unictype/property-other-id-continue-tests: Likewise.
52431         * modules/unictype/property-other-id-start-tests: Likewise.
52432         * modules/unictype/property-other-lowercase-tests: Likewise.
52433         * modules/unictype/property-other-math-tests: Likewise.
52434         * modules/unictype/property-other-uppercase-tests: Likewise.
52435         * modules/unictype/property-paired-punctuation-tests: Likewise.
52436         * modules/unictype/property-paragraph-separator-tests: Likewise.
52437         * modules/unictype/property-pattern-syntax-tests: Likewise.
52438         * modules/unictype/property-pattern-white-space-tests: Likewise.
52439         * modules/unictype/property-private-use-tests: Likewise.
52440         * modules/unictype/property-punctuation-tests: Likewise.
52441         * modules/unictype/property-quotation-mark-tests: Likewise.
52442         * modules/unictype/property-radical-tests: Likewise.
52443         * modules/unictype/property-sentence-terminal-tests: Likewise.
52444         * modules/unictype/property-soft-dotted-tests: Likewise.
52445         * modules/unictype/property-space-tests: Likewise.
52446         * modules/unictype/property-terminal-punctuation-tests: Likewise.
52447         * modules/unictype/property-test-tests: Likewise.
52448         * modules/unictype/property-titlecase-tests: Likewise.
52449         * modules/unictype/property-unassigned-code-value-tests: Likewise.
52450         * modules/unictype/property-unified-ideograph-tests: Likewise.
52451         * modules/unictype/property-uppercase-tests: Likewise.
52452         * modules/unictype/property-variation-selector-tests: Likewise.
52453         * modules/unictype/property-white-space-tests: Likewise.
52454         * modules/unictype/property-xid-continue-tests: Likewise.
52455         * modules/unictype/property-xid-start-tests: Likewise.
52456         * modules/unictype/property-zero-width-tests: Likewise.
52457         * modules/unictype/scripts-tests: Likewise.
52458         * modules/unictype/syntax-c-ident-tests: Likewise.
52459         * modules/unictype/syntax-c-whitespace-tests: Likewise.
52460         * modules/unictype/syntax-java-ident-tests: Likewise.
52461         * modules/unictype/syntax-java-whitespace-tests: Likewise.
52462         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
52463         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
52464         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
52465         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
52466         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
52467         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
52468         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
52469         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
52470         * modules/uniname/uniname-tests: Likewise.
52471         * modules/uninorm/canonical-decomposition-tests: Likewise.
52472         * modules/uninorm/compat-decomposition-tests: Likewise.
52473         * modules/uninorm/composition-tests: Likewise.
52474         * modules/uninorm/decomposing-form-tests: Likewise.
52475         * modules/uninorm/decomposition-tests: Likewise.
52476         * modules/uninorm/filter-tests: Likewise.
52477         * modules/uninorm/nfc-tests: Likewise.
52478         * modules/uninorm/nfd-tests: Likewise.
52479         * modules/uninorm/nfkc-tests: Likewise.
52480         * modules/uninorm/nfkd-tests: Likewise.
52481         * modules/uninorm/u8-normcmp-tests: Likewise.
52482         * modules/uninorm/u8-normcoll-tests: Likewise.
52483         * modules/uninorm/u16-normcmp-tests: Likewise.
52484         * modules/uninorm/u16-normcoll-tests: Likewise.
52485         * modules/uninorm/u32-normcmp-tests: Likewise.
52486         * modules/uninorm/u32-normcoll-tests: Likewise.
52487         * modules/unistdio/u8-asnprintf-tests: Likewise.
52488         * modules/unistdio/u8-vasnprintf-tests: Likewise.
52489         * modules/unistdio/u8-vasprintf-tests: Likewise.
52490         * modules/unistdio/u8-vsnprintf-tests: Likewise.
52491         * modules/unistdio/u8-vsprintf-tests: Likewise.
52492         * modules/unistdio/u16-asnprintf-tests: Likewise.
52493         * modules/unistdio/u16-vasnprintf-tests: Likewise.
52494         * modules/unistdio/u16-vasprintf-tests: Likewise.
52495         * modules/unistdio/u16-vsnprintf-tests: Likewise.
52496         * modules/unistdio/u16-vsprintf-tests: Likewise.
52497         * modules/unistdio/u32-asnprintf-tests: Likewise.
52498         * modules/unistdio/u32-vasnprintf-tests: Likewise.
52499         * modules/unistdio/u32-vasprintf-tests: Likewise.
52500         * modules/unistdio/u32-vsnprintf-tests: Likewise.
52501         * modules/unistdio/u32-vsprintf-tests: Likewise.
52502         * modules/unistdio/ulc-asnprintf-tests: Likewise.
52503         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
52504         * modules/unistdio/ulc-vasprintf-tests: Likewise.
52505         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
52506         * modules/unistdio/ulc-vsprintf-tests: Likewise.
52507         * modules/unistr/u8-check-tests: Likewise.
52508         * modules/unistr/u8-chr-tests: Likewise.
52509         * modules/unistr/u8-cmp-tests: Likewise.
52510         * modules/unistr/u8-cmp2-tests: Likewise.
52511         * modules/unistr/u8-cpy-alloc-tests: Likewise.
52512         * modules/unistr/u8-cpy-tests: Likewise.
52513         * modules/unistr/u8-mblen-tests: Likewise.
52514         * modules/unistr/u8-mbsnlen-tests: Likewise.
52515         * modules/unistr/u8-mbtouc-tests: Likewise.
52516         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
52517         * modules/unistr/u8-mbtoucr-tests: Likewise.
52518         * modules/unistr/u8-move-tests: Likewise.
52519         * modules/unistr/u8-next-tests: Likewise.
52520         * modules/unistr/u8-prev-tests: Likewise.
52521         * modules/unistr/u8-set-tests: Likewise.
52522         * modules/unistr/u8-stpcpy-tests: Likewise.
52523         * modules/unistr/u8-stpncpy-tests: Likewise.
52524         * modules/unistr/u8-strcat-tests: Likewise.
52525         * modules/unistr/u8-strcmp-tests: Likewise.
52526         * modules/unistr/u8-strcoll-tests: Likewise.
52527         * modules/unistr/u8-strcpy-tests: Likewise.
52528         * modules/unistr/u8-strdup-tests: Likewise.
52529         * modules/unistr/u8-strlen-tests: Likewise.
52530         * modules/unistr/u8-strmblen-tests: Likewise.
52531         * modules/unistr/u8-strmbtouc-tests: Likewise.
52532         * modules/unistr/u8-strncat-tests: Likewise.
52533         * modules/unistr/u8-strncmp-tests: Likewise.
52534         * modules/unistr/u8-strncpy-tests: Likewise.
52535         * modules/unistr/u8-strnlen-tests: Likewise.
52536         * modules/unistr/u8-to-u16-tests: Likewise.
52537         * modules/unistr/u8-to-u32-tests: Likewise.
52538         * modules/unistr/u8-uctomb-tests: Likewise.
52539         * modules/unistr/u16-check-tests: Likewise.
52540         * modules/unistr/u16-chr-tests: Likewise.
52541         * modules/unistr/u16-cmp-tests: Likewise.
52542         * modules/unistr/u16-cmp2-tests: Likewise.
52543         * modules/unistr/u16-cpy-alloc-tests: Likewise.
52544         * modules/unistr/u16-cpy-tests: Likewise.
52545         * modules/unistr/u16-mblen-tests: Likewise.
52546         * modules/unistr/u16-mbsnlen-tests: Likewise.
52547         * modules/unistr/u16-mbtouc-tests: Likewise.
52548         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
52549         * modules/unistr/u16-mbtoucr-tests: Likewise.
52550         * modules/unistr/u16-move-tests: Likewise.
52551         * modules/unistr/u16-next-tests: Likewise.
52552         * modules/unistr/u16-prev-tests: Likewise.
52553         * modules/unistr/u16-set-tests: Likewise.
52554         * modules/unistr/u16-stpcpy-tests: Likewise.
52555         * modules/unistr/u16-stpncpy-tests: Likewise.
52556         * modules/unistr/u16-strcat-tests: Likewise.
52557         * modules/unistr/u16-strcmp-tests: Likewise.
52558         * modules/unistr/u16-strcoll-tests: Likewise.
52559         * modules/unistr/u16-strcpy-tests: Likewise.
52560         * modules/unistr/u16-strdup-tests: Likewise.
52561         * modules/unistr/u16-strlen-tests: Likewise.
52562         * modules/unistr/u16-strmblen-tests: Likewise.
52563         * modules/unistr/u16-strmbtouc-tests: Likewise.
52564         * modules/unistr/u16-strncat-tests: Likewise.
52565         * modules/unistr/u16-strncmp-tests: Likewise.
52566         * modules/unistr/u16-strncpy-tests: Likewise.
52567         * modules/unistr/u16-strnlen-tests: Likewise.
52568         * modules/unistr/u16-to-u32-tests: Likewise.
52569         * modules/unistr/u16-to-u8-tests: Likewise.
52570         * modules/unistr/u16-uctomb-tests: Likewise.
52571         * modules/unistr/u32-check-tests: Likewise.
52572         * modules/unistr/u32-chr-tests: Likewise.
52573         * modules/unistr/u32-cmp-tests: Likewise.
52574         * modules/unistr/u32-cmp2-tests: Likewise.
52575         * modules/unistr/u32-cpy-alloc-tests: Likewise.
52576         * modules/unistr/u32-cpy-tests: Likewise.
52577         * modules/unistr/u32-mblen-tests: Likewise.
52578         * modules/unistr/u32-mbsnlen-tests: Likewise.
52579         * modules/unistr/u32-mbtouc-tests: Likewise.
52580         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
52581         * modules/unistr/u32-mbtoucr-tests: Likewise.
52582         * modules/unistr/u32-move-tests: Likewise.
52583         * modules/unistr/u32-next-tests: Likewise.
52584         * modules/unistr/u32-prev-tests: Likewise.
52585         * modules/unistr/u32-set-tests: Likewise.
52586         * modules/unistr/u32-stpcpy-tests: Likewise.
52587         * modules/unistr/u32-stpncpy-tests: Likewise.
52588         * modules/unistr/u32-strcat-tests: Likewise.
52589         * modules/unistr/u32-strcmp-tests: Likewise.
52590         * modules/unistr/u32-strcoll-tests: Likewise.
52591         * modules/unistr/u32-strcpy-tests: Likewise.
52592         * modules/unistr/u32-strdup-tests: Likewise.
52593         * modules/unistr/u32-strlen-tests: Likewise.
52594         * modules/unistr/u32-strmblen-tests: Likewise.
52595         * modules/unistr/u32-strmbtouc-tests: Likewise.
52596         * modules/unistr/u32-strncat-tests: Likewise.
52597         * modules/unistr/u32-strncmp-tests: Likewise.
52598         * modules/unistr/u32-strncpy-tests: Likewise.
52599         * modules/unistr/u32-strnlen-tests: Likewise.
52600         * modules/unistr/u32-to-u16-tests: Likewise.
52601         * modules/unistr/u32-to-u8-tests: Likewise.
52602         * modules/unistr/u32-uctomb-tests: Likewise.
52603         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
52604         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
52605         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
52606         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
52607         * modules/uniwidth/u8-strwidth-tests: Likewise.
52608         * modules/uniwidth/u8-width-tests: Likewise.
52609         * modules/uniwidth/u16-strwidth-tests: Likewise.
52610         * modules/uniwidth/u16-width-tests: Likewise.
52611         * modules/uniwidth/u32-strwidth-tests: Likewise.
52612         * modules/uniwidth/u32-width-tests: Likewise.
52613         * modules/uniwidth/width-tests: Likewise.
52615 2010-05-18  Richard Jones  <rjones@redhat.com>
52617         doc: users.txt: list hivex
52618         * users.txt: Add hivex.
52620 2010-05-18  Richard Jones  <rjones@redhat.com>
52622         doc: users.txt: list febootstrap
52623         * users.txt: Add febootstrap.
52625 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
52627         bootstrap: fix an error when gnulib is not used as a git submodule
52628         * build-aux/bootstrap (gnulib_path): If its length is zero then
52629         assign "gnulib" to it.
52630         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
52632 2010-05-16  Bruno Haible  <bruno@clisp.org>
52634         Avoid autoconf warnings about AM_ICONV.
52635         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
52636         2.64.
52638 2010-05-16  Bruno Haible  <bruno@clisp.org>
52640         absolute-header: Make the macro usable in more situations.
52641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
52642         from gl_ABSOLUTE_HEADER.
52643         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
52645 2010-05-16  James Youngman  <jay@gnu.org>
52647         doc: update users.txt
52648         * users.txt: Add CSSC.
52650 2010-05-16  Jim Meyering  <meyering@redhat.com>
52652         init.sh: fix an error in the previous change; add more comments
52653         * tests/init.sh: Compare exit code in loop against 9, not 2.
52654         Patch by Bruno Haible.
52655         Make the two tests more similar by adding an empty "then" clause.
52656         Add comments.
52658         init.sh: avoid unnecessary shell re-exec
52659         * tests/init.sh: Improve the re-exec-required check to first test the
52660         current shell.  If it passes the test, do not search for a shell that
52661         does pass, and do not re-exec.  This test is particularly contorted to
52662         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
52663         of $(...) evokes a syntax error and causes immediate shell exit with
52664         status 2.  Bruno Haible reported that the re-exec made it impossible
52665         to single-step through any init.sh-using script.
52667 2010-05-16  Bruno Haible  <bruno@clisp.org>
52669         Fix collision between gnulib's and libintl's printf replacements.
52670         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
52671         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
52672         (printf): When using GNU C, map the __printf__ function to rpl_printf
52673         via __asm__. When not using GNU C, define rpl_printf instead of
52674         __printf__.
52675         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
52676         commit.
52677         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
52678         commit.
52679         * m4/asm-underscore.m4: New file.
52680         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
52681         * modules/stdio (Files): Add m4/asm-underscore.m4.
52682         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
52683         Reported by Ben Pfaff.
52685 2010-05-16  Bruno Haible  <bruno@clisp.org>
52687         verify: Avoid skipping the test on openSUSE 11.0.
52688         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
52690 2010-05-13  Bruno Haible  <bruno@clisp.org>
52692         Avoid useless warnings from G++.
52693         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
52694         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
52695         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
52697 2010-05-11  Jim Meyering  <meyering@redhat.com>
52699         maint.mk: tweak preceding change
52700         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
52701         regexps tighter by anchoring at EOL, and make the new group "shy"
52702         for slightly decreased overhead.
52704 2010-05-11  Eric Blake  <eblake@redhat.com>
52706         maint.mk: gnulib doesn't guarantee NSIG
52707         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
52709 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52711         test-pwrite.c: Remove unused variable declaration.
52712         * tests/test-pwrite.c (main): Remove read_buf declaration.
52714         Remove useless test-pwrite.sh file.
52715         * tests/test-pwrite.sh: Delete file.
52716         * modules/pwrite-tests: Remove references.
52717         Reported by Bruno Haible.
52719 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
52721         init.sh: fix a typo
52722         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
52724 2010-05-10  Jim Meyering  <meyering@redhat.com>
52726         maint.mk: avoid using a temporary file in the always-defined-macros check
52727         * top/maint.mk (.re-defmac): Remove rule.
52728         (gl_trap_): Remove definition.
52729         (sc_prohibit_always-defined_macros): Rewrite not to create and
52730         depend on a temporary file.  Instead, depend on GNU grep's ability
52731         to read a list of regular expressions from stdin when given "-f -".
52733 2010-05-09  Bruno Haible  <bruno@clisp.org>
52735         Update to GNU gettext 0.18, part 1.
52736         * m4/gettext.m4: Update to GNU gettext 0.18.
52737         * m4/intl.m4: Likewise.
52738         * m4/po.m4: Likewise.
52739         * modules/gettext (Files): Add m4/fcntl-o.m4.
52740         (configure.ac): Require gettext infrastructure from version 0.18.
52742 2010-05-09  Jim Meyering  <meyering@redhat.com>
52744         init.sh: enable MALLOC_PERTURB_
52745         * tests/init.sh: Enable glibc's malloc-perturbing option.
52747         maint.mk: improve sc_cross_check_PATH_usage_in_tests
52748         With my recent change in init.sh from the two-line form:
52749             -#   : ${srcdir=.}
52750             -#   . "$srcdir/init.sh"; path_prepend_ .
52751             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
52752         I noticed that using the one-line form would cause this test
52753         to fail with a false-positive, or to stop working altogether,
52754         depending on whether help-version changed or all the tests did.
52755         * top/maint.mk (_hv_regex): Remove this definition.
52756         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
52757         (_hv_regex_strong): Use a stronger regex to check for conformance.
52758         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
52759         Give a separate diagnostic for lack of conforming use.
52761         maint.mk: prohibit definition of symbols defined by gnulib
52762         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
52763         definition of symbols defined by gnulib.
52765 2010-05-09  Bruno Haible  <bruno@clisp.org>
52767         acl: Avoid test failure on Cygwin-hosted mingw.
52768         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
52770 2010-05-09  Bruno Haible  <bruno@clisp.org>
52772         error: Use system's fcntl function.
52773         * lib/error.c (fcntl): Undefine.
52775 2010-05-09  Jim Meyering  <meyering@redhat.com>
52777         verify: adjust formatting to be more consistent
52778         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
52779         argument-list '('s, and after one comma.
52781 2010-05-09  Bruno Haible  <bruno@clisp.org>
52783         error: More reliable output on mingw.
52784         * lib/error.c: Include <windows.h>.
52785         (is_open): New function.
52786         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
52787         defined.
52789 2010-05-09  Bruno Haible  <bruno@clisp.org>
52791         vasnprintf: Fix syntax errors in libintl build on mingw.
52792         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
52793         pad_ourselves and prec_ourselves after use.
52795 2010-05-08  Bruno Haible  <bruno@clisp.org>
52797         * lib/config.charset: Update comments for Cygwin 1.7.
52798         * lib/localcharset.c: Likewise.
52800 2010-05-07  Jim Meyering  <meyering@redhat.com>
52802         init.sh: improve comments
52803         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
52804         . "${srcdir=.}/init.sh"; path_prepend_ .
52805         Add a note about path_prepend_ and the alternative of using
52806         TESTS_ENVIRONMENT.
52808 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
52810         exclude: Unescape hashed patterns in wildcard mode.
52811         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
52812         to the hash list.
52813         * tests/test-exclude8.sh: New test case.
52814         * modules/exclude-tests: Add new test.
52816 2010-05-05  Eric Blake  <eblake@redhat.com>
52818         verify: automate tests
52819         * modules/verify-tests: New module.
52820         * tests/test-verify.sh: New file.
52821         * tests/test-verify.c: Guard each negative test with a unique id.
52822         Also avoid warning about unused left hand of comma expressions.
52824 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
52826         Further improvements to verify.h, suggested by Eric Blake.
52827         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
52828         the GL_* versions, to avoid collision with OpenGL.
52829         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
52830         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
52831         than testing merely whether it's defined.
52833         Modify verify.h to pacify gcc -Wredundant_decls.
52834         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
52835         These use the prefix "GL_" since they're likely to be useful elsewhere.
52836         We may need to break them out into a different .h file.
52837         (__COUNTER__): Define to 0 if the compiler doesn't support it.
52838         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
52839         of verify_function__.
52841 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52843         Tests for module pwrite.
52844         * modules/pwrite-tests: New file.
52845         * tests/test-pwrite.sh: New file.
52846         * tests/test-pwrite.c: New file.
52848         New module pwrite.
52849         * lib/unistd.in.h (pwrite): New declaration.
52850         * lib/pwrite.c: New file, from glibc with modifications.
52851         * m4/pwrite.m4: New file.
52852         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
52853         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
52854         REPLACE_PWRITE.
52855         * modules/pwrite: New file.
52856         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
52857         REPLACE_PWRITE.
52858         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
52859         * doc/posix-functions/pwrite.texi: Mention the new module.
52861 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
52863         pread: Update documentation.
52864         * doc/posix-functions/pread.texi: Mention the 'pread' module.
52866 2010-05-04  Eric Blake  <eblake@redhat.com>
52868         docs: update cygwin progress
52869         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
52870         this bug.
52871         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
52872         Added in cygwin 1.7.2.
52873         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
52874         Likewise.
52875         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
52876         Likewise.
52877         * doc/glibc-functions/dup3.texi (dup3): Likewise.
52878         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
52879         * doc/glibc-functions/accept4.texi (accept4): Likewise.
52880         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
52881         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
52882         Mention nproc module.
52883         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
52884         bug in cygwin 1.7.5 addition.
52885         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
52886         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
52887         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
52888         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
52889         1.7.5.
52890         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
52891         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
52892         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
52893         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
52894         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
52895         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
52896         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
52897         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
52898         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
52899         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
52900         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
52901         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
52902         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
52903         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
52904         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
52905         Likewise.
52906         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
52907         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
52908         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
52909         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
52910         Likewise.
52911         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
52912         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
52913         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
52914         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
52915         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
52916         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
52917         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
52918         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
52919         Likewise.
52920         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
52921         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
52922         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
52923         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
52924         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
52925         Likewise.
52926         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
52927         Likewise.
52928         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
52929         Likewise.
52930         * doc/glibc-functions/xdrrec_endofrecord.texi
52931         (xdrrec_endofrecord): Likewise.
52932         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
52933         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
52934         Likewise.
52935         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
52936         Likewise.
52938 2010-05-04  Jim Meyering  <meyering@redhat.com>
52940         gendocs.sh: make its "-s FILE" option more useful
52941         * build-aux/gendocs.sh: When honoring the -s FILE option, update
52942         $PACKAGE to reflect the probably-different basename of "FILE".
52944 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
52946         bootstrap: don't ignore download_po_files failure
52947         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
52948         failure.
52950 2010-05-03  Jim Meyering  <meyering@redhat.com>
52952         maint.mk: allow to pass options to gendocs.sh
52953         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
52954         (gendocs_options_): New overridable variable.
52956         gnu-web-doc-update: don't ignore configure or build failure
52957         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
52959         announce-gen: backslash-escape '@'s in --help output
52960         * build-aux/announce-gen: Fix syntax errors.
52962         maint.mk, announce-gen: allow project-specific announcement mail headers
52963         * top/maint.mk (translation_project_): Define default.
52964         (announcement_Cc_, announcement_mail_headers_): Likewise.
52965         (announcement): Invoke announce-gen with new --mail-headers option.
52966         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
52968         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
52969         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
52970         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
52971         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
52972         line in the "err2" output file when running "make check" in verbose
52973         mode (i.e., with set -x enabled).
52975 2010-05-03  Bruno Haible  <bruno@clisp.org>
52977         wctob: Fix for weird platforms.
52978         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
52979         argument value.
52981 2010-05-03  Jim Meyering  <meyering@redhat.com>
52983         maint.mk: prohibit unwarranted use of <strings.h>
52984         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
52985         strings.h in a file that does not also use strcasecmp, strncasecmp,
52986         ffs or ffsll.
52988         maint.mk: remove obsolete comments
52989         * top/maint.mk: Remove stale, commented-out rules.
52991 2010-05-02  Bruno Haible  <bruno@clisp.org>
52993         wcwidth: Declare also when it's aliased.
52994         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
52995         macro.
52997 2010-05-02  Bruno Haible  <bruno@clisp.org>
52999         Fix regression from 2010-04-25.
53000         * gnulib-tool (func_modules_transitive_closure): Check the status of
53001         all modules, not only of the tests that are of the form foo-tests where
53002         foo is a module.
53004 2010-05-02  Bruno Haible  <bruno@clisp.org>
53006         wctob: Work around nasty Cygwin 1.7.2 bug.
53007         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
53008         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
53010 2010-05-01  Bruno Haible  <bruno@clisp.org>
53012         fpurge: Sharper test.
53013         * tests/test-fpurge.c (main): Add one more ftell check.
53014         * modules/fpurge-tests (Depends-on): Add ftell.
53015         Suggested by Eric Blake.
53017 2010-05-01  Bruno Haible  <bruno@clisp.org>
53019         ftello: Another test.
53020         * tests/test-ftello3.c: New file.
53021         * modules/ftello-tests (Files): Add it.
53022         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
53023         MOSTLYCLEANFILES.
53025         ftell: Another test.
53026         * tests/test-ftell3.c: New file.
53027         * modules/ftell-tests (Files): Add it.
53028         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
53029         MOSTLYCLEANFILES.
53031 2010-05-01  Bruno Haible  <bruno@clisp.org>
53033         ftell, ftello: Work around Solaris bug.
53034         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
53035         * lib/ftello.c: Include stdio-impl.h.
53036         (ftello): On Solaris, when _IOWRT is set, compute the result without
53037         looking at _IOREAD.
53038         * modules/ftello (Files): Add lib/stdio-impl.h.
53039         * doc/posix-functions/ftell.texi: Mention Solaris bug.
53040         * doc/posix-functions/ftello.texi: Likewise.
53041         Reported by Eric Blake.
53043 2010-05-01  Bruno Haible  <bruno@clisp.org>
53045         freading: Adapt to special meaning of _IOREAD flag on Solaris.
53046         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
53047         the _IOWRT flag is also set.
53049 2010-05-01  Bruno Haible  <bruno@clisp.org>
53051         Fix doc about a HP-UX stdio bug.
53052         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
53053         * doc/posix-functions/ftello.texi: Likewise.
53055 2010-05-01  Bruno Haible  <bruno@clisp.org>
53057         lseek test: Fix failure on Solaris.
53058         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
53059         output.
53061 2010-04-30  Jim Meyering  <meyering@redhat.com>
53063         bootstrap: don't ignore failure to generate po*/Makevars
53064         * build-aux/bootstrap (with_gettext): Don't ignore failure
53065         to create po/Makevars or runtime-po/Makevars.
53067 2010-04-29  Eric Blake  <eblake@redhat.com>
53069         headers: relax license to LGPLv2+
53070         * modules/fcntl-h (License): Relax license.
53071         * modules/getopt-posix (License): Likewise.
53072         * modules/locale (License): Likewise.
53073         * modules/math (License): Likewise.
53074         * modules/pty (License): Likewise.
53075         * modules/sched (License): Likewise.
53076         * modules/search (License): Likewise.
53077         * modules/spawn (License): Likewise.
53078         * modules/stdarg (License): Likewise.
53079         * modules/sysexits (License): Likewise.
53081 2010-04-29  Jim Meyering  <meyering@redhat.com>
53083         inttypes: relax license to LGPLv2+
53084         * modules/inttypes (License): Relax license.
53086 2010-04-29  Simon Josefsson  <simon@josefsson.org>
53088         * top/maint.mk (indent): Run twice to produce idempotent results.
53090 2010-04-28  Bruno Haible  <bruno@clisp.org>
53092         getdate: Generate getdate.c in the source directory.
53093         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
53094         MOSTLYCLEANFILES.
53095         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
53097 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
53099         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
53100         is not declared as a const *; avoid warnings in that case.
53102 2010-04-28  Eric Blake  <eblake@redhat.com>
53104         canonicalize-lgpl: avoid compiler warning
53105         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
53106         declaration' / 'extraneous semicolon' warning with some compilers.
53107         Reported by Andreas Gruenbacher.
53109 2010-04-28  Jim Meyering  <meyering@redhat.com>
53111         init.sh: ensure a more reliable exit status when exiting via trap
53112         * tests/init.sh (setup_): Don't rely on $? in signal handler.
53113         Inspired by patches from Dmitry V. Levin.
53114         Also trap on signal 3 (SIGQUIT).
53116 2010-04-27  Bruno Haible  <bruno@clisp.org>
53118         Update doc about utimes().
53119         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
53120         'utimens' module.
53121         Reported by Andreas Gruenbacher <agruen@suse.de>.
53123 2010-04-27  Eric Blake  <eblake@redhat.com>
53125         full-read, full-write: relax license
53126         * modules/full-read (License): Drop to LGPLv2+.
53127         * modules/full-write (License): Likewise.
53128         * modules/safe-read (License): Likewise.
53129         * modules/safe-write (License): Likewise.
53131         pthread: mention library for linking
53132         * modules/pthread (Link): Mention $(LIB_PTHREAD).
53134 2010-04-27  Jim Meyering  <meyering@redhat.com>
53136         maint.mk: fix a bug introduced in last change
53137         * top/maint.mk (gl_assured_headers_): Now that all names are on
53138         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
53139         is not anchored to end of word, it should be adequate.
53141         maint.mk: avoid side-effect in latest syntax-check
53142         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
53143         to run commands via $(shell...), and hence to incur cost only when
53144         the new rule is actually run.
53146         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
53147         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
53148         and use that to create a regexp used to detect all #if HAVE_..._H uses.
53149         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
53150         (gl_assured_headers_, az_, AZ_): Define.
53151         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
53153 2010-04-26  Jim Meyering  <jim@meyering.net>
53154             Bruno Haible  <bruno@clisp.org>
53156         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
53157         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
53158         Prompted by an exchange with Gilles Espinasse.
53160 2010-04-26  Jim Meyering  <meyering@redhat.com>
53162         git-version-gen: aesthetic tweak
53163         * build-aux/git-version-gen: Use "$nl" rather than a literal,
53164         so that the command remains on a single line.
53166 2010-04-26  Eric Blake  <eblake@redhat.com>
53168         git-version-gen: allow use on EBCDIC hosts
53169         * build-aux/git-version-gen (dirty): Use literal rather than tying
53170         ourselves to ascii.
53171         Reported by Steve Goetze.
53173 2010-04-25  Bruno Haible  <bruno@clisp.org>
53175         netdb: Add support for GNULIB_POSIXCHECK.
53176         * lib/netdb.in.h: Include warn-on-use.h.
53177         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
53178         functions are used when GNULIB_POSIXCHECK is defined and the
53179         getaddrinfo module is not in use.
53180         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
53181         freeaddrinfo, gai_strerror, getnameinfo are declared.
53182         * modules/netdb (Depends-on): Add warn-on-use.
53183         (Makefile.am): Include warn-on-use.h in netdb.h.
53185 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
53187         build: avoid "make check" failure without .git/ directory
53188         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
53189         there is no .git/ directory.
53191 2010-04-25  Bruno Haible  <bruno@clisp.org>
53193         ptsname: Fix misuse of ttyname_r.
53194         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
53195         of errno.
53197 2010-04-25  Bruno Haible  <bruno@clisp.org>
53199         ttyname_r: Make it work on Solaris 10.
53200         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
53201         if the system function has the POSIX declaration. Test whether the
53202         function fails if the buffer is less than 128 bytes large.
53203         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
53204         system's ttyname_r function. Provide a reasonably large buffer.
53205         * modules/ttyname_r (Depends-on): Add extensions.
53206         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
53208 2010-04-25  Bruno Haible  <bruno@clisp.org>
53210         Use the 'extensions' module for some more functions on Solaris.
53211         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
53212         module.
53213         * doc/posix-functions/ctime_r.texi: Likewise.
53214         * doc/posix-functions/getgrgid_r.texi: Likewise.
53215         * doc/posix-functions/getgrnam_r.texi: Likewise.
53216         * doc/posix-functions/getpwnam_r.texi: Likewise.
53217         * doc/posix-functions/getpwuid_r.texi: Likewise.
53218         * doc/posix-functions/readdir_r.texi: Likewise.
53219         * doc/posix-functions/sigwait.texi: Likewise.
53220         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
53221         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
53223 2010-04-25  Bruno Haible  <bruno@clisp.org>
53225         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
53226         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
53227         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
53228         * lib/ttyname_r.c: Include <limits.h>.
53229         (ttyname_r): Define using the system's ttyname_r function, if it exists
53230         and not on Solaris.
53231         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
53232         set.
53233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
53234         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
53235         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
53236         Reported by Simon Josefsson.
53238 2010-04-25  Bruno Haible  <bruno@clisp.org>
53240         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
53241         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
53242         * doc/posix-functions/ctime_r.texi: Likewise.
53243         * doc/posix-functions/getgrgid_r.texi: Likewise.
53244         * doc/posix-functions/getgrnam_r.texi: Likewise.
53245         * doc/posix-functions/getlogin_r.texi: Likewise.
53246         * doc/posix-functions/getpwnam_r.texi: Likewise.
53247         * doc/posix-functions/getpwuid_r.texi: Likewise.
53248         * doc/posix-functions/readdir_r.texi: Likewise.
53249         * doc/posix-functions/sigwait.texi: Likewise.
53250         * doc/posix-functions/ttyname_r.texi: Likewise.
53251         Reported by Simon Josefsson.
53253 2010-04-25  Bruno Haible  <bruno@clisp.org>
53255         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
53256         * gnulib-tool (func_usage): Document that --with-*-tests options apply
53257         also to --create-testdir.
53258         (func_acceptable): Don't consider the status of *-tests modules here.
53259         (func_modules_transitive_closure): Consider it here, before including a
53260         test module.
53261         (func_import, func_create_testdir): Set inc_all_direct_tests,
53262         inc_all_indirect_tests.
53263         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
53264         --create-testdir and --create-megatestdir.
53266 2010-04-25  Bruno Haible  <bruno@clisp.org>
53268         gnulib-tool: Add --without-*-tests options.
53269         * gnulib-tool (func_usage): Document the --without-*-tests options.
53270         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
53271         excl_unportable_tests): New variables.
53272         Fail if they are specified with --import or --update.
53273         (func_acceptable): Respect the excl_*_tests variables.
53274         (func_import): Set the excl_*_tests variables to empty.
53276 2010-04-25  Simon Josefsson  <simon@josefsson.org>
53277             Bruno Haible  <bruno@clisp.org>
53279         Work around a MacOS X 10.4 bug with openpty.
53280         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
53281         * tests/test-openpty.c (main): Close the master side explicitly.
53283 2010-04-25  Bruno Haible  <bruno@clisp.org>
53285         strnlen: Fix a C++ test error on MacOS X and Solaris.
53286         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
53287         the function is not declared.
53288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
53289         Simon Josefsson.
53291 2010-04-24  Bruno Haible  <bruno@clisp.org>
53293         Avoid a gcc warning.
53294         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
53295         of correct type for %08lx directive.
53296         Reported by Eric Blake.
53298 2010-04-24  Bruno Haible  <bruno@clisp.org>
53300         vasnprintf: Correct errno value in case of out-of-memory.
53301         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
53302         or sprintf. Use the errno value from SNPRINTF or sprintf.
53303         Reported by Ian Beckwith <ianb@erislabs.net>.
53305 2010-04-24  Bruno Haible  <bruno@clisp.org>
53307         ansi-c++-opt: Find correct compiler when cross-compiling.
53308         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
53309         AC_CHECK_PROGS.
53310         Reported by Simon Josefsson.
53312 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
53314         vc-list-files: Add support for subversion
53315         * build-aux/vc-list-files: Use "svn list" to generate the list of
53316         files controlled by subversion.
53318 2010-04-23  Jim Meyering  <meyering@redhat.com>
53320         vc-list-files tests: convert to use init.sh
53321         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
53322         path_prepend_.
53323         Use Exit, not exit.
53324         Use skip_ rather than open coding it.
53325         Remove trap set-up and compare definitions.
53326         * tests/test-vc-list-files-git.sh: Likewise.
53327         * modules/vc-list-files-tests (Files): Add tests/init.sh.
53329 2010-04-22  Simon Josefsson  <simon@josefsson.org>
53331         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
53332         backup files.
53334 2010-04-21  Simon Josefsson  <simon@josefsson.org>
53336         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
53338 2010-04-20  Eric Blake  <eblake@redhat.com>
53340         tests: be robust to ignored SIGPIPE
53341         * tests/test-select-in.sh: Consume all output.
53342         * tests/test-lseek.sh: Check correct exit status, while avoiding
53343         EPIPE.
53345 2010-04-20  Simon Josefsson  <simon@josefsson.org>
53346             Bruno Haible  <bruno@clisp.org>
53348         visibility: Don't use -fvisibility if it leads to a warning.
53349         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
53350         yes, don't pretend that visibility works if it leads to a warning.
53351         Reported by Mike Gran <spk121@yahoo.com>.
53353 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
53355         * build-aux/bootstrap: Use "git -h" for testing for supported options
53356         instead of "git --help".  The short-form option only shows a summary,
53357         and doesn't layout the full man page.  Grep for the full option name
53358         in the summary, too.
53360 2010-04-19  Bruno Haible  <bruno@clisp.org>
53362         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
53363         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
53364         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
53365         mention of RELOCATABLE_STRIP.
53366         Reported by Sylvain Beucler <beuc@beuc.net>.
53368 2010-04-19  Bruno Haible  <bruno@clisp.org>
53370         * lib/diffseq.h: Fix typo in comment.
53371         Reported by Eric Blake.
53373 2010-04-19  Bruno Haible  <bruno@clisp.org>
53375         ioctl: Move autoconf macro to a .m4 file.
53376         * m4/ioctl.m4: New file, extracted from modules/ioctl.
53377         * modules/ioctl (Files): Add it.
53378         (configure.ac): Simply invoke gl_FUNC_IOCTL.
53379         Reported by Ian Beckwith <ianb@erislabs.net>.
53381 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
53382             Bruno Haible  <bruno@clisp.org>
53384         diffseq: Accommodate use-case with abstract arrays.
53385         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
53386         is not defined.
53387         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
53388         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
53390 2010-04-18  Bruno Haible  <bruno@clisp.org>
53392         * doc/posix-headers/stdbool.texi: More precise wording.
53394 2010-04-17  Jim Meyering  <meyering@redhat.com>
53396         maint.mk: use gnu-style indentation in an embedded perl script
53397         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
53398         Rename variable: s/two/last_two_bytes/
53400 2010-04-16  Eric Blake  <eblake@redhat.com>
53402         test-stdbool: skip test that fails with Solaris CC
53403         * tests/test-stdbool.c (f): Skip test that causes compilation
53404         error under buggy C++ compiler.
53405         * lib/stdbool.in.h: Document the limitation.
53406         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
53408         setenv: allow compilation with C++
53409         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
53410         register keyword.
53412         stdint: allow test to pass with C++
53413         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
53415         getopt: allow compilation with C++
53416         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
53417         struct.
53418         * lib/getopt.c (_getopt_internal_r): Use correct type.
53419         Reported by Dagobert Michelson, via Joel E. Denny.
53421 2010-04-16  Bruno Haible  <bruno@clisp.org>
53423         Override netdb.h always.
53424         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
53425         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
53426         Reported by Ludovic Courtès <ludo@gnu.org>.
53428 2010-04-15  Bruno Haible  <bruno@clisp.org>
53430         openpty: Fix mistake from 2010-03-21.
53431         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
53432         Reported by Simon Josefsson.
53434 2010-04-15  Eric Blake  <eblake@redhat.com>
53436         test-forkpty: fix expected signature
53437         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
53438         Reported by Simon Josefsson.
53440 2010-04-15  Jim Meyering  <meyering@redhat.com>
53442         maint.mk: texinfo_suffix_re_: correct the default regexp
53443         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
53445         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
53446         make it configurable via texinfo_suffix_re_.
53448 2010-04-14  Eric Blake  <eblake@redhat.com>
53450         strtok_r: relax license to LGPLv2+
53451         * modules/strtok_r (License): Relax license.
53452         Reported by Matthias Bolte.
53454 2010-04-14  Simon Josefsson  <simon@josefsson.org>
53456         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
53457         version 1.4.4 by default instead of requiring the libgcrypt
53458         version used during build.  This makes it possible to use the
53459         application with older but still binary compatible libgcrypt
53460         versions.
53462 2010-04-13  Eric Blake  <eblake@redhat.com>
53464         getopt-gnu: match recent glibc fixes and posix ruling
53465         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
53466         '+' handling, when requesting extensions.
53467         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
53468         'W;' handling.
53469         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
53470         * doc/posix-functions/getopt.texi (getopt): Document this.
53471         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53472         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53473         Likewise.
53475         getopt: merge bug fixes from glibc
53476         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
53477         diagnostics.  Honor '+:' correctly.  Reject ';'.
53479         getopt-posix: detect MacOS bug
53480         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
53481         optind when missing a required argument.
53482         * doc/posix-functions/getopt.texi (getopt): Document the bug.
53483         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
53484         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
53485         Likewise.
53487         getopt-posix: avoid spurious failure on Solaris
53488         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
53489         an indicator that setting optind=1 is sufficient for reset.
53491         getopt-posix: avoid spurious failure on FreeBSD
53492         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
53493         in POSIX mode, since the m4 test uses it.
53495         gnulib-tool: silence warning on BSD sh
53496         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
53498 2010-04-13  Jim Meyering  <meyering@redhat.com>
53500         doc: users.txt: GNU patch now uses gnulib
53501         * users.txt: Add patch.
53503 2010-04-12  Jim Meyering  <meyering@redhat.com>
53505         maint.mk: generate more concise timing data for syntax-check rules
53506         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
53507         " done" from each line that reports a syntax-check test duration.
53509 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
53511         git-version-gen: use "git update-index..." rather than "git status"
53512         * build-aux/git-version-gen: Use git update-index --refresh, not
53513         "git status".  With some versions of git, "git status" would fail
53514         to update the index and result in an unwarranted "-dirty" suffix.
53516 2010-04-11  Jim Meyering  <meyering@redhat.com>
53518         openat: correct formatting (no semantic change)
53519         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
53520         Suggested by Bruno Haible.
53522 2010-04-11  Bruno Haible  <bruno@clisp.org>
53524         Stricter declaration checking in testdirs.
53525         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53526         If for_tests is true, augment AM_CPPFLAGS to define
53527         GNULIB_STRICT_CHECKING.
53528         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
53529         GNULIB_STRICT_CHECKING is defined, verify that the function is
53530         declared.
53532 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
53533             Bruno Haible  <bruno@clisp.org>
53535         libunistring: Improve configure output.
53536         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
53537         Don't say "consider installing GNU libunistring" when checking again
53538         with libiconv.
53540 2010-04-11  Bruno Haible  <bruno@clisp.org>
53542         libunistring: Correct value of $LTLIBUNISTRING.
53543         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
53544         correct the value of $LTLIBUNISTRING.
53546 2010-04-11  Bruno Haible  <bruno@clisp.org>
53548         havelib: Add static libraries to LIBS in the right order.
53549         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
53550         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
53552 2010-04-11  Bruno Haible  <bruno@clisp.org>
53554         libunistring: Detect libunistring also when it depends on libiconv.
53555         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
53556         the second AC_LIB_HAVE_LINKFLAGS invocation.
53558 2010-04-11  James Youngman  <jay@gnu.org>
53560         close-stream: declare local scalars to be "const"
53561         * lib/close-stream.c (close_stream): Make boolean variables const
53562         to document the fact that we set but do not change them.
53564 2010-04-11  Bruno Haible  <bruno@clisp.org>
53566         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
53568 2010-04-11  Jim Meyering  <meyering@redhat.com>
53570         maint.mk: don't include dist-check.mk
53571         * top/maint.mk: Remove bogus include directive.
53573         maint.mk: improve empty-line-at-EOF check
53574         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
53575         solution, rather than tail+Perl-based one.  The latter would read
53576         a few kilobytes from the end of each file, and did not handle empty
53577         files properly.
53579         maint.mk: print the elapsed time for each syntax-check rule
53580         * top/maint.mk (sc_m_rules_): Save start time in a file.
53581         (sc_z_rules_): New rules: remove temp file and print elapsed time.
53582         (local-check): Interpose the .z rules
53584 2010-04-11  Jim Meyering  <meyering@redhat.com>
53586         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
53587         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
53588         empty file with one that ends in an empty line.
53590 2010-04-10  Bruno Haible  <bruno@clisp.org>
53592         mkdir: Make it work on mingw64.
53593         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
53594         * lib/mkdir.c: Update comment.
53595         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
53597 2010-04-10  Bruno Haible  <bruno@clisp.org>
53599         Don't override improved macro from newer autoconf.
53600         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
53601         autoconf >= 2.62.
53602         Reported by Joel E. Denny <jdenny@clemson.edu>.
53604 2010-04-10  Jim Meyering  <meyering@redhat.com>
53606         maint.mk: new syntax-check rule: prohibit empty lines at end of file
53607         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
53609         maint.mk: correct a diagnostic
53610         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
53611         in diagnostic; now use $prohibit.
53613 2010-04-10  Bruno Haible  <address@hidden>
53615         fchownat: Fix a C++ test error on Solaris 8.
53616         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
53617         the function does not exist.
53619 2010-04-10  Bruno Haible  <bruno@clisp.org>
53621         vasnprintf: Add more tests.
53622         * tests/test-vasnprintf-posix.c: Include <errno.h>.
53623         (test_function): Test converting an invalid wide string.
53625         vasnprintf: Correct handling of unconvertible wide string arguments.
53626         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
53627         VASNPRINTF.
53628         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
53629         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
53630         smaller than the expected maximum need for the directive. Set errno to
53631         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
53632         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
53633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
53634         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
53635         * modules/vasnprintf (Files): Add m4/printf.m4.
53636         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53638 2010-04-10  Bruno Haible  <bruno@clisp.org>
53640         vasnprintf: Fix crash in %ls directive.
53641         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
53642         string is passed as argument to %ls, with no precision and no width.
53643         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53645 2010-04-10  Bruno Haible  <bruno@clisp.org>
53647         vasnprintf: Fix multiple test failures on mingw.
53648         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
53649         _snprintf, or snwprintf, not _snwprintf.
53651 2010-04-10  Bruno Haible  <bruno@clisp.org>
53653         write: Fix a C++ test error on mingw.
53654         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
53656 2010-04-10  Bruno Haible  <bruno@clisp.org>
53658         vasnprintf test: Reduce code duplication.
53659         * tests/test-vasnprintf.c (test_function): New function, extracted from
53660         test_vasnprintf.
53661         (test_vasnprintf, test_asnprintf): Invoke it.
53663 2010-04-10  Bruno Haible  <bruno@clisp.org>
53665         strnlen: Fix warning in C++ mode on MacOS X.
53666         * lib/string.in.h (strnlen): Use the modern idiom.
53667         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
53668         defining strnlen as a macro already in <config.h>.
53669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
53670         REPLACE_STRNLEN.
53671         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
53672         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53674 2010-04-08  James Youngman  <jay@gnu.org>
53676         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
53677         the example.
53679 2010-04-09  Jim Meyering  <meyering@redhat.com>
53681         maint.mk: print better diagnostic when there is no $(_hv_file)
53682         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
53683         announce that when $(_hv_file) (aka help-version) does not exist.
53685         init.sh: run tr in the "C" locale to avoid multibyte interpretation
53686         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
53687         not try to interpret its random input bytes.  Jarno Rajahalme reported
53688         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
53689         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
53690         (mktempd_): Likewise, just in case.
53692         ftruncate: add two years to projected module removal date: 2012
53693         * m4/ftruncate.m4: Adjust comments.
53695         ftruncate: mark module as obsolete; even MinGW provides it, now
53696         * modules/ftruncate (Status): Obsolete.
53697         (Notice): Say that.
53698         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
53699         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
53701 2010-04-08  Bruno Haible  <bruno@clisp.org>
53703         Fix side effects from tests-related modules.
53704         * modules/dprintf-posix (Comment): New section.
53705         * modules/fprintf-posix (Comment): Likewise.
53706         * modules/obstack-printf-posix (Comment): Likewise.
53707         * modules/printf-posix (Comment): Likewise.
53708         * modules/snprintf-posix (Comment): Likewise.
53709         * modules/sprintf-posix (Comment): Likewise.
53710         * modules/vasnprintf-posix (Comment): Likewise.
53711         * modules/vasprintf-posix (Comment): Likewise.
53712         * modules/vdprintf-posix (Comment): Likewise.
53713         * modules/vfprintf-posix (Comment): Likewise.
53714         * modules/vprintf-posix (Comment): Likewise.
53715         * modules/vsnprintf-posix (Comment): Likewise.
53716         * modules/vsprintf-posix (Comment): Likewise.
53717         * modules/xprintf-posix (Comment): Likewise.
53718         * modules/xvasprintf-posix (Comment): Likewise.
53719         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
53720         * modules/floorf-tests (Depends-on): Likewise.
53721         * modules/round-tests (Depends-on): Likewise.
53722         * modules/roundf-tests (Depends-on): Likewise.
53723         * modules/trunc-tests (Depends-on): Likewise.
53724         * modules/truncf-tests (Depends-on): Likewise.
53725         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
53726         'fprintf-posix' module is not present.
53727         * tests/test-floorf2.c (check): Likewise.
53728         * tests/test-trunc2.c (check): Likewise.
53729         * tests/test-truncf2.c (check): Likewise.
53730         * tests/test-round2.c (equal): Likewise.
53731         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
53733 2010-04-07  Karl Berry  <karl@gnu.org>
53735         * config/srclist.txt,
53736         * config/srclistvars.sh,
53737         * config/srclist-update: doc fixes.
53739 2010-04-07  Jim Meyering  <meyering@redhat.com>
53741         maint.mk: add a PATH crosschecking syntax-check rule
53742         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
53743         Useful if you use a test like the one in help-version (coreutils,
53744         diffutils, grep, gzip) that ensures $(VERSION) matches what is
53745         printed by prog --version.
53747 2010-04-06  Bruno Haible  <bruno@clisp.org>
53749         Fix link error on mingw.
53750         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
53751         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
53753 2010-04-06  Bruno Haible  <bruno@clisp.org>
53755         Assume rmdir exists.
53756         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
53758 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
53760         doc: update users.txt
53761         * users.txt: Add gcal.
53763 2010-04-06  Jim Meyering  <meyering@redhat.com>
53765         init.sh: simply unset TMPDIR rather than risking env -i
53766         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
53767         although it probably works fine on all Unix-based systems, some
53768         systems (Cygwin?) cannot tolerate a totally cleared environment.
53769         Suggestion from Eric Blake.
53771 2010-04-06  Jim Meyering  <meyering@redhat.com>
53773         init.sh: portability fix: use env's POSIX-specified -i option not -u
53774         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
53775         than unportable env -u.  Solaris 5.11's env lacks support for -u.
53777 2010-04-05  Bruno Haible  <bruno@clisp.org>
53779         btowc: Work around Cygwin 1.7.2 bug.
53780         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
53781         does not map NUL to 0.
53782         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
53784 2010-04-05  Bruno Haible  <bruno@clisp.org>
53786         Make the multithread modules work on Cygwin 1.7.2.
53787         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
53788         imported symbols can be declared weak, so that it returns "no" on
53789         Cygwin 1.7.2.
53791 2010-04-05  Bruno Haible  <bruno@clisp.org>
53793         Use the module 'strncat'.
53794         * modules/unistr/u8-strncat (Depends-on): Add strncat.
53796         Tests for module 'strncat'.
53797         * modules/strncat-tests: New file.
53798         * tests/test-strncat.c: New file.
53800         New module 'strncat'.
53801         * lib/string.in.h (strncat): New declaration.
53802         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
53803         * m4/strncat.m4: New file, based on m4/memchr.m4.
53804         * modules/strncat: New file.
53805         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
53806         is declared.
53807         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
53808         REPLACE_STRNCAT.
53809         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
53810         REPLACE_STRNCAT.
53811         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
53812         module.
53813         * tests/test-string-c++.cc: Check signature of strncat.
53815 2010-04-05  Jim Meyering  <meyering@redhat.com>
53817         xstrtoumax-tests: convert to use init.sh
53818         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
53819         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53820         Use Exit, not exit.
53821         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53823         xstrtoimax-tests: convert to use init.sh
53824         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
53825         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53826         Use Exit, not exit.
53827         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53829 2010-04-05  Bruno Haible  <bruno@clisp.org>
53831         sys_socket: Avoid #define replacements in C++ mode.
53832         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
53833         warning to the function if possible, rather than #defining the symbol
53834         to a dysfunctional alias.
53836 2010-04-05  Bruno Haible  <bruno@clisp.org>
53838         fseeko: Fix C++ test error on mingw.
53839         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
53840         gl_FUNC_FSEEKO.
53841         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
53842         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
53843         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
53844         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
53846 2010-04-05  Bruno Haible  <bruno@clisp.org>
53848         duplocale: Improve test output.
53849         * tests/test-duplocale.c (main): Print reason for skipped test.
53851 2010-04-05  Bruno Haible  <bruno@clisp.org>
53853         Assume rmdir exists.
53854         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
53855         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
53857 2010-04-05  Bruno Haible  <bruno@clisp.org>
53859         Fix link error on Solaris 8 with cc.
53860         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
53862 2010-04-05  Bruno Haible  <bruno@clisp.org>
53864         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53865         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
53867 2010-04-05  Bruno Haible  <bruno@clisp.org>
53869         vasprintf: Update documentation.
53870         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
53872 2010-04-05  Bruno Haible  <bruno@clisp.org>
53874         ptsname: Improve test.
53875         * tests/test-ptsname.c (main): Also try the various master names of BSD
53876         systems.
53878 2010-04-05  Bruno Haible  <bruno@clisp.org>
53880         memchr: Avoid a possible C++ test error.
53881         * lib/string.in.h (memchr): Provide declaration if function is missing.
53882         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
53883         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
53884         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
53885         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
53887 2010-04-05  Bruno Haible  <bruno@clisp.org>
53889         strtok_r: Improve idiom.
53890         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
53891         AC_LIBOBJ is used.
53893 2010-04-05  Bruno Haible  <bruno@clisp.org>
53895         strdup: Improve idiom.
53896         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
53897         AC_LIBOBJ is used.
53898         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
53899         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
53900         when AC_LIBOBJ is used.
53902 2010-04-05  Bruno Haible  <bruno@clisp.org>
53904         mbsinit, mbrtowc, wcrtomb: Improve idioms.
53905         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
53906         don't set REPLACE_MBSINIT to 1.
53907         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
53908         don't set REPLACE_MBRTOWC to 1.
53909         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
53910         exist, don't set REPLACE_MBSRTOWCS to 1.
53911         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
53912         exist, don't set REPLACE_MBSNRTOWCS to 1.
53913         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
53914         don't set REPLACE_WCRTOMB to 1.
53915         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
53916         exist, don't set REPLACE_WCSRTOMBS to 1.
53917         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
53918         exist, don't set REPLACE_WCSNRTOMBS to 1.
53920 2010-04-05  Bruno Haible  <bruno@clisp.org>
53922         ldexpl: Improve idiom.
53923         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
53924         make sure to set HAVE_DECL_LDEXPL to 0.
53926 2010-04-05  Jim Meyering  <meyering@redhat.com>
53928         xstrtol-tests: convert to use init.sh
53929         * modules/xstrtol-tests (Files): Add tests/init.sh.
53930         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53931         Use Exit, not exit.
53932         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53934         atexit-tests: convert to use init.sh
53935         * modules/atexit-tests (Files): Add tests/init.sh.
53936         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
53937         Use Exit, not exit.
53938         Remove uses of $EXEEXT and "./" to run a program in the current dir.
53940         init.sh: fix typo
53941         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
53943         init.sh: make it easier for a test script to write to the tty, ...
53944         when using automake's parallel-tests mode.
53945         * tests/init.sh (stderr_fileno_): Define overridable variable.
53946         (warn_): New function, to use it.
53947         (fail_, skip_, framework_failure_): Use warn_.
53949 2010-04-04  Bruno Haible  <bruno@clisp.org>
53951         btowc: Avoid warning.
53952         * lib/btowc.c: Include <stdlib.h>.
53953         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
53955 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53956             Bruno Haible  <bruno@clisp.org>
53958         wchar: Port to NetBSD 1.5.
53959         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
53960         * lib/wctype.in.h (WEOF): Likewise.
53962 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
53963             Bruno Haible  <bruno@clisp.org>
53965         Port extended stdio to NetBSD 1.5.
53966         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
53967         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
53968         older.
53970 2010-04-04  Bruno Haible  <bruno@clisp.org>
53972         string: Remove unused substitution.
53973         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
53974         HAVE_DECL_STRERROR.
53975         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
53977 2010-04-04  Bruno Haible  <bruno@clisp.org>
53979         strtod: Avoid a possible C++ test error.
53980         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
53981         set REPLACE_STRTOD.
53983 2010-04-04  Bruno Haible  <bruno@clisp.org>
53985         strerror: Update documentation.
53986         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
53988 2010-04-04  Bruno Haible  <bruno@clisp.org>
53990         stdio: Fix some C++ test errors on Solaris 8 with GCC.
53991         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
53992         _GL_CXXALIAS_SYS_CAST.
53994 2010-04-04  Bruno Haible  <bruno@clisp.org>
53996         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
53997         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
53998         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
53999         REPLACE_FREXPL to 1.
54000         * doc/posix-functions/frexpl.texi: Update documentation.
54002 2010-04-04  Bruno Haible  <bruno@clisp.org>
54004         math: Fix some C++ test errors on Solaris 8 and Cygwin.
54005         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
54007 2010-04-04  Bruno Haible  <bruno@clisp.org>
54009         Implement nanosleep for native Windows.
54010         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
54012 2010-04-04  Bruno Haible  <bruno@clisp.org>
54014         math: Fix some C++ test errors on Solaris 8.
54015         * lib/math.in.h (truncf, trunc): Use simpler idiom.
54017 2010-04-04  Bruno Haible  <bruno@clisp.org>
54019         math: Fix some C++ test errors on Cygwin.
54020         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
54021         truncl): Provide declaration if the system does not have it.
54022         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
54023         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
54024         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
54025         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
54026         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
54027         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
54028         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
54029         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
54030         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
54031         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
54032         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
54033         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
54034         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
54035         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
54036         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
54037         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
54038         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
54039         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
54040         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
54041         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
54042         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
54043         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
54045 2010-04-04  Bruno Haible  <bruno@clisp.org>
54047         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
54048         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
54049         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
54050         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
54051         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
54052         * m4/isinf.m4 (gl_ISINF): Likewise.
54053         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
54055 2010-04-04  Bruno Haible  <bruno@clisp.org>
54057         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
54058         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
54060 2010-04-04  Bruno Haible  <bruno@clisp.org>
54062         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
54063         * modules/tmpfile (configure.ac): Update.
54065         tmpfile: Fix C++ test error on mingw.
54066         * lib/stdio.in.h (tmpfile): New declaration.
54067         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
54068         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
54069         * modules/tmpfile (Depends-on): Add stdio.
54070         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
54071         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
54072         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
54073         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
54074         REPLACE_TMPFILE.
54075         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
54077 2010-04-04  Bruno Haible  <bruno@clisp.org>
54079         ioctl: Fix C++ test error on mingw.
54080         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
54081         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
54082         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
54084 2010-04-03  Bruno Haible  <bruno@clisp.org>
54086         wcwidth: Fix C++ test error on mingw.
54087         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
54088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
54089         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
54091 2010-04-03  Bruno Haible  <bruno@clisp.org>
54093         nanosleep: Fix C++ test error on mingw.
54094         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
54095         * lib/time.in.h (nanosleep): Use modern idiom.
54096         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
54097         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
54098         REPLACE_NANOSLEEP to 1.
54099         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
54100         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
54102 2010-04-03  Bruno Haible  <bruno@clisp.org>
54104         strptime: Fix C++ test error on mingw.
54105         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
54106         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
54107         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
54108         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
54109         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
54110         not REPLACE_STRPTIME.
54111         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
54112         REPLACE_STRPTIME.
54114 2010-04-03  Bruno Haible  <bruno@clisp.org>
54116         timegm: Fix C++ test error on mingw.
54117         * lib/time.in.h (timegm): Use modern idiom.
54118         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
54119         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
54120         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
54121         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
54123 2010-04-03  Bruno Haible  <bruno@clisp.org>
54125         timegm: Assume declaration if function exists.
54126         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
54127         if it exists. Don't clobber ac_cv_func_timegm.
54129 2010-04-03  Bruno Haible  <bruno@clisp.org>
54131         time_r: Fix C++ test error on mingw.
54132         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
54133         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
54134         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
54135         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
54136         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
54138 2010-04-03  Bruno Haible  <bruno@clisp.org>
54140         time_r: Minor updates.
54141         * modules/time_r (Description): Mention the provided functions.
54142         * lib/time_r.c: Don't include <string.h>.
54143         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
54144         * doc/posix-functions/localtime_r.texi: Likewise.
54146 2010-04-03  Bruno Haible  <bruno@clisp.org>
54148         time: Fix regression introduced on 2010-03-08.
54149         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
54150         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
54152 2010-04-03  Jim Meyering  <meyering@redhat.com>
54154         maint.mk: don't silently disable project-specific syntax-check rules
54155         * top/maint.mk (_prohibit_regexp): Define, to help people realize
54156         that they need to convert their project-specific syntax-check rules
54157         to use the new _sc_search_regexp.
54159 2010-04-03  Bruno Haible  <bruno@clisp.org>
54161         fchdir: Fix regression introduced on 2010-03-08.
54162         * lib/unistd.in.h (fchdir): Fix declaration.
54163         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
54164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
54165         REPLACE_FCHDIR.
54166         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
54167         REPLACE_FCHDIR.
54169 2010-04-03  Bruno Haible  <bruno@clisp.org>
54171         getpagesize: Fix C++ test error on mingw.
54172         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
54173         system does not declare the function.
54174         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
54175         declared.
54176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54177         HAVE_DECL_GETPAGESIZE.
54178         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
54180 2010-04-03  Bruno Haible  <bruno@clisp.org>
54182         stdio: Make C++ tests work on mingw.
54183         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
54184         does not declare the function.
54186 2010-04-03  Bruno Haible  <bruno@clisp.org>
54188         ftello: Fix C++ test error on mingw.
54189         * lib/stdio.in.h (ftello): Use modern idiom.
54190         * lib/ftello.c (ftello): Renamed from rpl_ftello.
54191         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
54192         is missing and that it needs to be replaced.
54193         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
54194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
54195         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
54197 2010-04-03  Bruno Haible  <bruno@clisp.org>
54199         fseeko: Fix C++ test error on mingw.
54200         * lib/stdio.in.h (fseeko): Use modern idiom.
54201         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
54202         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
54203         is missing and that it needs to be replaced.
54204         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
54205         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
54206         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
54208 2010-04-03  Bruno Haible  <bruno@clisp.org>
54210         mkstemp: Fix C++ test error on mingw.
54211         * lib/stdlib.in.h (mkstemp): Use modern idiom.
54212         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
54213         function is missing and that it needs to be replaced.
54214         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
54215         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
54217 2010-04-03  Bruno Haible  <bruno@clisp.org>
54219         stpncpy: Fix C++ test error on mingw.
54220         * lib/string.in.h (stpncpy): Use modern idiom.
54221         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
54222         function is missing and that it needs to be replaced.
54223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54224         REPLACE_STPNCPY.
54225         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
54227 2010-04-03  Bruno Haible  <bruno@clisp.org>
54229         sys_stat: Fix C++ test error on mingw.
54230         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
54231         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
54233 2010-04-03  Bruno Haible  <bruno@clisp.org>
54235         pty: Update doc.
54236         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
54238 2010-04-03  Bruno Haible  <bruno@clisp.org>
54240         unistd: Fix C++ test error on mingw.
54241         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
54243 2010-04-03  Bruno Haible  <bruno@clisp.org>
54245         Update doc regarding mingw.
54246         * doc/glibc-functions/openpty.texi: Update regarding mingw.
54247         * doc/glibc-functions/login_tty.texi: Likewise.
54248         * doc/glibc-functions/forkpty.texi: Likewise.
54250 2010-04-03  Bruno Haible  <bruno@clisp.org>
54252         stdlib: Avoid compilation failure of c-strtold on mingw.
54253         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
54255 2010-04-03  Bruno Haible  <bruno@clisp.org>
54257         locale: Make C++ tests work on Cygwin and mingw.
54258         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
54259         cannot provide the function.
54260         Reported by Simon Josefsson.
54262 2010-04-03  Bruno Haible  <bruno@clisp.org>
54264         localename: Port to MacOS X 10.6.
54265         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
54266         memory layout of the locales in MacOS X 10.6 as well.
54267         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
54269 2010-04-02  Bruno Haible  <bruno@clisp.org>
54271         gnulib-tool: Ensure that long-running tests are executed last.
54272         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
54273         running tests after the one for the other tests.
54275 2010-04-02  Bruno Haible  <bruno@clisp.org>
54277         gnulib-tool: Ensure the tests in the main directory are executed first.
54278         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
54279         start with the current directory.
54281 2010-04-02  Bruno Haible  <bruno@clisp.org>
54283         Tests for module 'havelib', moved here from GNU gettext.
54284         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
54285         modifications.
54286         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
54287         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
54288         with modifications.
54289         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
54290         modifications.
54291         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
54292         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
54293         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
54294         with modifications.
54295         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
54296         with modifications.
54297         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
54298         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
54299         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
54300         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
54301         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
54302         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
54303         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
54304         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
54305         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
54306         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
54307         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
54308         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
54309         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
54310         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
54311         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
54312         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
54313         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
54314         with modifications.
54315         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
54316         with modifications.
54317         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
54318         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
54319         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
54320         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
54321         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
54322         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
54323         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
54324         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
54325         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
54326         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
54327         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
54328         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
54329         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
54330         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
54331         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
54332         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
54333         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
54334         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
54335         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
54336         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
54337         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
54338         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
54339         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
54340         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
54341         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
54342         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
54343         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
54344         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
54345         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
54346         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
54347         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
54348         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
54349         * tests/havelib/rpathx/rpathx.c: New file, from
54350         gettext/autoconf-lib-link.
54351         * tests/havelib/rpathx/Makefile.am: New file, from
54352         gettext/autoconf-lib-link.
54353         * tests/havelib/rpathx/configure.ac: New file, from
54354         gettext/autoconf-lib-link with modifications.
54355         * tests/havelib/rpathy/rpathy.c: New file, from
54356         gettext/autoconf-lib-link.
54357         * tests/havelib/rpathy/Makefile.am: New file, from
54358         gettext/autoconf-lib-link.
54359         * tests/havelib/rpathy/configure.ac: New file, from
54360         gettext/autoconf-lib-link with modifications.
54361         * tests/havelib/rpathz/rpathz.c: New file, from
54362         gettext/autoconf-lib-link.
54363         * tests/havelib/rpathz/Makefile.am: New file, from
54364         gettext/autoconf-lib-link.
54365         * tests/havelib/rpathz/configure.ac: New file, from
54366         gettext/autoconf-lib-link with modifications.
54367         * tests/havelib/rpathlx/usex.c: New file, from
54368         gettext/autoconf-lib-link.
54369         * tests/havelib/rpathlx/Makefile.am: New file, from
54370         gettext/autoconf-lib-link.
54371         * tests/havelib/rpathlx/configure.ac: New file, from
54372         gettext/autoconf-lib-link with modifications.
54373         * tests/havelib/rpathly/usey.c: New file, from
54374         gettext/autoconf-lib-link.
54375         * tests/havelib/rpathly/Makefile.am: New file, from
54376         gettext/autoconf-lib-link.
54377         * tests/havelib/rpathly/configure.ac: New file, from
54378         gettext/autoconf-lib-link with modifications.
54379         * tests/havelib/rpathlz/usez.c: New file, from
54380         gettext/autoconf-lib-link.
54381         * tests/havelib/rpathlz/Makefile.am: New file, from
54382         gettext/autoconf-lib-link.
54383         * tests/havelib/rpathlz/configure.ac: New file, from
54384         gettext/autoconf-lib-link with modifications.
54385         * tests/havelib/rpathlyx/usey.c: New file, from
54386         gettext/autoconf-lib-link.
54387         * tests/havelib/rpathlyx/Makefile.am: New file, from
54388         gettext/autoconf-lib-link.
54389         * tests/havelib/rpathlyx/configure.ac: New file, from
54390         gettext/autoconf-lib-link with modifications.
54391         * tests/havelib/rpathlzyx/usez.c: New file, from
54392         gettext/autoconf-lib-link.
54393         * tests/havelib/rpathlzyx/Makefile.am: New file, from
54394         gettext/autoconf-lib-link.
54395         * tests/havelib/rpathlzyx/configure.ac: New file, from
54396         gettext/autoconf-lib-link with modifications.
54397         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
54398         with modifications.
54400 2010-04-02  Bruno Haible  <bruno@clisp.org>
54402         gnulib-tool: Create distributed built sources also for the tests.
54403         * gnulib-tool (func_create_testdir): Also generate distributed built
54404         sources in the tests directory.
54406 2010-04-02  Bruno Haible  <bruno@clisp.org>
54408         gnulib-tool: Obey user's environment variables.
54409         * gnulib-tool (func_create_testdir): When creating built sources,
54410         respect the environment variables for autoconf, automake, etc. given by
54411         the user.
54413 2010-04-02  Bruno Haible  <bruno@clisp.org>
54415         gnulib-tool: Provide the value of --m4-base to modules.
54416         * gnulib-tool (func_import, func_create_testdir): Emit a definition
54417         of gl_m4_base.
54419 2010-04-02  Eric Blake  <eblake@redhat.com>
54421         maint.mk: fix some fallout
54422         * NEWS: Document the incompatible change, and its effect on cfg.mk.
54423         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
54425 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54427         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
54428         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
54429         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
54430         (sc_cast_of_x_alloc_return_value): Likewise.
54431         (sc_cast_of_alloca_return_value): Likewise.
54432         (sc_space_tab): Likewise.
54433         (sc_prohibit_atoi_atof): Likewise.
54434         (sc_prohibit_magic_number_exit): Likewise.
54435         (sc_error_exit_success): Likewise.
54436         (sc_file_system): Likewise.
54437         (sc_prohibit_have_config_h): Likewise.
54438         (sc_require_config_h): Likewise.
54439         (sc_prohibit_HAVE_MBRTOWC): Likewise.
54440         (sc_obsolete_symbols): Likewise.
54441         (sc_changelog): Likewise.
54442         (sc_program_name): Likewise.
54443         (sc_the_the): Likewise.
54444         (sc_trailing_blank): Likewise.
54445         (sc_two_space_separator_in_usage): Likewise.
54446         (sc_useless_cpp_parens): Likewise.
54447         (sc_GPL_version): Likewise.
54448         (sc_GFDL_version): Likewise.
54449         (sc_texinfo_acronym): Likewise.
54450         (sc_prohibit_cvs_keyword): Likewise.
54451         (sc_prohibit_stat_st_blocks): Likewise.
54452         (sc_prohibit_S_IS_definition): Likewise.
54453         (sc_redundant_const): Likewise.
54454         (sc_makefile_TAB_only_indentation): Likewise.
54455         (sc_m4_quote_check): Likewise.
54456         (sc_makefile_path_separator_check): Likewise.
54457         (sc_copyright_check): Likewise.
54458         (sc_Wundef_boolean): Likewise.
54459         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
54461         maint.mk: match 0 or more whitespace-before-function-call '('
54462         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
54463         that have zero or two-and-more spaces between the function name
54464         and the open parenthesis.
54465         (sc_error_message_warn_fatal): Likewise.
54466         (sc_error_message_uppercase): Likewise.
54467         (sc_error_message_period): Likewise.
54469 2010-03-31  Eric Blake  <eblake@redhat.com>
54471         maint.mk: check for [ as well as test
54472         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
54473         Based on a libvirt report by Matthias Bolte.
54475         gnumakefile: don't squelch _version output
54476         * top/GNUmakefile (_version): Create one-shot dependency rather
54477         than using $(shell) when version must be regenerated.
54478         (_autoreconf): Run verbosely, by default.
54480         sys_time: avoid compiler warnings
54481         * lib/sys_time.in.h (includes): Ensure gcc pragma is
54482         unconditional, fixing regression from 2010-03-29.
54483         Reported by Simon Josefsson.
54485 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
54487         maint.mk: s/_header_without_use/_sc_header_without_use/
54488         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
54489         (sc_prohibit_assert_without_use): Use the new name.
54490         (sc_prohibit_close_stream_without_use): Likewise.
54491         (sc_prohibit_getopt_without_use): Likewise.
54492         (sc_prohibit_quotearg_without_use): Likewise.
54493         (sc_prohibit_quote_without_use): Likewise.
54494         (sc_prohibit_long_options_without_use): Likewise.
54495         (sc_prohibit_inttostr_without_use): Likewise.
54496         (sc_prohibit_ignore_value_without_use): Likewise.
54497         (sc_prohibit_error_without_use): Likewise.
54498         (sc_prohibit_xalloc_without_use): Likewise.
54499         (sc_prohibit_hash_without_use): Likewise.
54500         (sc_prohibit_hash_pjw_without_use): Likewise.
54501         (sc_prohibit_safe_read_without_use): Likewise.
54502         (sc_prohibit_argmatch_without_use): Likewise.
54503         (sc_prohibit_canonicalize_without_use): Likewise.
54504         (sc_prohibit_root_dev_ino_without_use): Likewise.
54505         (sc_prohibit_openat_without_use): Likewise.
54506         (sc_prohibit_c_ctype_without_use): Likewise.
54507         (sc_prohibit_signal_without_use): Likewise.
54508         (sc_prohibit_intprops_without_use): Likewise.
54510 2010-03-30  Eric Blake  <eblake@redhat.com>
54512         maint: improve module indicators
54513         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
54514         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
54515         columns, and avoid extra macro expansion.
54517         fdopendir: work around FreeBSD bug
54518         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
54519         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
54520         * modules/dirent (Makefile.am): Substitute it.
54521         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
54522         declaration.
54523         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
54524         fix.
54525         Reported by Christian Weisgerber <naddy@mips.inka.de>.
54527 2010-03-29  Bruno Haible  <bruno@clisp.org>
54529         Emit #pragma system_header after the inclusion guard, not before.
54530         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
54531         guard that spans the entire file, not before. This enables an
54532         optimization in GCC's preprocessor.
54533         * lib/ctype.in.h: Likewise.
54534         * lib/dirent.in.h: Likewise.
54535         * lib/errno.in.h: Likewise.
54536         * lib/float.in.h: Likewise.
54537         * lib/getopt.in.h: Likewise.
54538         * lib/iconv.in.h: Likewise.
54539         * lib/langinfo.in.h: Likewise.
54540         * lib/locale.in.h: Likewise.
54541         * lib/math.in.h: Likewise.
54542         * lib/netdb.in.h: Likewise.
54543         * lib/netinet_in.in.h: Likewise.
54544         * lib/pty.in.h: Likewise.
54545         * lib/sched.in.h: Likewise.
54546         * lib/se-selinux.in.h: Likewise.
54547         * lib/search.in.h: Likewise.
54548         * lib/spawn.in.h: Likewise.
54549         * lib/stdarg.in.h: Likewise.
54550         * lib/stdint.in.h: Likewise.
54551         * lib/string.in.h: Likewise.
54552         * lib/strings.in.h: Likewise.
54553         * lib/sys_file.in.h: Likewise.
54554         * lib/sys_ioctl.in.h: Likewise.
54555         * lib/sys_time.in.h: Likewise.
54556         * lib/sys_times.in.h: Likewise.
54557         * lib/sys_utsname.in.h: Likewise.
54558         * lib/sys_wait.in.h: Likewise.
54559         * lib/sysexits.in.h: Likewise.
54560         * lib/wctype.in.h: Likewise.
54562 2010-03-28  James Youngman  <jay@gnu.org>
54564         save-cwd: don't leak a file descriptor when the caller execs.
54565         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
54566         saved file descriptor.
54567         * modules/save-cwd (Depends-on): Depend on cloexec.
54569 2010-03-29  Bruno Haible  <bruno@clisp.org>
54571         Remove vestiges of fts-lgpl module.
54572         * lib/fts_.h: Assume GNULIB_FTS is 1.
54573         * lib/fts.c: Likewise.
54574         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54576 2010-03-28  Bruno Haible  <bruno@clisp.org>
54578         Fix definition of tests witness macro.
54579         * gnulib-tool (func_import): Fix definition of witness macro.
54581 2010-03-28  Bruno Haible  <bruno@clisp.org>
54583         Fix ioctl's protoype on glibc systems.
54584         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
54585         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
54586         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
54587         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
54588         signature. If not, arrange to replace the ioctl function.
54589         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
54590         REPLACE_IOCTL.
54591         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
54592         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
54593         Reported by Ludovic Courtès <ludo@gnu.org>.
54595 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
54597         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
54598         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
54599         made it so grep -r --include=GLOB* ... did not work.
54601 2010-03-26  Jim Meyering  <meyering@redhat.com>
54602             Eric Blake  <eblake@redhat.com>
54604         maint.mk: prohibit use of test's -o and -a operators
54605         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
54607 2010-03-28  Bruno Haible  <bruno@clisp.org>
54609         Remove unused GNULIB_XYZ macro definitions.
54610         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
54611         invocation.
54613 2010-03-28  Bruno Haible  <bruno@clisp.org>
54615         Mark privileged tests modules.
54616         * modules/idpriv-drop-tests (Status): New section.
54617         * modules/idpriv-droptemp-tests (Status): New section.
54619 2010-03-28  Bruno Haible  <bruno@clisp.org>
54621         Split C++ tests into separate tests modules.
54622         * modules/dirent-c++-tests: New file, extracted from
54623         modules/dirent-tests.
54624         * modules/dirent-tests: Depend on it.
54625         * modules/fcntl-h-c++-tests: New file, extracted from
54626         modules/fcntl-h-tests.
54627         * modules/fcntl-h-tests: Depend on it.
54628         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
54629         * modules/glob-tests: Depend on it.
54630         * modules/iconv-h-c++-tests: New file, extracted from
54631         modules/iconv-h-tests.
54632         * modules/iconv-h-tests: Depend on it.
54633         * modules/langinfo-c++-tests: New file, extracted from
54634         modules/langinfo-tests.
54635         * modules/langinfo-tests: Depend on it.
54636         * modules/locale-c++-tests: New file, extracted from
54637         modules/locale-tests.
54638         * modules/locale-tests: Depend on it.
54639         * modules/math-c++-tests: New file, extracted from modules/math-tests.
54640         * modules/math-tests: Depend on it.
54641         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
54642         * modules/pty-tests: Depend on it.
54643         * modules/search-c++-tests: New file, extracted from
54644         modules/search-tests.
54645         * modules/search-tests: Depend on it.
54646         * modules/signal-c++-tests: New file, extracted from
54647         modules/signal-tests.
54648         * modules/signal-tests: Depend on it.
54649         * modules/spawn-c++-tests: New file, extracted from
54650         modules/spawn-tests.
54651         * modules/spawn-tests: Depend on it.
54652         * modules/stdio-c++-tests: New file, extracted from
54653         modules/stdio-tests.
54654         * modules/stdio-tests: Depend on it.
54655         * modules/stdlib-c++-tests: New file, extracted from
54656         modules/stdlib-tests.
54657         * modules/stdlib-tests: Depend on it.
54658         * modules/string-c++-tests: New file, extracted from
54659         modules/string-tests.
54660         * modules/string-tests: Depend on it.
54661         * modules/sys_ioctl-c++-tests: New file, extracted from
54662         modules/sys_ioctl-tests.
54663         * modules/sys_ioctl-tests: Depend on it.
54664         * modules/sys_select-c++-tests: New file, extracted from
54665         modules/sys_select-tests.
54666         * modules/sys_select-tests: Depend on it.
54667         * modules/sys_socket-c++-tests: New file, extracted from
54668         modules/sys_socket-tests.
54669         * modules/sys_socket-tests: Depend on it.
54670         * modules/sys_stat-c++-tests: New file, extracted from
54671         modules/sys_stat-tests.
54672         * modules/sys_stat-tests: Depend on it.
54673         * modules/sys_time-c++-tests: New file, extracted from
54674         modules/sys_time-tests.
54675         * modules/sys_time-tests: Depend on it.
54676         * modules/time-c++-tests: New file, extracted from modules/time-tests.
54677         * modules/time-tests: Depend on it.
54678         * modules/unistd-c++-tests: New file, extracted from
54679         modules/unistd-tests.
54680         * modules/unistd-tests: Depend on it.
54681         * modules/wchar-c++-tests: New file, extracted from
54682         modules/wchar-tests.
54683         * modules/wchar-tests: Depend on it.
54684         * modules/wctype-c++-tests: New file, extracted from
54685         modules/wctype-tests.
54686         * modules/wctype-tests: Depend on it.
54687         Reported by Simon Josefsson.
54689 2010-03-28  Bruno Haible  <bruno@clisp.org>
54691         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
54692         * gnulib-tool (func_exists_module): New function, extracted from
54693         func_verify_module.
54694         (func_verify_module): Use it.
54695         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
54696         'foo' only if 'foo' exists.
54697         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
54698         module.
54700 2010-03-28  Bruno Haible  <bruno@clisp.org>
54702         gnulib-tool: Add support for special categories of tests.
54703         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
54704         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
54705         (func_usage): Document them.
54706         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
54707         inc_unportable_tests, inc_all_tests): New variables.
54708         (func_acceptable): Consider these variables.
54709         (func_modules_transitive_closure): Make it work when the 'Status' field
54710         consists of multiple words.
54711         (func_import): Store and restore the values of inc_cxx_tests,
54712         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
54713         inc_all_tests in gnulib-comp.m4.
54714         (func_create_testdir): Set inc_all_tests to true.
54715         * doc/gnulib.texi (Extra tests modules): New section.
54716         Suggested by Jim Meyering.
54718 2010-03-28  Bruno Haible  <bruno@clisp.org>
54720         ansi-c++-opt: Allow turning off the C++ build by default.
54721         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
54722         gl_CXX_CHOICE_DEFAULT_NO is defined.
54723         Requested by Eric Blake.
54725 2010-03-28  Bruno Haible  <bruno@clisp.org>
54727         unistd: Avoid #define replacements in C++ mode.
54728         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
54729         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
54730         setsockopt, shutdown, select): In C++, attach a warning to the function
54731         if possible, rather than #defining the symbol to a dysfunctional alias.
54732         Reported by John W. Eaton <jwe@gnu.org>.
54734 2010-03-28  Bruno Haible  <bruno@clisp.org>
54736         Fix link errors on mingw.
54737         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
54738         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
54739         $(LIBSOCKET).
54740         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
54741         $(LIBSOCKET).
54743 2010-03-28  Bruno Haible  <bruno@clisp.org>
54744             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54746         lib-ignore: Determine different options for different compilers.
54747         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
54748         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
54749         Add comments.
54750         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
54751         * NEWS: Mention the change.
54753 2010-03-27  Bruno Haible  <bruno@clisp.org>
54755         Remove unused GNULIB_XYZ macro definitions.
54756         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
54757         * modules/fseek (configure.ac): Likewise.
54758         * modules/ioctl (configure.ac): Likewise.
54759         * modules/open (configure.ac): Likewise.
54760         * modules/stdlib-safer (configure.ac): Likewise.
54762 2010-03-27  Bruno Haible  <bruno@clisp.org>
54764         Add a remark about certain modules.
54765         * modules/malloc (Comment): New section.
54766         * modules/realloc (Comment): Likewise.
54767         * modules/sigpipe (Comment): Likewise.
54769 2010-03-27  Bruno Haible  <bruno@clisp.org>
54771         Resolve conflict between the two kinds of module indicators.
54772         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
54773         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
54774         * modules/canonicalize (configure.ac): Invoke
54775         gl_MODULE_INDICATOR_FOR_TESTS.
54776         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
54777         GNULIB_XYZ.
54778         * tests/test-dirent-c++.cc: Likewise.
54779         * tests/test-dirent-safer.c: Likewise.
54780         * tests/test-dup2.c: Likewise.
54781         * tests/test-fchdir.c: Likewise.
54782         * tests/test-fcntl-h-c++.cc: Likewise.
54783         * tests/test-getopt.c: Likewise.
54784         * tests/test-getopt.h: Likewise.
54785         * tests/test-langinfo-c++.cc: Likewise.
54786         * tests/test-locale-c++.cc: Likewise.
54787         * tests/test-math-c++.cc: Likewise.
54788         * tests/test-pty-c++.cc: Likewise.
54789         * tests/test-search-c++.cc: Likewise.
54790         * tests/test-signal-c++.cc: Likewise.
54791         * tests/test-spawn-c++.cc: Likewise.
54792         * tests/test-stdio-c++.cc: Likewise.
54793         * tests/test-stdlib-c++.cc: Likewise.
54794         * tests/test-string-c++.cc: Likewise.
54795         * tests/test-sys_ioctl-c++.cc: Likewise.
54796         * tests/test-sys_select-c++.cc: Likewise.
54797         * tests/test-sys_socket-c++.cc: Likewise.
54798         * tests/test-sys_stat-c++.cc: Likewise.
54799         * tests/test-sys_time-c++.cc: Likewise.
54800         * tests/test-time-c++.cc: Likewise.
54801         * tests/test-unistd-c++.cc: Likewise.
54802         * tests/test-wchar-c++.cc: Likewise.
54803         * tests/uninorm/test-u8-nfc.c: Likewise.
54804         * tests/uninorm/test-u8-nfd.c: Likewise.
54805         * tests/uninorm/test-u8-nfkc.c: Likewise.
54806         * tests/uninorm/test-u8-nfkd.c: Likewise.
54807         * tests/uninorm/test-u16-nfc.c: Likewise.
54808         * tests/uninorm/test-u16-nfd.c: Likewise.
54809         * tests/uninorm/test-u16-nfkc.c: Likewise.
54810         * tests/uninorm/test-u16-nfkd.c: Likewise.
54811         * tests/uninorm/test-u32-nfc.c: Likewise.
54812         * tests/uninorm/test-u32-nfc-big.c: Likewise.
54813         * tests/uninorm/test-u32-nfd.c: Likewise.
54814         * tests/uninorm/test-u32-nfd-big.c: Likewise.
54815         * tests/uninorm/test-u32-nfkc.c: Likewise.
54816         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
54817         * tests/uninorm/test-u32-nfkd.c: Likewise.
54818         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
54819         * tests/uninorm/test-u32-normalize-big.c: Likewise.
54821 2010-03-27  Bruno Haible  <bruno@clisp.org>
54823         Distinguish two kinds of module indicators.
54824         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
54825         gl_MODULE_INDICATOR.
54826         (gl_MODULE_INDICATOR): New macro.
54827         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
54828         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
54829         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54830         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54831         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54832         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54833         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54834         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54835         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54836         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54837         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54838         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54840         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54841         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54842         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54843         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54844         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54845         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54846         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54847         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54848         * modules/cloexec (configure.ac): Likewise.
54849         * modules/getopt-gnu (configure.ac): Likewise.
54850         * modules/uninorm/u8-normalize (configure.ac): Likewise.
54851         * modules/uninorm/u16-normalize (configure.ac): Likewise.
54852         * modules/uninorm/u32-normalize (configure.ac): Likewise.
54853         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
54855 2010-03-27  Bruno Haible  <bruno@clisp.org>
54857         New module description field 'Comment'.
54858         * gnulib-tool: New option --extract-comment.
54859         (func_usage): Document it.
54860         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
54861         (func_get_comment): New function.
54862         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
54864 2010-03-27  Bruno Haible  <bruno@clisp.org>
54866         Addendum to 2010-02-07 commit.
54867         * gnulib-tool (func_usage): Document --extract-applicability option.
54869 2010-03-27  Bruno Haible  <bruno@clisp.org>
54871         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
54872         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
54873         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
54874         rather than link errors.
54876 2010-03-27  Bruno Haible  <bruno@clisp.org>
54878         Avoid side effects from tests-related modules on the compilation of lib.
54879         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
54880         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
54881         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
54882         parameter. Emit into AM_CPPFLAGS a definition of the designated C
54883         macro.
54884         (func_import): Define a witness macro. Assign it a value that depends
54885         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
54886         tests-related modules.
54887         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
54888         Reported by Jim Meyering.
54890 2010-03-27  Bruno Haible  <bruno@clisp.org>
54892         Factorize common .m4 code.
54893         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
54894         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
54895         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
54896         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
54897         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
54898         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
54899         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
54900         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
54901         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
54902         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
54903         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
54904         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
54905         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
54906         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
54907         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
54908         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
54909         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
54910         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
54911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
54912         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
54913         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
54914         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
54915         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
54916         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
54917         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
54918         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
54919         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
54920         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
54921         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
54922         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
54923         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
54924         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
54926 2010-03-27  Bruno Haible  <bruno@clisp.org>
54928         Fix a compilation error on Cygwin with g++ >= 4.3.
54929         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
54930         if it is undefined or if we alias it to chmod.
54931         (lstat): Don't warn about the use of this function if it is undefined
54932         or if we alias it to stat.
54933         Reported by Simon Josefsson.
54935 2010-03-27  Bruno Haible  <bruno@clisp.org>
54937         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
54938         * modules/getlogin (configure.ac): Update.
54940         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
54941         * modules/getlogin_r (configure.ac): Update.
54943         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
54944         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
54945         * modules/inet_ntop (configure.ac): Update.
54947         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
54948         * modules/inet_pton (configure.ac): Update.
54950         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
54951         * modules/mbslen (configure.ac): Update.
54953         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
54954         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
54955         * modules/forkpty (configure.ac): Update.
54956         * modules/openpty (configure.ac): Update.
54958 2010-03-26  Simon Josefsson  <simon@josefsson.org>
54960         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
54961         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
54963 2010-03-25  Eric Blake  <eblake@redhat.com>
54965         maint: use pragma consistently across replacement headers
54966         * lib/ctype.in.h (system_header): Hoist for consistent placement.
54967         * lib/dirent.in.h (system_header): Likewise.
54968         * lib/errno.in.h (system_header): Likewise.
54969         * lib/float.in.h (system_header): Likewise.
54970         * lib/getopt.in.h (system_header): Likewise.
54971         * lib/iconv.in.h (system_header): Likewise.
54972         * lib/inttypes.in.h (system_header): Likewise.
54973         * lib/langinfo.in.h (system_header): Likewise.
54974         * lib/locale.in.h (system_header): Likewise.
54975         * lib/math.in.h (system_header): Likewise.
54976         * lib/netdb.in.h (system_header): Likewise.
54977         * lib/netinet_in.in.h (system_header): Likewise.
54978         * lib/pty.in.h (system_header): Likewise.
54979         * lib/sched.in.h (system_header): Likewise.
54980         * lib/se-selinux.in.h (system_header): Likewise.
54981         * lib/search.in.h (system_header): Likewise.
54982         * lib/spawn.in.h (system_header): Likewise.
54983         * lib/stdarg.in.h (system_header): Likewise.
54984         * lib/stdint.in.h (system_header): Likewise.
54985         * lib/string.in.h (system_header): Likewise.
54986         * lib/strings.in.h (system_header): Likewise.
54987         * lib/sys_file.in.h (system_header): Likewise.
54988         * lib/sys_ioctl.in.h (system_header): Likewise.
54989         * lib/sys_socket.in.h (system_header): Likewise.
54990         * lib/sys_times.in.h (system_header): Likewise.
54991         * lib/sys_utsname.in.h (system_header): Likewise.
54992         * lib/sys_wait.in.h (system_header): Likewise.
54993         * lib/sysexits.in.h (system_header): Likewise.
54994         * lib/unistd.in.h (system_header): Likewise.
54995         * lib/wctype.in.h (system_header): Likewise.
54997         arpa/inet: fix mingw compilation warning
54998         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
54999         Reported by Matthew Bolte.
55001 2010-03-25  Bruno Haible  <bruno@clisp.org>
55003         Avoid collision between gnulib wrapper and libintl wrapper.
55004         * lib/printf.c (printf): Don't define if a printf wrapper is already
55005         defined in intl/printf.c.
55006         Reported by Michel Boaventura <michel@michelboaventura.com>.
55008 2010-03-25  Bruno Haible  <bruno@clisp.org>
55010         Use ANSI C.
55011         * lib/readutmp.h (getutent): Provide ANSI C prototype.
55013 2010-03-25  Bruno Haible  <bruno@clisp.org>
55015         Minor formatting changes.
55016         * lib/acosl.c: Insert space before function argument list.
55017         * lib/argz.c: Likewise.
55018         * lib/asinl.c: Likewise.
55019         * lib/expl.c: Likewise.
55020         * lib/gen-uni-tables.c: Likewise.
55021         * lib/gettext.h: Likewise.
55022         * lib/glthread/lock.h: Likewise.
55023         * lib/tanl.c: Likewise.
55024         * lib/uniname/uniname.c: Likewise.
55025         * tests/test-idpriv-drop.c: Likewise.
55026         * tests/test-idpriv-droptemp.c: Likewise.
55027         * tests/test-lock.c: Likewise.
55028         * tests/test-tls.c: Likewise.
55029         * lib/argp-help.c: Insert space before function-like macro argument
55030         list.
55031         * lib/memcmp.c: Likewise.
55032         * tests/test-base64.c: Likewise.
55033         * lib/localename.c: Insert space before sizeof's argument list.
55034         * lib/safe-alloc.h: Likewise.
55035         * lib/file-set.h: Insert space before macro argument list.
55036         * tests/test-argp.c: Likewise.
55037         * lib/argp-namefrob.h: Insert space before function parameter list.
55038         * lib/getaddrinfo.c: Likewise.
55039         * lib/netdb.in.h: Likewise.
55040         * lib/parse-duration.h: Likewise.
55041         * lib/parse-duration.c: Likewise.
55042         * lib/poll.c: Likewise.
55043         * lib/select.c: Likewise.
55044         * lib/trim.h: Likewise.
55045         * tests/test-usleep.c: Likewise.
55046         * lib/ldexpl.c: Insert space before function parameter list and before
55047         function argument list.
55048         * lib/logl.c: Likewise.
55049         * lib/sqrtl.c: Likewise.
55050         * lib/trim.c: Likewise.
55051         * lib/cosl.c: Use GNU style indentation. Insert space before function
55052         argument list.
55053         * lib/sinl.c: Likewise.
55054         * lib/tsearch.c: Insert space after 'for'.
55055         Reported by Jim Meyering.
55057 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
55059         * maint.mk (sc_Wundef_boolean): Check for the presence of the
55060         config header before grepping, as it's not present before
55061         autoreconf/configure are run.  Reported by Simon Josefsson.
55063 2010-03-23  Bruno Haible  <bruno@clisp.org>
55065         pt_chown: Make it work with automake < 1.11.
55066         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
55067         Reported by Simon Josefsson.
55069 2010-03-23  Bruno Haible  <bruno@clisp.org>
55071         pt_chown: Don't depend on GPLed modules.
55072         * lib/pt_chown.c: Don't include idpriv.h.
55073         (main): Don't drop privileges.
55074         * modules/pt_chown (Depends-on): Remove idpriv-drop.
55075         Reported by Simon Josefsson.
55077 2010-03-24  Simon Josefsson  <simon@josefsson.org>
55079         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
55080         suggestions from karl@freefriends.org (Karl Berry).
55082 2010-03-22  Eric Blake  <eblake@redhat.com>
55084         gethostname: further tweaks
55085         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
55086         are overriding gethostname.
55087         Suggested by Bruno Haible.
55089 2010-03-21  Bruno Haible  <bruno@clisp.org>
55091         Fix comments.
55092         * lib/forkpty.c (rpl_forkpty): Fix comment.
55093         * lib/openpty.c (rpl_openpty): Likewise.
55094         Reported by Eric Blake.
55096 2010-03-22  Eric Blake  <eblake@redhat.com>
55098         gethostname: fix build on mingw
55099         * lib/unistd.in.h (includes): Work around fact that mingw
55100         <winsock2.h> re-includes <unistd.h>, by avoiding any
55101         redeclarations if we are being included by <winsock2.h>.
55102         Reported by Matthias Bolte.
55104 2010-03-21  Bruno Haible  <bruno@clisp.org>
55106         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
55107         * lib/forkpty.c (forkpty): New replacement function, from glibc with
55108         modifications.
55109         * lib/pty.in.h (forkpty): Update declaration. Add comments.
55110         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
55111         provide the replacement.
55112         * modules/forkpty (Depends-on): Add openpty, login_tty.
55113         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
55114         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
55115         * doc/glibc-functions/forkpty.texi: More supported platforms.
55116         * config/srclist.txt: Add forkpty.c (commented).
55118 2010-03-21  Bruno Haible  <bruno@clisp.org>
55120         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
55121         (Makefile.am): Verify that PTY_LIB is defined.
55123         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
55125 2010-03-21  Bruno Haible  <bruno@clisp.org>
55127         Tests for module 'login_tty'.
55128         * modules/login_tty-tests: New file.
55129         * tests/test-login_tty.c: New file.
55131         New module 'login_tty'.
55132         * lib/login_tty.c: New file.
55133         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
55134         * modules/login_tty: New file.
55135         * doc/glibc-functions/login_tty.texi: Mention the new module.
55137 2010-03-21  Bruno Haible  <bruno@clisp.org>
55139         login_tty: Documentation.
55140         * doc/glibc-functions/login_tty.texi: New file.
55141         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
55143 2010-03-21  Bruno Haible  <bruno@clisp.org>
55145         pty: Consistent macro naming.
55146         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
55147         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
55148         * modules/pty (configure.ac): Update.
55150 2010-03-21  Bruno Haible  <bruno@clisp.org>
55152         Tests for openpty: Make stricter.
55153         * tests/test-openpty.c (main): Add test of canonical processing and
55154         erase.
55155         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
55157         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
55158         * lib/openpty.c (openpty): New replacement function.
55159         * lib/pty.in.h: Include <termios.h>.
55160         (openpty): Update declaration. Add comments.
55161         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
55162         is not declared, arrange to provide the replacement. Check for _getpty
55163         and posix_openpt.
55164         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
55165         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
55166         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
55167         * modules/pty-tests (test_pty_c___LDADD): New variable.
55168         * doc/glibc-functions/openpty.texi: More supported platforms.
55170 2010-03-21  Bruno Haible  <bruno@clisp.org>
55172         setenv: Tweaks.
55173         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
55174         the test program.
55175         * doc/posix-functions/setenv.texi: Update platforms list.
55177 2010-03-21  Bruno Haible  <bruno@clisp.org>
55179         New module 'unlockpt'.
55180         * lib/unlockpt.c: New file, from glibc with modifications.
55181         * m4/unlockpt.m4: New file.
55182         * modules/unlockpt: New file.
55183         * lib/stdlib.in.h (unlockpt): New declaration.
55184         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
55185         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
55186         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
55187         HAVE_UNLOCKPT.
55188         * doc/posix-functions/unlockpt.texi: Mention the new module.
55189         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
55190         * config/srclist.txt: Add unlockpt.c (commented).
55192 2010-03-21  Jim Meyering  <meyering@redhat.com>
55194         maint.mk: prohibit inclusion of "intprops.h" without use
55195         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
55197 2010-03-21  Bruno Haible  <bruno@clisp.org>
55199         New module 'grantpt'.
55200         * lib/grantpt.c: New file, from glibc with modifications.
55201         * m4/grantpt.m4: New file.
55202         * modules/grantpt: New file.
55203         * lib/stdlib.in.h (grantpt): New declaration.
55204         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
55205         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
55206         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
55207         HAVE_GRANTPT.
55208         * doc/posix-functions/grantpt.texi: Mention the new module.
55209         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
55210         * config/srclist.txt: Add grantpt.c (commented).
55212 2010-03-21  Bruno Haible  <bruno@clisp.org>
55214         New module 'pt_chown'.
55215         * lib/pt_chown.c: New file, from glibc with modifications.
55216         * lib/pty-private.h: New file, from glibc with modifications.
55217         * modules/pt_chown: New file.
55218         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
55220 2010-03-21  Bruno Haible  <bruno@clisp.org>
55222         Tests for module 'ptsname'.
55223         * modules/ptsname-tests: New file.
55224         * tests/test-ptsname.c: New file.
55226         New module 'ptsname'.
55227         * lib/ptsname.c: New file, from glibc with modifications.
55228         * m4/ptsname.m4: New file.
55229         * modules/ptsname: New file.
55230         * lib/stdlib.in.h (ptsname): New declaration.
55231         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
55232         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
55233         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
55234         HAVE_PTSNAME.
55235         * doc/posix-functions/ptsname.texi: Mention the new module.
55236         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
55237         * config/srclist.txt: Add ptsname.c (commented).
55239 2010-03-21  Bruno Haible  <bruno@clisp.org>
55241         Tests for module 'ttyname_r'.
55242         * modules/ttyname_r-tests: New file.
55243         * tests/test-ttyname_r.c: New file.
55245         New module 'ttyname_r'.
55246         * lib/ttyname_r.c: New file.
55247         * m4/ttyname_r.m4: New file.
55248         * modules/ttyname_r: New file.
55249         * lib/unistd.in.h (ttyname_r): New declaration.
55250         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
55251         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
55252         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
55253         HAVE_TTYNAME_R.
55254         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
55255         * doc/posix-functions/ttyname_r.texi: Mention the new module.
55257 2010-03-20  Bruno Haible  <bruno@clisp.org>
55259         signal: Undefine macro definitions in C++ mode.
55260         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
55261         sigfillset): Undefine macro definitions from the system header in C++
55262         mode.
55263         Reported by John W. Eaton <jwe@gnu.org>.
55265 2010-03-20  Bruno Haible  <bruno@clisp.org>
55267         Ensure no #include statements inside extern "C" { ... }.
55268         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
55269         contain #include statements.
55270         * lib/time.in.h: Likewise.
55272 2010-03-20  Bruno Haible  <bruno@clisp.org>
55274         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
55275         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
55276         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
55277         Reported by John W. Eaton <jwe@gnu.org>.
55279 2010-03-20  Bruno Haible  <bruno@clisp.org>
55281         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
55282         Reported by Jim Meyering.
55284 2010-03-20  Bruno Haible  <bruno@clisp.org>
55286         pipe: Set errno upon failure.
55287         * lib/pipe.h: Specify that when -1 is returned, errno is set.
55288         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
55289         errno value in error message.
55291 2010-03-20  Bruno Haible  <bruno@clisp.org>
55292             Jim Meyering  <meyering@redhat.com>
55294         lchown: Avoid "unused variable" warning.
55295         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
55297 2010-03-20  Bruno Haible  <bruno@clisp.org>
55299         Work around unlink() bug on MacOS X 10.5.6.
55300         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
55301         attempting to unlink a parent directory.
55302         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
55303         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
55304         activate for the replacement function.
55305         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
55307 2010-03-20  Bruno Haible  <bruno@clisp.org>
55309         Fix link errors on Solaris 8.
55310         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
55311         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
55313 2010-03-19  Jim Meyering  <meyering@redhat.com>
55315         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
55316         The _LIBC implementation of build_range_exp correctly honors the
55317         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
55318         However, the non-_LIBC implementation would ignore that syntax-bit
55319         flag and return REG_ERANGE unconditionally.
55320         This change makes it honor that flag.
55321         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
55322         Make two pointer parameters "const".
55323         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
55324         (parse_bracket_exp): Update caller.
55326         regex.m4: correct the reversed range endpoint ([b-a]) test
55327         * m4/regex.m4: When requiring that [b-a] evoke failure,
55328         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
55329         test pass once again for x86-based systems.
55331 2010-03-19  Bruno Haible  <bruno@clisp.org>
55333         scandir: Fix link error on Solaris 8.
55334         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
55335         macros.
55337 2010-03-19  Bruno Haible  <bruno@clisp.org>
55339         getusershell: Fix documentation.
55340         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
55341         module.
55342         * doc/glibc-functions/setusershell.texi: Likewise.
55344         getusershell: Provide declaration, missing on Solaris 9.
55345         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
55346         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
55347         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
55348         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
55349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55350         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
55351         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
55352         HAVE_GETUSERSHELL.
55353         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
55355 2010-03-19  Bruno Haible  <bruno@clisp.org>
55357         wctype: Provide iswblank function.
55358         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
55359         exists and is fine.
55360         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
55361         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
55362         * tests/test-wctype.c (main): Re-enable the iswblank tests.
55363         * doc/posix-functions/iswblank.texi: Update.
55365 2010-03-19  Bruno Haible  <bruno@clisp.org>
55367         Tests of module 'pty' in C++ mode.
55368         * modules/pty-tests: New file.
55369         * tests/test-pty-c++.cc: New file.
55370         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55372 2010-03-19  Eric Blake  <eblake@redhat.com>
55374         logb: fix documentation
55375         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
55376         1.5 declaration bug.
55378         forkpty, openpty: prefer glibc's const-safe prototype
55379         * lib/forkpty.c (rpl_forkpty): New file.
55380         * lib/openpty.c (rpl_openpty): Likewise.
55381         * modules/forkpty (Files): Distribute it.
55382         * modules/openpty (Files): Likewise.
55383         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
55384         check...
55385         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
55386         replacement for non-const BSD signature.
55387         * modules/pty (Makefile.am): Substitute witnesses.
55388         * lib/pty.in.h (forkpty, openpty): Declare replacements.
55389         * tests/test-forkpty.c: Update signature check.
55390         * tests/test-openpty.c: Likewise.
55391         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
55392         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55394         forkpty, openpty: split functions into new modules
55395         * modules/pty (Makefile.am): Substitute new witnesses.
55396         (Libraries): Move library detection...
55397         * modules/forkpty: ...into new module.
55398         * modules/openpty: Another new module.
55399         * modules/pty-tests: Rename and split...
55400         * modules/forkpty-tests: ...to this...
55401         * modules/openpty-tests: ...and this.
55402         * tests/test-pty.c: Rename and split...
55403         * tests/test-forkpty.c: ...to this...
55404         * tests/test-openpty.c: ...and this.
55405         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
55406         (gl_PTY): Split library searching...
55407         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
55408         (gl_FORKPTY, gl_OPENPTY): New macros.
55409         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
55410         * NEWS: Mention the split.
55411         * MODULES.html.sh (Misc): Document the modules.
55412         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
55413         * doc/glibc-functions/openpty.texi (openpty): Likewise.
55415         pty: improve replacement header
55416         * lib/pty.in.h: New file.
55417         * modules/pty (Files): Ship it.
55418         (Makefile.am): Always build replacement.
55419         * m4/pty.m4: Rename...
55420         * m4/pty_h.m4: ...to this.
55421         (gl_PTY): Modernize setting of witness macros; update check of
55422         forkpty to take proper advantage of cache.
55423         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
55425         getopt: avoid compiler warning
55426         * lib/getopt.c (attribute_hidden): Remove unused macro.
55428 2010-03-18  Bruno Haible  <bruno@clisp.org>
55430         Fix link errors on Solaris 8.
55431         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
55432         * modules/search-tests (test_search_c___LDADD): Likewise.
55433         * modules/signal-tests (test_signal_c___LDADD): Likewise.
55434         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
55435         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
55436         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
55437         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
55438         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
55439         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
55441 2010-03-18  Bruno Haible  <bruno@clisp.org>
55443         Fix bug introduced on 2010-03-14.
55444         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
55445         (gl_SPAWN_H): Require it.
55446         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
55447         Reported by Simon Josefsson.
55449 2010-03-18  Bruno Haible  <bruno@clisp.org>
55451         Fix typo introduced on 2009-12-31.
55452         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
55453         posix_spawn_file_actions_adddup2.
55455 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
55456         and Eric Blake  <eblake@redhat.com>
55458         test-vc-list-files-git: make more robust
55459         * tests/test-vc-list-files-git.sh: Unset problematic environment
55460         variables.  Chain commands together.
55462 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
55464         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
55465         `AC_CHECK_DECL' invocation.
55467 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
55469         * lib/inttostr.c (inttostr): Make sure the invocation of verify
55470         appears before executable statements. Suggested by Petr Sumbera
55471         <Petr.Sumbera@Sun.COM>.
55473 2010-03-14  Bruno Haible  <bruno@clisp.org>
55475         * tests/test-flock.c (test_exclusive): Comment out a test that causes
55476         portability problems. Instead use a simpler test.
55477         (main): Check that invalid arguments are rejected only on Linux.
55479 2010-03-14  Bruno Haible  <bruno@clisp.org>
55481         Fix bug introduced on 2009-12-31.
55482         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
55483         gl_PREREQ_SYS_H_WINSOCK2 always.
55484         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
55485         SYS_SOCKET_H variable.
55486         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
55487         Update comments.
55488         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
55489         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
55490         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
55491         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
55492         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
55494 2010-03-14  Bruno Haible  <bruno@clisp.org>
55496         Fix values returned by sinl, cosl.
55497         * lib/trigl.h: Add specification comments.
55498         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
55499         that combines the values from the precomputed table with the values of
55500         the Chebyshev polynomials.
55502 2010-03-14  Bruno Haible  <bruno@clisp.org>
55504         Fix compilation error when modules 'posix_spawn[p]' are not used.
55505         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
55506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
55508 2010-03-14  Bruno Haible  <bruno@clisp.org>
55510         Fix compilation error on mingw when module 'time_r' is not used.
55511         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
55512         is 1.
55513         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
55514         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55515         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
55516         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
55518 2010-03-14  Bruno Haible  <bruno@clisp.org>
55520         Fix compilation error with Sun C.
55521         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
55522         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
55523         instead of GCC specific ULONG_LONG_MAX.
55524         * lib/xstrtoll.c: Likewise.
55525         * lib/xstrtoull.c: Likewise.
55527 2010-03-13  Bruno Haible  <bruno@clisp.org>
55529         Allow the user to disable C++ code and tests.
55530         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
55531         (gl_PROG_ANSI_CXX): Require it.
55533 2010-03-13  Bruno Haible  <bruno@clisp.org>
55535         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
55536         cases.
55538 2010-03-13  Bruno Haible  <bruno@clisp.org>
55540         Test that gnulib does not break the standard C++ headers.
55541         * tests/test-locale-c++2.cc: New file.
55542         * modules/locale-tests (Files): Add it.
55543         (Makefile.am): Compile it for test-locale-c++.
55544         * tests/test-math-c++2.cc: New file.
55545         * modules/math-tests (Files): Add it.
55546         (Makefile.am): Compile it for test-math-c++.
55547         * tests/test-signal-c++2.cc: New file.
55548         * modules/signal-tests (Files): Add it.
55549         (Makefile.am): Compile it for test-signal-c++.
55550         * tests/test-stdio-c++2.cc: New file.
55551         * modules/stdio-tests (Files): Add it.
55552         (Makefile.am): Compile it for test-stdio-c++.
55553         * tests/test-stdlib-c++2.cc: New file.
55554         * modules/stdlib-tests (Files): Add it.
55555         (Makefile.am): Compile it for test-stdlib-c++.
55556         * tests/test-string-c++2.cc: New file.
55557         * modules/string-tests (Files): Add it.
55558         (Makefile.am): Compile it for test-string-c++.
55559         * tests/test-time-c++2.cc: New file.
55560         * modules/time-tests (Files): Add it.
55561         (Makefile.am): Compile it for test-time-c++.
55562         Reported by John W. Eaton <jwe@gnu.org>.
55564 2010-03-13  Bruno Haible  <bruno@clisp.org>
55566         * gnulib-tool (func_usage): Clarify which options are available for
55567         --create-testdir and --create-megatestdir.
55569 2010-03-13  Bruno Haible  <bruno@clisp.org>
55571         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
55572         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
55573         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
55574         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
55575         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
55576         when appropriate.
55577         Reported by Jim Meyering.
55579 2010-03-12  Simon Josefsson  <simon@josefsson.org>
55581         * gnulib-tool (func_import): Explain origin of code.
55583 2010-03-12  Bruno Haible  <bruno@clisp.org>
55585         Fix problem with automake's definition of CXXLINK.
55586         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
55587         Reported by Simon Josefsson and Ludovic Courtès.
55589 2010-03-12  Bruno Haible  <bruno@clisp.org>
55591         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
55592         stable releases.
55594 2010-03-11  Bruno Haible  <bruno@clisp.org>
55596         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
55597         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
55598         whether the system provides one variant or multiple variants of the
55599         function.
55600         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
55601         C++ compilers.
55602         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
55603         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
55604         Reported by Jim Meyering.
55606 2010-03-09  Simon Josefsson  <simon@josefsson.org>
55608         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
55610 2010-03-08  Bruno Haible  <bruno@clisp.org>
55612         gnulib-tool: Add support for --libtool in --create-testdir.
55613         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
55614         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
55616 2010-03-08  Eric Blake  <eblake@redhat.com>
55618         gnulib-tool.texi: mention possibility of git submodule
55619         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
55620         submodules.
55621         * doc/.gitignore: Ignore another generated file.
55623 2010-03-08  Karl Berry  <karl@gnu.org>
55625         * doc/gnulib-tool.texi (VCS Issues): Mention third option
55626         of committing gnulib files while skipping others.
55628 2010-03-07  Bruno Haible  <bruno@clisp.org>
55630         Tests of module 'wctype' in C++ mode.
55631         * tests/test-wctype-c++.cc: New file.
55632         * modules/wctype-tests (Files): Add it and tests/signature.h.
55633         (Depends-on): Add ansi-c++-opt.
55634         (Makefile.am): Arrange to compile and run test-wctype-c++.
55636         Tests of module 'wchar' in C++ mode.
55637         * tests/test-wchar-c++.cc: New file.
55638         * modules/wchar-tests (Files): Add it and tests/signature.h.
55639         (Depends-on): Add ansi-c++-opt.
55640         (Makefile.am): Arrange to compile and run test-wchar-c++.
55641         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
55642         gl_MODULE_INDICATOR.
55644         Tests of module 'unistd' in C++ mode.
55645         * tests/test-unistd-c++.cc: New file.
55646         * modules/unistd-tests (Files): Add it and tests/signature.h.
55647         (Depends-on): Add ansi-c++-opt.
55648         (Makefile.am): Arrange to compile and run test-unistd-c++.
55649         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
55650         gl_MODULE_INDICATOR.
55652         Tests of module 'time' in C++ mode.
55653         * tests/test-time-c++.cc: New file.
55654         * modules/time-tests (Files): Add it and tests/signature.h.
55655         (Depends-on): Add ansi-c++-opt.
55656         (Makefile.am): Arrange to compile and run test-time-c++.
55657         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55659         Tests of module 'sys_time' in C++ mode.
55660         * tests/test-sys_time-c++.cc: New file.
55661         * modules/sys_time-tests (Files): Add it and tests/signature.h.
55662         (Depends-on): Add ansi-c++-opt.
55663         (Makefile.am): Arrange to compile and run test-sys_time-c++.
55664         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
55665         gl_MODULE_INDICATOR.
55667         Tests of module 'sys_stat' in C++ mode.
55668         * tests/test-sys_stat-c++.cc: New file.
55669         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
55670         (Depends-on): Add ansi-c++-opt.
55671         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
55672         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
55673         gl_MODULE_INDICATOR.
55675         Tests of module 'sys_socket' in C++ mode.
55676         * tests/test-sys_socket-c++.cc: New file.
55677         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
55678         (Depends-on): Add ansi-c++-opt.
55679         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
55680         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
55681         gl_MODULE_INDICATOR.
55683         Tests of module 'sys_select' in C++ mode.
55684         * tests/test-sys_select-c++.cc: New file.
55685         * modules/sys_select-tests (Files): Add it and tests/signature.h.
55686         (Depends-on): Add ansi-c++-opt.
55687         (Makefile.am): Arrange to compile and run test-sys_select-c++.
55688         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
55689         gl_MODULE_INDICATOR.
55691         Tests of module 'sys_ioctl' in C++ mode.
55692         * tests/test-sys_ioctl-c++.cc: New file.
55693         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
55694         (Depends-on): Add ansi-c++-opt.
55695         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
55696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
55697         gl_MODULE_INDICATOR.
55699         Tests of module 'string' in C++ mode.
55700         * tests/test-string-c++.cc: New file.
55701         * modules/string-tests (Files): Add it and tests/signature.h.
55702         (Depends-on): Add ansi-c++-opt.
55703         (Makefile.am): Arrange to compile and run test-string-c++.
55704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
55705         gl_MODULE_INDICATOR.
55707         Tests of module 'stdlib' in C++ mode.
55708         * tests/test-stdlib-c++.cc: New file.
55709         * modules/stdlib-tests (Files): Add it and tests/signature.h.
55710         (Depends-on): Add ansi-c++-opt.
55711         (Makefile.am): Arrange to compile and run test-stdlib-c++.
55712         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
55713         gl_MODULE_INDICATOR.
55715         Tests of module 'stdio' in C++ mode.
55716         * tests/test-stdio-c++.cc: New file.
55717         * modules/stdio-tests (Files): Add it and tests/signature.h.
55718         (Depends-on): Add ansi-c++-opt.
55719         (Makefile.am): Arrange to compile and run test-stdio-c++.
55720         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
55721         gl_MODULE_INDICATOR.
55723         Tests of module 'spawn' in C++ mode.
55724         * tests/test-spawn-c++.cc: New file.
55725         * modules/spawn-tests (Files): Add it and tests/signature.h.
55726         (Depends-on): Add ansi-c++-opt.
55727         (Makefile.am): Arrange to compile and run test-spawn-c++.
55728         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
55729         gl_MODULE_INDICATOR.
55731         Tests of module 'signal' in C++ mode.
55732         * tests/test-signal-c++.cc: New file.
55733         * modules/signal-tests (Files): Add it and tests/signature.h.
55734         (Depends-on): Add ansi-c++-opt.
55735         (Makefile.am): Arrange to compile and run test-signal-c++.
55736         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
55737         gl_MODULE_INDICATOR.
55739         Tests of module 'search' in C++ mode.
55740         * tests/test-search-c++.cc: New file.
55741         * modules/search-tests (Files): Add it and tests/signature.h.
55742         (Depends-on): Add ansi-c++-opt.
55743         (Makefile.am): Arrange to compile and run test-search-c++.
55744         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
55745         gl_MODULE_INDICATOR.
55747         Tests of module 'math' in C++ mode.
55748         * tests/test-math-c++.cc: New file.
55749         * modules/math-tests (Files): Add it and tests/signature.h.
55750         (Depends-on): Add ansi-c++-opt.
55751         (Makefile.am): Arrange to compile and run test-math-c++.
55752         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
55754         Tests of module 'locale' in C++ mode.
55755         * tests/test-locale-c++.cc: New file.
55756         * modules/locale-tests (Files): Add it and tests/signature.h.
55757         (Depends-on): Add ansi-c++-opt.
55758         (Makefile.am): Arrange to compile and run test-locale-c++.
55759         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
55760         gl_MODULE_INDICATOR.
55762         Tests of module 'langinfo' in C++ mode.
55763         * tests/test-langinfo-c++.cc: New file.
55764         * modules/langinfo-tests (Files): Add it and tests/signature.h.
55765         (Depends-on): Add ansi-c++-opt.
55766         (Makefile.am): Arrange to compile and run test-langinfo-c++.
55767         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
55768         gl_MODULE_INDICATOR.
55770         Tests of module 'iconv-h' in C++ mode.
55771         * tests/test-iconv-h-c++.cc: New file.
55772         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
55773         (Depends-on): Add ansi-c++-opt.
55774         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
55776         Tests of module 'glob' in C++ mode.
55777         * tests/test-glob-c++.cc: New file.
55778         * modules/glob-tests (Files): Add it.
55779         (Depends-on): Add ansi-c++-opt.
55780         (Makefile.am): Arrange to compile and run test-glob-c++.
55782         Tests of module 'fcntl-h' in C++ mode.
55783         * tests/test-fcntl-h-c++.cc: New file.
55784         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
55785         (Depends-on): Add ansi-c++-opt.
55786         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
55787         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
55788         gl_MODULE_INDICATOR.
55790         Tests of module 'dirent' in C++ mode.
55791         * tests/test-dirent-c++.cc: New file.
55792         * modules/dirent-tests (Files): Add it and tests/signature.h.
55793         (Depends-on): Add ansi-c++-opt.
55794         (Makefile.am): Arrange to compile and run test-dirent-c++.
55795         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
55796         gl_MODULE_INDICATOR.
55798         New module 'ansi-c++-opt'.
55799         * modules/ansi-c++-opt: New file.
55800         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
55802         Document C++ namespace mode.
55803         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
55805         wctype: Avoid #define replacements in C++ mode.
55806         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
55807         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
55808         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
55809         In C++, define a namespaced alias symbol.
55810         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
55811         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
55812         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
55813         rule.
55815         wchar: Avoid #define replacements in C++ mode.
55816         * lib/wchar.in.h: Include c++defs.h.
55817         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
55818         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
55819         symbol.
55820         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
55821         * modules/wchar (Depends-on): Add c++defs.
55822         (Makefile.am): Update wchar.h rule.
55824         unistd: Avoid #define replacements in C++ mode.
55825         * lib/unistd.in.h: Include c++defs.h.
55826         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
55827         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
55828         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
55829         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
55830         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
55831         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
55832         symbol.
55833         (environ): Update.
55834         * modules/unistd (Depends-on): Add c++defs.
55835         (Makefile.am): Update unistd.h rule.
55837         time: Avoid #define replacements in C++ mode.
55838         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
55839         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
55840         define a namespaced alias symbol.
55841         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
55842         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
55843         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
55844         * modules/time (Depends-on): Add c++defs, warn-on-use.
55845         (Makefile.am): Update time.h rule.
55846         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
55847         * modules/nanosleep (configure.ac): Likewise.
55848         * modules/strptime (configure.ac): Likewise.
55849         * modules/timegm (configure.ac): Likewise.
55851         sys_time: Avoid #define replacements in C++ mode.
55852         * lib/sys_time.in.h: Include c++defs.h.
55853         (gettimeofday): In C++, define a namespaced alias symbol.
55854         * modules/sys_time (Depends-on): Add c++defs.
55855         (Makefile.am): Update sys/time.h rule.
55857         sys_stat: Avoid #define replacements in C++ mode.
55858         * lib/sys_stat.in.h: Include c++defs.h.
55859         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
55860         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
55861         namespaced alias symbol.
55862         In C++, define a namespaced alias symbol.
55863         * modules/sys_stat (Depends-on): Add c++defs.
55864         (Makefile.am): Update sys/stat.h rule.
55866         sys_socket: Avoid #define replacements in C++ mode.
55867         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
55868         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
55869         definitions also when the system has a <sys/socket.h>.
55870         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55871         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
55872         In C++, define a namespaced alias symbol.
55873         * modules/sys_socket (Depends-on): Add c++defs.
55874         (Makefile.am): Update sys/socket.h rule.
55876         sys_select: Avoid #define replacements in C++ mode.
55877         * lib/sys_select.in.h: Include c++defs.h. Enable the function
55878         definitions also when the system has a <sys/select.h>.
55879         (select): In C++, define a namespaced alias symbol.
55880         * modules/sys_select (Depends-on): Add c++defs.
55881         (Makefile.am): Update sys/select.h rule.
55883         sys_ioctl: Avoid #define replacements in C++ mode.
55884         * lib/sys_ioctl.in.h: Include c++defs.h.
55885         (ioctl): In C++, define a namespaced alias symbol.
55886         * modules/sys_ioctl (Depends-on): Add c++defs.
55887         (Makefile.am): Update sys/ioctl.h rule.
55889         string: Avoid #define replacements in C++ mode.
55890         * lib/string.in.h: Include c++defs.h.
55891         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
55892         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
55893         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
55894         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
55895         strsignal, strverscmp): In C++, define a namespaced alias symbol.
55896         * modules/string (Depends-on): Add c++defs.
55897         (Makefile.am): Update string.h rule.
55899         stdlib: Avoid #define replacements in C++ mode.
55900         * lib/stdlib.in.h: Include c++defs.h.
55901         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
55902         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
55903         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
55904         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
55905         symbol.
55906         * modules/stdlib (Depends-on): Add c++defs.
55907         (Makefile.am): Update stdlib.h rule.
55909         stdio: Avoid #define replacements in C++ mode.
55910         * lib/stdio.in.h: Include c++defs.h.
55911         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
55912         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
55913         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
55914         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
55915         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
55916         namespaced alias symbol.
55917         * modules/stdio (Depends-on): Add c++defs.
55918         (Makefile.am): Update stdio.h rule.
55920         spawn: Avoid #define replacements in C++ mode.
55921         * lib/spawn.in.h: Include c++defs.h.
55922         (posix_spawn, posix_spawnp, posix_spawnattr_init,
55923         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
55924         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
55925         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
55926         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
55927         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
55928         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
55929         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
55930         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
55931         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
55932         In C++, define a namespaced alias symbol.
55933         * modules/spawn (Depends-on): Add c++defs.
55934         (Makefile.am): Update spawn.h rule.
55936         signal: Avoid #define replacements in C++ mode.
55937         * lib/signal.in.h: Include c++defs.h.
55938         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
55939         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
55940         namespaced alias symbol.
55941         * modules/signal (Depends-on): Add c++defs.
55942         (Makefile.am): Update signal.h rule.
55944         search: Avoid #define replacements in C++ mode.
55945         * lib/search.in.h: Include c++defs.h.
55946         (_gl_search_compar_fn, _gl_search_action_fn): New types.
55947         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
55948         symbol.
55949         * modules/search (Depends-on): Add c++defs.
55950         (Makefile.am): Update search.h rule.
55952         math: Avoid #define replacements in C++ mode.
55953         * lib/math.in.h: Include c++defs.h.
55954         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
55955         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
55956         trunc, truncl): In C++, define a namespaced alias symbol.
55957         * modules/math (Depends-on): Add c++defs.
55958         (Makefile.am): Update math.h rule.
55960         locale: Avoid #define replacements in C++ mode.
55961         * lib/locale.in.h: Include c++defs.h.
55962         (duplocale): In C++, define a namespaced alias symbol.
55963         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
55964         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
55965         * modules/locale (Depends-on): Add c++defs.
55966         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
55968         langinfo: Avoid #define replacements in C++ mode.
55969         * lib/langinfo.in.h: Include c++defs.h.
55970         (nl_langinfo): In C++, define a namespaced alias symbol.
55971         * modules/langinfo (Depends-on): Add c++defs.
55972         (Makefile.am): Update langinfo.h rule.
55974         iconv-h: Avoid #define replacements in C++ mode.
55975         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
55976         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
55977         symbol.
55978         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55979         whenever iconv is present.
55980         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
55981         (Makefile.am): Update iconv.h rule.
55983         glob: Avoid #define replacements in C++ mode.
55984         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
55985         (_gl_glob_errfunc_fn): New type.
55986         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
55987         symbol.
55988         * modules/glob (Depends-on): Add c++defs, warn-on-use.
55989         (Makefile.am): Update glob.h rule.
55991         fcntl-h: Avoid #define replacements in C++ mode.
55992         * lib/fcntl.in.h: Include c++defs.h.
55993         (fcntl, open, openat): In C++, define a namespaced alias symbol.
55994         * modules/fcntl-h (Depends-on): Add c++defs.
55995         (Makefile.am): Update fcntl.h rule.
55997         dirent: Avoid #define replacements in C++ mode.
55998         * lib/dirent.in.h: Include c++defs.h.
55999         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
56000         namespaced alias symbol.
56001         (dirfd): Update declaration.
56002         * modules/dirent (Depends-on): Add c++defs.
56003         (Makefile.am): Update dirent.h rule.
56005         ctype: Make it usable in C++ code.
56006         * lib/ctype.in.h: Include c++defs.h.
56007         (isblank): Declare as extern "C".
56008         * modules/ctype (Depends-on): Add c++defs.
56009         (Makefile.am): Update ctype.h rule.
56011         New module 'c++defs'.
56012         * modules/c++defs: New file.
56013         * build-aux/c++defs.h: New file.
56014         Reported by John W. Eaton <jwe@gnu.org>.
56016 2010-03-07  Bruno Haible  <bruno@clisp.org>
56018         logb: Provide missing declaration for Cygwin.
56019         * lib/math.in.h (logb): New declaration.
56020         * m4/logb.m4: New file.
56021         * modules/logb (Files): Add m4/logb.m4.
56022         (Depends-on): Add math.
56023         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
56024         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
56025         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
56026         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
56027         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
56029 2010-03-07  Bruno Haible  <bruno@clisp.org>
56031         Fix test-cond link error.
56032         * tests/test-cond.c: Include <stdio.h>.
56034 2010-03-07  Bruno Haible  <bruno@clisp.org>
56036         Fix test-dirent-safer link error.
56037         * modules/dirent-safer-tests (Makefile.am): Define
56038         test_dirent_safer_LDADD.
56040 2010-03-07  Bruno Haible  <bruno@clisp.org>
56042         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
56043         among default module list.
56045 2010-03-07  Bruno Haible  <bruno@clisp.org>
56047         Fix link error on platforms with GNU libiconv.
56048         * modules/unistr/u8-strcoll-tests (Makefile): Define
56049         test_u8_strcoll_LDADD.
56050         * modules/unistr/u16-strcoll-tests (Makefile): Define
56051         test_u16_strcoll_LDADD.
56052         * modules/unistr/u32-strcoll-tests (Makefile): Define
56053         test_u32_strcoll_LDADD.
56055 2010-03-07  Bruno Haible  <bruno@clisp.org>
56057         Use POSIX declarations for socket functions.
56058         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
56059         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
56060         rpl_sendto): Change declaration to match POSIX.
56061         * lib/connect.c (rpl_connect): Likewise.
56062         * lib/accept.c (rpl_accept): Likewise.
56063         * lib/bind.c (rpl_bind): Likewise.
56064         * lib/getpeername.c (rpl_getpeername): Likewise.
56065         * lib/getsockname.c (rpl_getsockname): Likewise.
56066         * lib/recv.c (rpl_recv): Likewise.
56067         * lib/send.c (rpl_send): Likewise.
56068         * lib/recvfrom.c (rpl_recvfrom): Likewise.
56069         * lib/sendto.c (rpl_sendto): Likewise.
56071 2010-03-06  Bruno Haible  <bruno@clisp.org>
56073         Clarify access, euidaccess, faccessat.
56074         * doc/posix-functions/faccessat.texi: Mention security problem under
56075         "Other problems", not "Portability problems".
56076         * doc/posix-functions/access.texi: Likewise. Mention a related security
56077         problem.
56078         * doc/glibc-functions/euidaccess.texi: Mention security problems.
56079         * lib/euidaccess.c: Add comments about platforms.
56080         * lib/unistd.in.h (access, euidaccess): Add warnings.
56082 2010-03-07  Bruno Haible  <bruno@clisp.org>
56084         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
56085         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
56086         (POSIX_SPAWN_SETSCHEDULER): Likewise.
56087         (POSIX_SPAWN_USEVFORK): Define in a way that works when
56088         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
56089         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
56090         declare when POSIX_SPAWN_SETSCHEDULER is zero.
56091         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
56092         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
56093         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
56094         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
56095         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
56096         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
56097         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
56098         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
56099         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
56100         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
56101         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
56102         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
56103         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
56104         Likewise.
56105         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
56106         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
56107         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
56108         Likewise.
56109         * tests/test-spawn.c (main): Make it work when
56110         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
56112 2010-03-07  Bruno Haible  <bruno@clisp.org>
56114         Fix incorrect Makefile.am generation in German locale.
56115         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
56116         Execute sed command with character range in C locale.
56118 2010-03-06  Bruno Haible  <bruno@clisp.org>
56120         Tests for module 'iconv-h'.
56121         * modules/iconv-h-tests: New file.
56122         * tests/test-iconv-h.c: New file.
56124         New module 'iconv-h'.
56125         * modules/iconv-h: New file.
56126         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
56127         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
56128         (configure.ac): Remove gl_ICONV_H.
56129         (Makefile.am): Remove rule for iconv.h.
56131 2010-03-06  Bruno Haible  <bruno@clisp.org>
56133         More consistent naming of *.m4 files.
56134         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
56135         * modules/wctype (Files): Update.
56137         More consistent naming of *.m4 files.
56138         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
56139         * modules/wchar (Files): Update.
56141 2010-03-06  Jim Meyering  <meyering@redhat.com>
56143         euidaccess: relax license to LGPLv2+
56144         * modules/euidaccess (License): Relax to LGPLv2+.
56146 2010-03-06  Bruno Haible  <bruno@clisp.org>
56148         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
56149         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
56150         (Makefile.am): Augment lib_SOURCES instead.
56152 2010-03-04  Jim Meyering  <meyering@redhat.com>
56154         utime: remove obsolete module
56155         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
56156         unnecessary for years, and has been marked as obsolete for 10 months.
56157         * modules/utime: Remove file.
56158         * lib/utime.c: Remove file.
56159         * m4/utime.m4: Remove file.
56160         * m4/utimes-null.m4: Remove file.
56161         * doc/posix-functions/utime.texi (utime): Remove reference to
56162         the module.  Move the sole "fixed by gnulib" item into the
56163         "problems not fixed by Gnulib" list.
56164         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
56166 2010-03-05  Simon Josefsson  <simon@josefsson.org>
56168         * modules/exit (License): Relax license to LGPLv2+.
56169         (Status): Mark as obsolete.
56170         * NEWS: Mention deprecated 'exit' module.
56171         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
56172         of now obsolete 'exit'.
56174 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56176         fts-lgpl: remove unused module
56177         * modules/fts-lgpl: Remove.
56178         * MODULES.html.sh (func_all_modules): Adjust.
56179         * check-module (find_included_lib_files): Adjust.
56180         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
56182 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
56184         copy-acl: enhance Solaris ACL error handling
56185         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
56186         * lib/set-mode-acl.c (qset_acl): Likewise.
56188 2010-03-02  Bruno Haible  <bruno@clisp.org>
56190         spawn: Don't override the system defined values on FreeBSD 8.
56191         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
56192         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
56193         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
56194         if HAVE_POSIX_SPAWN is 1.
56195         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
56197 2010-03-01  Bruno Haible  <bruno@clisp.org>
56199         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
56200         regarding Automake.
56202 2010-02-25  Bruno Haible  <bruno@clisp.org>
56204         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
56205         * gnulib-tool: Define 'echo' as a function only before the ksh alias
56206         setting, not afterwards.
56207         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
56209 2010-02-24  Eric Blake  <eblake@redhat.com>
56211         bootstrap, git-version-gen: use timestamp
56212         * build-aux/git-version-gen (scriptversion): Force UTC.
56213         * build-aux/bootstrap (scriptversion): New variable.
56215         bootstrap: allow older git
56216         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
56217         older than 1.6.4.  Requested by the libvirt project.
56219 2010-02-23  Eric Blake  <eblake@redhat.com>
56221         warn-on-use: work with old autoconf
56222         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
56223         AS_VAR semantics of autoconf 2.60.
56224         Reported by Bruno Haible.
56226         bootstrap: improve some comments
56227         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
56228         clarification comments.
56230         gettimeofday: provide correct function
56231         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
56232         when replacement is declared, otherwise provide gettimeofday.
56233         Reported by Michael Goffioul.
56235 2010-02-23  Jim Meyering  <meyering@redhat.com>
56237         lib-ignore: relax license to "unlimited", not LGPLv2+
56238         * modules/lib-ignore (License): Relax to "unlimited".
56240 2010-02-23  Jim Meyering  <meyering@redhat.com>
56242         lib-ignore: relax license to LGPLv2+
56243         * modules/lib-ignore (License): Relax to LGPLv2+.
56245 2010-02-22  Eric Blake  <eblake@redhat.com>
56247         lseek: avoid bash 3.2 broken pipe bug
56248         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
56249         warning from bash 3.2.
56250         Reported by Ben Pfaff, with analysis from Bruno Haible.
56252         bootstrap: support non-FSF copyright holder
56253         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
56254         bootstrap.conf override of COPYRIGHT_HOLDER.
56255         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
56257         bootstrap: interoperate with gettext 0.14.1
56258         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
56260         bootstrap: allow for alternate submodule location
56261         * build-aux/bootstrap (gnulib_path): New variable; use instead of
56262         hardcoding submodule location.
56263         (gnulib_mk): Allow direct use of Makefile.am.
56265         bootstrap: use GNULIB_SRCDIR to reduce disk usage
56266         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
56267         rather than reconfiguring where the submodule points.
56269         gettimeofday: restore support for platforms that lack function
56270         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
56271         replacement if function is missing.
56272         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
56273         * modules/sys_time (Makefile.am): Substitute it.
56274         * lib/sys_time.in.h (gettimeofday): Check it.
56275         Reported by Michael Goffioul.
56277 2010-02-21  Bruno Haible  <bruno@clisp.org>
56279         * lib/stdio.in.h (obstack_printf): Fix typo.
56281 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
56283         vc-list-files: use bzr ls's -R option
56284         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
56285         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
56287 2010-02-21  Jim Meyering  <meyering@redhat.com>
56289         init.sh: fix EXEEXT shims to work also for names like test-prog
56290         * tests/init.sh: Re-exec a better shell, when needed.
56291         If the current shell lacks support for posix $(...), an init.sh-using
56292         test will now try to find a shell that supports that.  If EXEEXT is
56293         nonempty, we also require support for hyphen-in-alias-name and shell
56294         substitutions like ${var#glob}.  Failure to find such a shell results
56295         in a skipped test.
56297 2010-02-21  Bruno Haible  <bruno@clisp.org>
56299         Really work around "broken pipe" error message from bash 3.2.
56300         * gnulib-tool (func_reset_sigpipe): Remove function.
56301         (echo): In bash 3.2, define to a function that uses printf.
56302         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
56304 2010-02-20  Bruno Haible  <bruno@clisp.org>
56306         Restore support for automake 1.9.6 with autoconf 2.61.
56307         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
56308         Reported by James Youngman <jay@gnu.org>.
56310 2010-02-20  Bruno Haible  <bruno@clisp.org>
56312         Improve *printf warning condition.
56313         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
56314         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
56315         and the function is overridden due to SIGPIPE emulation.
56317 2010-02-20  Bruno Haible  <bruno@clisp.org>
56319         * lib/stdio.in.h: Tweak comments.
56321 2010-02-19  Bruno Haible  <bruno@clisp.org>
56323         Make it easier to find modules. New gnulib-tool option '--find'.
56324         * gnulib-tool: New option --find.
56325         (func_usage): Document it.
56326         (func_sanitize_modulelist): New function, extracted from
56327         func_all_modules.
56328         (func_all_modules): Invoke it.
56329         * doc/gnulib-tool.texi (Which modules?): New node.
56331 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
56333         * lib/sys_select.in.h: Provide select replacement even if
56334         sys/select.h exists on a system, for Interix.
56336 2010-02-18  Jim Meyering  <meyering@redhat.com>
56338         init.sh: don't use $(...) just yet
56339         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
56340         to accommodate e.g., Solaris' /bin/sh.
56342 2010-02-17  Bruno Haible  <bruno@clisp.org>
56344         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
56345         Reported by Ludovic Courtès <ludo@gnu.org>.
56347 2010-02-16  Simon Josefsson  <simon@josefsson.org>
56349         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
56350         linking with -lintl.
56352 2010-02-17  Simon Josefsson  <simon@josefsson.org>
56354         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
56355         if not provided by the system's netdb.h.  Reported by
56356         ludo@gnu.org (Ludovic Courtès).
56358 2010-02-15  Jim Meyering  <meyering@redhat.com>
56360         init.sh: improve portability and efficiency
56361         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
56362         "dummy" in a for loop.
56363         Use '!', not '^' to select the complement of a character set used
56364         in a "case" statement.
56365         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
56366         Suggestions from Eric Blake.
56368         init.sh: automatically accommodate programs with the .exe suffix
56369         Automatically arrange for an invocation of "prog" to execute the
56370         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
56371         may use the simpler "prog", yet still work when built on a system
56372         that requires specifying the added suffix.
56373         Do this by constructing a function named "prog" that invokes
56374         "prog.exe" for each .exe file in selected directories.
56375         * tests/init.sh (find_exe_basenames_): New function.
56376         (create_exe_shim_functions_): New function.
56377         (path_prepend_): Use it.
56379         maint.mk: mark syntax-check sc_*.m rules as .PHONY
56380         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
56381         "make -t syntax-check" doesn't create a ton of sc_*.m files.
56383 2010-02-14  Jim Meyering  <meyering@redhat.com>
56385         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
56386         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
56387         (sc_prohibit_hash_pjw_without_use): New rule.
56389         maint.mk: allow the default upload destination dir to be overridden
56390         * top/maint.mk (upload_dest_dir_): Define with a default that
56391         preserves the status quo.
56392         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
56393         Reported by Peter Simons.
56395         maint.mk: prohibit inclusion of "hash.h" without_use
56396         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
56398 2010-02-10  Jim Meyering  <meyering@redhat.com>
56400         maint.mk: prohibit inclusion of "ignore-value.h" without_use
56401         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
56403 2010-02-09  Eric Blake  <ebb9@byu.net>
56404         and Bruno Haible  <bruno@clisp.org>
56406         obstack-printf-posix: ensure declaration
56407         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
56408         extracted from gl_FUNC_OBSTACK_PRINTF.
56409         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
56410         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56411         Likewise.
56412         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
56413         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
56414         0.
56416 2010-02-08  Bruno Haible  <bruno@clisp.org>
56418         gnulib-tool: Fix typo in 2010-02-07 commit.
56419         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
56420         Reported by Eric Blake.
56422 2010-02-07  Bruno Haible  <bruno@clisp.org>
56424         gnulib-tool: Fix up caching patches.
56425         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
56426         option --no-cache. Use associative arrays when supported by the shell.
56427         (sed_comments): New variable.
56428         (modcache): Renamed from do_cache.
56429         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
56430         abbreviate unnecessarily.
56431         (have_associative): New variable.
56432         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
56433         way also for ksh and zsh.
56434         (func_init_sed_convert_to_cache_statements): New function, extracted
56435         from func_cache_lookup_module. Add support for associative arrays.
56436         Don't set the c_MODULE_cached variable here. Ignore all lines before
56437         the first field header. Remove only the final newline, not all trailing
56438         newlines. Support empty fields correctly. Limit the use of 'eval' to
56439         assignments.
56440         (func_get_description, func_get_status, func_get_notice,
56441         func_get_applicability, func_get_filelist, func_get_dependencies,
56442         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
56443         func_get_automake_snippet, func_get_include_directive,
56444         func_get_link_directive, func_get_license, func_get_maintainer):
56445         Update documentation. List the unoptimized code first. Add support for
56446         associative arrays. Limit the use of 'eval' to assignments.
56447         (func_get_applicability): Undo stylistic pessimisations.
56448         (func_get_automake_snippet, func_get_include_directive): Reduce code
56449         duplication.
56450         (func_modules_transitive_closure, func_modules_add_dummy,
56451         func_modules_notice, func_modules_to_filelist, func_add_file,
56452         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
56453         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
56454         func_create_testdir, func_create_megatestdir): Update documentation.
56456 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56458         * gnulib-tool (func_cache_lookup_module): Store the module name
56459         belonging to the cache variable; error out if two different
56460         module names map to the same cache variable name.
56462 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56464         gnulib-tool: Make caching optional.
56465         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
56466         Update matching short versions of --no-changelog.
56467         (func_usage): Update.
56468         (sed_extract_cache_prog): Renamed from ...
56469         (sed_extract_prog): ... this; revert to old extraction script.
56470         (func_get_description, func_get_status)
56471         (func_get_notice, func_get_applicability, func_get_filelist)
56472         (func_get_dependencies, func_get_autoconf_early_snippet)
56473         (func_get_autoconf_snippet, func_get_automake_snippet)
56474         (func_get_include_directive, func_get_link_directive)
56475         (func_get_license, func_get_maintainer): If $do_cache is false,
56476         use old, non-caching extraction scripts.
56477         Suggestion by Bruno Haible.
56479 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56481         gnulib-tool: cache module metainformation.
56482         * gnulib-tool (sed_extract_prog): Match newline before each
56483         header, and rewrite header to a shell variable suffix.
56484         (func_cache_var, func_cache_lookup_module): New functions,
56485         to turn a module name into a cache variable prefix, and to
56486         look up and cache module metainformation.
56487         (func_get_description, func_get_status)
56488         (func_get_notice, func_get_applicability, func_get_filelist)
56489         (func_get_dependencies, func_get_autoconf_early_snippet)
56490         (func_get_autoconf_snippet, func_get_automake_snippet)
56491         (func_get_include_directive, func_get_link_directive)
56492         (func_get_license, func_get_maintainer): Use
56493         func_cache_lookup_module.
56495 2010-02-07  Bruno Haible  <bruno@clisp.org>
56497         fnctl: Fix missing dependency.
56498         * modules/fcntl (Depends-on): Add getdtablesize.
56499         Reported by John W. Eaton <jwe@gnu.org>.
56501 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56503         Argp: fix recognition of short alias options.
56505         * lib/argp-parse.c (convert_options): Fix improper use of
56506         `|' between character values.
56507         * tests/test-argp.c (group1_option): New alias option
56508         --read (-r).
56509         (group1_parser): Special handling for 'r'.
56510         (test15): New test case.
56511         (test_fun): Add test15.
56512         * tests/test-argp-2.sh: Update expected --help and --usage
56513         outputs.
56515 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
56517         * tests/test-argp.c: Fix indentation.
56519 2010-02-04  Eric Blake  <ebb9@byu.net>
56521         gettimeofday: expose type of second argument
56522         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
56523         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
56524         * tests/test-gettimeofday.c: Use it to silence warning.
56525         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
56526         the issue.
56528 2010-02-03  Jim Meyering  <meyering@redhat.com>
56530         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
56531         * lib/regcomp.c (TYPE_SIGNED): Define.
56532         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
56534         regcomp.c: avoid a new -Wshadow warning
56535         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
56537 2010-02-01  Jim Meyering  <meyering@redhat.com>
56539         removing useless parentheses in cpp #define directives
56540         For motivation, see commit c0221df4, "define STREQ(a,b)
56541         consistently, removing useless parentheses"
56542         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
56543         * lib/mountlist.c (MNT_IGNORE): Likewise.
56544         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
56546 2010-02-01  Eric Blake  <ebb9@byu.net>
56548         sys_time: use link-warning
56549         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
56550         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
56551         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
56552         * modules/sys_time (Depends-on): Add warn-on-use.
56553         (Makefile.am): Always build replacement.
56554         (configure.ac): Update substitutions.
56555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
56556         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
56557         bother with SYS_TIME_H.
56558         * modules/gettimeofday (configure.ac): Declare indicator.
56559         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
56560         in use.
56562         closein-tests: silence compiler warning
56563         * tests/test-closein.c (main): Ignore fread result.
56564         * modules/closein-tests (Depends-on): Add ignore-value.
56566         tests: silence warning about system return
56567         * tests/test-areadlink-with-size.c (main): Ignore system result.
56568         * tests/test-areadlink.c (main): Likewise.
56569         * tests/test-areadlinkat-with-size.c (main): Likewise.
56570         * tests/test-areadlinkat.c (main): Likewise.
56571         * tests/test-canonicalize-lgpl.c (main): Likewise.
56572         * tests/test-canonicalize.c (main): Likewise.
56573         * tests/test-chown.c (main): Likewise.
56574         * tests/test-fchownat.c (main): Likewise.
56575         * tests/test-fdutimensat.c (main): Likewise.
56576         * tests/test-fstatat.c (main): Likewise.
56577         * tests/test-futimens.c (main): Likewise.
56578         * tests/test-lchown.c (main): Likewise.
56579         * tests/test-link.c (main): Likewise.
56580         * tests/test-linkat.c (main): Likewise.
56581         * tests/test-lstat.c (main): Likewise.
56582         * tests/test-mkdir.c (main): Likewise.
56583         * tests/test-mkdirat.c (main): Likewise.
56584         * tests/test-mkfifo.c (main): Likewise.
56585         * tests/test-mkfifoat.c (main): Likewise.
56586         * tests/test-mknod.c (main): Likewise.
56587         * tests/test-readlink.c (main): Likewise.
56588         * tests/test-remove.c (main): Likewise.
56589         * tests/test-rename.c (main): Likewise.
56590         * tests/test-renameat.c (main): Likewise.
56591         * tests/test-rmdir.c (main): Likewise.
56592         * tests/test-symlink.c (main): Likewise.
56593         * tests/test-symlinkat.c (main): Likewise.
56594         * tests/test-unlink.c (main): Likewise.
56595         * tests/test-unlinkat.c (main): Likewise.
56596         * tests/test-utimens.c (main): Likewise.
56597         * tests/test-utimensat.c (main): Likewise.
56598         * modules/areadlink-tests (Depends-on): Add ignore-value.
56599         * modules/areadlink-with-size-tests (Depends-on): Likewise.
56600         * modules/areadlinkat-tests (Depends-on): Likewise.
56601         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
56602         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
56603         * modules/canonicalize-tests (Depends-on): Likewise.
56604         * modules/chown-tests (Depends-on): Likewise.
56605         * modules/fdutimensat-tests (Depends-on): Likewise.
56606         * modules/futimens-tests (Depends-on): Likewise.
56607         * modules/lchown-tests (Depends-on): Likewise.
56608         * modules/link-tests (Depends-on): Likewise.
56609         * modules/linkat-tests (Depends-on): Likewise.
56610         * modules/lstat-tests (Depends-on): Likewise.
56611         * modules/mkdir-tests (Depends-on): Likewise.
56612         * modules/mkfifo-tests (Depends-on): Likewise.
56613         * modules/mkfifoat-tests (Depends-on): Likewise.
56614         * modules/mknod-tests (Depends-on): Likewise.
56615         * modules/openat-tests (Depends-on): Likewise.
56616         * modules/readlink-tests (Depends-on): Likewise.
56617         * modules/remove-tests (Depends-on): Likewise.
56618         * modules/rename-tests (Depends-on): Likewise.
56619         * modules/renameat-tests (Depends-on): Likewise.
56620         * modules/rmdir-tests (Depends-on): Likewise.
56621         * modules/symlink-tests (Depends-on): Likewise.
56622         * modules/symlinkat-tests (Depends-on): Likewise.
56623         * modules/unlink-tests (Depends-on): Likewise.
56624         * modules/utimens-tests (Depends-on): Likewise.
56625         * modules/utimensat-tests (Depends-on): Likewise.
56627 2010-01-31  Bruno Haible  <bruno@clisp.org>
56629         Perform the same test for many <math.h> functions.
56630         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
56631         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
56632         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
56633         of gl_MATHFUNC.
56634         * modules/acos (configure.ac): Likewise.
56635         * modules/asin (configure.ac): Likewise.
56636         * modules/atan (configure.ac): Likewise.
56637         * modules/atan2 (configure.ac): Likewise.
56638         * modules/cbrt (configure.ac): Likewise.
56639         * modules/copysign (configure.ac): Likewise.
56640         * modules/cos (configure.ac): Likewise.
56641         * modules/cosh (configure.ac): Likewise.
56642         * modules/erf (configure.ac): Likewise.
56643         * modules/erfc (configure.ac): Likewise.
56644         * modules/exp (configure.ac): Likewise.
56645         * modules/fmod (configure.ac): Likewise.
56646         * modules/hypot (configure.ac): Likewise.
56647         * modules/j0 (configure.ac): Likewise.
56648         * modules/j1 (configure.ac): Likewise.
56649         * modules/jn (configure.ac): Likewise.
56650         * modules/lgamma (configure.ac): Likewise.
56651         * modules/log (configure.ac): Likewise.
56652         * modules/log10 (configure.ac): Likewise.
56653         * modules/log1p (configure.ac): Likewise.
56654         * modules/pow (configure.ac): Likewise.
56655         * modules/remainder (configure.ac): Likewise.
56656         * modules/sin (configure.ac): Likewise.
56657         * modules/sinh (configure.ac): Likewise.
56658         * modules/tan (configure.ac): Likewise.
56659         * modules/tanh (configure.ac): Likewise.
56660         * modules/y0 (configure.ac): Likewise.
56661         * modules/y1 (configure.ac): Likewise.
56662         * modules/yn (configure.ac): Likewise.
56663         Suggested by Paolo Bonzini.
56665 2010-01-31  Bruno Haible  <bruno@clisp.org>
56667         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
56669 2010-01-31  Bruno Haible  <bruno@clisp.org>
56671         Work around getdelim() bug on FreeBSD 8.0.
56672         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
56673         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
56674         not work.
56675         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
56676         is 1.
56677         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
56678         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
56679         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
56680         a non-zero size.
56681         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
56683 2010-01-31  Bruno Haible  <bruno@clisp.org>
56685         Work around getline() bug on FreeBSD 8.0.
56686         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
56687         and a non-zero size.
56688         * tests/test-getline.c (main): Likewise.
56689         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
56690         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
56692 2010-01-28  Eric Blake  <ebb9@byu.net>
56694         regex: fix build failure
56695         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
56696         platforms.
56698 2010-01-28  Jim Meyering  <meyering@redhat.com>
56700         regex: do not ignore memory allocation failure
56701         * lib/regex_internal.c (create_cd_newstate): Detect
56702         re_node_set_init_copy failure.   Extracted from glibc commit
56703         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56705         regex: sync more white-space changes from libc
56706         * lib/regex_internal.c: White-space only changes.
56707         * lib/regexec.c: Likewise.
56709         regex: add many uses of __attribute_warn_unused_result__
56710         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
56711         * lib/regexec.c: Likewise.
56712         Extracted from a messy glibc commit.
56714         regcomp.c: spelling and merge-artifact from glibc
56715         * lib/regcomp.c: Merge remainder of glibc's
56716         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56718         regcomp.c: sync white-space changes from glibc
56719         * lib/regcomp.c: Merge to accommodate white space
56720         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
56722         regcomp.c: do not ignore internal return values
56723         * lib/regcomp.c: Do not ignore internal return values.
56724         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
56725         but without its white-space changes and spelling fixes.
56727         regex_internal.h: define __attribute_warn_unused_result__
56728         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
56730         maint: add a syntax-check rule to check for vulnerable Makefile.in
56731         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
56733 2010-01-27  Jim Meyering  <meyering@redhat.com>
56735         ncftpput-ftp: clean up spaces
56736         * build-aux/ncftpput-ftp: Make Copyright line consistent.
56737         Remove trailing blanks.
56739 2010-01-27  Simon Josefsson  <simon@josefsson.org>
56741         * build-aux/git-version-gen: Fix copyright statement.
56742         * build-aux/gnupload: Likewise.
56743         * tests/test-arcfour.c: Likewise.
56744         * tests/test-arctwo.c: Likewise.
56745         * tests/test-count-one-bits.c: Likewise.
56746         * tests/test-crc.c: Likewise.
56747         * tests/test-des.c: Likewise.
56748         * tests/test-gc-arcfour.c: Likewise.
56749         * tests/test-gc-arctwo.c: Likewise.
56750         * tests/test-gc-des.c: Likewise.
56751         * tests/test-gc-hmac-md5.c: Likewise.
56752         * tests/test-gc-hmac-sha1.c: Likewise.
56753         * tests/test-gc-md2.c: Likewise.
56754         * tests/test-gc-md4.c: Likewise.
56755         * tests/test-gc-md5.c: Likewise.
56756         * tests/test-gc-pbkdf2-sha1.c: Likewise.
56757         * tests/test-gc-rijndael.c: Likewise.
56758         * tests/test-gc-sha1.c: Likewise.
56759         * tests/test-gc.c: Likewise.
56760         * tests/test-gethostname.c: Likewise.
56761         * tests/test-gettimeofday.c: Likewise.
56762         * tests/test-hash.c: Likewise.
56763         * tests/test-hmac-md5.c: Likewise.
56764         * tests/test-hmac-sha1.c: Likewise.
56765         * tests/test-md2.c: Likewise.
56766         * tests/test-md4.c: Likewise.
56767         * tests/test-md5.c: Likewise.
56768         * tests/test-memchr.c: Likewise.
56769         * tests/test-memchr2.c: Likewise.
56770         * tests/test-memcmp.c: Likewise.
56771         * tests/test-memmem.c: Likewise.
56772         * tests/test-memrchr.c: Likewise.
56773         * tests/test-rawmemchr.c: Likewise.
56774         * tests/test-read-file.c: Likewise.
56775         * tests/test-rijndael.c: Likewise.
56776         * tests/test-sockets.c: Likewise.
56777         * tests/test-strchrnul.c: Likewise.
56778         * tests/test-strstr.c: Likewise.
56779         * tests/test-strtod.c: Likewise.
56780         * build-aux/ncftpput-ftp: Likewise.
56782 2010-01-26  Eric Blake  <ebb9@byu.net>
56784         ignore-value: update recommended header name
56785         * modules/ignore-value (Include): Only use <> for headers that
56786         exist in glibc.
56788 2010-01-26  Jim Meyering  <meyering@redhat.com>
56790         test-userspec.c: avoid compiler warnings
56791         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
56792         and "initialization discards qualifiers..." warnings.
56793         Put the first "uid" in its own scope, and make char* members "const".
56795 2010-01-25  Bruno Haible  <bruno@clisp.org>
56797         gnulib-tool: Make warning diagnostics consistent.
56798         * gnulib-tool (func_warning): New function.
56799         Use it everywhere where gnulib-tool produces output to stderr and it is
56800         not a fatal error.
56802 2010-01-25  Bruno Haible  <bruno@clisp.org>
56804         Fix test dependencies.
56805         * modules/xstrtol-tests (Depends-on): Add inttypes.
56806         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
56808 2010-01-25  Pádraig Brady  <P@draigBrady.com>
56810         syntax-check: detect incorrect boolean macro values in config.h
56811         * modules/maintainer-makefile (configure.ac): Parameterize the location
56812         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
56813         The logic is from Eric Blake and the location indicated by Jim Meyering.
56814         Note the more natural CONFIG_HEADER name is prohibited by automake
56815         for backwards compatibility reasons.
56816         * top/maint.mk (sc_Wundef_boolean): New rule.
56818 2010-01-25  Jim Meyering  <meyering@redhat.com>
56820         bootstrap: detect MacOS 10.6's shasum, too
56821         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
56822         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
56824 2010-01-23  Jim Meyering  <meyering@redhat.com>
56826         xstrtoll: new module
56827         * modules/xstrtoll: New file.
56828         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
56829         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
56830         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
56831         ./configure fails if you use this module and lack "long long".
56832         * modules/xstrtoll-tests: New module.
56833         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
56834         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
56835         new init.sh-based test framework.
56837 2010-01-24  Bruno Haible  <bruno@clisp.org>
56839         Tests for module 'yn'.
56840         * modules/yn-tests: New file.
56841         * tests/test-yn.c: New file.
56843         Tests for module 'y1'.
56844         * modules/y1-tests: New file.
56845         * tests/test-y1.c: New file.
56847         Tests for module 'y0'.
56848         * modules/y0-tests: New file.
56849         * tests/test-y0.c: New file.
56851         Tests for module 'tanh'.
56852         * modules/tanh-tests: New file.
56853         * tests/test-tanh.c: New file.
56855         Tests for module 'tan'.
56856         * modules/tan-tests: New file.
56857         * tests/test-tan.c: New file.
56859         Tests for module 'sqrt'.
56860         * modules/sqrt-tests: New file.
56861         * tests/test-sqrt.c: New file.
56863         Tests for module 'sinh'.
56864         * modules/sinh-tests: New file.
56865         * tests/test-sinh.c: New file.
56867         Tests for module 'sin'.
56868         * modules/sin-tests: New file.
56869         * tests/test-sin.c: New file.
56871         Tests for module 'rint'.
56872         * modules/rint-tests: New file.
56873         * tests/test-rint.c: New file.
56875         Tests for module 'remainder'.
56876         * modules/remainder-tests: New file.
56877         * tests/test-remainder.c: New file.
56879         Tests for module 'pow'.
56880         * modules/pow-tests: New file.
56881         * tests/test-pow.c: New file.
56883         Tests for module 'nextafter'.
56884         * modules/nextafter-tests: New file.
56885         * tests/test-nextafter.c: New file.
56887         Tests for module 'modf'.
56888         * modules/modf-tests: New file.
56889         * tests/test-modf.c: New file.
56891         Tests for module 'logb'.
56892         * modules/logb-tests: New file.
56893         * tests/test-logb.c: New file.
56895         Tests for module 'log1p'.
56896         * modules/log1p-tests: New file.
56897         * tests/test-log1p.c: New file.
56899         Tests for module 'log10'.
56900         * modules/log10-tests: New file.
56901         * tests/test-log10.c: New file.
56903         Tests for module 'log'.
56904         * modules/log-tests: New file.
56905         * tests/test-log.c: New file.
56907         Tests for module 'lgamma'.
56908         * modules/lgamma-tests: New file.
56909         * tests/test-lgamma.c: New file.
56911         Tests for module 'ldexp'.
56912         * modules/ldexp-tests: New file.
56913         * tests/test-ldexp.c: New file.
56915         Tests for module 'jn'.
56916         * modules/jn-tests: New file.
56917         * tests/test-jn.c: New file.
56919         Tests for module 'j1'.
56920         * modules/j1-tests: New file.
56921         * tests/test-j1.c: New file.
56923         Tests for module 'j0'.
56924         * modules/j0-tests: New file.
56925         * tests/test-j0.c: New file.
56927         Tests for module 'hypot'.
56928         * modules/hypot-tests: New file.
56929         * tests/test-hypot.c: New file.
56931         Tests for module 'fmod'.
56932         * modules/fmod-tests: New file.
56933         * tests/test-fmod.c: New file.
56935         Tests for module 'fabs'.
56936         * modules/fabs-tests: New file.
56937         * tests/test-fabs.c: New file.
56939         Tests for module 'exp'.
56940         * modules/exp-tests: New file.
56941         * tests/test-exp.c: New file.
56943         Tests for module 'erfc'.
56944         * modules/erfc-tests: New file.
56945         * tests/test-erfc.c: New file.
56947         Tests for module 'erf'.
56948         * modules/erf-tests: New file.
56949         * tests/test-erf.c: New file.
56951         Tests for module 'cosh'.
56952         * modules/cosh-tests: New file.
56953         * tests/test-cosh.c: New file.
56955         Tests for module 'cos'.
56956         * modules/cos-tests: New file.
56957         * tests/test-cos.c: New file.
56959         Tests for module 'copysign'.
56960         * modules/copysign-tests: New file.
56961         * tests/test-copysign.c: New file.
56963         Tests for module 'cbrt'.
56964         * modules/cbrt-tests: New file.
56965         * tests/test-cbrt.c: New file.
56967         Tests for module 'atan2'.
56968         * modules/atan2-tests: New file.
56969         * tests/test-atan2.c: New file.
56971         Tests for module 'atan'.
56972         * modules/atan-tests: New file.
56973         * tests/test-atan.c: New file.
56975         Tests for module 'asin'.
56976         * modules/asin-tests: New file.
56977         * tests/test-asin.c: New file.
56979         Tests for module 'acos'.
56980         * modules/acos-tests: New file.
56981         * tests/test-acos.c: New file.
56983 2010-01-24  Bruno Haible  <bruno@clisp.org>
56985         Fix tests for common <math.h> functions.
56986         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
56987         code snippet that references the function pointer, rather than merely
56988         calling the function. Substitute the FUNC_LIBM variable.
56989         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
56990         * modules/acos (configure.ac): Likewise.
56991         * modules/asin (configure.ac): Likewise.
56992         * modules/atan (configure.ac): Likewise.
56993         * modules/atan2 (configure.ac): Likewise.
56994         * modules/cbrt (configure.ac): Likewise.
56995         * modules/copysign (configure.ac): Likewise.
56996         * modules/cos (configure.ac): Likewise.
56997         * modules/cosh (configure.ac): Likewise.
56998         * modules/erf (configure.ac): Likewise.
56999         * modules/erfc (configure.ac): Likewise.
57000         * modules/exp (configure.ac): Likewise.
57001         * modules/fabs (configure.ac): Likewise.
57002         * modules/fmod (configure.ac): Likewise.
57003         * modules/hypot (configure.ac): Likewise.
57004         * modules/j0 (configure.ac): Likewise.
57005         * modules/j1 (configure.ac): Likewise.
57006         * modules/jn (configure.ac): Likewise.
57007         * modules/ldexp (configure.ac): Likewise.
57008         * modules/lgamma (configure.ac): Likewise.
57009         * modules/log (configure.ac): Likewise.
57010         * modules/log10 (configure.ac): Likewise.
57011         * modules/log1p (configure.ac): Likewise.
57012         * modules/logb (configure.ac): Likewise.
57013         * modules/modf (configure.ac): Likewise.
57014         * modules/nextafter (configure.ac): Likewise.
57015         * modules/pow (configure.ac): Likewise.
57016         * modules/remainder (configure.ac): Likewise.
57017         * modules/rint (configure.ac): Likewise.
57018         * modules/sin (configure.ac): Likewise.
57019         * modules/sinh (configure.ac): Likewise.
57020         * modules/tan (configure.ac): Likewise.
57021         * modules/tanh (configure.ac): Likewise.
57022         * modules/y0 (configure.ac): Likewise.
57023         * modules/y1 (configure.ac): Likewise.
57024         * modules/yn (configure.ac): Likewise.
57026 2010-01-24  Bruno Haible  <bruno@clisp.org>
57028         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
57029         * tests/test-acosl.c (x): New variable.
57030         (main): Store argument in x and fetch it from x.
57031         * tests/test-asinl.c (x): New variable.
57032         (main): Store argument in x and fetch it from x.
57033         * tests/test-atanl.c (x): New variable.
57034         (main): Store argument in x and fetch it from x.
57035         * tests/test-cosl.c (x): New variable.
57036         (main): Store argument in x and fetch it from x.
57037         * tests/test-expl.c (x): New variable.
57038         (main): Store argument in x and fetch it from x.
57039         * tests/test-logl.c (x): New variable.
57040         (main): Store argument in x and fetch it from x.
57041         * tests/test-sinl.c (x): New variable.
57042         (main): Store argument in x and fetch it from x.
57043         * tests/test-sqrtl.c (x): New variable.
57044         (main): Store argument in x and fetch it from x.
57045         * tests/test-tanl.c (x): New variable.
57046         (main): Store argument in x and fetch it from x.
57048 2010-01-24  Bruno Haible  <bruno@clisp.org>
57050         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
57051         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
57052         assignments to the initial TESTS_ENVIRONMENT.
57053         * doc/gnulib.texi (Unit test modules): Document it.
57054         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
57055         TESTS_ENVIRONMENT.
57056         * modules/btowc-tests (Makefile.am): Likewise.
57057         * modules/c-stack-tests (Makefile.am): Likewise.
57058         * modules/c-strcase-tests (Makefile.am): Likewise.
57059         * modules/copy-file-tests (Makefile.am): Likewise.
57060         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
57061         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
57062         * modules/mbrtowc-tests (Makefile.am): Likewise.
57063         * modules/mbscasecmp-tests (Makefile.am): Likewise.
57064         * modules/mbscasestr-tests (Makefile.am): Likewise.
57065         * modules/mbschr-tests (Makefile.am): Likewise.
57066         * modules/mbscspn-tests (Makefile.am): Likewise.
57067         * modules/mbsinit-tests (Makefile.am): Likewise.
57068         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
57069         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
57070         * modules/mbspbrk-tests (Makefile.am): Likewise.
57071         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
57072         * modules/mbsrchr-tests (Makefile.am): Likewise.
57073         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
57074         * modules/mbsspn-tests (Makefile.am): Likewise.
57075         * modules/mbsstr-tests (Makefile.am): Likewise.
57076         * modules/nl_langinfo-tests (Makefile.am): Likewise.
57077         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
57078         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
57079         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
57080         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
57081         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
57082         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
57083         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
57084         * modules/wcrtomb-tests (Makefile.am): Likewise.
57085         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
57086         * modules/wcsrtombs-tests (Makefile.am): Likewise.
57087         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
57088         assignments from TESTS_ENVIRONMENT.
57089         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
57090         augmentation.
57091         * modules/argp-version-etc-tests (Makefile.am): Likewise.
57092         * modules/atexit-tests (Makefile.am): Likewise.
57093         * modules/binary-io-tests (Makefile.am): Likewise.
57094         * modules/closein-tests (Makefile.am): Likewise.
57095         * modules/dprintf-posix-tests (Makefile.am): Likewise.
57096         * modules/exclude-tests (Makefile.am): Likewise.
57097         * modules/fflush-tests (Makefile.am): Likewise.
57098         * modules/fpending-tests (Makefile.am): Likewise.
57099         * modules/fprintf-posix-tests (Makefile.am): Likewise.
57100         * modules/freadahead-tests (Makefile.am): Likewise.
57101         * modules/freadptr-tests (Makefile.am): Likewise.
57102         * modules/freadseek-tests (Makefile.am): Likewise.
57103         * modules/fseek-tests (Makefile.am): Likewise.
57104         * modules/fseeko-tests (Makefile.am): Likewise.
57105         * modules/ftell-tests (Makefile.am): Likewise.
57106         * modules/ftello-tests (Makefile.am): Likewise.
57107         * modules/idpriv-drop-tests (Makefile.am): Likewise.
57108         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
57109         * modules/lseek-tests (Makefile.am): Likewise.
57110         * modules/parse-duration-tests (Makefile.am): Likewise.
57111         * modules/perror-tests (Makefile.am): Likewise.
57112         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
57113         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
57114         * modules/pipe-tests (Makefile.am): Likewise.
57115         * modules/pread-tests (Makefile.am): Likewise.
57116         * modules/printf-posix-tests (Makefile.am): Likewise.
57117         * modules/select-tests (Makefile.am): Likewise.
57118         * modules/sigpipe-tests (Makefile.am): Likewise.
57119         * modules/tsearch-tests (Makefile.am): Likewise.
57120         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
57121         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
57122         * modules/uniname/uniname-tests (Makefile.am): Likewise.
57123         * modules/uniwidth/width-tests (Makefile.am): Likewise.
57124         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
57125         * modules/version-etc-tests (Makefile.am): Likewise.
57126         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
57127         * modules/vprintf-posix-tests (Makefile.am): Likewise.
57128         * modules/xalloc-die-tests (Makefile.am): Likewise.
57129         * modules/xprintf-posix-tests (Makefile.am): Likewise.
57130         * modules/xstrtoimax-tests (Makefile.am): Likewise.
57131         * modules/xstrtol-tests (Makefile.am): Likewise.
57132         * modules/xstrtoumax-tests (Makefile.am): Likewise.
57133         * modules/yesno-tests (Makefile.am): Likewise.
57134         Suggested by Jim Meyering.
57136 2010-01-24  Bruno Haible  <bruno@clisp.org>
57138         More documentation.
57139         * doc/gnulib.texi (Writing modules): New chapter.
57140         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
57141         the new chapter.
57143 2010-01-24  Jim Meyering  <meyering@redhat.com>
57145         maint.mk: do not prepend "./" after filtering
57146         * top/maint.mk (_prepend_srcdir_prefix): New variable
57147         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
57148         "./" when $(srcdir) is ".".
57150         define STREQ(a,b) consistently, removing useless parentheses
57151         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
57152         since the only risk is that "a" or "b" contains an unparenthesized
57153         comma, but if either did that, STREQ would have 3 or more arguments.
57154         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
57155         * lib/fts.c (STREQ): Remove unnecessary parentheses.
57156         * lib/hash-triple.c (STREQ): Likewise.
57157         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
57158         * lib/getugroups.c (STREQ): Likewise.
57160 2010-01-23  Jim Meyering  <meyering@redhat.com>
57162         maint.mk: fix syntax-check in a non-srcdir build directory
57163         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
57164         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
57166 2010-01-22  Jim Meyering  <meyering@redhat.com>
57168         userspec: add unit tests
57169         * tests/test-userspec.c: New file.
57170         * modules/userspec-tests: Likewise.
57172 2010-01-21  Jim Meyering  <meyering@redhat.com>
57174         maint.mk: handle source file names containing "." robustly
57175         * top/maint.mk (_dot_escaped_srcdir): Define.
57176         (VC_LIST): Use it in LHS of sed substitution.
57178 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
57180         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
57181         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
57182         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
57183         from a non-srcdir build.
57185 2010-01-20  Eric Blake  <ebb9@byu.net>
57187         warn-on-use: use instead of link-warning
57188         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
57189         * modules/unistd (Depends-on, Makefile.am): Likewise.
57190         * modules/arpa_inet (Depends-on): Replace link-warning with
57191         warn-on-use.
57192         (Makefile.am): Update rules accordingly.
57193         * modules/ctype (Depends-on, Makefile.am): Likewise.
57194         * modules/dirent (Depends-on, Makefile.am): Likewise.
57195         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
57196         * modules/inttypes (Depends-on, Makefile.am): Likewise.
57197         * modules/langinfo (Depends-on, Makefile.am): Likewise.
57198         * modules/locale (Depends-on, Makefile.am): Likewise.
57199         * modules/math (Depends-on, Makefile.am): Likewise.
57200         * modules/search (Depends-on, Makefile.am): Likewise.
57201         * modules/signal (Depends-on, Makefile.am): Likewise.
57202         * modules/spawn (Depends-on, Makefile.am): Likewise.
57203         * modules/stdlib (Depends-on, Makefile.am): Likewise.
57204         * modules/string (Depends-on, Makefile.am): Likewise.
57205         * modules/strings (Depends-on, Makefile.am): Likewise.
57206         * modules/sys_file (Depends-on, Makefile.am): Likewise.
57207         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
57208         * modules/sys_select (Depends-on, Makefile.am): Likewise.
57209         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
57210         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
57211         * modules/sys_times (Depends-on, Makefile.am): Likewise.
57212         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
57213         * modules/wchar (Depends-on, Makefile.am): Likewise.
57214         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
57215         should be poisoned.
57216         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
57217         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
57218         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
57219         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57220         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
57221         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
57222         * m4/math_h.m4 (gl_MATH_H): Likewise.
57223         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
57224         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
57225         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
57226         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
57227         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
57228         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
57229         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
57230         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
57231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
57232         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57233         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
57235         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
57236         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
57237         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
57238         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
57239         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
57240         GL_LINK_WARNING.
57241         * lib/ctype.in.h: Likewise.
57242         * lib/dirent.in.h: Likewise.
57243         * lib/fcntl.in.h: Likewise.
57244         * lib/inttypes.in.h: Likewise.
57245         * lib/langinfo.in.h: Likewise.
57246         * lib/locale.in.h: Likewise.
57247         * lib/math.in.h: Likewise.
57248         * lib/search.in.h: Likewise.
57249         * lib/signal.in.h: Likewise.
57250         * lib/spawn.in.h: Likewise.
57251         * lib/stdio.in.h: Likewise.
57252         * lib/stdlib.in.h: Likewise.
57253         * lib/string.in.h: Likewise.
57254         * lib/strings.in.h: Likewise.
57255         * lib/sys_file.in.h: Likewise.
57256         * lib/sys_ioctl.in.h: Likewise.
57257         * lib/sys_select.in.h: Likewise.
57258         * lib/sys_socket.in.h: Likewise.
57259         * lib/sys_stat.in.h: Likewise.
57260         * lib/sys_times.in.h: Likewise.
57261         * lib/sys_utsname.in.h: Likewise.
57262         * lib/unistd.in.h: Likewise.
57263         * lib/wchar.in.h: Likewise.
57265 2010-01-20  Bruno Haible  <bruno@clisp.org>
57267         Avoid duplicate -lm.
57268         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
57269         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
57270         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
57271         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
57272         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
57273         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
57274         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
57275         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
57276         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
57277         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
57278         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
57279         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
57280         Reported by Paolo Bonzini.
57282 2010-01-19  Bruno Haible  <bruno@clisp.org>
57284         langinfo, nl_langinfo: Relicense under LGPLv2+.
57285         * modules/langinfo (License): Change to LGPLv2+.
57286         * modules/nl_langinfo (License): Likewise.
57287         Patch by David Lutterkort <lutter@redhat.com>.
57289 2010-01-19  Bruno Haible  <bruno@clisp.org>
57291         Avoid compilation error with cc on OSF/1 5.1.
57292         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
57293         statement, not before.
57294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57296 2010-01-18  Bruno Haible  <bruno@clisp.org>
57298         Avoid a link error due to the __printf__ symbol.
57299         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
57300         and 2.6.x.
57301         (__format__, __printf__): Remove definitions.
57302         * lib/argp-fmtstream.h: Likewise.
57303         * lib/argp.h: Likewise.
57304         * lib/error.h: Likewise.
57305         * lib/vasnprintf.h: Likewise.
57306         * lib/xprintf.h: Likewise.
57307         * lib/xvasprintf.h: Likewise.
57308         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57310 2010-01-18  Bruno Haible  <bruno@clisp.org>
57312         Tests for module 'tanl'.
57313         * modules/tanl-tests: New file.
57314         * tests/test-tanl.c: New file.
57316         Tests for module 'sqrtl'.
57317         * modules/sqrtl-tests: New file.
57318         * tests/test-sqrtl.c: New file.
57320         Tests for module 'sinl'.
57321         * modules/sinl-tests: New file.
57322         * tests/test-sinl.c: New file.
57324         Tests for module 'logl'.
57325         * modules/logl-tests: New file.
57326         * tests/test-logl.c: New file.
57328         Tests for module 'expl'.
57329         * modules/expl-tests: New file.
57330         * tests/test-expl.c: New file.
57332         Tests for module 'cosl'.
57333         * modules/cosl-tests: New file.
57334         * tests/test-cosl.c: New file.
57336         Tests for module 'atanl'.
57337         * modules/atanl-tests: New file.
57338         * tests/test-atanl.c: New file.
57340         Tests for module 'asinl'.
57341         * modules/asinl-tests: New file.
57342         * tests/test-asinl.c: New file.
57344         Tests for module 'acosl'.
57345         * modules/acosl-tests: New file.
57346         * tests/test-acosl.c: New file.
57348         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57349         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
57350         tanl): Use the standard gnulib idiom.
57351         * lib/cosl.c: Don't include trigl.c and sincosl.c.
57352         * lib/sinl.c: Likewise.
57353         * lib/tanl.c: Don't include trigl.c.
57354         (kernel_tanl): Make static.
57355         * lib/sincosl.c: Include trigl.h first.
57356         * lib/trigl.c: Likewise.
57357         * m4/acosl.m4: New file.
57358         * m4/asinl.m4: New file.
57359         * m4/atanl.m4: New file.
57360         * m4/cosl.m4: New file.
57361         * m4/expl.m4: New file.
57362         * m4/logl.m4: New file.
57363         * m4/sinl.m4: New file.
57364         * m4/sqrtl.m4: New file.
57365         * m4/tanl.m4: New file.
57366         * m4/mathl.m4: Remove file.
57367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
57368         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
57369         Don't initialize GNULIB_MATHL.
57370         * modules/acosl: New file.
57371         * modules/asinl: New file.
57372         * modules/atanl: New file.
57373         * modules/cosl: New file.
57374         * modules/expl: New file.
57375         * modules/logl: New file.
57376         * modules/sinl: New file.
57377         * modules/sqrtl: New file.
57378         * modules/tanl: New file.
57379         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
57380         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
57381         substitute GNULIB_MATHL.
57382         * modules/mathl: Rewritten.
57383         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
57384         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
57385         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
57386         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
57387         * doc/posix-functions/expl.texi: Mention the 'expl' module.
57388         * doc/posix-functions/logl.texi: Mention the 'logl' module.
57389         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
57390         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
57391         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
57393 2010-01-18  Bruno Haible  <bruno@clisp.org>
57395         sqrt: Make gl_FUNC_SQRT requirable.
57396         * m4/sqrt.m4: New file.
57397         * modules/sqrt (Files): Add it.
57398         (configure.ac): Invoke gl_FUNC_SQRT.
57400 2010-01-18  Bruno Haible  <bruno@clisp.org>
57402         New modules for common <math.h> functions.
57403         * m4/mathfunc.m4: New file.
57404         * modules/acos: New file.
57405         * modules/asin: New file.
57406         * modules/atan: New file.
57407         * modules/atan2: New file.
57408         * modules/cbrt: New file.
57409         * modules/copysign: New file.
57410         * modules/cos: New file.
57411         * modules/cosh: New file.
57412         * modules/erf: New file.
57413         * modules/erfc: New file.
57414         * modules/exp: New file.
57415         * modules/fabs: New file.
57416         * modules/fmod: New file.
57417         * modules/hypot: New file.
57418         * modules/j0: New file.
57419         * modules/j1: New file.
57420         * modules/jn: New file.
57421         * modules/ldexp: New file.
57422         * modules/lgamma: New file.
57423         * modules/log: New file.
57424         * modules/log10: New file.
57425         * modules/log1p: New file.
57426         * modules/logb: New file.
57427         * modules/modf: New file.
57428         * modules/nextafter: New file.
57429         * modules/pow: New file.
57430         * modules/remainder: New file.
57431         * modules/rint: New file.
57432         * modules/sin: New file.
57433         * modules/sinh: New file.
57434         * modules/sqrt: New file.
57435         * modules/tan: New file.
57436         * modules/tanh: New file.
57437         * modules/y0: New file.
57438         * modules/y1: New file.
57439         * modules/yn: New file.
57440         * doc/posix-functions/acos.texi: Mention the 'acos' module.
57441         * doc/posix-functions/asin.texi: Mention the 'asin' module.
57442         * doc/posix-functions/atan.texi: Mention the 'atan' module.
57443         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
57444         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
57445         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
57446         * doc/posix-functions/cos.texi: Mention the 'cos' module.
57447         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
57448         * doc/posix-functions/erf.texi: Mention the 'erf' module.
57449         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
57450         * doc/posix-functions/exp.texi: Mention the 'exp' module.
57451         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
57452         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
57453         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
57454         * doc/posix-functions/j0.texi: Mention the 'j0' module.
57455         * doc/posix-functions/j1.texi: Mention the 'j1' module.
57456         * doc/posix-functions/jn.texi: Mention the 'jn' module.
57457         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
57458         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
57459         * doc/posix-functions/log.texi: Mention the 'log' module.
57460         * doc/posix-functions/log10.texi: Mention the 'log10' module.
57461         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
57462         * doc/posix-functions/logb.texi: Mention the 'logb' module.
57463         * doc/posix-functions/modf.texi: Mention the 'modf' module.
57464         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
57465         * doc/posix-functions/pow.texi: Mention the 'pow' module.
57466         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
57467         * doc/posix-functions/rint.texi: Mention the 'rint' module.
57468         * doc/posix-functions/sin.texi: Mention the 'sin' module.
57469         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
57470         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
57471         * doc/posix-functions/tan.texi: Mention the 'tan' module.
57472         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
57473         * doc/posix-functions/y0.texi: Mention the 'y0' module.
57474         * doc/posix-functions/y1.texi: Mention the 'y1' module.
57475         * doc/posix-functions/yn.texi: Mention the 'yn' module.
57477 2010-01-18  Jim Meyering  <meyering@redhat.com>
57479         ignore-value: relax license to LGPLv2+
57480         * modules/ignore-value (License): Relax to LGPLv2+.
57482         getdate: don't leak when TZ contains two or more '"'s
57483         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
57484         double quote in TZ after the first one.
57486         readtokens: do not leak internal token_lengths buffer
57487         * lib/readtokens.c (readtokens): Free the local, lengths,
57488         when the supplied "token_lengths" parameter is NULL.
57490 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57492         Fix a couple of missing LIBTHREAD link failures on AIX.
57493         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
57494         $(LIBTHREAD).
57495         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
57497         Link test-poll against INET_PTON_LIB.
57498         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
57499         for inet_pton on Solaris 10.
57501 2010-01-17  Bruno Haible  <bruno@clisp.org>
57503         unistdio/*-sprintf: Fix typo in module description.
57504         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
57505         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
57506         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
57507         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
57508         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
57509         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
57510         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
57511         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57513 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57515         gnulib-tool: fix filelist for AIX, HP-UX ksh.
57516         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
57517         variables in shell case patterns, for AIX and HP-UX ksh.
57519         Split large sed scripts, for HP-UX sed.
57520         * modules/stdio: Split sed scripts around 50 sed commands,
57521         to avoid HP-UX limit of 99 commands, in the near future.
57522         * modules/string: Likewise.
57523         * modules/unistd: Likewise.
57525         gnulib-tool: avoid writing in the current directory.
57526         * gnulib-tool (func_emit_lib_Makefile_am)
57527         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
57528         not in the current directory, so concurrent gnulib-tool
57529         instances do not interfere.
57531 2010-01-16  Jim Meyering  <meyering@redhat.com>
57533         doc: update users.txt
57534         * users.txt: Add grep.
57535         (diffutils, gzip): Update URLs.
57537 2010-01-12  Bruno Haible  <bruno@clisp.org>
57539         posix_spawn: Avoid test failure on Cygwin.
57540         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
57541         characters.
57542         Reported by Simon Josefsson.
57544 2010-01-12  Bruno Haible  <bruno@clisp.org>
57546         * tests/test-cond.c (main): When skipping the test, show the reason.
57548 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57550         * lib/striconv.c (str_cd_iconv): Avoid if before free.
57552 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57554         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
57555         VC_LIST_ALWAYS_EXCLUDE_REGEX.
57557 2010-01-12  Eric Blake  <ebb9@byu.net>
57559         build: guarantee AS_VAR_IF
57560         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
57561         (gl_AS_VAR_IF): Move...
57562         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
57563         Reported by Simon Josefsson.
57565 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57567         * lib/stdio.in.h: Fix typo.
57569 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57571         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
57572         libgpg-error.
57574 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57576         * tests/test-xalloc-die.sh: Use $EXEEXT.
57578 2010-01-12  Simon Josefsson  <simon@josefsson.org>
57579             Bruno Haible  <bruno@clisp.org>
57581         getlogin, getlogin_r: Avoid test failure.
57582         * tests/test-getlogin.c: Include <stdio.h>.
57583         (main): Skip the test when the function fails because stdin is not a
57584         tty.
57585         * tests/test-getlogin_r.c: Include <stdio.h>.
57586         (main): Skip the test when the function fails because stdin is not a
57587         tty.
57589 2010-01-11  Eric Blake  <ebb9@byu.net>
57591         tests: avoid more large file warnings
57592         * tests/test-fflush.c: Avoid warning about ftell use.
57593         * tests/test-fseek.c: Avoid warning about fseek use.
57595 2010-01-10  Bruno Haible  <bruno@clisp.org>
57597         nproc: Work better on Linux when /proc and /sys are not mounted.
57598         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
57599         as lower bound when, on glibc/Linux systems,
57600         sysconf (_SC_NPROCESSORS_CONF) returns 1.
57601         Suggested by Pádraig Brady <P@draigbrady.com>.
57602         Reported by Dmitry V. Levin <ldv@altlinux.org>.
57604         nproc: Refactor.
57605         * lib/nproc.c (num_processors_via_affinity_mask): New function,
57606         extracted from num_processors.
57607         (num_processors): Call it.
57609 2010-01-11  Jim Meyering  <meyering@redhat.com>
57611         utimecmp: avoid new warning from upcoming gcc-4.5.0
57612         * lib/utimecmp.c (BILLION): Define using #define rather than an
57613         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
57615 2010-01-11  Eric Blake  <ebb9@byu.net>
57617         math: add portability warnings for classification macros
57618         * modules/math (Depends-on): Add warn-on-use.
57619         (Makefile.am): Provide new substitutions.
57620         * m4/math_h.m4 (gl_MATH_H): Require inline.
57621         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
57622         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
57623         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
57624         implement warnings.
57626         unistd: warn on use of environ without module
57627         * modules/unistd (Depends-on): Add warn-on-use.
57628         (Makefile.am): Provide new substitutions.
57629         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
57630         * lib/unistd.in.h (environ): Wrap with a warning helper function.
57632         stdio: warn on suspicious uses
57633         * modules/stdio (Depends-on): Add warn-on-use.
57634         (Makefile.am): Provide new substitutions.
57635         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
57636         fseeko.
57637         * lib/stdio.in.h (gets): Always warn on use.
57638         (fseek, ftell): Adjust when warnings are issued, and honor
57639         _GL_NO_LARGE_FILES as a way to silence the warning.
57640         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
57641         any warning about large file offsets.
57642         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
57643         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
57644         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
57645         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
57646         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
57647         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
57648         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
57649         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
57651         warn-on-use: new module
57652         * modules/warn-on-use: New file.
57653         * build-aux/warn-on-use.h: Likewise.
57654         * m4/warn-on-use.m4: Likewise.
57655         * MODULES.html.sh (Support for building): Mention it.
57657 2010-01-10  Bruno Haible  <bruno@clisp.org>
57659         Tests for module 'unistr/u32-strdup'.
57660         * modules/unistr/u32-strdup-tests: New file.
57661         * tests/unistr/test-u32-strdup.c: New file.
57663         Tests for module 'unistr/u16-strdup'.
57664         * modules/unistr/u16-strdup-tests: New file.
57665         * tests/unistr/test-u16-strdup.c: New file.
57667         Tests for module 'unistr/u8-strdup'.
57668         * modules/unistr/u8-strdup-tests: New file.
57669         * tests/unistr/test-u8-strdup.c: New file.
57670         * tests/unistr/test-strdup.h: New file.
57672         Tests for module 'unistr/u32-strncmp'.
57673         * modules/unistr/u32-strncmp-tests: New file.
57674         * tests/unistr/test-u32-strncmp.c: New file.
57676         Tests for module 'unistr/u16-strncmp'.
57677         * modules/unistr/u16-strncmp-tests: New file.
57678         * tests/unistr/test-u16-strncmp.c: New file.
57680         Tests for module 'unistr/u8-strncmp'.
57681         * modules/unistr/u8-strncmp-tests: New file.
57682         * tests/unistr/test-u8-strncmp.c: New file.
57683         * tests/unistr/test-strncmp.h: New file.
57685         Tests for module 'unistr/u32-strcoll'.
57686         * modules/unistr/u32-strcoll-tests: New file.
57687         * tests/unistr/test-u32-strcoll.c: New file.
57689         Tests for module 'unistr/u16-strcoll'.
57690         * modules/unistr/u16-strcoll-tests: New file.
57691         * tests/unistr/test-u16-strcoll.c: New file.
57693         Tests for module 'unistr/u8-strcoll'.
57694         * modules/unistr/u8-strcoll-tests: New file.
57695         * tests/unistr/test-u8-strcoll.c: New file.
57697         Tests for module 'unistr/u32-strcmp'.
57698         * modules/unistr/u32-strcmp-tests: New file.
57699         * tests/unistr/test-u32-strcmp.c: New file.
57700         * tests/unistr/test-u32-strcmp.h: New file.
57702         Tests for module 'unistr/u16-strcmp'.
57703         * modules/unistr/u16-strcmp-tests: New file.
57704         * tests/unistr/test-u16-strcmp.c: New file.
57705         * tests/unistr/test-u16-strcmp.h: New file.
57707         Tests for module 'unistr/u8-strcmp'.
57708         * modules/unistr/u8-strcmp-tests: New file.
57709         * tests/unistr/test-u8-strcmp.c: New file.
57710         * tests/unistr/test-u8-strcmp.h: New file.
57711         * tests/unistr/test-strcmp.h: New file.
57713         Tests for module 'unistr/u32-strncat'.
57714         * modules/unistr/u32-strncat-tests: New file.
57715         * tests/unistr/test-u32-strncat.c: New file.
57717         Tests for module 'unistr/u16-strncat'.
57718         * modules/unistr/u16-strncat-tests: New file.
57719         * tests/unistr/test-u16-strncat.c: New file.
57721         Tests for module 'unistr/u8-strncat'.
57722         * modules/unistr/u8-strncat-tests: New file.
57723         * tests/unistr/test-u8-strncat.c: New file.
57724         * tests/unistr/test-strncat.h: New file.
57726         Tests for module 'unistr/u32-strcat'.
57727         * modules/unistr/u32-strcat-tests: New file.
57728         * tests/unistr/test-u32-strcat.c: New file.
57730         Tests for module 'unistr/u16-strcat'.
57731         * modules/unistr/u16-strcat-tests: New file.
57732         * tests/unistr/test-u16-strcat.c: New file.
57734         Tests for module 'unistr/u8-strcat'.
57735         * modules/unistr/u8-strcat-tests: New file.
57736         * tests/unistr/test-u8-strcat.c: New file.
57737         * tests/unistr/test-strcat.h: New file.
57739         Tests for module 'unistr/u32-stpncpy'.
57740         * modules/unistr/u32-stpncpy-tests: New file.
57741         * tests/unistr/test-u32-stpncpy.c: New file.
57743         Tests for module 'unistr/u16-stpncpy'.
57744         * modules/unistr/u16-stpncpy-tests: New file.
57745         * tests/unistr/test-u16-stpncpy.c: New file.
57747         Tests for module 'unistr/u8-stpncpy'.
57748         * modules/unistr/u8-stpncpy-tests: New file.
57749         * tests/unistr/test-u8-stpncpy.c: New file.
57750         * tests/unistr/test-stpncpy.h: New file.
57752         Tests for module 'unistr/u32-strncpy'.
57753         * modules/unistr/u32-strncpy-tests: New file.
57754         * tests/unistr/test-u32-strncpy.c: New file.
57756         Tests for module 'unistr/u16-strncpy'.
57757         * modules/unistr/u16-strncpy-tests: New file.
57758         * tests/unistr/test-u16-strncpy.c: New file.
57760         Tests for module 'unistr/u8-strncpy'.
57761         * modules/unistr/u8-strncpy-tests: New file.
57762         * tests/unistr/test-u8-strncpy.c: New file.
57763         * tests/unistr/test-strncpy.h: New file.
57765         Tests for module 'unistr/u32-stpcpy'.
57766         * modules/unistr/u32-stpcpy-tests: New file.
57767         * tests/unistr/test-u32-stpcpy.c: New file.
57769         Tests for module 'unistr/u16-stpcpy'.
57770         * modules/unistr/u16-stpcpy-tests: New file.
57771         * tests/unistr/test-u16-stpcpy.c: New file.
57773         Tests for module 'unistr/u8-stpcpy'.
57774         * modules/unistr/u8-stpcpy-tests: New file.
57775         * tests/unistr/test-u8-stpcpy.c: New file.
57776         * tests/unistr/test-stpcpy.h: New file.
57778         Tests for module 'unistr/u32-strcpy'.
57779         * modules/unistr/u32-strcpy-tests: New file.
57780         * tests/unistr/test-u32-strcpy.c: New file.
57782         Tests for module 'unistr/u16-strcpy'.
57783         * modules/unistr/u16-strcpy-tests: New file.
57784         * tests/unistr/test-u16-strcpy.c: New file.
57786         Tests for module 'unistr/u8-strcpy'.
57787         * modules/unistr/u8-strcpy-tests: New file.
57788         * tests/unistr/test-u8-strcpy.c: New file.
57789         * tests/unistr/test-strcpy.h: New file.
57791         Tests for module 'unistr/u32-strnlen'.
57792         * modules/unistr/u32-strnlen-tests: New file.
57793         * tests/unistr/test-u32-strnlen.c: New file.
57795         Tests for module 'unistr/u16-strnlen'.
57796         * modules/unistr/u16-strnlen-tests: New file.
57797         * tests/unistr/test-u16-strnlen.c: New file.
57799         Tests for module 'unistr/u8-strnlen'.
57800         * modules/unistr/u8-strnlen-tests: New file.
57801         * tests/unistr/test-u8-strnlen.c: New file.
57802         * tests/unistr/test-strnlen.h: New file.
57804         Tests for module 'unistr/u32-strlen'.
57805         * modules/unistr/u32-strlen-tests: New file.
57806         * tests/unistr/test-u32-strlen.c: New file.
57808         Tests for module 'unistr/u16-strlen'.
57809         * modules/unistr/u16-strlen-tests: New file.
57810         * tests/unistr/test-u16-strlen.c: New file.
57812         Tests for module 'unistr/u8-strlen'.
57813         * modules/unistr/u8-strlen-tests: New file.
57814         * tests/unistr/test-u8-strlen.c: New file.
57816         Tests for module 'unistr/u32-prev'.
57817         * modules/unistr/u32-prev-tests: New file.
57818         * tests/unistr/test-u32-prev.c: New file.
57820         Tests for module 'unistr/u16-prev'.
57821         * modules/unistr/u16-prev-tests: New file.
57822         * tests/unistr/test-u16-prev.c: New file.
57824         Tests for module 'unistr/u8-prev'.
57825         * modules/unistr/u8-prev-tests: New file.
57826         * tests/unistr/test-u8-prev.c: New file.
57828         Tests for module 'unistr/u32-next'.
57829         * modules/unistr/u32-next-tests: New file.
57830         * tests/unistr/test-u32-next.c: New file.
57832         Tests for module 'unistr/u16-next'.
57833         * modules/unistr/u16-next-tests: New file.
57834         * tests/unistr/test-u16-next.c: New file.
57836         Tests for module 'unistr/u8-next'.
57837         * modules/unistr/u8-next-tests: New file.
57838         * tests/unistr/test-u8-next.c: New file.
57840         Tests for module 'unistr/u32-strmbtouc'.
57841         * modules/unistr/u32-strmbtouc-tests: New file.
57842         * tests/unistr/test-u32-strmbtouc.c: New file.
57844         Tests for module 'unistr/u16-strmbtouc'.
57845         * modules/unistr/u16-strmbtouc-tests: New file.
57846         * tests/unistr/test-u16-strmbtouc.c: New file.
57848         Tests for module 'unistr/u8-strmbtouc'.
57849         * modules/unistr/u8-strmbtouc-tests: New file.
57850         * tests/unistr/test-u8-strmbtouc.c: New file.
57852         Tests for module 'unistr/u32-strmblen'.
57853         * modules/unistr/u32-strmblen-tests: New file.
57854         * tests/unistr/test-u32-strmblen.c: New file.
57856         Tests for module 'unistr/u16-strmblen'.
57857         * modules/unistr/u16-strmblen-tests: New file.
57858         * tests/unistr/test-u16-strmblen.c: New file.
57860         Tests for module 'unistr/u8-strmblen'.
57861         * modules/unistr/u8-strmblen-tests: New file.
57862         * tests/unistr/test-u8-strmblen.c: New file.
57864         Tests for module 'unistr/u32-cpy-alloc'.
57865         * modules/unistr/u32-cpy-alloc-tests: New file.
57866         * tests/unistr/test-u32-cpy-alloc.c: New file.
57868         Tests for module 'unistr/u16-cpy-alloc'.
57869         * modules/unistr/u16-cpy-alloc-tests: New file.
57870         * tests/unistr/test-u16-cpy-alloc.c: New file.
57872         Tests for module 'unistr/u8-cpy-alloc'.
57873         * modules/unistr/u8-cpy-alloc-tests: New file.
57874         * tests/unistr/test-u8-cpy-alloc.c: New file.
57875         * tests/unistr/test-cpy-alloc.h: New file.
57877         Tests for module 'unistr/u32-mbsnlen'.
57878         * modules/unistr/u32-mbsnlen-tests: New file.
57879         * tests/unistr/test-u32-mbsnlen.c: New file.
57881         Tests for module 'unistr/u16-mbsnlen'.
57882         * modules/unistr/u16-mbsnlen-tests: New file.
57883         * tests/unistr/test-u16-mbsnlen.c: New file.
57885         Tests for module 'unistr/u8-mbsnlen'.
57886         * modules/unistr/u8-mbsnlen-tests: New file.
57887         * tests/unistr/test-u8-mbsnlen.c: New file.
57889         Tests for module 'unistr/u32-chr'.
57890         * modules/unistr/u32-chr-tests: New file.
57891         * tests/unistr/test-u32-chr.c: New file.
57893         Tests for module 'unistr/u16-chr'.
57894         * modules/unistr/u16-chr-tests: New file.
57895         * tests/unistr/test-u16-chr.c: New file.
57897         Tests for module 'unistr/u8-chr'.
57898         * modules/unistr/u8-chr-tests: New file.
57899         * tests/unistr/test-u8-chr.c: New file.
57900         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
57902         Tests for module 'unistr/u32-cmp2'.
57903         * modules/unistr/u32-cmp2-tests: New file.
57904         * tests/unistr/test-u32-cmp2.c: New file.
57906         Tests for module 'unistr/u16-cmp2'.
57907         * modules/unistr/u16-cmp2-tests: New file.
57908         * tests/unistr/test-u16-cmp2.c: New file.
57910         Tests for module 'unistr/u8-cmp2'.
57911         * modules/unistr/u8-cmp2-tests: New file.
57912         * tests/unistr/test-u8-cmp2.c: New file.
57913         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
57915         Tests for module 'unistr/u32-cmp'.
57916         * modules/unistr/u32-cmp-tests: New file.
57917         * tests/unistr/test-u32-cmp.c: New file.
57919         Tests for module 'unistr/u16-cmp'.
57920         * modules/unistr/u16-cmp-tests: New file.
57921         * tests/unistr/test-u16-cmp.c: New file.
57923         Tests for module 'unistr/u8-cmp'.
57924         * modules/unistr/u8-cmp-tests: New file.
57925         * tests/unistr/test-u8-cmp.c: New file.
57926         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
57928         Tests for module 'unistr/u32-set'.
57929         * modules/unistr/u32-set-tests: New file.
57930         * tests/unistr/test-u32-set.c: New file.
57932         Tests for module 'unistr/u16-set'.
57933         * modules/unistr/u16-set-tests: New file.
57934         * tests/unistr/test-u16-set.c: New file.
57936         Tests for module 'unistr/u8-set'.
57937         * modules/unistr/u8-set-tests: New file.
57938         * tests/unistr/test-u8-set.c: New file.
57939         * tests/unistr/test-set.h: New file.
57941         Tests for module 'unistr/u32-move'.
57942         * modules/unistr/u32-move-tests: New file.
57943         * tests/unistr/test-u32-move.c: New file.
57945         Tests for module 'unistr/u16-move'.
57946         * modules/unistr/u16-move-tests: New file.
57947         * tests/unistr/test-u16-move.c: New file.
57949         Tests for module 'unistr/u8-move'.
57950         * modules/unistr/u8-move-tests: New file.
57951         * tests/unistr/test-u8-move.c: New file.
57952         * tests/unistr/test-move.h: New file.
57954         Tests for module 'unistr/u32-cpy'.
57955         * modules/unistr/u32-cpy-tests: New file.
57956         * tests/unistr/test-u32-cpy.c: New file.
57958         Tests for module 'unistr/u16-cpy'.
57959         * modules/unistr/u16-cpy-tests: New file.
57960         * tests/unistr/test-u16-cpy.c: New file.
57962         Tests for module 'unistr/u8-cpy'.
57963         * modules/unistr/u8-cpy-tests: New file.
57964         * tests/unistr/test-u8-cpy.c: New file.
57965         * tests/unistr/test-cpy.h: New file.
57967 2010-01-09  Bruno Haible  <bruno@clisp.org>
57969         Tests for module 'unistr/u32-uctomb'.
57970         * modules/unistr/u32-uctomb-tests: New file.
57971         * tests/unistr/test-u32-uctomb.c: New file.
57973         Tests for module 'unistr/u16-uctomb'.
57974         * modules/unistr/u16-uctomb-tests: New file.
57975         * tests/unistr/test-u16-uctomb.c: New file.
57977         Tests for module 'unistr/u8-uctomb'.
57978         * modules/unistr/u8-uctomb-tests: New file.
57979         * tests/unistr/test-u8-uctomb.c: New file.
57981         Tests for module 'unistr/u32-mbtoucr'.
57982         * modules/unistr/u32-mbtoucr-tests: New file.
57983         * tests/unistr/test-u32-mbtoucr.c: New file.
57985         Tests for module 'unistr/u16-mbtoucr'.
57986         * modules/unistr/u16-mbtoucr-tests: New file.
57987         * tests/unistr/test-u16-mbtoucr.c: New file.
57989         Tests for module 'unistr/u8-mbtoucr'.
57990         * modules/unistr/u8-mbtoucr-tests: New file.
57991         * tests/unistr/test-u8-mbtoucr.c: New file.
57993         Tests for module 'unistr/u32-mbtouc'.
57994         * modules/unistr/u32-mbtouc-tests: New file.
57995         * tests/unistr/test-u32-mbtouc.c: New file.
57997         Tests for module 'unistr/u16-mbtouc'.
57998         * modules/unistr/u16-mbtouc-tests: New file.
57999         * tests/unistr/test-u16-mbtouc.c: New file.
58001         Tests for module 'unistr/u8-mbtouc'.
58002         * modules/unistr/u8-mbtouc-tests: New file.
58003         * tests/unistr/test-u8-mbtouc.c: New file.
58005         Tests for module 'unistr/u32-mbtouc-unsafe'.
58006         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
58007         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
58008         * tests/unistr/test-u32-mbtouc.h: New file.
58010         Tests for module 'unistr/u16-mbtouc-unsafe'.
58011         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
58012         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
58013         * tests/unistr/test-u16-mbtouc.h: New file.
58015         Tests for module 'unistr/u8-mbtouc-unsafe'.
58016         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
58017         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
58018         * tests/unistr/test-u8-mbtouc.h: New file.
58020         Tests for module 'unistr/u32-mblen'.
58021         * modules/unistr/u32-mblen-tests: New file.
58022         * tests/unistr/test-u32-mblen.c: New file.
58024         Tests for module 'unistr/u16-mblen'.
58025         * modules/unistr/u16-mblen-tests: New file.
58026         * tests/unistr/test-u16-mblen.c: New file.
58028         Tests for module 'unistr/u8-mblen'.
58029         * modules/unistr/u8-mblen-tests: New file.
58030         * tests/unistr/test-u8-mblen.c: New file.
58032         Tests for module 'unistr/u32-to-u16'.
58033         * modules/unistr/u32-to-u16-tests: New file.
58034         * tests/unistr/test-u32-to-u16.c: New file.
58036         Tests for module 'unistr/u32-to-u8'.
58037         * modules/unistr/u32-to-u8-tests: New file.
58038         * tests/unistr/test-u32-to-u8.c: New file.
58040         Tests for module 'unistr/u16-to-u32'.
58041         * modules/unistr/u16-to-u32-tests: New file.
58042         * tests/unistr/test-u16-to-u32.c: New file.
58044         Tests for module 'unistr/u16-to-u8'.
58045         * modules/unistr/u16-to-u8-tests: New file.
58046         * tests/unistr/test-u16-to-u8.c: New file.
58048         Tests for module 'unistr/u8-to-u32'.
58049         * modules/unistr/u8-to-u32-tests: New file.
58050         * tests/unistr/test-u8-to-u32.c: New file.
58052         Tests for module 'unistr/u8-to-u16'.
58053         * modules/unistr/u8-to-u16-tests: New file.
58054         * tests/unistr/test-u8-to-u16.c: New file.
58056         Tests for module 'unistr/u32-check'.
58057         * modules/unistr/u32-check-tests: New file.
58058         * tests/unistr/test-u32-check.c: New file.
58060         Tests for module 'unistr/u16-check'.
58061         * modules/unistr/u16-check-tests: New file.
58062         * tests/unistr/test-u16-check.c: New file.
58064         Tests for module 'unistr/u8-check'.
58065         * modules/unistr/u8-check-tests: New file.
58066         * tests/unistr/test-u8-check.c: New file.
58068         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
58069         (category_equals): New function.
58070         (main): Add more tests.
58071         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
58073         * tests/unictype/test-bidi_byname.c (main): Add more tests.
58075 2010-01-10  Bruno Haible  <bruno@clisp.org>
58077         unistr/u*-strcoll: Try harder to distinguish different strings.
58078         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
58079         compare s1 and s2 to see if they are different.
58081 2010-01-10  Bruno Haible  <bruno@clisp.org>
58083         unistr/u*-stpncpy: Fix the return value.
58084         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
58085         description of the return value consistent with stpncpy in glibc.
58086         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
58087         written non-NUL unit.
58089 2010-01-10  Bruno Haible  <bruno@clisp.org>
58091         unistr/u*-next: Add missing dependencies.
58092         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
58093         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
58094         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
58096 2010-01-10  Bruno Haible  <bruno@clisp.org>
58098         unistr/u8-mbsnlen: Fix return value for incomplete character.
58099         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
58100         u8_mblen.
58101         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
58102         Remove unistr/u8-mblen.
58103         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
58104         u16_mblen.
58105         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
58106         Remove unistr/u16-mblen.
58108 2010-01-10  Bruno Haible  <bruno@clisp.org>
58110         wchar: Fix compilation error when <wchar.h> is used from coreutils.
58111         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
58112         Reported by Brian Gough <bjg@gnu.org> and
58113         Chris Clayton <chris2553@googlemail.com> via
58114         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
58116 2010-01-09  Bruno Haible  <bruno@clisp.org>
58118         unistr/u16-to-u32: Reject invalid input.
58119         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
58120         u16_mbtouc.
58121         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
58122         Remove unistr/u16-mbtouc.
58124         unistr/u16-to-u8: Reject invalid input.
58125         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
58126         u16_mbtouc.
58127         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
58128         Remove unistr/u16-mbtouc.
58130         unistr/u8-to-u32: Reject invalid input.
58131         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
58132         u8_mbtouc.
58133         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
58134         Remove unistr/u8-mbtouc.
58136         unistr/u8-to-u16: Reject invalid input.
58137         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
58138         u8_mbtouc.
58139         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
58140         Remove unistr/u8-mbtouc.
58142 2010-01-09  Bruno Haible  <bruno@clisp.org>
58144         Tests for module 'getlogin'.
58145         * modules/getlogin-tests: New file.
58146         * tests/test-getlogin.c: New file.
58148         New module 'getlogin'.
58149         * lib/unistd.in.h (getlogin): New declaration.
58150         * lib/getlogin.c: New file.
58151         * m4/getlogin.m4: New file.
58152         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
58153         HAVE_GETLOGIN.
58154         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
58155         HAVE_GETLOGIN.
58156         * modules/getlogin: New file.
58157         * doc/posix-functions/getlogin.texi: Mention the new module.
58158         Reported by John W. Eaton <jwe@gnu.org>.
58160 2010-01-09  Bruno Haible  <bruno@clisp.org>
58162         getlogin_r: Support for native Windows.
58163         * lib/getlogin_r.c: Include <windows.h>
58164         (getlogin_r): Implement for native Windows.
58165         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
58166         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
58167         via John W. Eaton <jwe@gnu.org>.
58169 2010-01-09  Bruno Haible  <bruno@clisp.org>
58171         getlogin_r: Small fixes.
58172         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
58173         succeeds.
58174         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
58175         before testing whether getlogin_r is declared. No need to set
58176         HAVE_DECL_GETLOGIN_R to 1.
58177         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
58179 2010-01-09  Bruno Haible  <bruno@clisp.org>
58181         * lib/unistd.in.h (getlogin_r): Add comment.
58183 2010-01-09  Bruno Haible  <bruno@clisp.org>
58185         Tests for module 'getlogin_r'.
58186         * modules/getlogin_r-tests: New file.
58187         * tests/test-getlogin_r.c: New file.
58189 2010-01-09  Jim Meyering  <meyering@redhat.com>
58191         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
58192         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
58193         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
58195 2010-01-08  Simon Josefsson  <simon@josefsson.org>
58197         * lib/dup2.c (rpl_dup2): Improve comment.
58199 2010-01-08  Eric Blake  <ebb9@byu.net>
58201         maint.mk: allow packages to add makefile @@ exceptions
58202         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
58203         (sc_makefile_check): Rename...
58204         (sc_makefile_at_at_check): ...to this, and use hook.
58206         dup2: work around mingw bug
58207         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
58208         Reported by Simon Josefsson.
58210 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
58212         glob: Fix C++ compilation.
58213         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
58214         C++.
58216 2010-01-07  Bruno Haible  <bruno@clisp.org>
58218         Fix indentation of wctype.in.h, broken since 2007-01-06.
58219         * lib/wctype.in.h: Fix indentation of preprocessor directives.
58221 2010-01-07  Bruno Haible  <bruno@clisp.org>
58223         mbslen: Avoid collision with system function.
58224         * lib/string.in.h [MirBSD]: Include <wchar.h>.
58225         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
58226         * m4/mbslen.m4: New file.
58227         * modules/mbslen (Files): Add it.
58228         (configure.ac): Invoke gl_MBSLEN.
58229         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
58230         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
58231         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
58232         via Ian Beckwith <ianb@erislabs.net>.
58234 2010-01-07  Bruno Haible  <bruno@clisp.org>
58236         dirent: Document the last fix.
58237         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
58239 2010-01-07  Bruno Haible  <bruno@clisp.org>
58241         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
58242         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
58243         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
58244         va_list are defined.
58245         * doc/posix-headers/stdio.texi: Document the bug of missing types.
58246         Reported by Eric Blake.
58248 2010-01-07  Bruno Haible  <bruno@clisp.org>
58250         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
58251         * modules/xlist (Depends-on): Add 'list',
58252         * modules/xoset (Depends-on): Add 'oset'.
58253         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58255 2010-01-07  Bruno Haible  <bruno@clisp.org>
58257         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
58258         * doc/posix-functions/strncasecmp.texi: Likewise.
58260 2010-01-07  Bruno Haible  <bruno@clisp.org>
58262         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
58264 2010-01-07  John W. Eaton  <jwe@octave.org>
58266         wctype: allow C++ use
58267         * lib/wctype.in.h: Add extern "C" block for C++.
58269 2010-01-06  Eric Blake  <ebb9@byu.net>
58271         maint.mk: detect incorrect GFDL usage
58272         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
58274 2010-01-06  Jim Meyering  <meyering@redhat.com>
58275         and Eric Blake  <ebb9@byu.net>
58277         maint.mk: ignore multi-line copyright in NEWS
58278         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
58280 2010-01-06  Eric Blake  <ebb9@byu.net>
58282         select: add missing dependency
58283         * modules/select-tests (Depends-on): Move sockets dependency...
58284         * modules/select (Depends-on): ...here.
58285         Reported by Ian Beckwith.
58287         doc: regenerate INSTALL
58288         * doc/INSTALL: Reflect recent autoconf update.
58289         * doc/INSTALL.ISO: Likewise.
58290         * doc/INSTALL.UTF-8: Likewise.
58292         pread: fix compilation on glibc
58293         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
58294         Reported by Ralf Wildenhues.
58296         dirent: fix test failure
58297         * lib/dirent.in.h (includes): Guarantee ino_t.
58298         Reported by Ralf Wildenhues.
58300 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
58302         linkat, renameat: avoid bad free
58303         * lib/at-func2.c (at_func2): Fix typo.
58304         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
58306 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58308         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
58309         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
58310         to avoid failure of symlink test later.
58312 2010-01-06  Eric Blake  <ebb9@byu.net>
58314         stdio, unistd: guarantee ssize_t
58315         * lib/unistd.in.h (includes): Ensure that types required by POSIX
58316         2008 are exposed when needed.
58317         * lib/stdio.in.h (includes): Likewise.
58318         Reported by Ralf Wildenhues.
58320 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
58322         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
58323         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
58324         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
58326 2010-01-06  Jim Meyering  <meyering@redhat.com>
58328         readtokens: this module *does* require xalloc.h
58329         It uses only functions that were omitted by the old syntax-check rule.
58330         * lib/readtokens.c: Include "xalloc.h" once again.
58331         * modules/readtokens (Depends-on): Add xalloc.
58332         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
58334 2010-01-05  Eric Blake  <ebb9@byu.net>
58336         maint: support 'make announcement' from a VPATH build
58337         * top/maint.mk (announcement): Look for correct NEWS file.
58339 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
58341         utimens (fdutimens): ignore a negative FD, per contract
58342         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
58343         when we have a valid file descriptor.  Otherwise, using a brand
58344         new glibc (with just-patched futimens that now fails with EBADF)
58345         would cause this function to fail with ENOSYS.
58346         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
58347         See also http://bugzilla.redhat.com/552320.
58349 2010-01-05  Eric Blake  <ebb9@byu.net>
58351         strcase: document what it provides
58352         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
58353         gnulib module.
58354         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
58355         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
58357 2010-01-05  Jim Meyering  <meyering@redhat.com>
58359         maint: remove useless inclusions of "xalloc.h"
58360         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
58361         * lib/readtokens.c: Likewise.
58362         * lib/same.c: Likewise.
58363         * modules/getloadavg (Depends-on): Remove xalloc.
58364         * modules/readtokens: Likewise.
58365         * modules/same: Likewise.
58367         maint.mk: include 4 more function names in alloca.h-checking regexp
58368         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
58369         regexp.  Before, we would give a false-positive (saying alloca.h
58370         is included unnecessarily) when the only uses involved omitted symbols.
58372         xalloc.h: use consistent formatting
58373         * lib/xalloc.h: Move declarations to start in the first column.
58375 2010-01-05  Eric Blake  <ebb9@byu.net>
58377         mkdir: avoid xalloc
58378         * lib/mkdir.c (includes): Drop unused header.
58379         Reported by John W. Eaton.
58381 2010-01-04  Jim Meyering  <meyering@redhat.com>
58383         nl_langinfo: avoid configure-time syntax error
58384         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
58385         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
58386         the empty string.  Don't let that provoke a shell syntax error.
58388         regcomp, regexec, fnmatch: avoid array bounds read error
58389         * lib/regcomp.c (build_equiv_class): From glibc:
58390         Use only the low 24 bits of a findidx return value as an index
58391         into the weights array.  Patch by Ulrich Drepper:
58392         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
58393         * lib/regexec.c (check_node_accept_bytes): Likewise.
58394         * lib/fnmatch_loop.c (FCT): Likewise.
58396         regcomp: skip collseq lookup when there are no rules
58397         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
58398         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
58400         regcomp: recognize ill-formed { } expressions
58401         * lib/regcomp.c (parse_dup_op): From glibc:
58402         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
58404         regcomp: fix typo in comment
58405         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
58406         s/satisfy/satisfies/.
58408         regcomp: sync from glibc: remove dead store
58409         * lib/regcomp.c (duplicate_node_closure): Remove useless
58410         search_duplicated_node call and dead store.
58412         regcomp: sync from glibc; always use nl_langinfo
58413         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
58414         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
58415         * modules/regex (Depends-on): Add nl_langinfo.
58417 2010-01-04  Eric Blake  <ebb9@byu.net>
58419         fdopendir: fix configure test
58420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
58422 2010-01-01  Bruno Haible  <bruno@clisp.org>
58424         wchar: Remove unused configure check.
58425         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
58427 2010-01-01  Eric Blake  <ebb9@byu.net>
58429         headers: make check of system header explicit
58430         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
58431         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
58432         ourselves.
58433         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
58434         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58435         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
58436         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
58437         internals.
58438         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
58439         missing.
58440         Suggested by Bruno Haible.
58442 2010-01-01  Jim Meyering  <meyering@redhat.com>
58444         ChangeLog: tweak to eliminate unnecessary copyright line
58445         * ChangeLog: Remove a copyright line that was mistakenly updated
58446         by today's update-copyright run.  Reported by Eric Blake.
58448         test-update-copyright: don't let envvar setting cause test failure
58449         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
58451 2010-01-01  Bruno Haible  <bruno@clisp.org>
58453         localename: Avoid gcc warning.
58454         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
58455         function if it is not used.
58457 2010-01-01  Jim Meyering  <meyering@redhat.com>
58459         update nearly all FSF copyright year lists to include 2010
58460         Use the same procedure as for 2009, outlined in
58461         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
58463         version-etc: set COPYRIGHT_YEAR to 2010
58464         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
58466 2009-12-31  Eric Blake  <ebb9@byu.net>
58468         doc: correct availability of cygwin 1.5.x getopt
58469         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
58470         variables.
58471         * doc/posix-functions/opterr.texi (opterr): Likewise.
58472         * doc/posix-functions/optind.texi (optind): Likewise.
58473         * doc/posix-functions/optopt.texi (optopt): Likewise.
58474         * doc/posix-functions/tzname.texi (tzname): Likewise.
58476         openat: update maintainer
58477         * modules/openat (Maintainer): Add myself.
58479         utimens: avoid shadowing warning
58480         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
58481         buffers into one, to avoid shadowing, as well as avoiding a
58482         redundant stat.
58483         Reported by Jim Meyering.
58485         test-dup2: avoid compiler warning
58486         * tests/test-dup2.c (is_inheritable): Only define if used.
58488 2010-01-01  Bruno Haible  <bruno@clisp.org>
58490         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
58491         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
58492         defined, use wctomb instead of wcrtomb.
58494 2010-01-01  Bruno Haible  <bruno@clisp.org>
58496         iconv: Reject native Solaris iconv.
58497         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
58498         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
58500 2009-12-31  Bruno Haible  <bruno@clisp.org>
58502         * tests/test-signal.c (main): Remove test of 'SIG'.
58504 2009-12-31  Bruno Haible  <bruno@clisp.org>
58506         spawn: Fix incomplete fix.
58507         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58508         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58509         warnings for GNULIB_POSIXCHECK again.
58510         Reported by Eric Blake.
58512 2009-12-31  Bruno Haible  <bruno@clisp.org>
58514         Avoid namespace pollution on glibc systems.
58515         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
58516         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
58517         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
58518         glibc systems.
58520 2009-12-31  Bruno Haible  <bruno@clisp.org>
58522         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
58523         (gl_REPLACE_WCHAR_H): Turn into a no-op.
58524         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
58525         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
58526         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
58527         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
58528         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
58530 2009-12-31  Bruno Haible  <bruno@clisp.org>
58532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
58533         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
58534         afterwards.
58536 2009-12-31  Bruno Haible  <bruno@clisp.org>
58538         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
58539         SYS_UTSNAME_H.
58541 2009-12-31  Bruno Haible  <bruno@clisp.org>
58543         spawn: Fix misapplied patch.
58544         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
58545         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
58546         warnings for GNULIB_POSIXCHECK.
58548 2009-12-31  Bruno Haible  <bruno@clisp.org>
58550         times: Update after sys_times changed.
58551         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
58552         * modules/times (Files): Add it.
58553         (configure.ac): Invoke gl_FUNC_TIMES.
58555 2009-12-31  Bruno Haible  <bruno@clisp.org>
58557         Use AC_C_INLINE where necessary.
58558         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
58559         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58560         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
58561         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
58562         * m4/mbfile.m4 (gl_MBFILE): Likewise.
58563         * m4/mbiter.m4 (gl_MBITER): Likewise.
58564         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
58565         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58566         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
58567         * modules/u64 (configure.ac): Likewise.
58569 2009-12-31  Bruno Haible  <bruno@clisp.org>
58571         Use AC_C_INLINE instead of module 'inline' where possible.
58572         * modules/inline (Description): Clarify purpose.
58573         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
58574         * modules/count-one-bits (Depends-on): Remove inline.
58575         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
58576         * modules/openat (Depends-on): Remove inline.
58577         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
58578         instead of depending on module 'inline'.
58579         * modules/filevercmp (Depends-on, configure.ac): Likewise.
58580         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
58581         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
58582         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
58583         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
58584         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
58585         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
58586         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
58587         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
58588         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
58589         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
58590         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
58591         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
58592         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
58593         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
58594         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
58595         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
58596         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
58597         Likewise.
58598         * modules/unictype/property-ascii-hex-digit (Depends-on,
58599         configure.ac): Likewise.
58600         * modules/unictype/property-bidi-arabic-digit (Depends-on,
58601         configure.ac): Likewise.
58602         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
58603         configure.ac): Likewise.
58604         * modules/unictype/property-bidi-block-separator (Depends-on,
58605         configure.ac): Likewise.
58606         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
58607         configure.ac): Likewise.
58608         * modules/unictype/property-bidi-common-separator (Depends-on,
58609         configure.ac): Likewise.
58610         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
58611         Likewise.
58612         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
58613         configure.ac): Likewise.
58614         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
58615         configure.ac): Likewise.
58616         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
58617         configure.ac): Likewise.
58618         * modules/unictype/property-bidi-european-digit (Depends-on,
58619         configure.ac): Likewise.
58620         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
58621         configure.ac): Likewise.
58622         * modules/unictype/property-bidi-left-to-right (Depends-on,
58623         configure.ac): Likewise.
58624         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
58625         configure.ac): Likewise.
58626         * modules/unictype/property-bidi-other-neutral (Depends-on,
58627         configure.ac): Likewise.
58628         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
58629         Likewise.
58630         * modules/unictype/property-bidi-segment-separator (Depends-on,
58631         configure.ac): Likewise.
58632         * modules/unictype/property-bidi-whitespace (Depends-on,
58633         configure.ac): Likewise.
58634         * modules/unictype/property-combining (Depends-on, configure.ac):
58635         Likewise.
58636         * modules/unictype/property-composite (Depends-on, configure.ac):
58637         Likewise.
58638         * modules/unictype/property-currency-symbol (Depends-on,
58639         configure.ac): Likewise.
58640         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
58641         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
58642         Likewise.
58643         * modules/unictype/property-default-ignorable-code-point (Depends-on,
58644         configure.ac): Likewise.
58645         * modules/unictype/property-deprecated (Depends-on, configure.ac):
58646         Likewise.
58647         * modules/unictype/property-diacritic (Depends-on, configure.ac):
58648         Likewise.
58649         * modules/unictype/property-extender (Depends-on, configure.ac):
58650         Likewise.
58651         * modules/unictype/property-format-control (Depends-on, configure.ac):
58652         Likewise.
58653         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
58654         Likewise.
58655         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
58656         Likewise.
58657         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
58658         Likewise.
58659         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
58660         Likewise.
58661         * modules/unictype/property-hyphen (Depends-on, configure.ac):
58662         Likewise.
58663         * modules/unictype/property-id-continue (Depends-on, configure.ac):
58664         Likewise.
58665         * modules/unictype/property-id-start (Depends-on, configure.ac):
58666         Likewise.
58667         * modules/unictype/property-ideographic (Depends-on, configure.ac):
58668         Likewise.
58669         * modules/unictype/property-ids-binary-operator (Depends-on,
58670         configure.ac): Likewise.
58671         * modules/unictype/property-ids-trinary-operator (Depends-on,
58672         configure.ac): Likewise.
58673         * modules/unictype/property-ignorable-control (Depends-on,
58674         configure.ac): Likewise.
58675         * modules/unictype/property-iso-control (Depends-on, configure.ac):
58676         Likewise.
58677         * modules/unictype/property-join-control (Depends-on, configure.ac):
58678         Likewise.
58679         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
58680         Likewise.
58681         * modules/unictype/property-line-separator (Depends-on, configure.ac):
58682         Likewise.
58683         * modules/unictype/property-logical-order-exception (Depends-on,
58684         configure.ac): Likewise.
58685         * modules/unictype/property-lowercase (Depends-on, configure.ac):
58686         Likewise.
58687         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
58688         * modules/unictype/property-non-break (Depends-on, configure.ac):
58689         Likewise.
58690         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
58691         Likewise.
58692         * modules/unictype/property-numeric (Depends-on, configure.ac):
58693         Likewise.
58694         * modules/unictype/property-other-alphabetic (Depends-on,
58695         configure.ac): Likewise.
58696         * modules/unictype/property-other-default-ignorable-code-point
58697         (Depends-on, configure.ac): Likewise.
58698         * modules/unictype/property-other-grapheme-extend (Depends-on,
58699         configure.ac): Likewise.
58700         * modules/unictype/property-other-id-continue (Depends-on,
58701         configure.ac): Likewise.
58702         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
58703         Likewise.
58704         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
58705         Likewise.
58706         * modules/unictype/property-other-math (Depends-on, configure.ac):
58707         Likewise.
58708         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
58709         Likewise.
58710         * modules/unictype/property-paired-punctuation (Depends-on,
58711         configure.ac): Likewise.
58712         * modules/unictype/property-paragraph-separator (Depends-on,
58713         configure.ac): Likewise.
58714         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
58715         Likewise.
58716         * modules/unictype/property-pattern-white-space (Depends-on,
58717         configure.ac): Likewise.
58718         * modules/unictype/property-private-use (Depends-on, configure.ac):
58719         Likewise.
58720         * modules/unictype/property-punctuation (Depends-on, configure.ac):
58721         Likewise.
58722         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
58723         Likewise.
58724         * modules/unictype/property-radical (Depends-on, configure.ac):
58725         Likewise.
58726         * modules/unictype/property-sentence-terminal (Depends-on,
58727         configure.ac): Likewise.
58728         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
58729         Likewise.
58730         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
58731         * modules/unictype/property-terminal-punctuation (Depends-on,
58732         configure.ac): Likewise.
58733         * modules/unictype/property-titlecase (Depends-on, configure.ac):
58734         Likewise.
58735         * modules/unictype/property-unassigned-code-value (Depends-on,
58736         configure.ac): Likewise.
58737         * modules/unictype/property-unified-ideograph (Depends-on,
58738         configure.ac): Likewise.
58739         * modules/unictype/property-uppercase (Depends-on, configure.ac):
58740         Likewise.
58741         * modules/unictype/property-variation-selector (Depends-on,
58742         configure.ac): Likewise.
58743         * modules/unictype/property-white-space (Depends-on, configure.ac):
58744         Likewise.
58745         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
58746         Likewise.
58747         * modules/unictype/property-xid-start (Depends-on, configure.ac):
58748         Likewise.
58749         * modules/unictype/property-zero-width (Depends-on, configure.ac):
58750         Likewise.
58751         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
58752         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
58753         Likewise.
58755 2009-12-31  Bruno Haible  <bruno@clisp.org>
58757         Remove unnecessary AC_C_INLINE invocation.
58758         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
58759         since 2009-08-21.
58761 2009-12-31  Jim Meyering  <meyering@redhat.com>
58763         maint.mk: don't require explicit gpg_key_ID in cfg.mk
58764         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
58765         With this change, we can all remove the gpg_key_ID = ... definition
58766         from our respective cfg.mk files.
58768         maint.mk: create announcement template in ~/, not in /tmp
58769         * top/maint.mk (emit_upload_commands): Adjust.
58770         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
58771         Remove temporary file, .ci-msg.
58773 2009-12-31  Eric Blake  <ebb9@byu.net>
58775         link-warning: always build headers with link warnings
58776         * modules/arpa_inet (Makefile.am): Always build replacement
58777         header.
58778         * modules/ctype (Makefile.am): Likewise.
58779         * modules/dirent (Makefile.am): Likewise.
58780         * modules/inttypes (Makefile.am): Likewise.
58781         * modules/langinfo (Makefile.am): Likewise.
58782         * modules/locale (Makefile.am): Likewise.
58783         * modules/spawn (Makefile.am): Likewise.
58784         * modules/sys_file (Makefile.am): Likewise.
58785         * modules/sys_ioctl (Makefile.am): Likewise.
58786         * modules/sys_select (Makefile.am): Likewise.
58787         * modules/sys_socket (Makefile.am): Likewise.
58788         * modules/sys_times (Makefile.am): Likewise.
58789         * modules/sys_utsname (Makefile.am): Likewise.
58790         * modules/sys_wait (Makefile.am): Likewise.
58791         * modules/wchar (Makefile.am): Likewise.
58792         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
58793         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
58794         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
58795         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
58796         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
58797         Likewise.
58798         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58799         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
58800         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
58801         Likewise.
58802         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
58803         Likewise.
58804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
58805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
58806         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
58807         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58808         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
58809         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58810         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58811         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
58812         (gl_WCHAR_H_DEFAULTS): Likewise.
58814 2009-12-31  Eric Blake  <ebb9@byu.net>
58816         signal, spawn: use link warnings
58817         * lib/signal.in.h (sigset_t): Make unconditional.
58818         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
58819         (sigpending, sigprocmask, sigaction): Add link warnings.
58820         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
58821         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
58822         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
58823         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
58824         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
58825         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
58826         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
58827         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
58828         (posix_spawn_file_actions_destroy)
58829         (posix_spawn_file_actions_addopen)
58830         (posix_spawn_file_actions_addclose)
58831         (posix_spawn_file_actions_adddup2): Likewise.
58832         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
58833         * tests/test-signal.c (main): Enhance test.
58835         spawn: improve wrapper support
58836         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
58837         (gl_SPAWN_H_DEFAULTS): New defaults.
58838         * modules/spawn (Makefile.am): Substitute them.
58839         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
58840         Only declare if missing or broken.
58842         sys_times, sys_utsname: use include_next
58843         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
58844         header.
58845         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
58846         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
58847         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
58848         * modules/sys_times (Depends-on): Add include_next.
58849         (Makefile.am): Substitute additional values.
58850         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
58851         * lib/sys_times.in.h (includes): Include native header, if
58852         available.
58853         * lib/sys_utsname.in.h (includes): Likewise.
58854         * tests/test-sys_times.c (main): Enhance test.
58856         fdutimensat: revert prior patch
58857         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
58858         utimens.h.
58859         Reported by Bruno Haible.
58861 2009-12-30  Eric Blake  <ebb9@byu.net>
58863         sys_wait: drop link-warning dependency
58864         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
58865         link-warning efforts.
58866         * lib/sys_wait.in.h: Likewise.
58868         fdutimensat: remove bogus dependency
58869         * modules/fdutimensat (Depends-on): Drop inline.
58871         unistd: fix typo
58872         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
58874 2009-12-30  Bruno Haible  <bruno@clisp.org>
58876         Fix compilation error with Solaris cc.
58877         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
58878         * lib/unicase/u16-is-invariant.c: Likewise.
58879         * lib/unicase/u32-is-invariant.c: Likewise.
58880         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58882 2009-12-30  Bruno Haible  <bruno@clisp.org>
58884         Fix test crash.
58885         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
58886         locales.
58887         Reported by Simon Josefsson <simon@josefsson.org>.
58889 2009-12-30  Bruno Haible  <bruno@clisp.org>
58891         Fix compilation error on most platforms.
58892         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
58893         Reported by Simon Josefsson <simon@josefsson.org>
58894         and Nelson H. F. Beebe <beebe@math.utah.edu>.
58896 2009-12-30  Eric Blake  <ebb9@byu.net>
58898         futimens, utimensat: work around ntfs-3g bug
58899         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
58900         a ctime bug is present, and expand workaround to cover ntfs-3g.
58901         * lib/utimens.c (fdutimens, lutimens): Likewise.
58902         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
58903         (validate_timespec): Adjust return value.
58904         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
58905         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
58906         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
58908 2009-12-29  Eric Blake  <ebb9@byu.net>
58910         link-warning: make usage consistent
58911         * modules/ctype (Depends-on): Add link-warning.
58912         (Makefile.am): Update rules accordingly.
58913         * modules/langinfo (Depends-on, Makefile.am): Likewise.
58914         * modules/locale (Depends-on, Makefile.am): Likewise.
58915         * modules/sys_file (Makefile.am): Likewise.
58916         * modules/getopt-posix (Makefile.am): Delete unused link warning
58917         efforts.
58918         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
58919         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
58920         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
58921         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
58923         stdio: remove unused variables
58924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
58925         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
58926         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
58928         tests: test more substitute headers
58929         * modules/ctype-tests: New file.
58930         * modules/dirent-tests: Likewise.
58931         * modules/spawn-tests: Likewise.
58932         * modules/sys_file-tests: Likewise.
58933         * modules/sys_ioctl-tests: Likewise.
58934         * modules/sys_wait-tests: Likewise.
58935         * tests/test-ctype.c: Likewise.
58936         * tests/test-dirent.c: Likewise.
58937         * tests/test-spawn.c: Likewise.
58938         * tests/test-sys_file.c: Likewise.
58939         * tests/test-sys_ioctl.c: Likewise.
58940         * tests/test-sys_wait.c: Likewise.
58941         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
58942         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
58943         whether or not flock is in use.
58945         tests: remove License section from module
58946         * modules/arpa_inet-tests: Remove unneeded section.
58947         * modules/byteswap-tests: Likewise.
58948         * modules/ceilf-tests: Likewise.
58949         * modules/ceill-tests: Likewise.
58950         * modules/crypto/des-tests: Likewise.
58951         * modules/crypto/gc-arcfour-tests: Likewise.
58952         * modules/crypto/gc-arctwo-tests: Likewise.
58953         * modules/crypto/gc-des-tests: Likewise.
58954         * modules/crypto/gc-hmac-md5-tests: Likewise.
58955         * modules/crypto/gc-hmac-sha1-tests: Likewise.
58956         * modules/crypto/gc-md2-tests: Likewise.
58957         * modules/crypto/gc-md4-tests: Likewise.
58958         * modules/crypto/gc-md5-tests: Likewise.
58959         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
58960         * modules/crypto/gc-rijndael-tests: Likewise.
58961         * modules/crypto/gc-sha1-tests: Likewise.
58962         * modules/crypto/gc-tests: Likewise.
58963         * modules/crypto/md2-tests: Likewise.
58964         * modules/crypto/md4-tests: Likewise.
58965         * modules/fcntl-h-tests: Likewise.
58966         * modules/floorf-tests: Likewise.
58967         * modules/floorl-tests: Likewise.
58968         * modules/frexp-nolibm-tests: Likewise.
58969         * modules/frexp-tests: Likewise.
58970         * modules/frexpl-nolibm-tests: Likewise.
58971         * modules/frexpl-tests: Likewise.
58972         * modules/getaddrinfo-tests: Likewise.
58973         * modules/inttypes-tests: Likewise.
58974         * modules/isfinite-tests: Likewise.
58975         * modules/isinf-tests: Likewise.
58976         * modules/ldexpl-tests: Likewise.
58977         * modules/locale-tests: Likewise.
58978         * modules/math-tests: Likewise.
58979         * modules/netdb-tests: Likewise.
58980         * modules/netinet_in-tests: Likewise.
58981         * modules/printf-frexp-tests: Likewise.
58982         * modules/printf-frexpl-tests: Likewise.
58983         * modules/priv-set-tests: Likewise.
58984         * modules/random_r-tests: Likewise.
58985         * modules/round-tests: Likewise.
58986         * modules/roundf-tests: Likewise.
58987         * modules/roundl-tests: Likewise.
58988         * modules/search-tests: Likewise.
58989         * modules/select-tests: Likewise.
58990         * modules/signal-tests: Likewise.
58991         * modules/stdbool-tests: Likewise.
58992         * modules/stddef-tests: Likewise.
58993         * modules/stdint-tests: Likewise.
58994         * modules/stdio-tests: Likewise.
58995         * modules/stdlib-tests: Likewise.
58996         * modules/string-tests: Likewise.
58997         * modules/strings-tests: Likewise.
58998         * modules/sys_select-tests: Likewise.
58999         * modules/sys_socket-tests: Likewise.
59000         * modules/sys_stat-tests: Likewise.
59001         * modules/sys_time-tests: Likewise.
59002         * modules/sys_utsname-tests: Likewise.
59003         * modules/sysexits-tests: Likewise.
59004         * modules/time-tests: Likewise.
59005         * modules/trunc-tests: Likewise.
59006         * modules/truncf-tests: Likewise.
59007         * modules/truncl-tests: Likewise.
59008         * modules/tsearch-tests: Likewise.
59009         * modules/unistd-tests: Likewise.
59010         * modules/wchar-tests: Likewise.
59011         * modules/wctype-tests: Likewise.
59013         tests: fix license on several tests
59014         * tests/test-des.c: Update to GPLv3+.
59015         * tests/test-flock.c: Likewise.
59016         * tests/test-fsync.c: Likewise.
59017         * tests/test-futimens.h: Likewise.
59018         * tests/test-gc-arcfour.c: Likewise.
59019         * tests/test-gc-arctwo.c: Likewise.
59020         * tests/test-gc-des.c: Likewise.
59021         * tests/test-gc-hmac-md5.c: Likewise.
59022         * tests/test-gc-hmac-sha1.c: Likewise.
59023         * tests/test-gc-md2.c: Likewise.
59024         * tests/test-gc-md4.c: Likewise.
59025         * tests/test-gc-md5.c: Likewise.
59026         * tests/test-gc-pbkdf2-sha1.c: Likewise.
59027         * tests/test-gc-rijndael.c: Likewise.
59028         * tests/test-gc-sha1.c: Likewise.
59029         * tests/test-gc.c: Likewise.
59030         * tests/test-getcwd.c: Likewise.
59031         * tests/test-link.c: Likewise.
59032         * tests/test-link.h: Likewise.
59033         * tests/test-lutimens.h: Likewise.
59034         * tests/test-md2.c: Likewise.
59035         * tests/test-md4.c: Likewise.
59036         * tests/test-mkdir.h: Likewise.
59037         * tests/test-rename.c: Likewise.
59038         * tests/test-rename.h: Likewise.
59039         * tests/test-safe-alloc.c: Likewise.
59040         * tests/test-utimens-common.h: Likewise.
59041         * tests/test-utimens.h: Likewise.
59043         maint: sync license texts
59044         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
59045         * doc/gpl-3.0.texi: Revert copyright year update.
59046         * doc/lgpl-3.0.texi: Likewise.
59048 2009-12-29  Jim Meyering  <meyering@redhat.com>
59050         update nearly all FSF copyright year lists to include 2009
59051         The files named by the following are exempted:
59052             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
59053               test -f "$dst" && { echo "$dst"; continue; }
59054               test -d "$dst" || continue
59055               echo "$dst"/$(basename "$src")
59056             done > exempt
59057             git ls-files tests/unictype >> exempt
59058         In the remaining files, convert to all-interval notation if
59059         - there is already at least one year interval like 2000-2003
59060         - the file is maintained by me
59061         - the file is in lib/uni*/, where that style already prevails
59062         Otherwise, use update-copyright's default.
59064 2009-12-29  Simon Josefsson  <simon@josefsson.org>
59065         and Eric Blake  <ebb9@byu.net>
59067         tests: don't require debug system() to pass
59068         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
59069         * tests/test-rmdir.h (test_rmdir_func): Likewise.
59070         * tests/test-unlink.h (test_unlink_func): Likewise.
59071         * tests/test-fstatat.c (main): ...into callers.
59072         * tests/test-lstat.c (main): Likewise.
59073         * tests/test-rmdir.c (main): Likewise.
59074         * tests/test-unlink.c (main): Likewise.
59075         * tests/test-unlinkat.c (main): Likewise.
59076         * tests/test-areadlink-with-size.c (main): Don't require a
59077         debug-only system call to pass, aiding cross-testing to mingw.
59078         * tests/test-areadlink.c (main): Likewise.
59079         * tests/test-areadlinkat-with-size.c (main): Likewise.
59080         * tests/test-areadlinkat.c (main): Likewise.
59081         * tests/test-canonicalize-lgpl.c (main): Likewise.
59082         * tests/test-canonicalize.c (main): Likewise.
59083         * tests/test-chown.c (main): Likewise.
59084         * tests/test-fchownat.c (main): Likewise.
59085         * tests/test-lchown.c (main): Likewise.
59086         * tests/test-fdutimensat.c (main): Likewise.
59087         * tests/test-futimens.c (main): Likewise.
59088         * tests/test-link.c (main): Likewise.
59089         * tests/test-linkat.c (main): Likewise.
59090         * tests/test-mkdir.c (main): Likewise.
59091         * tests/test-mkdirat.c (main): Likewise.
59092         * tests/test-mkfifo.c (main): Likewise.
59093         * tests/test-mkfifoat.c (main): Likewise.
59094         * tests/test-mknod.c (main): Likewise.
59095         * tests/test-readlink.c (main): Likewise.
59096         * tests/test-remove.c (main): Likewise.
59097         * tests/test-rename.c (main): Likewise.
59098         * tests/test-renameat.c (main): Likewise.
59099         * tests/test-symlink.c (main): Likewise.
59100         * tests/test-symlinkat.c (main): Likewise.
59101         * tests/test-utimens.c (main): Likewise.
59102         * tests/test-utimensat.c (main): Likewise.
59104 2009-12-29  Simon Josefsson  <simon@josefsson.org>
59106         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
59107         on $(UNUSED_PARAMETER_H) to avoid build failure.
59109 2009-12-28  Jim Meyering  <meyering@redhat.com>
59111         update-copyright: you may specify a max. line length other than 72
59112         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
59114         maint: use consistent FSF copyright line syntax
59115         * lib/posixtm.c: Add missing comma in FSF copyright line.
59116         * lib/posixtm.h: Likewise.
59117         * lib/getugroups.c: Add missing ", Inc.".
59119         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
59120         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
59121         FSF copyright line.  Remove trailing blanks.
59123 2009-12-28  Eric Blake  <ebb9@byu.net>
59125         test-dup2: reduce dependencies
59126         * modules/cloexec (Configure.ac): Set witness.
59127         * modules/dup2-tests (Depends-on): Drop cloexec.
59128         * tests/test-dup2.c (main): Skip portion of test if cloexec module
59129         not present.
59130         Suggested by Bruno Haible.
59132 2009-12-26  Bruno Haible  <bruno@clisp.org>
59134         Remove an unneeded dependency.
59135         * modules/fseterr (Depends-on): Remove dup2.
59137 2009-12-26  Eric Blake  <ebb9@byu.net>
59139         tests: use macros.h in more places
59140         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
59141         (ASSERT_STREAM): Provide default of stderr.
59142         * tests/test-dirent-safer.c: Include macros.h, using alternate
59143         stream for assertions.
59144         * tests/test-dup-safer.c: Likewise.
59145         * tests/test-freopen-safer.c: Likewise.
59146         * tests/test-getopt.c: Likewise.
59147         * tests/test-openat-safer.c: Likewise.
59148         * tests/test-pipe.c: Likewise.
59149         * tests/test-popen-safer.c: Likewise.
59150         * modules/dirent-safer-tests (Files): Include macros.h.
59151         * modules/unistd-safer-tests (Files): Likewise.
59152         * modules/freopen-safer-tests (Files): Likewise.
59153         * modules/getopt-posix-tests (Files): Likewise.
59154         * modules/openat-safer-tests (Files): Likewise.
59155         * modules/pipe-tests (Files): Likewise.
59157 2009-12-26  Bruno Haible  <bruno@clisp.org>
59159         javacomp-script: Portability fix.
59160         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
59161         that it also works on Solaris.
59163 2009-12-26  Bruno Haible  <bruno@clisp.org>
59165         localename: Fix storage allocation of gl_locale_name_thread's result.
59166         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
59167         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
59168         all platforms that have 'uselocale'.
59169         (gl_locale_name_thread_unsafe): New function, extracted from
59170         gl_locale_name_thread.
59171         (gl_locale_name_thread): Call struniq on all platforms that have
59172         'uselocale'.
59173         * tests/test-localename.c (test_locale_name_thread): Check that the
59174         resulting strings are permanently allocated.
59175         * modules/localename-tests (Depends-on): Add strdup.
59177 2009-12-26  Bruno Haible  <bruno@clisp.org>
59179         * tests/test-localename.c (categories): Fill in the strings.
59181 2009-12-26  Jim Meyering  <meyering@redhat.com>
59183         isdir: complete the removal of m4/isdir.m4
59184         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
59186         isdir: clean up, since at least grep still uses it
59187         * lib/isdir.c: Include "isdir.h".
59188         (S_ISDIR): Remove now-unneeded definition.
59189         * modules/isdir (Files): Add lib/isdir.h.
59190         * lib/isdir.h: New file, with declaration.
59191         * m4/isdir.m4: Remove file -- unneeded.
59193 2009-12-25  Bruno Haible  <bruno@clisp.org>
59195         selinux-h: Make generated .h files standalone.
59196         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
59197         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
59198         * lib/se-selinux.in.h: Likewise.
59199         * modules/selinux-h (Depends-on): Add unused-parameter.
59200         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
59201         selinux/selinux.h and selinux/context.h.
59202         Suggested by Eric Blake.
59204 2009-12-25  Bruno Haible  <bruno@clisp.org>
59206         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
59207         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
59208         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
59209         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
59210         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
59212 2009-12-24  Bruno Haible  <bruno@clisp.org>
59214         openat: Fix warning.
59215         * lib/openat-proc.c: Include <unistd.h>.
59217 2009-12-24  Bruno Haible  <bruno@clisp.org>
59219         New module 'unused-parameter'.
59220         * build-aux/unused-parameter.h: New file, extracted from earlier
59221         gnulib-common.m4.
59222         * modules/unused-parameter: New file.
59223         * lib/unistr.h: Include unused-parameter.h.
59224         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
59225         _GL_UNUSED.
59226         * modules/unistr/base (Depends-on): Add unused-parameter.
59228 2009-12-24  Bruno Haible  <bruno@clisp.org>
59230         Add missing dependencies to 'extensions' module.
59231         * m4/extensions.m4: Add comment.
59232         * modules/accept4 (Depends-on): Add extensions.
59233         * modules/dup3 (Depends-on): Likewise.
59234         * modules/fcntl (Depends-on): Likewise.
59235         * modules/futimens (Depends-on): Likewise.
59236         * modules/mknod (Depends-on): Likewise.
59237         * modules/pipe2 (Depends-on): Likewise.
59238         * modules/stat-time (Depends-on): Likewise.
59239         * modules/strcasestr-simple (Depends-on): Likewise.
59240         * modules/strsignal (Depends-on): Likewise.
59241         * modules/utimensat (Depends-on): Likewise.
59242         * modules/localcharset (Depends-on): Likewise. Needed because of
59243         gl_FCNTL_O_FLAGS.
59244         * modules/wcrtomb (Depends-on): Likewise. Needed because of
59245         AC_TYPE_MBSTATE_T.
59246         * modules/wcsnrtombs (Depends-on): Likewise.
59247         * modules/wcsrtombs (Depends-on): Likewise.
59249 2009-12-24  Bruno Haible  <bruno@clisp.org>
59251         binary-io: Avoid gcc warning due to SET_BINARY.
59252         * lib/binary-io.h (SET_BINARY): Cast the result to void.
59253         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
59255 2009-12-24  Bruno Haible  <bruno@clisp.org>
59257         Avoid future namespace pollution on glibc systems.
59258         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
59259         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
59260         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
59261         glibc systems.
59263 2009-12-24  Bruno Haible  <bruno@clisp.org>
59265         Refactor common macros used in tests.
59266         * tests/macros.h: New file.
59267         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
59268         and/or <stdlib.h>, if appropriate.
59269         (ASSERT, SIZEOF): Remove macros.
59270         * tests/test-areadlink-with-size.c: Likewise.
59271         * tests/test-areadlinkat.c: Likewise.
59272         * tests/test-areadlinkat-with-size.c: Likewise.
59273         * tests/test-argmatch.c: Likewise.
59274         * tests/test-argv-iter.c: Likewise.
59275         * tests/test-array-mergesort.c: Likewise.
59276         * tests/test-array_list.c: Likewise.
59277         * tests/test-array_oset.c: Likewise.
59278         * tests/test-avltree_list.c: Likewise.
59279         * tests/test-avltree_oset.c: Likewise.
59280         * tests/test-avltreehash_list.c: Likewise.
59281         * tests/test-base64.c: Likewise.
59282         * tests/test-binary-io.c: Likewise.
59283         * tests/test-bitrotate.c: Likewise.
59284         * tests/test-btowc.c: Likewise.
59285         * tests/test-byteswap.c: Likewise.
59286         * tests/test-c-ctype.c: Likewise.
59287         * tests/test-c-stack.c: Likewise.
59288         * tests/test-c-strcasecmp.c: Likewise.
59289         * tests/test-c-strcasestr.c: Likewise.
59290         * tests/test-c-strncasecmp.c: Likewise.
59291         * tests/test-c-strstr.c: Likewise.
59292         * tests/test-canonicalize-lgpl.c: Likewise.
59293         * tests/test-canonicalize.c: Likewise.
59294         * tests/test-carray_list.c: Likewise.
59295         * tests/test-ceilf1.c: Likewise.
59296         * tests/test-ceilf2.c: Likewise.
59297         * tests/test-ceill.c: Likewise.
59298         * tests/test-chown.c: Likewise.
59299         * tests/test-cloexec.c: Likewise.
59300         * tests/test-copy-acl.c: Likewise.
59301         * tests/test-copy-file.c: Likewise.
59302         * tests/test-count-one-bits.c: Likewise.
59303         * tests/test-dprintf-posix.c: Likewise.
59304         * tests/test-dup2.c: Likewise.
59305         * tests/test-dup3.c: Likewise.
59306         * tests/test-duplocale.c: Likewise.
59307         * tests/test-fbufmode.c: Likewise.
59308         * tests/test-fchdir.c: Likewise.
59309         * tests/test-fchownat.c: Likewise.
59310         * tests/test-fcntl-safer.c: Likewise.
59311         * tests/test-fcntl.c: Likewise.
59312         * tests/test-fdopendir.c: Likewise.
59313         * tests/test-fdutimensat.c: Likewise.
59314         * tests/test-fflush2.c: Likewise.
59315         * tests/test-file-has-acl.c: Likewise.
59316         * tests/test-filevercmp.c: Likewise.
59317         * tests/test-flock.c: Likewise.
59318         * tests/test-floorf1.c: Likewise.
59319         * tests/test-floorf2.c: Likewise.
59320         * tests/test-floorl.c: Likewise.
59321         * tests/test-fnmatch.c: Likewise.
59322         * tests/test-fopen.h: Likewise.
59323         * tests/test-fpending.c: Likewise.
59324         * tests/test-fprintf-posix.c: Likewise.
59325         * tests/test-fpurge.c: Likewise.
59326         * tests/test-freadable.c: Likewise.
59327         * tests/test-freadahead.c: Likewise.
59328         * tests/test-freading.c: Likewise.
59329         * tests/test-freadptr.c: Likewise.
59330         * tests/test-freadptr2.c: Likewise.
59331         * tests/test-freadseek.c: Likewise.
59332         * tests/test-freopen.c: Likewise.
59333         * tests/test-frexp.c: Likewise.
59334         * tests/test-frexpl.c: Likewise.
59335         * tests/test-fseek.c: Likewise.
59336         * tests/test-fseeko.c: Likewise.
59337         * tests/test-fstatat.c: Likewise.
59338         * tests/test-fstrcmp.c: Likewise.
59339         * tests/test-fsync.c: Likewise.
59340         * tests/test-ftell.c: Likewise.
59341         * tests/test-ftello.c: Likewise.
59342         * tests/test-func.c: Likewise.
59343         * tests/test-futimens.c: Likewise.
59344         * tests/test-fwritable.c: Likewise.
59345         * tests/test-fwriting.c: Likewise.
59346         * tests/test-getcwd.c: Likewise.
59347         * tests/test-getdate.c: Likewise.
59348         * tests/test-getdelim.c: Likewise.
59349         * tests/test-getdtablesize.c: Likewise.
59350         * tests/test-getgroups.c: Likewise.
59351         * tests/test-getline.c: Likewise.
59352         * tests/test-getndelim2.c: Likewise.
59353         * tests/test-glob.c: Likewise.
59354         * tests/test-hash.c: Likewise.
59355         * tests/test-i-ring.c: Likewise.
59356         * tests/test-iconv-utf.c: Likewise.
59357         * tests/test-iconv.c: Likewise.
59358         * tests/test-idpriv-drop.c: Likewise.
59359         * tests/test-idpriv-droptemp.c: Likewise.
59360         * tests/test-inet_ntop.c: Likewise.
59361         * tests/test-inet_pton.c: Likewise.
59362         * tests/test-isblank.c: Likewise.
59363         * tests/test-isfinite.c: Likewise.
59364         * tests/test-isinf.c: Likewise.
59365         * tests/test-isnan.c: Likewise.
59366         * tests/test-isnand.h: Likewise.
59367         * tests/test-isnanf.h: Likewise.
59368         * tests/test-isnanl.h: Likewise.
59369         * tests/test-lchown.c: Likewise.
59370         * tests/test-ldexpl.c: Likewise.
59371         * tests/test-link.c: Likewise.
59372         * tests/test-linkat.c: Likewise.
59373         * tests/test-linked_list.c: Likewise.
59374         * tests/test-linkedhash_list.c: Likewise.
59375         * tests/test-localename.c: Likewise.
59376         * tests/test-lseek.c: Likewise.
59377         * tests/test-lstat.c: Likewise.
59378         * tests/test-mbmemcasecmp.c: Likewise.
59379         * tests/test-mbmemcasecoll.c: Likewise.
59380         * tests/test-mbrtowc.c: Likewise.
59381         * tests/test-mbscasecmp.c: Likewise.
59382         * tests/test-mbscasestr1.c: Likewise.
59383         * tests/test-mbscasestr2.c: Likewise.
59384         * tests/test-mbscasestr3.c: Likewise.
59385         * tests/test-mbscasestr4.c: Likewise.
59386         * tests/test-mbschr.c: Likewise.
59387         * tests/test-mbscspn.c: Likewise.
59388         * tests/test-mbsinit.c: Likewise.
59389         * tests/test-mbsncasecmp.c: Likewise.
59390         * tests/test-mbsnrtowcs.c: Likewise.
59391         * tests/test-mbspbrk.c: Likewise.
59392         * tests/test-mbspcasecmp.c: Likewise.
59393         * tests/test-mbsrchr.c: Likewise.
59394         * tests/test-mbsrtowcs.c: Likewise.
59395         * tests/test-mbsspn.c: Likewise.
59396         * tests/test-mbsstr1.c: Likewise.
59397         * tests/test-mbsstr2.c: Likewise.
59398         * tests/test-mbsstr3.c: Likewise.
59399         * tests/test-memchr.c: Likewise.
59400         * tests/test-memchr2.c: Likewise.
59401         * tests/test-memcmp.c: Likewise.
59402         * tests/test-memmem.c: Likewise.
59403         * tests/test-memrchr.c: Likewise.
59404         * tests/test-mkdir.c: Likewise.
59405         * tests/test-mkdirat.c: Likewise.
59406         * tests/test-mkfifo.c: Likewise.
59407         * tests/test-mkfifoat.c: Likewise.
59408         * tests/test-mknod.c: Likewise.
59409         * tests/test-nanosleep.c: Likewise.
59410         * tests/test-nl_langinfo.c: Likewise.
59411         * tests/test-obstack-printf.c: Likewise.
59412         * tests/test-open.c: Likewise.
59413         * tests/test-openat.c: Likewise.
59414         * tests/test-pipe-filter-gi1.c: Likewise.
59415         * tests/test-pipe-filter-gi2-main.c: Likewise.
59416         * tests/test-pipe-filter-ii1.c: Likewise.
59417         * tests/test-pipe-filter-ii2-main.c: Likewise.
59418         * tests/test-pipe2.c: Likewise.
59419         * tests/test-popen.h: Likewise.
59420         * tests/test-posixtm.c: Likewise.
59421         * tests/test-pread.c: Likewise.
59422         * tests/test-printf-frexp.c: Likewise.
59423         * tests/test-printf-frexpl.c: Likewise.
59424         * tests/test-printf-posix.c: Likewise.
59425         * tests/test-priv-set.c: Likewise.
59426         * tests/test-quotearg.c: Likewise.
59427         * tests/test-random_r.c: Likewise.
59428         * tests/test-rawmemchr.c: Likewise.
59429         * tests/test-rbtree_list.c: Likewise.
59430         * tests/test-rbtree_oset.c: Likewise.
59431         * tests/test-rbtreehash_list.c: Likewise.
59432         * tests/test-readlink.c: Likewise.
59433         * tests/test-remove.c: Likewise.
59434         * tests/test-rename.c: Likewise.
59435         * tests/test-renameat.c: Likewise.
59436         * tests/test-rmdir.c: Likewise.
59437         * tests/test-round1.c: Likewise.
59438         * tests/test-roundf1.c: Likewise.
59439         * tests/test-roundl.c: Likewise.
59440         * tests/test-safe-alloc.c: Likewise.
59441         * tests/test-sameacls.c: Likewise.
59442         * tests/test-set-mode-acl.c: Likewise.
59443         * tests/test-setenv.c: Likewise.
59444         * tests/test-sigaction.c: Likewise.
59445         * tests/test-signbit.c: Likewise.
59446         * tests/test-sleep.c: Likewise.
59447         * tests/test-snprintf-posix.c: Likewise.
59448         * tests/test-snprintf.c: Likewise.
59449         * tests/test-sprintf-posix.c: Likewise.
59450         * tests/test-stat-time.c: Likewise.
59451         * tests/test-stat.c: Likewise.
59452         * tests/test-strcasestr.c: Likewise.
59453         * tests/test-strchrnul.c: Likewise.
59454         * tests/test-strerror.c: Likewise.
59455         * tests/test-striconv.c: Likewise.
59456         * tests/test-striconveh.c: Likewise.
59457         * tests/test-striconveha.c: Likewise.
59458         * tests/test-strsignal.c: Likewise.
59459         * tests/test-strstr.c: Likewise.
59460         * tests/test-strtod.c: Likewise.
59461         * tests/test-strverscmp.c: Likewise.
59462         * tests/test-symlink.c: Likewise.
59463         * tests/test-symlinkat.c: Likewise.
59464         * tests/test-trunc1.c: Likewise.
59465         * tests/test-trunc2.c: Likewise.
59466         * tests/test-truncf1.c: Likewise.
59467         * tests/test-truncf2.c: Likewise.
59468         * tests/test-truncl.c: Likewise.
59469         * tests/test-uname.c: Likewise.
59470         * tests/test-unlink.c: Likewise.
59471         * tests/test-unlinkat.c: Likewise.
59472         * tests/test-unsetenv.c: Likewise.
59473         * tests/test-usleep.c: Likewise.
59474         * tests/test-utimens.c: Likewise.
59475         * tests/test-utimensat.c: Likewise.
59476         * tests/test-vasnprintf-posix.c: Likewise.
59477         * tests/test-vasnprintf-posix2.c: Likewise.
59478         * tests/test-vasnprintf.c: Likewise.
59479         * tests/test-vasprintf-posix.c: Likewise.
59480         * tests/test-vasprintf.c: Likewise.
59481         * tests/test-vdprintf-posix.c: Likewise.
59482         * tests/test-vfprintf-posix.c: Likewise.
59483         * tests/test-vprintf-posix.c: Likewise.
59484         * tests/test-vsnprintf-posix.c: Likewise.
59485         * tests/test-vsnprintf.c: Likewise.
59486         * tests/test-vsprintf-posix.c: Likewise.
59487         * tests/test-wcrtomb.c: Likewise.
59488         * tests/test-wcsnrtombs.c: Likewise.
59489         * tests/test-wcsrtombs.c: Likewise.
59490         * tests/test-wctype.c: Likewise.
59491         * tests/test-wcwidth.c: Likewise.
59492         * tests/test-xfprintf-posix.c: Likewise.
59493         * tests/test-xmemdup0.c: Likewise.
59494         * tests/test-xprintf-posix.c: Likewise.
59495         * tests/test-xvasprintf.c: Likewise.
59496         * tests/unicase/test-locale-language.c: Likewise.
59497         * tests/unicase/test-mapping-part1.h: Likewise.
59498         * tests/unicase/test-predicate-part1.h: Likewise.
59499         * tests/unicase/test-u8-casecmp.c: Likewise.
59500         * tests/unicase/test-u8-casecoll.c: Likewise.
59501         * tests/unicase/test-u8-casefold.c: Likewise.
59502         * tests/unicase/test-u8-is-cased.c: Likewise.
59503         * tests/unicase/test-u8-is-casefolded.c: Likewise.
59504         * tests/unicase/test-u8-is-lowercase.c: Likewise.
59505         * tests/unicase/test-u8-is-titlecase.c: Likewise.
59506         * tests/unicase/test-u8-is-uppercase.c: Likewise.
59507         * tests/unicase/test-u8-tolower.c: Likewise.
59508         * tests/unicase/test-u8-totitle.c: Likewise.
59509         * tests/unicase/test-u8-toupper.c: Likewise.
59510         * tests/unicase/test-u16-casecmp.c: Likewise.
59511         * tests/unicase/test-u16-casecoll.c: Likewise.
59512         * tests/unicase/test-u16-casefold.c: Likewise.
59513         * tests/unicase/test-u16-is-cased.c: Likewise.
59514         * tests/unicase/test-u16-is-casefolded.c: Likewise.
59515         * tests/unicase/test-u16-is-lowercase.c: Likewise.
59516         * tests/unicase/test-u16-is-titlecase.c: Likewise.
59517         * tests/unicase/test-u16-is-uppercase.c: Likewise.
59518         * tests/unicase/test-u16-tolower.c: Likewise.
59519         * tests/unicase/test-u16-totitle.c: Likewise.
59520         * tests/unicase/test-u16-toupper.c: Likewise.
59521         * tests/unicase/test-u32-casecmp.c: Likewise.
59522         * tests/unicase/test-u32-casecoll.c: Likewise.
59523         * tests/unicase/test-u32-casefold.c: Likewise.
59524         * tests/unicase/test-u32-is-cased.c: Likewise.
59525         * tests/unicase/test-u32-is-casefolded.c: Likewise.
59526         * tests/unicase/test-u32-is-lowercase.c: Likewise.
59527         * tests/unicase/test-u32-is-titlecase.c: Likewise.
59528         * tests/unicase/test-u32-is-uppercase.c: Likewise.
59529         * tests/unicase/test-u32-tolower.c: Likewise.
59530         * tests/unicase/test-u32-totitle.c: Likewise.
59531         * tests/unicase/test-u32-toupper.c: Likewise.
59532         * tests/unicase/test-ulc-casecmp.c: Likewise.
59533         * tests/unicase/test-ulc-casecoll.c: Likewise.
59534         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
59535         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
59536         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
59537         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
59538         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
59539         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
59540         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
59541         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
59542         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
59543         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
59544         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
59545         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
59546         * tests/unictype/test-bidi_byname.c: Likewise.
59547         * tests/unictype/test-bidi_name.c: Likewise.
59548         * tests/unictype/test-bidi_of.c: Likewise.
59549         * tests/unictype/test-bidi_test.c: Likewise.
59550         * tests/unictype/test-block_list.c: Likewise.
59551         * tests/unictype/test-block_of.c: Likewise.
59552         * tests/unictype/test-block_test.c: Likewise.
59553         * tests/unictype/test-categ_and.c: Likewise.
59554         * tests/unictype/test-categ_and_not.c: Likewise.
59555         * tests/unictype/test-categ_byname.c: Likewise.
59556         * tests/unictype/test-categ_name.c: Likewise.
59557         * tests/unictype/test-categ_none.c: Likewise.
59558         * tests/unictype/test-categ_of.c: Likewise.
59559         * tests/unictype/test-categ_or.c: Likewise.
59560         * tests/unictype/test-categ_test_withtable.c: Likewise.
59561         * tests/unictype/test-combining.c: Likewise.
59562         * tests/unictype/test-decdigit.c: Likewise.
59563         * tests/unictype/test-digit.c: Likewise.
59564         * tests/unictype/test-mirror.c: Likewise.
59565         * tests/unictype/test-numeric.c: Likewise.
59566         * tests/unictype/test-pr_byname.c: Likewise.
59567         * tests/unictype/test-pr_test.c: Likewise.
59568         * tests/unictype/test-predicate-part1.h: Likewise.
59569         * tests/unictype/test-scripts.c: Likewise.
59570         * tests/unictype/test-sy_c_ident.c: Likewise.
59571         * tests/unictype/test-sy_java_ident.c: Likewise.
59572         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
59573         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
59574         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
59575         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
59576         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
59577         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
59578         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
59579         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
59580         * tests/uninorm/test-canonical-decomposition.c: Likewise.
59581         * tests/uninorm/test-compat-decomposition.c: Likewise.
59582         * tests/uninorm/test-composition.c: Likewise.
59583         * tests/uninorm/test-decomposing-form.c: Likewise.
59584         * tests/uninorm/test-decomposition.c: Likewise.
59585         * tests/uninorm/test-u8-nfc.c: Likewise.
59586         * tests/uninorm/test-u8-nfd.c: Likewise.
59587         * tests/uninorm/test-u8-nfkc.c: Likewise.
59588         * tests/uninorm/test-u8-nfkd.c: Likewise.
59589         * tests/uninorm/test-u8-normcmp.c: Likewise.
59590         * tests/uninorm/test-u8-normcoll.c: Likewise.
59591         * tests/uninorm/test-u16-nfc.c: Likewise.
59592         * tests/uninorm/test-u16-nfd.c: Likewise.
59593         * tests/uninorm/test-u16-nfkc.c: Likewise.
59594         * tests/uninorm/test-u16-nfkd.c: Likewise.
59595         * tests/uninorm/test-u16-normcmp.c: Likewise.
59596         * tests/uninorm/test-u16-normcoll.c: Likewise.
59597         * tests/uninorm/test-u32-nfc.c: Likewise.
59598         * tests/uninorm/test-u32-nfd.c: Likewise.
59599         * tests/uninorm/test-u32-nfkc.c: Likewise.
59600         * tests/uninorm/test-u32-nfkd.c: Likewise.
59601         * tests/uninorm/test-u32-normalize-big.c: Likewise.
59602         * tests/uninorm/test-u32-normcmp.c: Likewise.
59603         * tests/uninorm/test-u32-normcoll.c: Likewise.
59604         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
59605         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
59606         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
59607         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
59608         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
59609         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
59610         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
59611         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
59612         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
59613         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
59614         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
59615         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
59616         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
59617         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
59618         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
59619         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
59620         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
59621         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
59622         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
59623         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
59624         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
59625         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
59626         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
59627         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
59628         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
59629         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
59630         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
59631         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
59632         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
59633         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
59634         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
59635         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
59636         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
59637         * tests/uniwidth/test-u8-strwidth.c: Likewise.
59638         * tests/uniwidth/test-u8-width.c: Likewise.
59639         * tests/uniwidth/test-u16-strwidth.c: Likewise.
59640         * tests/uniwidth/test-u16-width.c: Likewise.
59641         * tests/uniwidth/test-u32-strwidth.c: Likewise.
59642         * tests/uniwidth/test-u32-width.c: Likewise.
59643         * tests/uniwidth/test-uc_width.c: Likewise.
59644         * tests/uniwidth/test-uc_width2.c: Likewise.
59645         * modules/acl-tests (Files): Add tests/macros.h.
59646         * modules/areadlink-tests (Files): Likewise.
59647         * modules/areadlink-with-size-tests (Files): Likewise.
59648         * modules/areadlinkat-tests (Files): Likewise.
59649         * modules/areadlinkat-with-size-tests (Files): Likewise.
59650         * modules/argmatch-tests (Files): Likewise.
59651         * modules/argv-iter-tests (Files): Likewise.
59652         * modules/array-list-tests (Files): Likewise.
59653         * modules/array-mergesort-tests (Files): Likewise.
59654         * modules/array-oset-tests (Files): Likewise.
59655         * modules/avltree-list-tests (Files): Likewise.
59656         * modules/avltree-oset-tests (Files): Likewise.
59657         * modules/avltreehash-list-tests (Files): Likewise.
59658         * modules/base64-tests (Files): Likewise.
59659         * modules/binary-io-tests (Files): Likewise.
59660         * modules/bitrotate-tests (Files): Likewise.
59661         * modules/btowc-tests (Files): Likewise.
59662         * modules/byteswap-tests (Files): Likewise.
59663         * modules/c-ctype-tests (Files): Likewise.
59664         * modules/c-stack-tests (Files): Likewise.
59665         * modules/c-strcase-tests (Files): Likewise.
59666         * modules/c-strcasestr-tests (Files): Likewise.
59667         * modules/c-strstr-tests (Files): Likewise.
59668         * modules/canonicalize-lgpl-tests (Files): Likewise.
59669         * modules/canonicalize-tests (Files): Likewise.
59670         * modules/carray-list-tests (Files): Likewise.
59671         * modules/ceilf-tests (Files): Likewise.
59672         * modules/ceill-tests (Files): Likewise.
59673         * modules/chown-tests (Files): Likewise.
59674         * modules/cloexec-tests (Files): Likewise.
59675         * modules/copy-file-tests (Files): Likewise.
59676         * modules/count-one-bits-tests (Files): Likewise.
59677         * modules/dprintf-posix-tests (Files): Likewise.
59678         * modules/dup2-tests (Files): Likewise.
59679         * modules/dup3-tests (Files): Likewise.
59680         * modules/duplocale-tests (Files): Likewise.
59681         * modules/fbufmode-tests (Files): Likewise.
59682         * modules/fchdir-tests (Files): Likewise.
59683         * modules/fcntl-safer-tests (Files): Likewise.
59684         * modules/fcntl-tests (Files): Likewise.
59685         * modules/fdopendir-tests (Files): Likewise.
59686         * modules/fdutimensat-tests (Files): Likewise.
59687         * modules/fflush-tests (Files): Likewise.
59688         * modules/filevercmp-tests (Files): Likewise.
59689         * modules/flock-tests (Files): Likewise.
59690         * modules/floorf-tests (Files): Likewise.
59691         * modules/floorl-tests (Files): Likewise.
59692         * modules/fnmatch-tests (Files): Likewise.
59693         * modules/fopen-safer-tests (Files): Likewise.
59694         * modules/fopen-tests (Files): Likewise.
59695         * modules/fpending-tests (Files): Likewise.
59696         * modules/fprintf-posix-tests (Files): Likewise.
59697         * modules/fpurge-tests (Files): Likewise.
59698         * modules/freadable-tests (Files): Likewise.
59699         * modules/freadahead-tests (Files): Likewise.
59700         * modules/freading-tests (Files): Likewise.
59701         * modules/freadptr-tests (Files): Likewise.
59702         * modules/freadseek-tests (Files): Likewise.
59703         * modules/freopen-tests (Files): Likewise.
59704         * modules/frexp-nolibm-tests (Files): Likewise.
59705         * modules/frexp-tests (Files): Likewise.
59706         * modules/frexpl-nolibm-tests (Files): Likewise.
59707         * modules/frexpl-tests (Files): Likewise.
59708         * modules/fseek-tests (Files): Likewise.
59709         * modules/fseeko-tests (Files): Likewise.
59710         * modules/fstrcmp-tests (Files): Likewise.
59711         * modules/fsync-tests (Files): Likewise.
59712         * modules/ftell-tests (Files): Likewise.
59713         * modules/ftello-tests (Files): Likewise.
59714         * modules/func-tests (Files): Likewise.
59715         * modules/futimens-tests (Files): Likewise.
59716         * modules/fwritable-tests (Files): Likewise.
59717         * modules/fwriting-tests (Files): Likewise.
59718         * modules/getcwd-tests (Files): Likewise.
59719         * modules/getdate-tests (Files): Likewise.
59720         * modules/getdelim-tests (Files): Likewise.
59721         * modules/getdtablesize-tests (Files): Likewise.
59722         * modules/getgroups-tests (Files): Likewise.
59723         * modules/getline-tests (Files): Likewise.
59724         * modules/getndelim2-tests (Files): Likewise.
59725         * modules/glob-tests (Files): Likewise.
59726         * modules/hash-tests (Files): Likewise.
59727         * modules/i-ring-tests (Files): Likewise.
59728         * modules/iconv-tests (Files): Likewise.
59729         * modules/iconv_open-utf-tests (Files): Likewise.
59730         * modules/idpriv-drop-tests (Files): Likewise.
59731         * modules/idpriv-droptemp-tests (Files): Likewise.
59732         * modules/inet_ntop-tests (Files): Likewise.
59733         * modules/inet_pton-tests (Files): Likewise.
59734         * modules/isblank-tests (Files): Likewise.
59735         * modules/isfinite-tests (Files): Likewise.
59736         * modules/isinf-tests (Files): Likewise.
59737         * modules/isnan-tests (Files): Likewise.
59738         * modules/isnand-nolibm-tests (Files): Likewise.
59739         * modules/isnand-tests (Files): Likewise.
59740         * modules/isnanf-nolibm-tests (Files): Likewise.
59741         * modules/isnanf-tests (Files): Likewise.
59742         * modules/isnanl-nolibm-tests (Files): Likewise.
59743         * modules/isnanl-tests (Files): Likewise.
59744         * modules/lchown-tests (Files): Likewise.
59745         * modules/ldexpl-tests (Files): Likewise.
59746         * modules/link-tests (Files): Likewise.
59747         * modules/linkat-tests (Files): Likewise.
59748         * modules/linked-list-tests (Files): Likewise.
59749         * modules/linkedhash-list-tests (Files): Likewise.
59750         * modules/localename-tests (Files): Likewise.
59751         * modules/lseek-tests (Files): Likewise.
59752         * modules/lstat-tests (Files): Likewise.
59753         * modules/mbmemcasecmp-tests (Files): Likewise.
59754         * modules/mbmemcasecoll-tests (Files): Likewise.
59755         * modules/mbrtowc-tests (Files): Likewise.
59756         * modules/mbscasecmp-tests (Files): Likewise.
59757         * modules/mbscasestr-tests (Files): Likewise.
59758         * modules/mbschr-tests (Files): Likewise.
59759         * modules/mbscspn-tests (Files): Likewise.
59760         * modules/mbsinit-tests (Files): Likewise.
59761         * modules/mbsncasecmp-tests (Files): Likewise.
59762         * modules/mbsnrtowcs-tests (Files): Likewise.
59763         * modules/mbspbrk-tests (Files): Likewise.
59764         * modules/mbspcasecmp-tests (Files): Likewise.
59765         * modules/mbsrchr-tests (Files): Likewise.
59766         * modules/mbsrtowcs-tests (Files): Likewise.
59767         * modules/mbsspn-tests (Files): Likewise.
59768         * modules/mbsstr-tests (Files): Likewise.
59769         * modules/memchr-tests (Files): Likewise.
59770         * modules/memchr2-tests (Files): Likewise.
59771         * modules/memcmp-tests (Files): Likewise.
59772         * modules/memmem-tests (Files): Likewise.
59773         * modules/memrchr-tests (Files): Likewise.
59774         * modules/mkdir-tests (Files): Likewise.
59775         * modules/mkfifo-tests (Files): Likewise.
59776         * modules/mkfifoat-tests (Files): Likewise.
59777         * modules/mknod-tests (Files): Likewise.
59778         * modules/nanosleep-tests (Files): Likewise.
59779         * modules/nl_langinfo-tests (Files): Likewise.
59780         * modules/obstack-printf-tests (Files): Likewise.
59781         * modules/open-tests (Files): Likewise.
59782         * modules/openat-tests (Files): Likewise.
59783         * modules/pipe-filter-gi-tests (Files): Likewise.
59784         * modules/pipe-filter-ii-tests (Files): Likewise.
59785         * modules/pipe2-tests (Files): Likewise.
59786         * modules/popen-safer-tests (Files): Likewise.
59787         * modules/popen-tests (Files): Likewise.
59788         * modules/posixtm-tests (Files): Likewise.
59789         * modules/pread-tests (Files): Likewise.
59790         * modules/printf-frexp-tests (Files): Likewise.
59791         * modules/printf-frexpl-tests (Files): Likewise.
59792         * modules/printf-posix-tests (Files): Likewise.
59793         * modules/priv-set-tests (Files): Likewise.
59794         * modules/quotearg-tests (Files): Likewise.
59795         * modules/random_r-tests (Files): Likewise.
59796         * modules/rawmemchr-tests (Files): Likewise.
59797         * modules/rbtree-list-tests (Files): Likewise.
59798         * modules/rbtree-oset-tests (Files): Likewise.
59799         * modules/rbtreehash-list-tests (Files): Likewise.
59800         * modules/readlink-tests (Files): Likewise.
59801         * modules/remove-tests (Files): Likewise.
59802         * modules/rename-tests (Files): Likewise.
59803         * modules/renameat-tests (Files): Likewise.
59804         * modules/rmdir-tests (Files): Likewise.
59805         * modules/round-tests (Files): Likewise.
59806         * modules/roundf-tests (Files): Likewise.
59807         * modules/roundl-tests (Files): Likewise.
59808         * modules/safe-alloc-tests (Files): Likewise.
59809         * modules/setenv-tests (Files): Likewise.
59810         * modules/sigaction-tests (Files): Likewise.
59811         * modules/signbit-tests (Files): Likewise.
59812         * modules/sleep-tests (Files): Likewise.
59813         * modules/snprintf-posix-tests (Files): Likewise.
59814         * modules/snprintf-tests (Files): Likewise.
59815         * modules/sprintf-posix-tests (Files): Likewise.
59816         * modules/stat-tests (Files): Likewise.
59817         * modules/stat-time-tests (Files): Likewise.
59818         * modules/strcasestr-tests (Files): Likewise.
59819         * modules/strchrnul-tests (Files): Likewise.
59820         * modules/strerror-tests (Files): Likewise.
59821         * modules/striconv-tests (Files): Likewise.
59822         * modules/striconveh-tests (Files): Likewise.
59823         * modules/striconveha-tests (Files): Likewise.
59824         * modules/strsignal-tests (Files): Likewise.
59825         * modules/strstr-tests (Files): Likewise.
59826         * modules/strtod-tests (Files): Likewise.
59827         * modules/strverscmp-tests (Files): Likewise.
59828         * modules/symlink-tests (Files): Likewise.
59829         * modules/symlinkat-tests (Files): Likewise.
59830         * modules/trunc-tests (Files): Likewise.
59831         * modules/truncf-tests (Files): Likewise.
59832         * modules/truncl-tests (Files): Likewise.
59833         * modules/uname-tests (Files): Likewise.
59834         * modules/unicase/cased-tests (Files): Likewise.
59835         * modules/unicase/ignorable-tests (Files): Likewise.
59836         * modules/unicase/locale-language-tests (Files): Likewise.
59837         * modules/unicase/tolower-tests (Files): Likewise.
59838         * modules/unicase/totitle-tests (Files): Likewise.
59839         * modules/unicase/toupper-tests (Files): Likewise.
59840         * modules/unicase/u8-casecmp-tests (Files): Likewise.
59841         * modules/unicase/u8-casecoll-tests (Files): Likewise.
59842         * modules/unicase/u8-casefold-tests (Files): Likewise.
59843         * modules/unicase/u8-is-cased-tests (Files): Likewise.
59844         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
59845         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
59846         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
59847         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
59848         * modules/unicase/u8-tolower-tests (Files): Likewise.
59849         * modules/unicase/u8-totitle-tests (Files): Likewise.
59850         * modules/unicase/u8-toupper-tests (Files): Likewise.
59851         * modules/unicase/u16-casecmp-tests (Files): Likewise.
59852         * modules/unicase/u16-casecoll-tests (Files): Likewise.
59853         * modules/unicase/u16-casefold-tests (Files): Likewise.
59854         * modules/unicase/u16-is-cased-tests (Files): Likewise.
59855         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
59856         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
59857         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
59858         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
59859         * modules/unicase/u16-tolower-tests (Files): Likewise.
59860         * modules/unicase/u16-totitle-tests (Files): Likewise.
59861         * modules/unicase/u16-toupper-tests (Files): Likewise.
59862         * modules/unicase/u32-casecmp-tests (Files): Likewise.
59863         * modules/unicase/u32-casecoll-tests (Files): Likewise.
59864         * modules/unicase/u32-casefold-tests (Files): Likewise.
59865         * modules/unicase/u32-is-cased-tests (Files): Likewise.
59866         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
59867         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
59868         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
59869         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
59870         * modules/unicase/u32-tolower-tests (Files): Likewise.
59871         * modules/unicase/u32-totitle-tests (Files): Likewise.
59872         * modules/unicase/u32-toupper-tests (Files): Likewise.
59873         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
59874         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
59875         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
59876         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
59877         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
59878         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
59879         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
59880         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
59881         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
59882         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
59883         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
59884         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
59885         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
59886         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
59887         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
59888         * modules/unictype/bidicategory-name-tests (Files): Likewise.
59889         * modules/unictype/bidicategory-of-tests (Files): Likewise.
59890         * modules/unictype/bidicategory-test-tests (Files): Likewise.
59891         * modules/unictype/block-list-tests (Files): Likewise.
59892         * modules/unictype/block-of-tests (Files): Likewise.
59893         * modules/unictype/block-test-tests (Files): Likewise.
59894         * modules/unictype/category-C-tests (Files): Likewise.
59895         * modules/unictype/category-Cc-tests (Files): Likewise.
59896         * modules/unictype/category-Cf-tests (Files): Likewise.
59897         * modules/unictype/category-Cn-tests (Files): Likewise.
59898         * modules/unictype/category-Co-tests (Files): Likewise.
59899         * modules/unictype/category-Cs-tests (Files): Likewise.
59900         * modules/unictype/category-L-tests (Files): Likewise.
59901         * modules/unictype/category-Ll-tests (Files): Likewise.
59902         * modules/unictype/category-Lm-tests (Files): Likewise.
59903         * modules/unictype/category-Lo-tests (Files): Likewise.
59904         * modules/unictype/category-Lt-tests (Files): Likewise.
59905         * modules/unictype/category-Lu-tests (Files): Likewise.
59906         * modules/unictype/category-M-tests (Files): Likewise.
59907         * modules/unictype/category-Mc-tests (Files): Likewise.
59908         * modules/unictype/category-Me-tests (Files): Likewise.
59909         * modules/unictype/category-Mn-tests (Files): Likewise.
59910         * modules/unictype/category-N-tests (Files): Likewise.
59911         * modules/unictype/category-Nd-tests (Files): Likewise.
59912         * modules/unictype/category-Nl-tests (Files): Likewise.
59913         * modules/unictype/category-No-tests (Files): Likewise.
59914         * modules/unictype/category-P-tests (Files): Likewise.
59915         * modules/unictype/category-Pc-tests (Files): Likewise.
59916         * modules/unictype/category-Pd-tests (Files): Likewise.
59917         * modules/unictype/category-Pe-tests (Files): Likewise.
59918         * modules/unictype/category-Pf-tests (Files): Likewise.
59919         * modules/unictype/category-Pi-tests (Files): Likewise.
59920         * modules/unictype/category-Po-tests (Files): Likewise.
59921         * modules/unictype/category-Ps-tests (Files): Likewise.
59922         * modules/unictype/category-S-tests (Files): Likewise.
59923         * modules/unictype/category-Sc-tests (Files): Likewise.
59924         * modules/unictype/category-Sk-tests (Files): Likewise.
59925         * modules/unictype/category-Sm-tests (Files): Likewise.
59926         * modules/unictype/category-So-tests (Files): Likewise.
59927         * modules/unictype/category-Z-tests (Files): Likewise.
59928         * modules/unictype/category-Zl-tests (Files): Likewise.
59929         * modules/unictype/category-Zp-tests (Files): Likewise.
59930         * modules/unictype/category-Zs-tests (Files): Likewise.
59931         * modules/unictype/category-and-not-tests (Files): Likewise.
59932         * modules/unictype/category-and-tests (Files): Likewise.
59933         * modules/unictype/category-byname-tests (Files): Likewise.
59934         * modules/unictype/category-name-tests (Files): Likewise.
59935         * modules/unictype/category-none-tests (Files): Likewise.
59936         * modules/unictype/category-of-tests (Files): Likewise.
59937         * modules/unictype/category-or-tests (Files): Likewise.
59938         * modules/unictype/category-test-withtable-tests (Files): Likewise.
59939         * modules/unictype/combining-class-tests (Files): Likewise.
59940         * modules/unictype/ctype-alnum-tests (Files): Likewise.
59941         * modules/unictype/ctype-alpha-tests (Files): Likewise.
59942         * modules/unictype/ctype-blank-tests (Files): Likewise.
59943         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
59944         * modules/unictype/ctype-digit-tests (Files): Likewise.
59945         * modules/unictype/ctype-graph-tests (Files): Likewise.
59946         * modules/unictype/ctype-lower-tests (Files): Likewise.
59947         * modules/unictype/ctype-print-tests (Files): Likewise.
59948         * modules/unictype/ctype-punct-tests (Files): Likewise.
59949         * modules/unictype/ctype-space-tests (Files): Likewise.
59950         * modules/unictype/ctype-upper-tests (Files): Likewise.
59951         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
59952         * modules/unictype/decimal-digit-tests (Files): Likewise.
59953         * modules/unictype/digit-tests (Files): Likewise.
59954         * modules/unictype/mirror-tests (Files): Likewise.
59955         * modules/unictype/numeric-tests (Files): Likewise.
59956         * modules/unictype/property-alphabetic-tests (Files): Likewise.
59957         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
59958         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
59959         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
59960         Likewise.
59961         * modules/unictype/property-bidi-block-separator-tests (Files):
59962         Likewise.
59963         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
59964         Likewise.
59965         * modules/unictype/property-bidi-common-separator-tests (Files):
59966         Likewise.
59967         * modules/unictype/property-bidi-control-tests (Files): Likewise.
59968         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
59969         Likewise.
59970         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
59971         Likewise.
59972         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
59973         Likewise.
59974         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
59975         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
59976         Likewise.
59977         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
59978         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
59979         Likewise.
59980         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
59981         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
59982         * modules/unictype/property-bidi-segment-separator-tests (Files):
59983         Likewise.
59984         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
59985         * modules/unictype/property-byname-tests (Files): Likewise.
59986         * modules/unictype/property-combining-tests (Files): Likewise.
59987         * modules/unictype/property-composite-tests (Files): Likewise.
59988         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
59989         * modules/unictype/property-dash-tests (Files): Likewise.
59990         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
59991         * modules/unictype/property-default-ignorable-code-point-tests (Files):
59992         Likewise.
59993         * modules/unictype/property-deprecated-tests (Files): Likewise.
59994         * modules/unictype/property-diacritic-tests (Files): Likewise.
59995         * modules/unictype/property-extender-tests (Files): Likewise.
59996         * modules/unictype/property-format-control-tests (Files): Likewise.
59997         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
59998         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
59999         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
60000         * modules/unictype/property-hex-digit-tests (Files): Likewise.
60001         * modules/unictype/property-hyphen-tests (Files): Likewise.
60002         * modules/unictype/property-id-continue-tests (Files): Likewise.
60003         * modules/unictype/property-id-start-tests (Files): Likewise.
60004         * modules/unictype/property-ideographic-tests (Files): Likewise.
60005         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
60006         * modules/unictype/property-ids-trinary-operator-tests (Files):
60007         Likewise.
60008         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
60009         * modules/unictype/property-iso-control-tests (Files): Likewise.
60010         * modules/unictype/property-join-control-tests (Files): Likewise.
60011         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
60012         * modules/unictype/property-line-separator-tests (Files): Likewise.
60013         * modules/unictype/property-logical-order-exception-tests (Files):
60014         Likewise.
60015         * modules/unictype/property-lowercase-tests (Files): Likewise.
60016         * modules/unictype/property-math-tests (Files): Likewise.
60017         * modules/unictype/property-non-break-tests (Files): Likewise.
60018         * modules/unictype/property-not-a-character-tests (Files): Likewise.
60019         * modules/unictype/property-numeric-tests (Files): Likewise.
60020         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
60021         * modules/unictype/property-other-default-ignorable-code-point-tests
60022         (Files): Likewise.
60023         * modules/unictype/property-other-grapheme-extend-tests (Files):
60024         Likewise.
60025         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
60026         * modules/unictype/property-other-id-start-tests (Files): Likewise.
60027         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
60028         * modules/unictype/property-other-math-tests (Files): Likewise.
60029         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
60030         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
60031         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
60032         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
60033         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
60034         * modules/unictype/property-private-use-tests (Files): Likewise.
60035         * modules/unictype/property-punctuation-tests (Files): Likewise.
60036         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
60037         * modules/unictype/property-radical-tests (Files): Likewise.
60038         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
60039         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
60040         * modules/unictype/property-space-tests (Files): Likewise.
60041         * modules/unictype/property-terminal-punctuation-tests (Files):
60042         Likewise.
60043         * modules/unictype/property-test-tests (Files): Likewise.
60044         * modules/unictype/property-titlecase-tests (Files): Likewise.
60045         * modules/unictype/property-unassigned-code-value-tests (Files):
60046         Likewise.
60047         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
60048         * modules/unictype/property-uppercase-tests (Files): Likewise.
60049         * modules/unictype/property-variation-selector-tests (Files): Likewise.
60050         * modules/unictype/property-white-space-tests (Files): Likewise.
60051         * modules/unictype/property-xid-continue-tests (Files): Likewise.
60052         * modules/unictype/property-xid-start-tests (Files): Likewise.
60053         * modules/unictype/property-zero-width-tests (Files): Likewise.
60054         * modules/unictype/scripts-tests (Files): Likewise.
60055         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
60056         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
60057         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
60058         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
60059         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
60060         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
60061         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
60062         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
60063         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
60064         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
60065         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
60066         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
60067         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
60068         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
60069         * modules/uninorm/composition-tests (Files): Likewise.
60070         * modules/uninorm/decomposing-form-tests (Files): Likewise.
60071         * modules/uninorm/decomposition-tests (Files): Likewise.
60072         * modules/uninorm/filter-tests (Files): Likewise.
60073         * modules/uninorm/nfc-tests (Files): Likewise.
60074         * modules/uninorm/nfd-tests (Files): Likewise.
60075         * modules/uninorm/nfkc-tests (Files): Likewise.
60076         * modules/uninorm/nfkd-tests (Files): Likewise.
60077         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
60078         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
60079         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
60080         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
60081         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
60082         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
60083         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
60084         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
60085         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
60086         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
60087         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
60088         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
60089         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
60090         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
60091         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
60092         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
60093         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
60094         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
60095         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
60096         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
60097         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
60098         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
60099         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
60100         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
60101         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
60102         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
60103         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
60104         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
60105         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
60106         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
60107         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
60108         * modules/uniwidth/u8-width-tests (Files): Likewise.
60109         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
60110         * modules/uniwidth/u16-width-tests (Files): Likewise.
60111         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
60112         * modules/uniwidth/u32-width-tests (Files): Likewise.
60113         * modules/uniwidth/width-tests (Files): Likewise.
60114         * modules/unlink-tests (Files): Likewise.
60115         * modules/unsetenv-tests (Files): Likewise.
60116         * modules/usleep-tests (Files): Likewise.
60117         * modules/utimens-tests (Files): Likewise.
60118         * modules/utimensat-tests (Files): Likewise.
60119         * modules/vasnprintf-posix-tests (Files): Likewise.
60120         * modules/vasnprintf-tests (Files): Likewise.
60121         * modules/vasprintf-posix-tests (Files): Likewise.
60122         * modules/vasprintf-tests (Files): Likewise.
60123         * modules/vdprintf-posix-tests (Files): Likewise.
60124         * modules/vfprintf-posix-tests (Files): Likewise.
60125         * modules/vprintf-posix-tests (Files): Likewise.
60126         * modules/vsnprintf-posix-tests (Files): Likewise.
60127         * modules/vsnprintf-tests (Files): Likewise.
60128         * modules/vsprintf-posix-tests (Files): Likewise.
60129         * modules/wcrtomb-tests (Files): Likewise.
60130         * modules/wcsnrtombs-tests (Files): Likewise.
60131         * modules/wcsrtombs-tests (Files): Likewise.
60132         * modules/wctype-tests (Files): Likewise.
60133         * modules/wcwidth-tests (Files): Likewise.
60134         * modules/xmemdup0-tests (Files): Likewise.
60135         * modules/xprintf-posix-tests (Files): Likewise.
60136         * modules/xvasprintf-tests (Files): Likewise.
60138 2009-12-24  Eric Blake  <ebb9@byu.net>
60140         test-nanosleep: fix typo
60141         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
60142         patch.
60143         Reported by Bruno Haible.
60145 2009-12-24  Bruno Haible  <bruno@clisp.org>
60147         Reduce namespace pollution on glibc systems.
60148         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
60149         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
60150         systems.
60151         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
60152         <getopt.h> on glibc systems.
60153         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
60154         systems.
60155         * lib/fcntl.c: Include <unistd.h> here instead.
60157 2009-12-24  Bruno Haible  <bruno@clisp.org>
60159         * lib/stdlib.in.h (includes): Fix typo in today's commit.
60161 2009-12-24  Eric Blake  <ebb9@byu.net>
60163         tests: add signature checks
60164         * tests/signature.h (SIGNATURE_CHECK): New file.
60165         * modules/atexit-tests (Files): Use it.
60166         * modules/btowc-tests (Files): Likewise.
60167         * modules/canonicalize-lgpl-tests (Files): Likewise.
60168         * modules/ceilf-tests (Files): Likewise.
60169         * modules/ceill-tests (Files): Likewise.
60170         * modules/chown-tests (Files): Likewise.
60171         * modules/dprintf-posix-tests (Files): Likewise.
60172         * modules/dup2-tests (Files): Likewise.
60173         * modules/dup3-tests (Files): Likewise.
60174         * modules/duplocale-tests (Files): Likewise.
60175         * modules/fchdir-tests (Files): Likewise.
60176         * modules/fcntl-tests (Files): Likewise.
60177         * modules/fdopendir-tests (Files): Likewise.
60178         * modules/fflush-tests (Files): Likewise.
60179         * modules/flock-tests (Files): Likewise.
60180         * modules/floorf-tests (Files): Likewise.
60181         * modules/floorl-tests (Files): Likewise.
60182         * modules/fnmatch-tests (Files): Likewise.
60183         * modules/fopen-tests (Files): Likewise.
60184         * modules/fprintf-posix-tests (Files): Likewise.
60185         * modules/freopen-tests (Files): Likewise.
60186         * modules/frexp-nolibm-tests (Files): Likewise.
60187         * modules/frexp-tests (Files): Likewise.
60188         * modules/frexpl-nolibm-tests (Files): Likewise.
60189         * modules/frexpl-tests (Files): Likewise.
60190         * modules/fseek-tests (Files): Likewise.
60191         * modules/fseeko-tests (Files): Likewise.
60192         * modules/fsync-tests (Files): Likewise.
60193         * modules/ftell-tests (Files): Likewise.
60194         * modules/ftello-tests (Files): Likewise.
60195         * modules/futimens-tests (Files): Likewise.
60196         * modules/getaddrinfo-tests (Files): Likewise.
60197         * modules/getcwd-tests (Files): Likewise.
60198         * modules/getdelim-tests (Files): Likewise.
60199         * modules/getdtablesize-tests (Files): Likewise.
60200         * modules/getgroups-tests (Files): Likewise.
60201         * modules/gethostname-tests (Files): Likewise.
60202         * modules/getline-tests (Files): Likewise.
60203         * modules/getopt-posix-tests (Files): Likewise.
60204         * modules/gettimeofday-tests (Files): Likewise.
60205         * modules/glob-tests (Files): Likewise.
60206         * modules/iconv-tests (Files): Likewise.
60207         * modules/inet_ntop-tests (Files): Likewise.
60208         * modules/inet_pton-tests (Files): Likewise.
60209         * modules/isblank-tests (Files): Likewise.
60210         * modules/lchown-tests (Files): Likewise.
60211         * modules/ldexpl-tests (Files): Likewise.
60212         * modules/link-tests (Files): Likewise.
60213         * modules/linkat-tests (Files): Likewise.
60214         * modules/lseek-tests (Files): Likewise.
60215         * modules/lstat-tests (Files): Likewise.
60216         * modules/mbrtowc-tests (Files): Likewise.
60217         * modules/mbsinit-tests (Files): Likewise.
60218         * modules/mbsnrtowcs-tests (Files): Likewise.
60219         * modules/mbsrtowcs-tests (Files): Likewise.
60220         * modules/memchr-tests (Files): Likewise.
60221         * modules/memcmp-tests (Files): Likewise.
60222         * modules/memmem-tests (Files): Likewise.
60223         * modules/memrchr-tests (Files): Likewise.
60224         * modules/mkdir-tests (Files): Likewise.
60225         * modules/mkfifo-tests (Files): Likewise.
60226         * modules/mkfifoat-tests (Files): Likewise.
60227         * modules/mknod-tests (Files): Likewise.
60228         * modules/nanosleep-tests (Files): Likewise.
60229         * modules/nl_langinfo-tests (Files): Likewise.
60230         * modules/obstack-printf-tests (Files): Likewise.
60231         * modules/open-tests (Files): Likewise.
60232         * modules/openat-tests (Files): Likewise.
60233         * modules/perror-tests (Files): Likewise.
60234         * modules/pipe2-tests (Files): Likewise.
60235         * modules/poll-tests (Files): Likewise.
60236         * modules/popen-tests (Files): Likewise.
60237         * modules/posix_spawn-tests (Files): Likewise.
60238         * modules/posix_spawnp-tests (Files): Likewise.
60239         * modules/pread-tests (Files): Likewise.
60240         * modules/printf-posix-tests (Files): Likewise.
60241         * modules/pty-tests (Files): Likewise.
60242         * modules/random_r-tests (Files): Likewise.
60243         * modules/rawmemchr-tests (Files): Likewise.
60244         * modules/readlink-tests (Files): Likewise.
60245         * modules/remove-tests (Files): Likewise.
60246         * modules/rename-tests (Files): Likewise.
60247         * modules/renameat-tests (Files): Likewise.
60248         * modules/rmdir-tests (Files): Likewise.
60249         * modules/round-tests (Files): Likewise.
60250         * modules/roundf-tests (Files): Likewise.
60251         * modules/roundl-tests (Files): Likewise.
60252         * modules/select-tests (Files): Likewise.
60253         * modules/setenv-tests (Files): Likewise.
60254         * modules/sigaction-tests (Files): Likewise.
60255         * modules/sleep-tests (Files): Likewise.
60256         * modules/snprintf-posix-tests (Files): Likewise.
60257         * modules/snprintf-tests (Files): Likewise.
60258         * modules/sprintf-posix-tests (Files): Likewise.
60259         * modules/stat-tests (Files): Likewise.
60260         * modules/strcasestr-tests (Files): Likewise.
60261         * modules/strchrnul-tests (Files): Likewise.
60262         * modules/strerror-tests (Files): Likewise.
60263         * modules/strsignal-tests (Files): Likewise.
60264         * modules/strstr-tests (Files): Likewise.
60265         * modules/strtod-tests (Files): Likewise.
60266         * modules/strverscmp-tests (Files): Likewise.
60267         * modules/symlink-tests (Files): Likewise.
60268         * modules/symlinkat-tests (Files): Likewise.
60269         * modules/times-tests (Files): Likewise.
60270         * modules/trunc-tests (Files): Likewise.
60271         * modules/truncf-tests (Files): Likewise.
60272         * modules/truncl-tests (Files): Likewise.
60273         * modules/tsearch-tests (Files): Likewise.
60274         * modules/uname-tests (Files): Likewise.
60275         * modules/unlink-tests (Files): Likewise.
60276         * modules/unsetenv-tests (Files): Likewise.
60277         * modules/usleep-tests (Files): Likewise.
60278         * modules/utimensat-tests (Files): Likewise.
60279         * modules/vasprintf-tests (Files): Likewise.
60280         * modules/vdprintf-posix-tests (Files): Likewise.
60281         * modules/vfprintf-posix-tests (Files): Likewise.
60282         * modules/vprintf-posix-tests (Files): Likewise.
60283         * modules/vsnprintf-posix-tests (Files): Likewise.
60284         * modules/vsnprintf-tests (Files): Likewise.
60285         * modules/vsprintf-posix-tests (Files): Likewise.
60286         * modules/wcrtomb-tests (Files): Likewise.
60287         * modules/wcsnrtombs-tests (Files): Likewise.
60288         * modules/wcsrtombs-tests (Files): Likewise.
60289         * modules/wcwidth-tests (Files): Likewise.
60290         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
60291         * tests/test-isinf.c (isinf): Likewise.
60292         * tests/test-isnan.c (isnan): Likewise.
60293         * tests/test-signbit.c (signbit): Likewise.
60294         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
60295         declaration, either as macro or with correct signature.
60296         (select): Ensure function under test is declared with correct
60297         signature in correct header.
60298         * tests/test-atexit.c (atexit): Likewise.
60299         * tests/test-btowc.c (btowc): Likewise.
60300         * tests/test-canonicalize-lgpl.c (realpath)
60301         (canonicalize_file_name): Likewise.
60302         * tests/test-ceilf1.c (ceilf): Likewise.
60303         * tests/test-ceill.c (ceill): Likewise.
60304         * tests/test-chown.c (chown): Likewise.
60305         * tests/test-dprintf-posix.c (dprintf): Likewise.
60306         * tests/test-dup2.c (dup2): Likewise.
60307         * tests/test-dup3.c (dup3): Likewise.
60308         * tests/test-duplocale.c (duplocale): Likewise.
60309         * tests/test-fchdir.c (fchdir): Likewise.
60310         * tests/test-fchownat.c (fchownat): Likewise.
60311         * tests/test-fcntl.c (fcntl): Likewise.
60312         * tests/test-fdopendir.c (fdopendir): Likewise.
60313         * tests/test-fflush.c (fflush): Likewise.
60314         * tests/test-flock.c (flock): Likewise.
60315         * tests/test-floorf1.c (floorf): Likewise.
60316         * tests/test-floorl.c (floorl): Likewise.
60317         * tests/test-fnmatch.c (fnmatch): Likewise.
60318         * tests/test-fopen.c (fopen): Likewise.
60319         * tests/test-fprintf-posix.c (fprintf): Likewise.
60320         * tests/test-freopen.c (freopen): Likewise.
60321         * tests/test-frexp.c (frexp): Likewise.
60322         * tests/test-frexpl.c (frexpl): Likewise.
60323         * tests/test-fseek.c (fseek): Likewise.
60324         * tests/test-fseeko.c (fseeko): Likewise.
60325         * tests/test-fstatat.c (fstatat): Likewise.
60326         * tests/test-fsync.c (fsync): Likewise.
60327         * tests/test-ftell.c (ftell): Likewise.
60328         * tests/test-ftello.c (ftello): Likewise.
60329         * tests/test-futimens.c (futimens): Likewise.
60330         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
60331         (gai_strerror): Likewise.
60332         * tests/test-getcwd.c (getcwd): Likewise.
60333         * tests/test-getdelim.c (getdelim): Likewise.
60334         * tests/test-getdtablesize.c (getdtablesize): Likewise.
60335         * tests/test-getgroups.c (getgroups): Likewise.
60336         * tests/test-gethostname.c (gethostname): Likewise.
60337         * tests/test-getline.c (getline): Likewise.
60338         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
60339         Likewise.
60340         * tests/test-gettimeofday.c (gettimeofday): Likewise.
60341         * tests/test-glob.c (glob, globfree): Likewise.
60342         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
60343         * tests/test-inet_ntop.c (inet_ntop): Likewise.
60344         * tests/test-inet_pton.c (inet_pton): Likewise.
60345         * tests/test-isblank.c (isblank): Likewise.
60346         * tests/test-lchown.c (lchown): Likewise.
60347         * tests/test-ldexpl.c (ldexpl): Likewise.
60348         * tests/test-link.c (link): Likewise.
60349         * tests/test-linkat.c (linkat): Likewise.
60350         * tests/test-lseek.c (lseek): Likewise.
60351         * tests/test-lstat.c (lstat): Likewise.
60352         * tests/test-mbrtowc.c (mbrtowc): Likewise.
60353         * tests/test-mbsinit.c (mbsinit): Likewise.
60354         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
60355         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
60356         * tests/test-memchr.c (memchr): Likewise.
60357         * tests/test-memcmp.c (memcmp): Likewise.
60358         * tests/test-memmem.c (memmem): Likewise.
60359         * tests/test-memrchr.c (memrchr): Likewise.
60360         * tests/test-mkdir.c (mkdir): Likewise.
60361         * tests/test-mkdirat.c (mkdirat): Likewise.
60362         * tests/test-mkfifo.c (mkfifo): Likewise.
60363         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
60364         * tests/test-mknod.c (mknod): Likewise.
60365         * tests/test-nanosleep.c (nanosleep): Likewise.
60366         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
60367         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
60368         Likewise.
60369         * tests/test-open.c (open): Likewise.
60370         * tests/test-openat.c (openat): Likewise.
60371         * tests/test-perror.c (perror): Likewise.
60372         * tests/test-pipe2.c (pipe2): Likewise.
60373         * tests/test-poll.c (poll): Likewise.
60374         * tests/test-popen.c (popen, pclose): Likewise.
60375         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
60376         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
60377         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
60378         (posix_spawn_file_actions_destroy)
60379         (posix_spawn_file_actions_addclose)
60380         (posix_spawn_file_actions_addopen)
60381         (posix_spawn_file_actions_adddup2): Likewise.
60382         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
60383         * tests/test-pread.c (pread): Likewise.
60384         * tests/test-printf-posix.c (printf): Likewise.
60385         * tests/test-pty.c (openpty, forkpty): Likewise.
60386         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
60387         (random_r): Likewise.
60388         * tests/test-rawmemchr.c (rawmemchr): Likewise.
60389         * tests/test-readlink.c (readlink): Likewise.
60390         * tests/test-remove.c (remove): Likewise.
60391         * tests/test-rename.c (rename): Likewise.
60392         * tests/test-renameat.c (renameat): Likewise.
60393         * tests/test-rmdir.c (rmdir): Likewise.
60394         * tests/test-round1.c (round): Likewise.
60395         * tests/test-roundf1.c (roundf): Likewise.
60396         * tests/test-roundl.c (roundl): Likewise.
60397         * tests/test-setenv.c (setenv): Likewise.
60398         * tests/test-sigaction.c (sigaction): Likewise.
60399         * tests/test-sleep.c (sleep): Likewise.
60400         * tests/test-snprintf.c (snprintf): Likewise.
60401         * tests/test-sprintf-posix.c (sprintf): Likewise.
60402         * tests/test-stat.c (stat): Likewise.
60403         * tests/test-stpncpy.c (stpncpy): Likewise.
60404         * tests/test-strcasestr.c (strcasestr): Likewise.
60405         * tests/test-strchrnul.c (strchrnul): Likewise.
60406         * tests/test-strerror.c (strerror): Likewise.
60407         * tests/test-strsignal.c (strsignal): Likewise.
60408         * tests/test-strstr.c (strstr): Likewise.
60409         * tests/test-strtod.c (strtod): Likewise.
60410         * tests/test-strverscmp.c (strverscmp): Likewise.
60411         * tests/test-symlink.c (symlink): Likewise.
60412         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
60413         * tests/test-times.c (times): Likewise.
60414         * tests/test-trunc1.c (trunc): Likewise.
60415         * tests/test-truncf1.c (truncf): Likewise.
60416         * tests/test-truncl.c (truncl): Likewise.
60417         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
60418         Likewise.
60419         * tests/test-uname.c (uname): Likewise.
60420         * tests/test-unlink.c (unlink): Likewise.
60421         * tests/test-unlinkat.c (unlinkat): Likewise.
60422         * tests/test-unsetenv.c (unsetenv): Likewise.
60423         * tests/test-usleep.c (usleep): Likewise.
60424         * tests/test-utimensat.c (utimensat): Likewise.
60425         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
60426         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
60427         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
60428         * tests/test-vprintf-posix.c (vprintf): Likewise.
60429         * tests/test-vsnprintf.c (vsnprintf): Likewise.
60430         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
60431         * tests/test-wcrtomb.c (wcrtomb): Likewise.
60432         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
60433         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
60434         * tests/test-wcwidth.c (wcwidth): Likewise.
60436         build: pull in conditional headers during GNULIB_POSIXCHECK
60437         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
60438         definitions from any conditionally-included headers.
60439         * lib/stdlib.in.h (includes): Likewise.
60440         * lib/unistd.in.h (includes): Likewise.
60442 2009-12-24  Bruno Haible  <bruno@clisp.org>
60444         * tests/test-argv-iter.c: Include header file being tested immediately
60445         after config.h.
60446         * tests/test-base64.c: Likewise.
60447         * tests/test-flock.c: Likewise.
60448         * tests/test-fsync.c: Likewise.
60449         * tests/test-getdate.c: Likewise.
60450         * tests/test-getndelim2.c: Likewise.
60451         * tests/test-isfinite.c: Likewise.
60452         * tests/test-isinf.c: Likewise.
60453         * tests/test-strerror.c: Likewise.
60454         * tests/test-strsignal.c: Likewise.
60456 2009-12-23  Eric Blake  <ebb9@byu.net>
60458         unistd: work around cygwin bug
60459         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
60460         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
60461         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
60463 2009-12-23  Bruno Haible  <bruno@clisp.org>
60465         localename: More tests.
60466         * tests/test-localename.c (SIZEOF): New macro.
60467         (categories): New variable.
60468         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
60469         test_locale_name_default): Add test w.r.t. thread locale.
60470         (test_locale_name_thread): New function.
60471         (main): Invoke it.
60473         localename: Make aware of thread locale.
60474         * lib/localename.h (gl_locale_name_thread): New declaration.
60475         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
60476         behaviour with respect to thread locale.
60477         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
60478         <langinfo.h>, glthread/lock.h.
60479         (SIZE_BITS): New macro.
60480         (string_hash): New function.
60481         (struct hash_node): New type.
60482         (HASH_TABLE_SIZE): New macro.
60483         (struniq_hash_table, struniq_lock): New variables.
60484         (struniq): New function.
60485         (gl_locale_name_thread): New function.
60486         (gl_locale_name): Invoke it.
60487         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
60488         * modules/localename (Depends-on): Add lock.
60489         Reported by Mike Gran <spk121@yahoo.com>.
60491 2009-12-23  Eric Blake  <ebb9@byu.net>
60493         va-args: new module
60494         * modules/va-args: New file.
60495         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
60496         * MODULES.html.sh (Core language properties): Mention it.
60498         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
60499         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
60500         named alias for __attribute__((__unused__)).
60501         * lib/chown.c: Update client.
60502         * lib/fchmodat.c: Likewise.
60503         * lib/fts.c: Likewise.
60504         * lib/getdate.y: Likewise.
60505         * lib/getgroups.c: Likewise.
60506         * lib/getopt.c: Likewise.
60507         * lib/getugroups.c: Likewise.
60508         * lib/mkdir.c: Likewise.
60509         * lib/mkfifo.c: Likewise.
60510         * lib/mkfifoat.c: Likewise.
60511         * lib/mknod.c: Likewise.
60512         * lib/mknodat.c: Likewise.
60513         * lib/readlink.c: Likewise.
60514         * lib/se-context.in.h: Likewise.
60515         * lib/se-selinux.in.h: Likewise.
60516         * lib/sockets.c: Likewise.
60517         * lib/symlink.c: Likewise.
60518         * lib/symlinkat.c: Likewise.
60519         * lib/unicodeio.c: Likewise.
60520         * lib/unistr.h: Likewise.
60521         * tests/test-areadlink.c: Likewise.
60522         * tests/test-areadlinkat.c: Likewise.
60523         * tests/test-filenamecat.c: Likewise.
60524         * tests/test-fseeko.c: Likewise.
60525         * tests/test-ftello.c: Likewise.
60526         * tests/test-getdate.c: Likewise.
60527         * tests/test-getgroups.c: Likewise.
60528         * tests/test-gethostname.c: Likewise.
60529         * tests/test-quotearg.c: Likewise.
60530         * tests/test-version-etc.c: Likewise.
60531         * tests/test-xalloc-die.c: Likewise.
60532         * tests/test-xfprintf-posix.c: Likewise.
60533         * tests/test-xprintf-posix.c: Likewise.
60534         * tests/test-xvasprintf.c: Likewise.
60536         tests: avoid compiler warnings
60537         * tests/test-fcntl.c (main): Delete unused parameters.
60538         * tests/test-freopen-safer.c (main): Likewise.
60539         * tests/test-xalloc-die.c (main): Mark unused parameters.
60540         * tests/test-fseeko.c (main): Likewise.
60541         * tests/test-ftello.c (main): Likewise.
60542         * tests/test-nanosleep.c (main): Avoid declaration warning.
60543         * tests/test-sleep.c (main): Likewise.
60544         * tests/test-unsetenv.c (main): Silence warning about string
60545         literal.
60546         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
60548 2009-12-23  Bruno Haible  <bruno@clisp.org>
60550         * tests/test-localename.c (test_locale_name): New function, extracted
60551         from main. Also test mixed situations.
60552         (test_locale_name_posix, test_locale_name_environ,
60553         test_locale_name_default): New functions.
60554         (main): Invoke them all.
60555         * modules/localename-tests (configure.ac): Test for newlocale.
60557 2009-12-23  Bruno Haible  <bruno@clisp.org>
60559         unistd: Ensure getcwd gets declared before being overridden.
60560         * lib/unistd.in.h: Conditionally include <io.h>.
60562 2009-12-22  Bruno Haible  <bruno@clisp.org>
60564         wchar: Diagnose broken combination of glibc and gcc versions and flags.
60565         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
60566         (gl_WCHAR_H): Invoke it.
60567         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
60568         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
60569         Reported by Karl Berry <karl@freefriends.org>.
60571 2009-12-22  Eric Blake  <ebb9@byu.net>
60573         math, unistd: avoid redundant includes
60574         * lib/math.in.h (isnan): No need to re-include <math.h>.
60575         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
60577         getsubopt: work around cygwin bug
60578         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
60579         avoid conflicting with system getsubopt.
60580         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
60581         bug.
60583         getopt: synchronize from glibc
60584         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
60585         parameter order.  Adjust all callers.
60586         (_getopt_internal_r, main): Adjust quoting in error messages.
60587         Drop considerations for outdated POSIX 1003.2 error message.
60588         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
60589         callers.
60590         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
60592         test-getopt: test stderr behavior
60593         * modules/getopt-posix-tests (Depends-on): Add dup2.
60594         * tests/test-getopt.c (ASSERT): Avoid stderr.
60595         (main): Move stderr to a temporary file.
60596         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
60597         Instead, add parameter to inform caller if output occurred.
60598         (test_getopt): Adjust all existing tests to expect silence, and
60599         add new tests of leading ":".
60600         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60601         glibc shortcomings with leading "-:" or "+:" in optstring.
60602         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60603         Likewise.
60604         * doc/posix-functions/getopt.texi (getopt): Likewise.
60606         test-getopt: enhance test
60607         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
60608         supports optind=0.
60609         * tests/test-getopt.c (OPTIND_MIN): Move...
60610         * tests/test-getopt.h (OPTIND_MIN): ...here.
60611         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
60612         Require that optind=0 works, since modern BSD supports it in
60613         addition to optreset, and since coreutils expects it.
60614         (test_getopt_long_only): New test.
60615         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
60616         glibc shortcomings with 'W;', and enforcement of optind=0.
60617         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
60618         Likewise.
60620 2009-12-21  Bruno Haible  <bruno@clisp.org>
60622         localename: Improvements for MacOS X and Cygwin.
60623         * lib/localename.h (gl_locale_name_environ): New declaration.
60624         * lib/localename.c (gl_locale_name_environ): New function, extracted from
60625         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
60626         (gl_locale_name_posix): Invoke it.
60627         (gl_locale_name_default): Add comments. Use Windows native API also on
60628         Cygwin.
60630 2009-12-21  Bruno Haible  <bruno@clisp.org>
60632         Update list of Win32 locale ids.
60633         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
60634         (LANG_SAMI): Renamed from LANG_SAAMI.
60635         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
60636         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
60637         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
60638         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
60639         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
60640         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
60641         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
60642         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
60643         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
60644         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
60645         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
60646         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
60647         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
60648         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
60649         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
60650         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
60651         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
60652         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
60653         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
60654         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
60655         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
60656         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
60657         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
60658         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
60659         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
60660         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
60661         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
60662         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
60663         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
60664         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
60665         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
60666         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
60667         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
60668         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
60669         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
60670         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
60671         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
60672         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
60673         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
60674         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
60675         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
60676         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
60677         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
60678         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
60679         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
60680         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
60681         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
60682         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
60683         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
60684         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
60685         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
60686         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
60687         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
60688         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
60689         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
60690         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
60691         Add more languages and countries for Sami, Sorbian. Add more countries
60692         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
60693         for Pashto. Change country for Syriac, Tswana.
60695 2009-12-21  Eric Blake  <ebb9@byu.net>
60697         test-utimens: avoid spurious failure
60698         * tests/test-chown.h (nap): Factor...
60699         * tests/nap.h: ...into new file.
60700         * tests/test-lchown.h (nap): Avoid duplication.
60701         * tests/test-utimens-common.h (nap): Use shared implementation,
60702         necessary on file systems with 1-second resolution.
60703         * modules/chown-tests (Files): Include new file.
60704         * modules/fdutimensat-tests (Files): Likewise.
60705         * modules/futimens-tests (Files): Likewise.
60706         * modules/lchown-tests (Files): Likewise.
60707         * modules/openat-tests (Files): Likewise.
60708         * modules/utimens-tests (Files): Likewise.
60709         * modules/utimensat-tests (Files): Likewise.
60711 2009-12-19  Eric Blake  <ebb9@byu.net>
60713         futimens, utimensat: work around Linux bug
60714         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
60715         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
60716         * lib/utimensat.c (rpl_utimensat): Work around it.
60717         * lib/futimens.c (rpl_futimens): Adjust comment.
60719         utimens: work around Linux ctime bug
60720         * lib/utimens.c (detect_ctime_bug): New helper function.
60721         (update_timespec): Differentiate between workaround needed for
60722         this bug vs. what is needed for systems that lack utimensat.
60723         (fdutimens, lutimens): Work around bug.
60725         utimens: check for ctime update
60726         * tests/test-utimens-common.h (check_ctime): Define.
60727         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
60728         * tests/test-futimens.h (test_futimens): Likewise.
60729         * tests/test-lutimens.h (test_lutimens): Likewise.
60730         * doc/posix-functions/futimens.texi (futimens): Document the bug.
60731         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
60733 2009-12-19  Bruno Haible  <bruno@clisp.org>
60735         dprintf-posix: Check against memory leak fixed on 2009-12-15.
60736         * tests/test-dprintf-posix2.sh: New file.
60737         * tests/test-dprintf-posix2.c: New file.
60738         * modules/dprintf-posix-tests (Files): Add them.
60739         (configure.ac): Check for getrlimit and setrlimit.
60740         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60742 2009-12-19  Bruno Haible  <bruno@clisp.org>
60744         fprintf-posix: Check against memory leak fixed on 2009-12-15.
60745         * tests/test-fprintf-posix3.sh: New file.
60746         * tests/test-fprintf-posix3.c: New file.
60747         * modules/fprintf-posix-tests (Files): Add them.
60748         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
60750 2009-12-19  Eric Blake  <ebb9@byu.net>
60752         dirfd: fix prototype
60753         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
60754         * lib/dirfd.c (dirfd): Likewise.
60756         canonicalize: reduce memory usage
60757         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
60758         allocation to size.
60759         Reported by Solar Designer <solar@openwall.com>.
60761 2009-12-19  Bruno Haible  <bruno@clisp.org>
60763         New module attribute 'Applicability'.
60764         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
60765         * gnulib-tool: New option --extract-applicability.
60766         (func_usage): Document it.
60767         (sed_extract_prog): Recognize it.
60768         (func_get_applicability): New function.
60769         (func_import): Generalize handling of 'link-warning' module.
60770         * modules/link-warning (Applicability): New section.
60771         * modules/arg-nonnull (Applicability): New section.
60772         Repoted by Simon Josefsson <simon@josefsson.org>.
60774 2009-12-19  Bruno Haible  <bruno@clisp.org>
60776         fflush: tweak
60777         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
60778         * lib/fseeko.c (rpl_fseeko): Likewise.
60780 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
60782         * lib/gl_list.h: Fix typo in comment.
60784 2009-12-16  Eric Blake  <ebb9@byu.net>
60786         fcntl: use to simplify other modules
60787         * modules/cloexec (Depends-on): Add fcntl.
60788         * modules/fchdir (Depends-on): Likewise.
60789         * modules/fd-safer-flag (Depends-on): Likewise.
60790         * modules/unistd-safer (Depends-on): Likewise.
60791         * modules/dup3 (configure.ac): Set module indicator.
60792         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
60793         missing.
60794         * lib/fchdir.c (_gl_register_dup): Fix comment.
60795         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
60796         * lib/dup-safer.c (dup_safer): Likewise.
60797         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
60798         * lib/dup3.c (dup3): Likewise.
60799         * tests/test-fchdir.c (main): Enhance test.
60800         Fixes a dup_cloexec bug reported by Ondřej Vašík.
60802         fcntl: port portions of fcntl to mingw
60803         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
60804         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
60805         replacement for mingw.
60806         * modules/fcntl (Description): Update.
60807         (Depends-on): Add dup2.
60808         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
60809         * modules/fcntl-h (Makefile.am): Substitute it.
60810         * lib/fcntl.in.h (fcntl): Update declaration.
60811         (F_DUPFD, F_GETFD): New macros, when needed.
60812         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
60813         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
60814         * tests/test-fcntl.c (check_flags, main): Enhance test for items
60815         we now guarantee.
60817         fcntl: work around cygwin bug in F_DUPFD
60818         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
60819         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
60820         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
60821         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
60822         * doc/posix-functions/fcntl.texi (fcntl): Document it.
60824         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
60825         * modules/fcntl (Files): List new files.
60826         (configure.ac): Run a test.
60827         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
60828         * lib/fcntl.c (rpl_fcntl): Likewise.
60829         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
60830         (gl_FCNTL_H): Always replace fcntl.h.
60831         * modules/fcntl-h (Makefile.am): Substitute witnesses.
60832         * lib/fcntl.in.h (fcntl): Declare replacement.
60833         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
60834         needed, plus a witness.
60835         * doc/posix-functions/fcntl.texi (fcntl): Document this.
60836         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
60837         * tests/test-fcntl.c: New file.
60838         * modules/fcntl-tests: Likewise.
60840         binary-io: avoid potential compilation warning
60841         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
60842         directives.
60844         fflush: avoid compilation error on NetBSD
60845         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
60846         between off_t and fpos_t, since the latter is sometimes a struct.
60847         * lib/fseeko.c (rpl_fseeko): Likewise.
60848         Reported by Alexander Nasonov <alnsn@yandex.ru>.
60850 2009-12-15  Eric Blake  <ebb9@byu.net>
60852         fcntl-h, stdio, sys_ioctl: fix declarations
60853         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
60854         function must not take arguments.
60855         * lib/sys_ioctl.in.h (ioctl): Likewise.
60856         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
60857         (open): Add a link warning.
60859 2009-12-15  Jim Meyering  <meyering@redhat.com>
60861         areadlink, areadlink-with-size: relax license to LGPLv2+
60862         * modules/areadlink (License): Relax to LGPLv2+.
60863         * modules/areadlink-with-size (License): Likewise.
60865 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
60866             Bruno Haible  <bruno@clisp.org>
60868         *printf: Fix memory leak.
60869         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
60870         * lib/vfprintf.c (vfprintf): Likewise.
60871         * lib/dprintf.c (dprintf): Likewise.
60872         * lib/vdprintf.c (vdprintf): Likewise.
60874 2009-12-14  Eric Blake  <ebb9@byu.net>
60876         accept4: adjust module dependencies
60877         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
60879         utimens: one more try at avoiding compiler warning
60880         * lib/utimens.c (lutimens): Lower scope of result.
60882 2009-12-13  Bruno Haible  <bruno@clisp.org>
60884         Move the malloc checking from module 'list' to new module 'xlist'.
60885         * modules/xlist: New file.
60886         * lib/gl_xlist.h: New file.
60887         * lib/gl_xlist.c: New file.
60888         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
60889         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
60890         gl_list_add_last, gl_list_add_before, gl_list_add_after,
60891         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
60892         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
60893         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
60894         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
60895         gl_sortedlist_nx_add): New declarations.
60896         (struct gl_list_implementation): Rename and change methods accordingly.
60897         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
60898         (gl_list_nx_create): Renamed from gl_list_create.
60899         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60900         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60901         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60902         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60903         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60904         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60905         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60906         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60907         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
60908         gl_list_create_empty.
60909         (gl_list_nx_create): Renamed from gl_list_create.
60910         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
60911         (gl_list_nx_set_at): Renamed from gl_list_set_at.
60912         (gl_list_nx_add_first): Renamed from gl_list_add_first.
60913         (gl_list_nx_add_last): Renamed from gl_list_add_last.
60914         (gl_list_nx_add_before): Renamed from gl_list_add_before.
60915         (gl_list_nx_add_after): Renamed from gl_list_add_after.
60916         (gl_list_nx_add_at): Renamed from gl_list_add_at.
60917         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
60918         * lib/gl_array_list.c: Don't include xalloc.h.
60919         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
60920         NULL upon out-of-memory.
60921         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
60922         out-of-memory.
60923         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
60924         Change return type to 'int'.
60925         (gl_array_nx_set_at): Renamed from gl_array_set_at.
60926         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60927         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
60928         upon out-of-memory.
60929         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
60930         upon out-of-memory.
60931         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
60932         upon out-of-memory.
60933         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
60934         upon out-of-memory.
60935         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
60936         out-of-memory.
60937         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
60938         Update.
60939         (gl_array_list_implementation): Update.
60940         * lib/gl_carray_list.c: Don't include xalloc.h.
60941         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
60942         Return NULL upon out-of-memory.
60943         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
60944         out-of-memory.
60945         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
60946         Change return type to 'int'.
60947         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
60948         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
60949         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
60950         upon out-of-memory.
60951         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
60952         upon out-of-memory.
60953         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
60954         out-of-memory.
60955         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
60956         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
60957         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
60958         Update.
60959         (gl_carray_list_implementation): Update.
60960         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
60961         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
60962         gl_linked_create_empty. Return NULL upon out-of-memory.
60963         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
60964         out-of-memory.
60965         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
60966         Change return type to 'int'. Return -1 upon out-of-memory.
60967         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
60968         out-of-memory.
60969         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
60970         upon out-of-memory.
60971         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
60972         upon out-of-memory.
60973         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
60974         NULL upon out-of-memory.
60975         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
60976         upon out-of-memory.
60977         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
60978         out-of-memory.
60979         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
60980         Update.
60981         * lib/gl_linked_list.c: Don't include xalloc.h.
60982         (gl_linked_list_implementation): Update.
60983         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
60984         (add_to_bucket): Change return type to 'int'.
60985         (gl_linkedhash_list_implementation): Update.
60986         * lib/gl_anytree_list1.h (free_subtree): New function.
60987         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
60988         gl_tree_create_empty. Return NULL upon out-of-memory.
60989         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
60990         Change return type to 'int'. Return -1 upon out-of-memory.
60991         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
60992         out-of-memory.
60993         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
60994         (gl_tree_remove_node): New function, moved here from
60995         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
60996         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
60997         Update.
60998         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
60999         malloc, not xmalloc. Return NULL upon out-of-memory.
61000         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
61001         out-of-memory.
61002         (gl_tree_remove_node_from_tree): New function, extracted from
61003         gl_tree_remove_node.
61004         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
61005         upon out-of-memory.
61006         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
61007         out-of-memory.
61008         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
61009         upon out-of-memory.
61010         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
61011         upon out-of-memory.
61012         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
61013         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
61014         not xmalloc. Return NULL upon out-of-memory.
61015         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
61016         out-of-memory.
61017         (gl_tree_remove_node_from_tree): New function, extracted from
61018         gl_tree_remove_node.
61019         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
61020         upon out-of-memory.
61021         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
61022         out-of-memory.
61023         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
61024         upon out-of-memory.
61025         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
61026         upon out-of-memory.
61027         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
61028         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
61029         gl_anytree_list1.h before gl_anyavltree_list2.h.
61030         (gl_avltree_list_implementation): Update.
61031         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
61032         gl_anytree_list1.h before gl_anyavltree_list2.h.
61033         (gl_rbtree_list_implementation): Update.
61034         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
61035         Change return type to 'int'. Return -1 upon out-of-memory. Use
61036         __builtin_expect.
61037         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
61038         (gl_avltreehash_list_implementation): Update.
61039         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
61040         (gl_rbtreehash_list_implementation): Update.
61041         * modules/array-list (Depends-on): Remove xalloc.
61042         * modules/carray-list (Depends-on): Likewise.
61043         * modules/linked-list (Depends-on): Likewise.
61044         * modules/linkedhash-list (Depends-on): Likewise.
61045         * modules/avltree-list (Depends-on): Likewise.
61046         * modules/rbtree-list (Depends-on): Likewise.
61047         * modules/avltreehash-list (Depends-on): Likewise.
61048         * modules/rbtreehash-list (Depends-on): Likewise.
61050         * modules/xsublist: New file.
61051         * lib/gl_xsublist.h: New file.
61052         * lib/gl_xsublist.c: New file.
61053         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
61054         (gl_sublist_nx_create): New declaration.
61055         * lib/gl_sublist.c: Don't include xalloc.h.
61056         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
61057         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
61058         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
61059         Change return type to 'int'. Return -1 upon out-of-memory.
61060         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
61061         upon out-of-memory.
61062         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
61063         NULL upon out-of-memory.
61064         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
61065         upon out-of-memory.
61066         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
61067         NULL upon out-of-memory.
61068         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
61069         NULL upon out-of-memory.
61070         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
61071         upon out-of-memory.
61072         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
61073         (gl_sublist_list_implementation): Update.
61074         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
61075         upon out-of-memory.
61076         * modules/sublist (Depends-on): Remove xalloc.
61078         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
61079         * tests/test-carray_list.c: Likewise.
61080         * tests/test-linked_list.c: Likewise.
61081         * tests/test-linkedhash_list.c: Likewise.
61082         * tests/test-avltree_list.c: Likewise.
61083         * tests/test-rbtree_list.c: Likewise.
61084         * tests/test-avltreehash_list.c: Likewise.
61085         * tests/test-rbtreehash_list.c: Likewise.
61086         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
61087         * modules/carray-list-tests (Makefile.am): Likewise.
61088         * modules/linked-list-tests (Makefile.am): Likewise.
61089         * modules/linkedhash-list-tests (Makefile.am): Likewise.
61090         * modules/avltree-list-tests (Makefile.am): Likewise.
61091         * modules/rbtree-list-tests (Makefile.am): Likewise.
61092         * modules/avltreehash-list-tests (Makefile.am): Likewise.
61093         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
61095         * NEWS: Mention the changes.
61097         * lib/clean-temp.c: Include gl_xlist.h.
61098         * modules/clean-temp (Depends-on): Add xlist.
61100         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
61101         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
61103         * tests/test-array_oset.c: Include gl_xlist.h.
61104         * modules/array-oset-tests (Depends-on): Add xlist.
61106         Reported by José E. Marchesi <jemarch@gnu.org>.
61108 2009-12-13  Bruno Haible  <bruno@clisp.org>
61110         Move the malloc checking from module 'oset' to new module 'xoset'.
61111         * modules/xoset: New file.
61112         * lib/gl_xoset.h: New file.
61113         * lib/gl_xoset.c: New file.
61114         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
61115         declarations.
61116         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
61117         (struct gl_oset_implementation): Rename and change methods accordingly.
61118         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
61119         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
61120         'int'. Mark as __warn_unused_result__.
61121         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
61122         gl_oset_create_empty.
61123         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
61124         'int'.
61125         * lib/gl_array_oset.c: Don't include xalloc.h.
61126         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
61127         malloc, not xmalloc.
61128         (grow): Change return type to 'int'. Don't call xalloc_die.
61129         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
61130         to 'int'.
61131         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
61132         'int'.
61133         (gl_array_oset_implementation): Update.
61134         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
61135         gl_tree_create_empty.
61136         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
61137         'int'.
61138         * lib/gl_avltree_oset.c: Don't include xalloc.h.
61139         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
61140         xmalloc.
61141         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
61142         not xmalloc.
61143         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
61144         xmalloc.
61145         (gl_avltree_oset_implementation): Update.
61146         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
61147         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
61148         xmalloc.
61149         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
61150         not xmalloc.
61151         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
61152         xmalloc.
61153         (gl_rbtree_oset_implementation): Update.
61154         * modules/array-oset (Depends-on): Remove xalloc.
61155         * modules/avltree-oset (Depends-on): Likewise.
61156         * modules/rbtree-oset (Depends-on): Likewise.
61157         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
61158         * tests/test-avltree_oset.c: Likewise.
61159         * tests/test-rbtree_oset.c: Likewise.
61160         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
61161         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
61162         * modules/rbtree-oset-tests (Makefile.am): Likewise.
61163         * NEWS: Mention the change.
61165 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
61167         maint.mk: allow a project to override release-prep commands
61168         * top/maint.mk (alpha, beta, stable): Move release-preparatory
61169         commands into a new rule.
61170         (release-prep): New rule.
61171         (release-prep-hook): New overridable variable.
61173 2009-12-13  Bruno Haible  <bruno@clisp.org>
61175         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
61177 2009-12-13  Jim Meyering  <meyering@redhat.com>
61179         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
61180         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
61182 2009-12-12  Bruno Haible  <bruno@clisp.org>
61184         duplocale: Tweak.
61185         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
61187 2009-12-12  Karl Berry  <karl@gnu.org>
61189         * config/srclist.txt (strtoll.c): tab changes, no more sync.
61191 2009-12-12  Bruno Haible  <bruno@clisp.org>
61193         * m4/po.m4: Undo incorrect untabification.
61195 2009-12-12  Bruno Haible  <bruno@clisp.org>
61197         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
61198         * modules/c-strtod (Depends-on): Add locale.
61199         * modules/c-strtold (Depends-on): Likewise.
61201 2009-12-12  Bruno Haible  <bruno@clisp.org>
61203         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
61205 2009-12-11  Eric Blake  <ebb9@byu.net>
61207         setenv: relax requirement in light of POSIX ruling
61208         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
61209         not NULL.
61210         * tests/test-setenv.c (main): Relax test.
61211         * tests/test-unsetenv.c (main): Likewise.
61212         * doc/posix-functions/setenv.texi (setenv): Document this.
61213         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
61215 2009-12-11  Bruno Haible  <bruno@clisp.org>
61217         New module 'fd-safer-flag'.
61218         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
61219         * lib/dup-safer.c (dup_safer_flag): Remove function.
61220         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
61221         * lib/fd-safer.c (fd_safer_flag): Remove function.
61222         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
61223         * modules/cloexec (configure.ac): Drop indicator macro.
61224         * modules/fd-safer-flag: New file.
61225         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
61226         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
61227         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
61229 2009-12-11  Bruno Haible  <bruno@clisp.org>
61231         Tests for module 'nl_langinfo'.
61232         * modules/nl_langinfo-tests: New file.
61233         * tests/test-nl_langinfo.sh: New file.
61234         * tests/test-nl_langinfo.c: New file.
61236         New module 'nl_langinfo'.
61237         * lib/nl_langinfo.c: New file.
61238         * m4/nl_langinfo.m4: New file.
61239         * modules/nl_langinfo: New file.
61240         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
61242 2009-12-11  Bruno Haible  <bruno@clisp.org>
61244         Tests for module 'langinfo'.
61245         * modules/langinfo-tests: New file.
61246         * tests/test-langinfo.c: New file.
61248         New module 'langinfo'.
61249         * lib/langinfo.in.h: New file.
61250         * m4/langinfo_h.m4: New file.
61251         * modules/langinfo: New file.
61252         * doc/posix-headers/langinfo.texi: Mention the new module.
61254 2009-12-11  Bruno Haible  <bruno@clisp.org>
61256         * lib/config.charset: Untabify.
61258 2009-12-11  Bruno Haible  <bruno@clisp.org>
61260         * modules/unistd-safer (configure.ac): Drop indicator macro.
61262 2009-12-11  Bruno Haible  <bruno@clisp.org>
61264         Move pipe2-safer code to its own file.
61265         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
61266         * lib/pipe-safer.c (pipe2_safer): Remove function.
61267         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
61268         (Makefile.am): Add it to lib_SOURCES.
61270 2009-12-10  Bruno Haible  <bruno@clisp.org>
61272         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
61274 2009-12-10  Bruno Haible  <bruno@clisp.org>
61276         Declare which arguments expect non-NULL values, for GCC and clang.
61277         * build-aux/arg-nonnull.h: New file.
61278         * modules/arg-nonnull: New file.
61279         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
61280         (inet_ntop, inet_pton): Use it.
61281         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
61282         (closedir, dirfd, opendir, scandir, alphasort): Use it.
61283         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
61284         (open, openat): Use it.
61285         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
61286         (fnmatch): Use it.
61287         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
61288         (getopt, getopt_long, getopt_long_only): Use it.
61289         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
61290         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
61291         Use it.
61292         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
61293         (iconv_open): Use it.
61294         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
61295         (strtoimax, strtoumax): Use it.
61296         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
61297         (duplocale): Use it.
61298         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
61299         (frexp, frexpl): Use it.
61300         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
61301         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
61302         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
61303         (tsearch, tfind, tdelete, twalk): Use it.
61304         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
61305         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
61306         sigpending): Use it.
61307         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
61308         (posix_spawn, posix_spawnp, posix_spawnattr_init,
61309         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
61310         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
61311         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
61312         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
61313         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
61314         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
61315         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
61316         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
61317         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
61318         Use it.
61319         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
61320         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
61321         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
61322         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
61323         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
61324         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
61325         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
61326         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
61327         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
61328         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
61329         strtoull, unsetenv): Use it.
61330         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
61331         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
61332         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
61333         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
61334         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
61335         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
61336         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
61337         (strcasecmp, strncasecmp): Use it.
61338         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
61339         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
61340         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
61341         rpl_setsockopt): Use it.
61342         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
61343         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
61344         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
61345         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
61346         (gettimeofday): Use it.
61347         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
61348         (times): Use it.
61349         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
61350         (uname): Use it.
61351         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
61352         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
61353         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
61354         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
61355         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
61356         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
61357         unlinkat, write): Use it.
61358         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
61359         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
61360         * lib/argv-iter.h: Include arg-nonnull.h.
61361         (_ATTRIBUTE_NONNULL_): Remove macro.
61362         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
61363         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
61364         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
61365         optimization.
61366         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
61367         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
61368         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
61369         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
61370         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
61371         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
61372         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
61373         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
61374         * modules/arpa_inet (Depends-on): Add arg-nonnull.
61375         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
61376         * modules/dirent (Depends-on): Add arg-nonnull.
61377         (Makefile.am): Insert arg-nonnull.h into dirent.h.
61378         * modules/fcntl-h (Depends-on): Add arg-nonnull.
61379         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
61380         * modules/fnmatch (Depends-on): Add arg-nonnull.
61381         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
61382         * modules/getopt-posix (Depends-on): Add arg-nonnull.
61383         (Makefile.am): Insert arg-nonnull.h into getopt.h.
61384         * modules/glob (Depends-on): Add arg-nonnull.
61385         (Makefile.am): Insert arg-nonnull.h into glob.h.
61386         * modules/iconv_open (Depends-on): Add arg-nonnull.
61387         (Makefile.am): Insert arg-nonnull.h into iconv.h.
61388         * modules/inttypes (Depends-on): Add arg-nonnull.
61389         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
61390         * modules/locale (Depends-on): Add arg-nonnull.
61391         (Makefile.am): Insert arg-nonnull.h into locale.h.
61392         * modules/math (Depends-on): Add arg-nonnull.
61393         (Makefile.am): Insert arg-nonnull.h into math.h.
61394         * modules/netdb (Depends-on): Add arg-nonnull.
61395         (Makefile.am): Insert arg-nonnull.h into netdb.h.
61396         * modules/search (Depends-on): Add arg-nonnull.
61397         (Makefile.am): Insert arg-nonnull.h into search.h.
61398         * modules/signal (Depends-on): Add arg-nonnull.
61399         (Makefile.am): Insert arg-nonnull.h into signal.h.
61400         * modules/spawn (Depends-on): Add arg-nonnull.
61401         (Makefile.am): Insert arg-nonnull.h into spawn.h.
61402         * modules/stdio (Depends-on): Add arg-nonnull.
61403         (Makefile.am): Insert arg-nonnull.h into stdio.h.
61404         * modules/stdlib (Depends-on): Add arg-nonnull.
61405         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
61406         * modules/string (Depends-on): Add arg-nonnull.
61407         (Makefile.am): Insert arg-nonnull.h into string.h.
61408         * modules/strings (Depends-on): Add arg-nonnull.
61409         (Makefile.am): Insert arg-nonnull.h into strings.h.
61410         * modules/sys_socket (Depends-on): Add arg-nonnull.
61411         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
61412         * modules/sys_stat (Depends-on): Add arg-nonnull.
61413         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
61414         * modules/sys_time (Depends-on): Add arg-nonnull.
61415         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
61416         * modules/sys_times (Depends-on): Add arg-nonnull.
61417         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
61418         * modules/sys_utsname (Depends-on): Add arg-nonnull.
61419         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
61420         * modules/time (Depends-on): Add arg-nonnull.
61421         (Makefile.am): Insert arg-nonnull.h into time.h.
61422         * modules/unistd (Depends-on): Add arg-nonnull.
61423         (Makefile.am): Insert arg-nonnull.h into unistd.h.
61424         * modules/wchar (Depends-on): Add arg-nonnull.
61425         (Makefile.am): Insert arg-nonnull.h into wchar.h.
61426         * modules/argv-iter (Depends-on): Add arg-nonnull.
61427         * tests/test-canonicalize.c (null_ptr): New function.
61428         (main): Use it.
61429         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
61430         (main): Use it.
61431         * tests/test-memmem.c (null_ptr): New function.
61432         (main): Use it.
61433         Reported by Jim Meyering.
61435 2009-12-10  Bruno Haible  <bruno@clisp.org>
61437         Use spaces for indentation, not tabs.
61438         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
61439         * m4/*.m4: Untabify.
61440         * build-aux/*.h: Untabify.
61441         * tests/**/*.[hc]: Untabify.
61442         * README: New section "Indent with spaces, not TABs", based on
61443         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
61444         * NEWS: Mention the change.
61446 2009-12-10  Bruno Haible  <bruno@clisp.org>
61448         pty test: Fix link error.
61449         * modules/pty-tests (Makefile.am): Add the default LDADD value to
61450         test_pty_LDADD.
61452 2009-12-07  Simon Josefsson  <simon@josefsson.org>
61454         * modules/pty: New file.
61455         * modules/pty-tests: New file.
61456         * m4/pty.m4: New file.
61457         * tests/test-pty.c: New file.
61458         * doc/glibc-headers/pty.texi: Modified.
61459         * doc/glibc-functions/forkpty.texi: Modified.
61460         * doc/glibc-functions/openpty.texi: Modified.
61462 2009-12-10  Bruno Haible  <bruno@clisp.org>
61464         Avoid syntax error in C++ mode.
61465         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
61467 2009-12-10  Bruno Haible  <bruno@clisp.org>
61469         Use sed with option -e.
61470         * gnulib-tool (func_version, func_emit_copyright_notice,
61471         func_emit_initmacro_end, func_import, func_create_testdir): Pass
61472         option -e to sed.
61473         * modules/link-warning (Makefile.am): Likewise.
61475 2009-12-10  Jim Meyering  <meyering@redhat.com>
61477         mgetgroups: do not write bytes beyond end of malloc'd buffer
61478         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
61479         username, we call getgroups with a one-element-shorter buffer,
61480         but still told it the length was original, max_n_groups.
61482 2009-12-09  Eric Blake  <ebb9@byu.net>
61484         cloexec: relax license
61485         * modules/cloexec (Maintainer): Add myself.
61486         (License): Use LGPL, not GPL.
61488         link-warning: optimize generation
61489         * modules/link-warning (Makefile.am): Reduce process usage.
61491 2009-12-09  Bruno Haible  <bruno@clisp.org>
61493         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
61494         workaround was added on 2009-11-17.
61496 2009-12-09  Jim Meyering  <meyering@redhat.com>
61497             Bruno Haible  <bruno@clisp.org>
61499         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
61500         * modules/link-warning (Makefile.am): Make the comment-removing sed
61501         command more robust in the face of bootstrap-prepended comment lines.
61503 2009-12-09  Bruno Haible  <bruno@clisp.org>
61505         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
61506         most one group.
61508 2009-12-09  Simon Josefsson  <simon@josefsson.org>
61509             Bruno Haible  <bruno@clisp.org>
61511         * build-aux/link-warning.h: Add copyright notice.
61512         * modules/link-warning (Makefile.am): Generate link-warning.h from
61513         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
61514         * NEWS: Mention change in link-warning module.
61515         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
61516         * modules/dirent (Makefile.am): Add dependency to dirent.h.
61517         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
61518         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
61519         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
61520         * modules/math (Makefile.am): Add dependency to math.h.
61521         * modules/search (Makefile.am): Add dependency to search.h.
61522         * modules/signal (Makefile.am): Add dependency to signal.h.
61523         * modules/spawn (Makefile.am): Add dependency to spawn.h.
61524         * modules/stdio (Makefile.am): Add dependency to stdio.h.
61525         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
61526         * modules/string (Makefile.am): Add dependency to string.h.
61527         * modules/strings (Makefile.am): Add dependency to strings.h.
61528         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
61529         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
61530         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
61531         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
61532         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
61533         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
61534         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
61535         * modules/unistd (Makefile.am): Add dependency to unistd.h.
61536         * modules/wchar (Makefile.am): Add dependency to wchar.h.
61538 2009-12-09  Bruno Haible  <bruno@clisp.org>
61540         fchdir: Optimize away rpl_fstat when possible.
61541         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
61542         REPLACE_OPEN_DIRECTORY.
61543         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
61545 2009-12-09  Bruno Haible  <bruno@clisp.org>
61547         * lib/fchdir.c: Update comment.
61549 2009-12-09  Bruno Haible  <bruno@clisp.org>
61551         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
61553 2009-12-08  Eric Blake  <ebb9@byu.net>
61555         fchdir: avoid memory leak on re-registration.
61556         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
61558 2009-12-08  Jim Meyering  <meyering@redhat.com>
61560         init.sh: avoid Solaris 10 /bin/sh portability problem
61561         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
61562         sourced script:
61563           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
61564           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
61565           bar
61566         tests/init.sh relied on that, accepting a --set-path=DIR argument,
61567         and two tests used that idiom.
61568         * tests/init.sh: Update suggested usage comments.
61569         (path_prepend_): New function, to be used in place
61570         of the --src-path=DIR option.
61571         (setup_): Move PATH-prepending code into path_prepend_.
61572         * tests/test-pread.sh: Adapt to new usage.
61573         * tests/test-xalloc-die.sh: Likewise.
61575 2009-12-08  Simon Josefsson  <simon@josefsson.org>
61577         * doc/gnulib.texi (Glibc pty.h): Add.
61578         * doc/glibc-functions/forkpty.texi: Add.
61579         * doc/glibc-functions/openpty.texi: Add.
61580         Suggested by Bruno Haible.
61582 2009-12-08  Eric Blake  <ebb9@byu.net>
61584         fchdir: fix logic bugs
61585         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
61586         * tests/test-fchdir.c (main): Enhance test.
61587         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
61588         is in use.
61590         dup2: fix logic bugs
61591         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
61592         REPLACE_DUP2 to decide when rpl_dup2 is needed.
61593         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
61594         exists.
61595         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
61597 2009-12-07  Eric Blake  <ebb9@byu.net>
61599         unlink: fix m4 detection
61600         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
61602         unistd-safer: add unit test
61603         * modules/unistd-safer-tests: New file.
61604         * tests/test-dup-safer.c: Likewise.
61605         * tests/test-cloexec.c (setmode): Avoid compiler warning.
61606         * tests/test-dup2.c (setmode): Likewise.
61607         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
61609         cloexec: preserve text vs. binary across dup_cloexec
61610         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
61611         mode.
61612         * modules/dup2-tests (Depends-on): Add binary-io.
61613         * modules/cloexec-tests (Depends-on): Likewise.
61614         * tests/test-dup2.c (setmode, is_mode): New helpers.
61615         (main): Add tests that translation mode is preserved.
61616         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
61617         Reported by Bruno Haible.
61619         mgetgroups: reduce duplicate listings
61620         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
61621         resulting array.
61622         * tests/test-chown.h (test_chown): Simplify client.
61623         * tests/test-lchown.h (test_lchown): Likewise.
61625 2009-12-06  Bruno Haible  <bruno@clisp.org>
61627         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
61628         value.
61630 2009-12-06  Bruno Haible  <bruno@clisp.org>
61632         * lib/progname.c: Include stdio.h, stdlib.h.
61633         (set_program_name): Reject a NULL argument.
61635 2009-12-05  Eric Blake  <ebb9@byu.net>
61637         pipe2-safer: new module
61638         * modules/pipe2-safer: New file.
61639         * lib/unistd-safer.h (pipe2_safer): New prototype.
61640         * lib/unistd--.h (pipe2): New wrapper.
61641         * lib/pipe-safer.c (pipe2_safer): New function.
61642         * modules/pipe (Depends-on): Add pipe2-safer.
61643         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
61645         stdlib-safer: preserve cloexec flag for mkostemp[s]
61646         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
61647         fd_safer_flag.
61649         unistd-safer: allow preservation of cloexec status via flag
61650         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
61651         prototypes.
61652         * lib/dup-safer.c (dup_safer_flag): New function.
61653         * lib/fd-safer.c (fd_safer_flag): Likewise.
61654         * modules/cloexec (configure.ac): Set witness.
61656         test-dup2: enhance test
61657         * modules/dup2-tests (Depends-on): Add cloexec.
61658         * tests/test-dup2.c (main): Enhance test.
61660         cloexec: add dup_cloexec
61661         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
61662         header and comments.
61663         * lib/cloexec.c (set_cloexec_flag): Add comments.
61664         (dup_cloexec): New function, with mingw implementation borrowed
61665         from...
61666         * lib/w32spawn.h (dup_noinherit): ...here.
61667         * modules/execute (Depends-on): Add cloexec.
61668         * modules/pipe (Depends-on): Likewise.
61669         * modules/cloexec (Depends-on): Add dup2.
61670         * modules/cloexec-tests (Files): New file.
61671         * tests/test-cloexec.c: Likewise.
61673         test-xalloc-die: fix test for mingw
61674         * modules/xalloc-die-tests (Files): Add tests/init.sh.
61675         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
61676         directory and .exe suffix off argv[0] output.
61678         test-fseeko: fix test for mingw
61679         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
61680         than undefining fseek, so test will pass on mingw.
61682 2009-12-05  Bruno Haible  <bruno@clisp.org>
61684         * lib/progname.h (set_program_name): Clarify specification.
61685         * lib/progname.c (set_program_name): Likewise.
61686         Reported by Jim Meyering.
61688 2009-12-05  Jim Meyering  <meyering@redhat.com>
61690         maint.mk: backslash-escape parens in default regexp
61691         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
61692         backslash-escape the literal parentheses.
61694         maint.mk: news-date-check: use grep -E
61695         * top/maint.mk (today): Define a Make variable, not a...
61696         (news-date-check): ...shell variable.
61697         (news-date-regexp): Use the Make variable.
61698         Use grep's -E option.  Change the failing diagnostic to mention
61699         the variable, $(news-date-regexp).
61701 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
61703         maintainer-makefile: allow customization of NEWS entry format
61704         * top/maint.mk (news-date-regexp): New overridable variable.
61705         (news-date-check): Use it.
61707 2009-12-04  Eric Blake  <ebb9@byu.net>
61709         mgetgroups: add xgetgroups, and avoid ENOSYS failures
61710         * lib/mgetgroups.h (xgetgroups): New prototype.
61711         * lib/mgetgroups.c (xgetgroups): New wrapper.
61712         (mgetgroups): Handle ENOSYS.
61713         * modules/mgetgroups (Depends-on): Add realloc.
61714         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
61716         mgetgroups: avoid argument promotion issues with -1
61717         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
61718         for invalid gid_t.
61719         * tests/test-chown.h (getegid, test_chown): Likewise.
61720         * tests/test-lchown.h (getegid, test_lchown): Likewise.
61722 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
61724         exclude: Fix header file problems.
61725         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
61727 2009-12-01  Jim Meyering  <meyering@redhat.com>
61729         fts: fts_open: do not let an empty string cause immediate failure
61730         This is required in support of GNU rm, for which the command
61731         "rm A '' B" must process and remove both A and B, in spite of
61732         the empty string argument.
61733         * lib/fts.c (fts_open): Do not let the presence of an empty string
61734         cause fts_open to fail immediately.  Most fts-using tools must be
61735         able to process all arguments, in order, and can be expected to
61736         diagnose such arguments themselves.
61738 2009-11-30  Eric Blake  <ebb9@byu.net>
61740         utimens: fix compilation error
61741         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
61742         Declare variable at right scope.
61744 2009-11-29  Jim Meyering  <meyering@redhat.com>
61746         bootstrap: handle perl-5.11's changed --version output
61747         * build-aux/bootstrap (get_version): Handle perl separately,
61748         since perl-5.11's --version output is different.
61750 2009-11-28  Jim Meyering  <meyering@redhat.com>
61752         userspec: depend on the inttostr module, too
61753         * modules/userspec (Depends-on): Add inttostr.
61755         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
61756         * lib/userspec.c (parse_with_separator): Do not accept a user ID
61757         number of MAXUID when it evaluates to (uid_t) -1.
61758         Likewise for group ID.  Reported by Matt McCutchen in
61759         <http://savannah.gnu.org/bugs/?28113>
61761         userspec: reformat to use spaces, not TABs
61762         * lib/userspec.c: Expand TABs to spaces.
61763         Add Emacs' "indent-tabs-mode: nil" hint.
61765 2009-11-27  Eric Blake  <ebb9@byu.net>
61767         getopt-gnu: flush out another BSD bug
61768         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
61769         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
61770         flush out BSD bug.
61771         * tests/test-getopt.h (test_getopt): End lists with NULL.
61772         * tests/test-getopt_long.h (test_getopt_long): Likewise.
61773         (test_getopt_long_posix): Enhance test.
61774         * modules/getopt-posix-tests (Depends-on): Add stdbool.
61775         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
61776         getopt-gnu.
61777         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
61778         Likewise.
61780 2009-11-27  Simon Josefsson  <simon@josefsson.org>
61782         * modules/idpriv-droptemp-tests (Notice): Fix text.
61784 2009-11-27  Jim Meyering  <meyering@redhat.com>
61786         test-xalloc-die: avoid spurious failure due to libtool argv difference
61787         In a libtool-enabled project, this test would fail due to a difference
61788         in the emitted program name, e.g.,
61789         -test-xalloc-die: memory exhausted
61790         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
61791         Use program to avoid that.
61792         * modules/xalloc-die-tests (Depends-on): Add progname.
61793         * tests/test-xalloc-die.c: Include progname.h".
61794         (program_name): Remove decl.
61795         (main): Call set_program_name.
61796         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
61798 2009-11-26  Richard Jones  <rjones@redhat.com>
61800         w32sock: leave win32 error in place.
61801         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
61803 2009-11-26  Eric Blake  <ebb9@byu.net>
61805         init.sh: suggest to use skip_ and fail_ functions in comments
61806         * tests/init.sh: Add a sentence.
61808 2009-11-25  Bruno Haible  <bruno@clisp.org>
61810         init.sh: add documentation in comments
61811         * tests/init.sh: Add some developer and user documentation.
61813 2009-11-26  Jim Meyering  <meyering@redhat.com>
61815         init.sh: accommodate even those who specify bogus srcdir manually
61816         * tests/init.sh: Normally, srcdir is guaranteed by automake and
61817         configure-time tests to be sanitized, so that there is no need to
61818         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
61819         (with no double quotes) suffices.  However, since tests may be
61820         invoked manually, and since you may explicitly set srcdir to the
61821         name of a directory containing spaces, do quote its uses here.
61822         * tests/test-pread.sh: Likewise.
61823         Suggested by Bruno Haible.
61825         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
61826         * tests/test-pread.sh: Write no data into the pipe, because
61827         test-pread actually reads none.  This avoids a diagnostic,
61828         "bash: echo: write error: Broken pipe", that arises in the unusual
61829         event something is ignoring SIGPIPE, and might be interpreted
61830         as some sort of failure.  Reported by Bruno Haible.
61832 2009-11-25  Jim Meyering  <meyering@redhat.com>
61834         test-pread: cover failure with ESPIPE and EINVAL
61835         * tests/test-pread.c (main): Test for failure, too.
61836         * tests/test-pread.sh: Invoke with stdin on a pipe.
61837         Suggested by Eric Blake.
61839         pread: improvement and fix
61840         * modules/pread (Depends-on): Depend on lseek, for portability to
61841         e.g., mingw.  Suggested by Eric Blake.
61842         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
61844         unistd.in.h: correct declaration of pread
61845         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
61846         Reported by Richard W.M. Jones.
61848         test-pread.sh: distribute the test script
61849         * modules/pread-tests (Files): Include test-pread.sh.
61851         test-pread.sh: clean up
61852         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
61853         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
61854         That is unnecessary, since it's always ".".
61855         Suggestion from Eric Blake.
61857         test-pread.sh: make executable
61858         * tests/test-pread.sh: Set executable bit.
61859         Reported by Eric Blake.
61861         correct typo in test-pread.sh
61862         * tests/test-pread.sh: Add #! line.
61864         test pread
61865         * tests/test-pread.c: New file.
61866         * tests/test-pread.sh: Likewise.
61867         * modules/pread-tests: Likewise.
61869         pread: new module
61870         * modules/pread: New file.
61871         * lib/unistd.in.h (pread): Define/declare.
61872         * lib/pread.c (pread): New file.
61873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
61874         * modules/unistd (Makefile.am): Substitute witnesses.
61875         * doc/posix-functions/pread.texi (pread): Update.
61876         * MODULES.html.sh: Add pread.
61878 2009-11-25  Jim Meyering  <meyering@redhat.com>
61880         tests/init.sh: new file to be used via most *.sh tests
61881         * tests/init.sh: New file.
61883 2009-11-25  Eric Blake  <ebb9@byu.net>
61885         utimens: work around older Linux failure with symlinks
61886         * lib/utimens.c (lutimensat_works_really): New variable.
61887         (fdutimens, lutimens): Use it to manage kernels that support
61888         nanosecond times on files, but not on symlinks.
61889         Reported by Ondřej Vašík.
61891         utimes: fix configure grammar
61892         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
61894 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
61896         regex: Fix fastmap for multibyte character ranges.
61897         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
61898         characters when a multibyte character range is included.
61900 2009-11-22  Andy Wingo  <wingo@pobox.com>
61902         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
61903         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
61905 2009-11-24  Bruno Haible  <bruno@clisp.org>
61907         doc: Most *_l functions exist in MacOS X 10.5.
61908         * doc/posix-functions/duplocale.texi: Update platforms list.
61909         * doc/posix-functions/freelocale.texi: Likewise.
61910         * doc/posix-functions/newlocale.texi: Likewise.
61911         * doc/posix-functions/uselocale.texi: Likewise.
61912         * doc/posix-functions/isalnum_l.texi: Likewise.
61913         * doc/posix-functions/isalpha_l.texi: Likewise.
61914         * doc/posix-functions/isblank_l.texi: Likewise.
61915         * doc/posix-functions/iscntrl_l.texi: Likewise.
61916         * doc/posix-functions/isdigit_l.texi: Likewise.
61917         * doc/posix-functions/isgraph_l.texi: Likewise.
61918         * doc/posix-functions/islower_l.texi: Likewise.
61919         * doc/posix-functions/isprint_l.texi: Likewise.
61920         * doc/posix-functions/ispunct_l.texi: Likewise.
61921         * doc/posix-functions/isspace_l.texi: Likewise.
61922         * doc/posix-functions/isupper_l.texi: Likewise.
61923         * doc/posix-functions/iswalnum_l.texi: Likewise.
61924         * doc/posix-functions/iswalpha_l.texi: Likewise.
61925         * doc/posix-functions/iswblank_l.texi: Likewise.
61926         * doc/posix-functions/iswcntrl_l.texi: Likewise.
61927         * doc/posix-functions/iswctype_l.texi: Likewise.
61928         * doc/posix-functions/iswdigit_l.texi: Likewise.
61929         * doc/posix-functions/iswgraph_l.texi: Likewise.
61930         * doc/posix-functions/iswlower_l.texi: Likewise.
61931         * doc/posix-functions/iswprint_l.texi: Likewise.
61932         * doc/posix-functions/iswpunct_l.texi: Likewise.
61933         * doc/posix-functions/iswspace_l.texi: Likewise.
61934         * doc/posix-functions/iswupper_l.texi: Likewise.
61935         * doc/posix-functions/iswxdigit_l.texi: Likewise.
61936         * doc/posix-functions/isxdigit_l.texi: Likewise.
61937         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
61938         * doc/posix-functions/strcasecmp_l.texi: Likewise.
61939         * doc/posix-functions/strcoll_l.texi: Likewise.
61940         * doc/posix-functions/strfmon_l.texi: Likewise.
61941         * doc/posix-functions/strftime_l.texi: Likewise.
61942         * doc/posix-functions/strncasecmp_l.texi: Likewise.
61943         * doc/posix-functions/strxfrm_l.texi: Likewise.
61944         * doc/posix-functions/tolower_l.texi: Likewise.
61945         * doc/posix-functions/toupper_l.texi: Likewise.
61946         * doc/posix-functions/towctrans_l.texi: Likewise.
61947         * doc/posix-functions/towlower_l.texi: Likewise.
61948         * doc/posix-functions/towupper_l.texi: Likewise.
61949         * doc/posix-functions/wcscoll_l.texi: Likewise.
61950         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
61951         * doc/posix-functions/wctrans_l.texi: Likewise.
61952         * doc/posix-functions/wctype_l.texi: Likewise.
61953         * doc/glibc-functions/strptime_l.texi: Likewise.
61954         * doc/glibc-functions/strtod_l.texi: Likewise.
61955         * doc/glibc-functions/strtof_l.texi: Likewise.
61956         * doc/glibc-functions/strtol_l.texi: Likewise.
61957         * doc/glibc-functions/strtold_l.texi: Likewise.
61958         * doc/glibc-functions/strtoll_l.texi: Likewise.
61959         * doc/glibc-functions/strtoul_l.texi: Likewise.
61960         * doc/glibc-functions/strtoull_l.texi: Likewise.
61961         * doc/glibc-functions/wcsftime_l.texi: Likewise.
61962         * doc/glibc-functions/wcstod_l.texi: Likewise.
61963         * doc/glibc-functions/wcstof_l.texi: Likewise.
61964         * doc/glibc-functions/wcstol_l.texi: Likewise.
61965         * doc/glibc-functions/wcstold_l.texi: Likewise.
61966         * doc/glibc-functions/wcstoll_l.texi: Likewise.
61967         * doc/glibc-functions/wcstoul_l.texi: Likewise.
61968         * doc/glibc-functions/wcstoull_l.texi: Likewise.
61970 2009-11-24  Bruno Haible  <bruno@clisp.org>
61972         duplocale: Fix logic bug.
61973         * lib/duplocale.c: Don't include <langinfo.h>.
61974         (_NL_LOCALE_NAME): Remove macro.
61975         (rpl_duplocale): Use setlocale instead of nl_langinfo.
61976         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
61978 2009-11-23  Jim Meyering  <meyering@redhat.com>
61980         test-update-copyright: don't hard-code /usr/bin/perl
61981         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
61982         perl to print the current year.  Gilles Espinasse reported that
61983         the replaced use of perl was hard-coded as /usr/bin/perl.
61985 2009-11-23  Bruno Haible  <bruno@clisp.org>
61987         duplocale: Add support for glibc 2.3.x.
61988         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
61990 2009-11-22  Bruno Haible  <bruno@clisp.org>
61992         vasnprintf: Tiny optimization.
61993         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
61994         MacOS X.
61996 2009-11-22  Bruno Haible  <bruno@clisp.org>
61998         Tests for module 'duplocale'.
61999         * modules/duplocale-tests: New file.
62000         * tests/test-duplocale.c: New file.
62002         New module 'duplocale'.
62003         * m4/duplocale.m4: New file.
62004         * lib/locale.in.h (duplocale): New declaration.
62005         * lib/duplocale.c: New file.
62006         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
62007         gl_LOCALE_H_DEFAULTS): New macros.
62008         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
62009         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
62010         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
62011         REPLACE_DUPLOCALE.
62012         * modules/duplocale: New file.
62013         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
62015 2009-11-22  Bruno Haible  <bruno@clisp.org>
62017         * modules/locale-tests (configure.ac): Test for newlocale function.
62018         * tests/test-locale.c: When the system has extended locale functions,
62019         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
62021         locale: Make locale_t available when possible.
62022         * lib/locale.in.h: Include <xlocale.h> when it exists.
62023         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
62024         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
62025         * modules/locale (Depends-on): Add extensions.
62026         (Makefile.am): Also substitute HAVE_XLOCALE_H.
62027         * doc/posix-headers/locale.texi: Document the problem with locale_t.
62029 2009-11-22  Bruno Haible  <bruno@clisp.org>
62031         Add comments.
62032         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
62033         invocation.
62034         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62035         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
62036         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62038 2009-11-22  Bruno Haible  <bruno@clisp.org>
62040         error: account for the possibility of freopen (stdout).
62041         * lib/error.c: Include <unistd.h>.
62042         (flush_stdout): New function, extracted from error and error_at_line.
62043         Determine stdout's fd dynamically.
62044         (error, error_at_line): Invoke flush_stdout.
62045         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
62046         * modules/error (Depends-on): Add unistd.
62048 2009-11-22  Bruno Haible  <bruno@clisp.org>
62050         diffseq: Add comment.
62051         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
62053 2009-11-22  Jim Meyering  <meyering@redhat.com>
62055         c-stack: avoid defining an unused static function
62056         * lib/c-stack.c (find_stack_direction): Do not define this function
62057         when it will not be used.
62059         diffseq: avoid spurious gcc warnings
62060         * lib/diffseq.h (IF_LINT2): Define.
62061         (compareseq): Use it to initialize two members of "part".
62062         This avoids two used-uninitialized warnings.
62064 2009-11-21  Jim Meyering  <meyering@redhat.com>
62066         c-stack: avoid "ignoring return value of `write'" warning
62067         * lib/c-stack.c: Include "ignore-value.h".
62068         (die): Explicitly ignore each write return value.
62069         * modules/c-stack (Depends-on): Add ignore-value.
62071 2009-11-21  Bruno Haible  <bruno@clisp.org>
62073         diffseq: reduce scope of variable 'best'.
62074         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
62075         variable, earlier used for two different purposes.
62077 2009-11-21  Jim Meyering  <meyering@redhat.com>
62079         diffseq: remove useless assignment to "best"
62080         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
62081         assignment.  At that point "best" is already guaranteed to be zero.
62083 2009-11-20  Eric Blake  <ebb9@byu.net>
62085         build: mention ftp redirector in release announcements
62086         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
62087         values that used to come from cfg.mk; mention FTP redirect URL.
62088         * build-aux/announce-gen: Mention the mirror list.
62089         Suggested by Karl Berry.
62091         nanosleep: improve port to mingw
62092         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
62093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
62094         LIB_NANOSLEEP, but only when needed.
62095         * modules/select (Link): Document LIBSOCKET.
62096         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
62097         enough.
62099         nanosleep: work around cygwin bug
62100         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
62101         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
62102         bug.
62103         (getnow): Delete, not needed.
62104         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
62105         LIB_CLOCK_GETTIME.
62106         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
62107         clock-time, gettime.
62108         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
62109         bug.
62110         * modules/nanosleep-tests: New test.
62111         * tests/test-nanosleep.c: New file.
62113         sleep: work around cygwin bug
62114         * lib/sleep.c (rpl_sleep): Work around the bug.
62115         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
62116         (gl_PREREQ_SLEEP): Delete unused macro.
62117         * modules/sleep (Depends-on): Add verify.
62118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62119         * modules/unistd (Makefile.am): Substitute witness.
62120         * lib/unistd.in.h (sleep): Update prototype.
62121         * doc/posix-functions/sleep.texi (sleep): Document the bug.
62122         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
62123         * modules/sleep-tests (Depends-on): Check for alarm.
62125 2009-11-20  Jim Meyering  <meyering@redhat.com>
62127         maint.mk: improve sc_prohibit_magic_number_exit
62128         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
62129         so it does not match uses like System.exit(1).
62130         Add comments showing how to correct all offenders.
62132 2009-11-19  Eric Blake  <ebb9@byu.net>
62134         xalloc-die-tests: add missing library
62135         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
62137         test-xvasprintf: silence compiler warnings
62138         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
62139         empty string from gcc.
62141 2009-11-19  Jim Meyering  <meyering@redhat.com>
62143         xfreopen: new module, from coreutils
62144         * modules/xfreopen: New module.
62145         * lib/xfreopen.c: New file.
62146         * lib/xfreopen.h: New file.
62147         * MODULES.html.sh (File stream based Input/Output"): Add it.
62149 2009-11-19  Eric Blake  <ebb9@byu.net>
62151         manywarnings: depend on warnings
62152         * modules/manywarnings (Depends-on): Add warnings.
62154         build: avoid compiler warnings
62155         * lib/select.c (rpl_select): Delete unused variable.
62156         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
62158 2009-11-18  Eric Blake  <ebb9@byu.net>
62160         tests: avoid false negative with --with-packager
62161         * tests/test-version-etc.sh: Discard packager information.
62162         * tests/test-argp-version-etc-1.sh: Likewise.
62163         Reported by Mike Frysinger.
62165         utimens: fix regression on Solaris
62166         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
62167         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
62168         can only change fd timestamps via futimesat.  Instead, use an
62169         additional witness macro to avoid BSD bug.
62170         Reported by Jim Meyering.
62172 2009-11-17  Eric Blake  <ebb9@byu.net>
62174         usleep: use it to simplify tests
62175         * modules/stat-time-tests (Depends-on): Add usleep.
62176         (configure.ac): Drop usleep check.
62177         * modules/chown-tests (Depends-on, configure.ac): Likewise.
62178         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
62179         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
62180         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
62181         * modules/openat-tests (Depends-on, configure.ac): Likewise.
62182         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
62183         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
62184         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
62185         Likewise.
62186         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
62187         * tests/test-lchown.h (nap): Likewise.
62188         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
62189         * tests/test-stat-time.c (nap): Likewise.
62190         * tests/test-utimens-common.h (nap): Update comments.
62192         usleep: new module
62193         * modules/usleep: New file.
62194         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
62195         * lib/usleep.c (usleep): Likewise.
62196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
62197         * modules/unistd (Makefile.am): Substitute witnesses.
62198         * lib/unistd.in.h (usleep): Add declaration.
62199         * doc/pastposix-functions/usleep.texi (usleep): Document this.
62200         * MODULES.html.sh (Date and time): Likewise.
62201         * modules/usleep-tests (Depends-on): New test.
62202         * tests/test-usleep.c: New file.
62204         chown: work around OpenBSD bug
62205         * lib/chown.c (rpl_chown): Work around the bug.
62206         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
62207         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
62208         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
62209         * modules/chown (Depends-on): Add stdbool.
62210         * modules/lchown (Depends-on): Likewise.
62211         * doc/posix-functions/chown.texi (chown): Document the bug.
62212         * doc/posix-functions/lchown.texi (lchown): Likewise.
62213         * tests/test-lchown.h (test_chown): Relax test.
62215         mkstemp: avoid conflict with C++ keyword template
62216         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
62217         * lib/mkostemp.c (mkostemp): Likewise.
62218         * lib/mkostemps.c (mkostemps): Likewise.
62219         * lib/mkstemp.c (mkstemp): Likewise.
62220         * lib/mkstemps.c (mkstemps): Likewise.
62222         xalloc-die-tests: optimize
62223         * tests/test-xalloc-die.sh: Reduce number of processes.
62225 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62227         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
62228         patch from ludo@gnu.org (Ludovic Courtès).
62230 2009-11-17  Jim Meyering  <meyering@redhat.com>
62232         version-etc: use proper license string
62233         * modules/version-etc (License): Use LGPL, not LGPLv3+.
62234         * modules/version-etc-fsf: Likewise.
62236 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62238         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
62239         printed to stdout.  Deal with EOL differences.
62241 2009-11-17  Eric Blake  <ebb9@byu.net>
62243         unsetenv: work around Solaris bug
62244         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
62245         * lib/unsetenv.c (rpl_unsetenv): Work around it.
62246         Reported by Jim Meyering.
62248         vasnprintf: avoid compiler warnings
62249         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
62250         variables.
62251         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
62253 2009-11-17  Simon Josefsson  <simon@josefsson.org>
62255         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
62256         settings since xalloc-die is no longer the self test,
62257         xalloc-die.sh is.
62259 2009-11-17  Jim Meyering  <meyering@redhat.com>
62261         test-xalloc-die.sh: make the code agree with the commit log
62262         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
62263         at the end, just in case you happen to have a test-xalloc-die
62264         program in some other PATH directory.
62266         test-xalloc-die.sh: fix a portability bug
62267         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
62268         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
62269         Otherwise, argv[0] (as often seen in diagnostics) would be too
62270         system-dependent, sometimes with, and sometimes without the leading "./".
62272         version-etc-fsf: relax license to LGPLv3+
62273         * modules/version-etc-fsf (License): Relax license.
62275 2009-11-16  Eric Blake  <ebb9@byu.net>
62277         xalloc-die-tests: avoid printing null pointer
62278         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
62279         shell script.
62280         * tests/test-xalloc-die.c (program_name): Declare.
62281         * tests/test-xalloc-die.sh (tmpfiles): New file.
62283         setenv, unsetenv: work around various bugs
62284         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
62285         (setenv) [HAVE_SETENV]: Work around bugs.
62286         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
62287         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
62288         for bugs.
62289         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
62290         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
62291         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
62292         * modules/stdlib (Makefile.am): Update substitutions.
62293         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
62294         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
62295         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
62296         * modules/setenv-tests: New test.
62297         * modules/unsetenv-tests: Likewise.
62298         * tests/test-setenv.c: New file.
62299         * tests/test-unsetenv.c: Likewise.
62301 2009-11-16  Jim Meyering  <meyering@redhat.com>
62303         version-etc: relax license to LGPLv3+
62304         * modules/version-etc (License): Relax license.
62306         better AC_REQUIRE expanded-before-required-warning avoidance
62307         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
62308         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
62309         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
62310         which is no longer needed.
62312 2009-11-16  Eric Blake  <ebb9@byu.net>
62314         test-freading: clean up temporary file
62315         * tests/test-freading.c (main): Remove file on success, and use
62316         ASSERT more liberally.
62317         Reported by Jim Meyering.
62319 2009-11-16  Jim Meyering  <meyering@redhat.com>
62321         avoid new AC_REQUIRE expanded-before-required warnings
62322         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
62323         merely using it.
62324         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
62325         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
62327 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62329         * tests/test-xalloc-die.c: New file.
62330         * modules/xalloc-die-tests: New file.
62331         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
62332         XFAIL_TESTS so it can be appended by modules.
62334 2009-11-15  Simon Josefsson  <simon@josefsson.org>
62336         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
62337         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
62339 2009-11-14  Eric Blake  <ebb9@byu.net>
62341         fnmatch: avoid compiler warning
62342         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
62343         to silence compiler warning about mismatch signedness in ?:.
62344         Reported by Robert Millan.
62346         intprops: add double-inclusion guard
62347         * lib/intprops.h: Allow idempotent includes.
62348         Suggested by Bruce Korb.
62350         openat: detect Solaris fchownat bug
62351         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
62352         penalizing glibc chownat when only lchownat is broken.
62353         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
62354         trailing slash bugs.
62355         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
62356         * modules/openat-tests (Files): Include more files.
62357         (Depends-on): Add mgetgroups, sleep, stat-time.
62358         (configure.ac): Add additional checks.
62359         (Makefile.am): Build new test.
62360         * tests/test-fchownat.c: New file.
62362         lchown: detect Solaris and FreeBSD bug
62363         * lib/lchown.c (rpl_lchown): Work around bug.
62364         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
62365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62366         * modules/unistd (Makefile.am): Populate it.
62367         * lib/unistd.in.h (lchown): Update declaration.
62368         * doc/posix-functions/lchown.texi (lchown): Document the bug.
62369         * modules/lchown-tests: New file.
62370         * tests/test-lchown.h (test_lchown): Likewise.
62371         * tests/test-lchown.c (main): Likewise.
62373         chown: detect Solaris and FreeBSD bug
62374         * lib/chown.c (rpl_chown): Work around bug.
62375         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
62376         (gl_PREREQ_CHOWN): Delete.
62377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
62378         * modules/unistd (Makefile.am): Populate it.
62379         * lib/unistd.in.h (chown): Update declaration.
62380         * lib/lchown.c (chown): Update client.
62381         * modules/lchown (Depends-on): Add lstat.
62382         * doc/posix-functions/chown.texi (chown): Document the bug.
62383         * doc/posix-functions/getgroups.texi (getgroups): Document
62384         getgroups pitfall.
62385         * modules/chown-tests: New file.
62386         * tests/test-chown.h (test_chown): Likewise.
62387         * tests/test-chown.c (main): Likewise.
62389 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
62391         gnulib-tool: correctly detect absence of m4 directories
62392         * gnulib-tool: Avoid extra newline on data passed to wc -l.
62394 2009-11-14  Jim Meyering  <meyering@redhat.com>
62396         maint.mk: Prohibit inclusion of "xalloc.h" without use.
62397         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62399 2009-11-14  John W. Eaton  <jwe@gnu.org>
62401         strftime.h: wrap function declaration in extern "C" block
62402         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
62404 2009-11-13  Eric Blake  <ebb9@byu.net>
62406         getgroups: avoid compiler warning
62407         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
62409         getgroups: work around FreeBSD bug
62410         * lib/getgroups.c (rpl_getgroups): Work around the bug.
62411         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
62412         * doc/posix-functions/getgroups.texi (getgroups): Document it.
62413         * tests/test-getgroups.c (main): Fix buffer overrun.
62415         getgroups: avoid compilation failure
62416         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
62417         * modules/getgroups (Depends-on): Add stdint.
62419 2009-11-13  Jim Meyering  <meyering@redhat.com>
62421         test-getgroups: avoid compilation failure
62422         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
62424 2009-11-13  Eric Blake  <ebb9@byu.net>
62426         mgetgroups: new module, taken from coreutils
62427         * modules/mgetgroups: New file.
62428         * lib/mgetgroups.h: Likewise.
62429         * lib/mgetgroups.c (mgetgroups): Likewise.
62430         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
62431         * MODULES.html.sh (Users and groups): Mention it.
62433         getgroups: don't expose GETGROUPS_T to user
62434         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
62435         an element at a time if GETGROUPS_T is wrong size.
62436         * lib/getugroups.h (getugroups): Change signature.
62437         * lib/unistd.in.h (getgroups): Likewise.
62438         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
62439         signature needs fixing.
62440         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
62441         AC_TYPE_GETGROUPS.
62442         * modules/group-member (Depends-on): Add getgroups.
62443         * lib/group-member.c (group_info, get_group_info): Use gid_t.
62444         (group_member): Rely on getgroups replacement.
62445         * lib/getugroups.c (getugroups): Use gid_t.
62446         * tests/test-getgroups.c (main): Likewise.
62447         * NEWS: Mention the signature change.
62448         * doc/posix-functions/getgroups.texi (getgroups): Mention the
62449         problem with signature.
62450         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
62451         GETGROUPS_T is still useful for setgroups.
62453         getgroups, getugroups: provide stubs for mingw
62454         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
62455         * lib/getugroups.c (getugroups): Likewise.
62456         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
62457         function.  Modernize replacement scheme.
62458         (gl_PREREQ_GETGROUPS): Delete.
62459         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
62460         * modules/getgroups (configure.ac): Declare witness.
62461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
62462         * modules/unistd (Depends-on): Substitute witness.
62463         * lib/unistd.in.h (getgroups): Declare replacement.
62465         getgroups: avoid calling exit
62466         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
62467         drop xalloc.
62468         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
62469         dependencies.
62470         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
62471         exiting, in the rare case of malloc failure.
62473         getgroups: fix logic error
62474         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
62475         has more than 20 groups.
62476         * modules/getgroups-tests: New test.
62477         * tests/test-getgroups.c: New file.
62479 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62481         * tests/test-base64.c: Improve.
62483 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62485         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
62486         Blake <ebb9@byu.net>.
62488 2009-11-13  Simon Josefsson  <simon@josefsson.org>
62490         * tests/test-xvasprintf.c: Add %s%s related checks.
62492 2009-11-12  Eric Blake  <ebb9@byu.net>
62494         version-etc: match standards.texi style
62495         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
62496         and use <> only for URLs.
62498 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
62500         fts: do not fail on a submount during traversal
62501         * lib/fts.c (fts_build): Read the stat info again after opening
62502         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
62503         Original report at http://bugzilla.redhat.com/501848.
62505 2009-11-12  Jim Meyering  <meyering@redhat.com>
62507         bootstrap: sync from coreutils
62508         * build-aux/bootstrap (bootstrap_epilogue): New function.
62509         Use git_modules_config in one more place.  This make bootstrap's
62510         --gnulib-srcdir option more useful for testing.
62512         bootstrap: generalize autoheader check
62513         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
62514         AC_CONFIG_HEADERS.
62516 2009-11-11  Eric Blake  <ebb9@byu.net>
62518         mkfifoat: use new modules for Solaris and BSD bugs
62519         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
62520         * lib/mkfifoat.c (mknodat): Split...
62521         * lib/mknodat.c (mknodat): ...into new file.
62522         * modules/mkfifoat (Files): Ship new file.
62523         (Depends-on): Add mkfifo, mknod.
62524         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
62525         (Depends-on): Add symlink.
62526         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
62527         redundant with test_mkfifo.h.
62528         (do_mkfifoat, do_mknodat): New helpers.
62530         mknod: new module
62531         * modules/mknod: New file.
62532         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
62533         * lib/mknod.c (mknod): Likewise.
62534         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62535         defaults.
62536         * modules/sys_stat (Makefile.am): Substitute them.
62537         * lib/sys_stat.in.h (mknod): Declare replacement.
62538         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62539         Document it.
62540         * doc/posix-functions/mknod.texi (mknod): Likewise.
62541         * modules/mknod-tests: New test.
62542         * tests/test-mknod.c: Likewise.
62544         mkfifo: new module
62545         * modules/mkfifo: New file.
62546         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
62547         * lib/mkfifo.c (mkfifo): Likewise.
62548         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
62549         defaults.
62550         * modules/sys_stat (Makefile.am): Substitute them.
62551         * lib/sys_stat.in.h (mkfifo): Declare replacement.
62552         * MODULES.html.sh (Support for systems lacking POSIX:2008):
62553         Document it.
62554         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
62555         * modules/mkfifo-tests: New test.
62556         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
62557         from test-mkfifoat.c.
62558         * tests/test-mkfifo.c: New file.
62560         readlink: detect FreeBSD bug
62561         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
62562         slash on symlink.
62563         * doc/posix-functions/readlink.texi (readlink): Document the bug.
62564         * tests/test-readlink.h (test_readlink): Enhance test.
62566         symlink: detect FreeBSD bug
62567         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
62568         slash on symlink.
62569         * doc/posix-functions/symlink.texi (symlink): Document the bug.
62570         * tests/test-symlink.h (test_symlink): Enhance test.
62572 2009-11-10  Eric Blake  <ebb9@byu.net>
62574         link: detect FreeBSD bug
62575         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
62576         symlink.
62577         * doc/posix-functions/link.texi (link): Document the bug.
62578         * tests/test-link.h (test_link): Enhance test.
62579         * tests/test-linkat.c (main): Update caller.
62581         unlink, remove: detect FreeBSD bug
62582         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
62583         slash on symlink.
62584         * doc/posix-functions/unlink.texi (unlink): Document the bug.
62585         * doc/posix-functions/remove.texi (remove): Likewise.
62586         * tests/test-unlink.h (test_unlink): Enhance test.
62587         * tests/test-remove.c (main): Likewise.
62589 2009-11-09  Eric Blake  <ebb9@byu.net>
62591         rename: detect FreeBSD bug
62592         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
62593         slash on symlink.
62594         * modules/renameat-tests (Depends-on): Add filenamecat.
62595         * tests/test-rename.h (test_rename): Allow one more errno.
62596         * tests/test-renameat.c (main): Likewise.
62597         * doc/posix-functions/rename.texi (rename): Document the bug.
62599         open: detect FreeBSD bug
62600         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
62601         symlink.
62602         * doc/posix-functions/open.texi (open): Document the bug.
62603         * doc/posix-functions/utimes.texi (utimes): Likewise.
62604         * tests/test-open.h (test_open): Add parameters, and test symlink
62605         handling.
62606         * tests/test-open.c (main): Adjust caller.
62607         * tests/test-fcntl-safer.c (main): Likewise.
62608         * modules/open-tests (Depends-on): Add stdbool, symlink.
62609         * modules/fcntl-safer-tests (Depends-on): Likewise.
62610         * tests/test-openat.c (main): Add test-open tests.
62612         stat: detect FreeBSD bug
62613         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
62614         symlink.
62615         * doc/posix-functions/stat.texi (stat): Document the bug.
62616         * tests/test-stat.h (test_stat_func): Add argument.
62617         * tests/test-stat.c (main): Adjust caller.
62618         * tests/test-fstatat.c (main): Likewise.
62619         * modules/stat-tests (Depends-on): Add stdbool, symlink.
62620         Reported by Jim Meyering.
62622 2009-11-09  James Youngman  <jay@gnu.org>
62624         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
62625         * lib/strftime.c: Correct placement of #include "ignore-value.h".
62627 2009-11-08  Jim Meyering  <meyering@redhat.com>
62629         utimens: remove invalid futimesat call
62630         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
62631         It used the file descriptor of the target file as the DIR_FD
62632         parameter and NULL as the file name.  That caused failure with
62633         errno == EFAULT on FreeBSD-8.0-rc2
62635 2009-11-07  Eric Blake  <ebb9@byu.net>
62637         fflush, freadseek: use fseeko, not fseek
62638         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
62639         (clear_ungetc_buffer): Avoid potential problems on large files.
62640         * lib/freadseek.c (freadseek): Likewise.
62641         * modules/freadseek (Depends-on): Add fseeko.
62642         * modules/fseek (configure.ac): Set a witness.
62643         * tests/test-fflush.c (main): Use fseeko.
62644         * tests/test-fpurge.c (fseek): Disable link warning.
62645         * tests/test-freadable.c (fseek): Likewise.
62646         * tests/test-freading.c (fseek): Likewise.
62647         * tests/test-fseeko.c (fseek): Likewise.
62648         * tests/test-ftell.c (fseek): Likewise.
62649         * tests/test-ftello.c (fseek): Likewise.
62650         * tests/test-fwritable.c (fseek): Likewise.
62651         * tests/test-fwriting.c (fseek): Likewise.
62653 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62655         * modules/memchr (Depends-on): Drop getpagesize dependency.
62657 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62659         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
62660         Reported by Ludovic Courtès.
62661         * build-aux/pmccabe2html: Improve example usage.
62662         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
62664 2009-11-06  Jim Meyering  <meyering@redhat.com>
62666         do-release-commit-and-tag: New module.
62667         Automate the release-commit and tag process.
62668         * build-aux/do-release-commit-and-tag: New script, from coreutils.
62669         * modules/do-release-commit-and-tag: New file.
62670         * MODULES.html.sh (Support for maintaining and releasing): Add it.
62672 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62674         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
62675         because test-select.c uses inet_pton.
62677 2009-11-06  Simon Josefsson  <simon@josefsson.org>
62679         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
62680         GETADDRINFO_LIB.  Bump serial number.
62681         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
62682         Suggested by Eric Blake <ebb9@byu.net>.
62684 2009-11-05  Eric Blake  <ebb9@byu.net>
62686         strtod: detect darwin bug
62687         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
62688         Reported by Leo Davis.
62690         freopen-safer: new module
62691         * modules/freopen-safer: New module.
62692         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
62693         * lib/freopen-safer.c (freopen_safer): New file.
62694         * lib/stdio-safer.h (freopen_safer): New declaration.
62695         * lib/stdio--.h (freopen): New override.
62696         * MODULES.html.sh (File stream based Input/Output): Mention it.
62697         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
62698         freopen-safer module.
62699         * doc/posix-functions/stderr.texi (stderr): Likewise.
62700         * doc/posix-functions/stdin.texi (stdin): Likewise.
62701         * doc/posix-functions/stdout.texi (stdout): Likewise.
62702         * modules/freopen-safer-tests: New test.
62703         * tests/test-reopen-safer.c: New file.
62705 2009-11-05  Jim Meyering  <meyering@redhat.com>
62707         maint.mk: Prohibit inclusion of "close-stream.h" without use.
62708         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
62710 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62712         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
62714 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62716         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
62718 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62720         Fix link error.
62721         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62722         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62724 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62726         * tests/test-func.c: Also test value of __func__.
62728 2009-11-05  Simon Josefsson  <simon@josefsson.org>
62730         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
62731         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
62733 2009-11-05  Bruno Haible  <bruno@clisp.org>
62735         Fix link error.
62736         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
62737         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
62738         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
62740 2009-11-05  Bruno Haible  <bruno@clisp.org>
62742         Tests for module 'inet_pton'.
62743         * modules/inet_pton-tests: New file.
62744         * tests/test-inet_pton.c: New file.
62746 2009-11-05  Bruno Haible  <bruno@clisp.org>
62748         Tests for module 'inet_ntop'.
62749         * modules/inet_ntop-tests: New file.
62750         * tests/test-inet_ntop.c: New file.
62752 2009-11-04  Eric Blake  <ebb9@byu.net>
62754         stdlib-safer: wrap all mkstemp variants
62755         * modules/mkostemp (configure.ac): Set witness.
62756         * modules/mkostemps (configure.ac): Likewise.
62757         * modules/mkstemps (configure.ac): Likewise.
62758         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
62759         (mkstemps_safer): Wrap more functions.
62760         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
62761         wrapping.
62762         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
62763         (mkstemps_safer): Implement the wrappers.
62765         mkstemps, mkostemps: new modules
62766         * modules/mkostemps: New module.
62767         * modules/mkstemps: Likewise.
62768         * lib/mkostemps.c (mkostemps): New file.
62769         * lib/mkstemps.c (mkstemps): Likewise.
62770         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
62771         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
62772         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
62773         * modules/stdlib (Makefile.am): Substitute them.
62774         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
62775         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
62776         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
62777         * doc/gnulib.texi (Glibc stdlib.h): Include them.
62778         * MODULES.html.sh (File system functions): Mention them.
62780         tempname: resync from glibc
62781         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
62782         same values for __GT_FILE as glibc.  Abort even when assertions
62783         are disabled.
62784         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
62785         match its value otherwise.  Allow idempotent inclusion.
62786         * lib/mkdtemp.c (mkdtemp): Adjust caller.
62787         * lib/mkostemp.c (mkostemp): Likewise.
62788         * lib/mkstemp.c (mkstemp): Likewise.
62789         * lib/tmpfile.c (tmpfile): Likewise.
62790         * NEWS: Document this.
62792         utimens: fix use of futimens on older Linux
62793         * lib/utimens.c (fdutimens): Use updated, rather than original,
62794         timespec to avoid bug in older Linux kernel.
62795         Reported by Simon Josefsson.
62797 2009-11-04  Bruno Haible  <bruno@clisp.org>
62799         Make num_processors more flexible and consistent.
62800         * lib/nproc.h (enum nproc_query): New type.
62801         (num_processors): Add a 'query' argument.
62802         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
62803         (num_processors): Add a 'query' argument. Test the value of the
62804         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
62805         mingw, count the number of CPUs available for the current process.
62806         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
62807         Check for sched_getaffinity and sched_getaffinity_np.
62808         * modules/nproc (Depends-on): Add c-ctype, extensions.
62809         * NEWS: Mention the change.
62811 2009-11-03  Bruno Haible  <bruno@clisp.org>
62813         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
62815 2009-11-03  Jim Meyering  <meyering@redhat.com>
62817         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
62818         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
62819         if it is defined.
62821 2009-11-02  Eric Blake  <ebb9@byu.net>
62823         mktime, timegm: share common declaration
62824         * lib/mktime-internal.h: New file.
62825         * lib/mktime.c: Use it rather than open-coding a declaration.
62826         * lib/timegm.c: Likewise.
62827         * modules/mktime (Files): Ship it.
62828         * modules/timegm (Files): Likewise.
62829         Suggested by Bruno Haible.
62831         test-update-copyright: update test to match script changes
62832         * tests/test-update-copyright.sh: Avoid hard-coding perl
62833         location.  Don't update *.bak created by earlier runs.
62835 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62836             Simon Josefsson  <simon@josefsson.org>
62837             Bruno Haible  <bruno@clisp.org>
62839         Fix link error on Solaris 8.
62840         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
62841         also in libnsl. Define also INET_PTON_LIB.
62842         * modules/inet_pton (Link): New section.
62844 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62845             Bruno Haible  <bruno@clisp.org>
62847         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
62848         * modules/inet_ntop (Link): New section.
62849         Reported by Boyan Kasarov <bkasarov@gmail.com>.
62851 2009-11-02  Eric Blake  <ebb9@byu.net>
62853         maint: avoid compiler warnings in m4 macros
62854         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
62855         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
62857 2009-11-02  Simon Josefsson  <simon@josefsson.org>
62859         * m4/pmccabe2html.m4: Remove file.
62860         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
62861         function.  Change maintainer.
62862         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
62863         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
62864         Courtès).
62866 2009-10-31  Eric Blake  <ebb9@byu.net>
62868         fseeko: fix m4 regression
62869         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
62870         regression from 2009-10-27.
62871         Reported by Ralf Wildenhues.
62873 2009-10-31  Jim Meyering  <meyering@redhat.com>
62875         inttostr: aesthetics and improved (compile-time) safety
62876         Define inttype_is_signed rather than inttype_is_unsigned,
62877         since the sole use is via "#if inttype_is_signed".
62878         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
62879         inttype_is_unsigned.
62880         * lib/offtostr.c (inttype_is_signed): Likewise.
62881         * lib/uinttostr.c (inttype_is_signed): Likewise.
62882         * lib/umaxtostr.c (inttype_is_signed): Likewise.
62883         * lib/inttostr.c (inttostr): Use verify to cross-check the
62884         inttype_is_signed value and the signedness of the actual type.
62885         * modules/inttostr (Depends-on): Add verify.
62887 2009-10-30  Eric Blake  <ebb9@byu.net>
62889         build: avoid compiler warnings
62890         * lib/fchmodat.c (lchmod): Mark unused variables.
62891         * lib/getopt.c (_getopt_initialize): Likewise.
62892         * lib/mktime.c (__mktime_internal): Provide prototype.
62893         * lib/inttostr.c (inttostr): Avoid compiler warning even with
62894         older gcc that do not understand #pragma GCC diagnostic.
62895         * lib/uinttostr.c (inttype_is_unsigned): Define.
62896         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
62898 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
62900         stat: fix compilation on AIX
62901         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
62902         only see struct stat64.
62904 2009-10-30  Eric Blake  <ebb9@byu.net>
62906         exclude: make more robust
62907         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
62908         rather than masking a coding bug.
62909         Suggested by Bruno Haible.
62911 2009-10-30  Jim Meyering  <meyering@redhat.com>
62913         perl scripts: remove #!/usr/bin/perl in favor of more portable...
62914         Rather than putting #!/usr/bin/perl on the first line,
62915         start with a variant of what's recommended by "man perlrun" that
62916         invokes the first "perl" program from your shell's search path.
62917         * build-aux/gitlog-to-changelog: Replace #!... as above.
62918         Add a "Local Variables" perl mode setting.
62919         Prompted by a patch from Ludovic Courtès.
62920         Improved by Eric Blake.
62921         * build-aux/useless-if-before-free: Likewise.
62922         * build-aux/announce-gen: Likewise.
62923         * build-aux/update-copyright: Likewise.
62925 2009-10-29  Eric Blake  <ebb9@byu.net>
62927         filenamecat-lgpl: adjust clients
62928         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
62929         filenamecat.
62930         * modules/renameat (Depends-on): Likewise.
62932         filenamecat: split into filenamecat-lgpl
62933         * modules/filenamecat-lgpl: New module.
62934         * modules/filenamecat (Files): Move library-safe files into
62935         filenamecat-lgpl.
62936         (Depends-on): Add filenamecat-lgpl.
62937         (configure.ac): Declare witness.
62938         * lib/filenamecat.h (file_name_concat): Only declare when using
62939         GPL module.
62940         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
62941         Move...
62942         * lib/filenamecat-lgpl.c: ...into new file.
62943         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
62944         (gl_FILE_NAME_CONCAT): Use it.
62945         * MODULES.html.sh (File system functions): Mention new module.
62947         argp: avoid memory leak
62948         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
62949         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
62950         base_name, since the latter malloc()s and can call exit().
62951         Leak introduced 2006-07-03.
62953         dirname-lgpl: adjust clients that don't need full dirname
62954         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
62955         * modules/filenamecat (Depends-on): Likewise.
62956         * modules/linkat (Depends-on): Likewise.
62957         * modules/mkancesdirs (Depends-on): Likewise.
62958         * modules/mkdir (Depends-on): Likewise.
62959         * modules/openat (Depends-on): Likewise.
62960         * modules/savewd (Depends-on): Likewise.
62961         * modules/rename (Depends-on): Likewise.
62962         (License): Relax license.
62963         * modules/mkdir-tests (Depends-on): Drop progname.
62964         (Makefile.am): Delete unneeded LDADD.
62965         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
62967         dirname: split into dirname-lgpl
62968         * modules/dirname-lgpl: New module.
62969         * modules/dirname (Files): Move library-safe files into
62970         dirname-lgpl.
62971         (Depends-on): Add dirname-lgpl.
62972         (configure.ac): Declare witness.
62973         * modules/double-slash-root (License): Relax license.
62974         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
62975         module.
62976         * lib/dirname.c (dir_len, mdir_name): Move...
62977         * lib/dirname-lgpl.c: ...into new file.
62978         * lib/basename.c (last_component, base_len): Move...
62979         * lib/basename-lgpl.c: ...into new file.
62980         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
62981         (gl_DIRNAME): Use it.
62982         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
62983         Mention new module.
62984         * modules/dirname-tests (Depends-on): Add progname.
62985         * tests/test-dirname.c (program_name): Delete.
62987         mkdir: make safe for libraries
62988         * modules/mkdir (Depends-on): Drop xalloc.
62989         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
62990         exit.
62992         tests: avoid some compiler warnings
62993         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
62994         literals.
62995         * tests/test-memchr.c (main): Avoid type mismatch.
62996         * tests/test-arpa_inet.c (main): Avoid unused parameters.
62997         * tests/test-base64.c (main): Likewise.
62998         * tests/test-getdelim.c (main): Likewise.
62999         * tests/test-gethostname.c (main): Likewise.
63000         * tests/test-getline.c (main): Likewise.
63001         * tests/test-netinet_in.c (main): Likewise.
63002         * tests/test-select.c (open_server_socket, main): Likewise.
63003         * tests/test-select-stdin.c (main): Likewise.
63004         * tests/test-sockets.c (main): Likewise.
63005         * tests/test-strsignal.c (main): Likewise.
63006         * tests/test-sys_select.c (main): Likewise.
63007         * tests/test-sys_socket.c (main): Likewise.
63008         * tests/test-u64.c (main): Likewise.
63009         * tests/test-xfprintf-posix.c (main): Likewise.
63010         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
63012         sockets: avoid compiler warning
63013         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
63015         maint: detect usage(1) and other suspicious exits
63016         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
63018 2009-10-29  Jim Meyering  <meyering@redhat.com>
63020         timespec: long-to-int truncation could make timespec_cmp malfunction
63021         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
63022         a multiple of 2^32 nanoseconds as no difference.
63024 2009-10-28  Jim Meyering  <meyering@redhat.com>
63026         fprintftime: wrap macro code argument in "do {...} while(0)"
63027         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
63028         cpy macro must be a statement that can be followed by a semicolon.
63029         Now that the else clause contains a comment and is hence longer
63030         than one line, I require curly braces.  That in turn requires
63031         that we wrap this code block in the standard do...while(0).
63033         fprintftime: remove stray semicolon from previous change
63034         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
63036         fprintftime: avoid a warning about ignored fwrite return value
63037         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
63038         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
63039         that is unsafe.
63040         * modules/fprintftime (Depends-on): Add ignore-value.
63042         exclude: avoid an unwarranted warning
63043         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
63045 2009-10-27  Eric Blake  <ebb9@byu.net>
63047         fseek: avoid compilation failure when fflush is replaced
63048         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
63049         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
63050         module is in use.
63051         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
63052         module is not in use; since REPLACE_FSEEK worked otherwise.
63053         (GNULIB_FTELLO): Likewise for ftell.
63054         Reported by Ian Beckwith and others.
63056 2009-10-27  Bruno Haible  <bruno@clisp.org>
63058         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
63059         Reported by Jim Meyering.
63061 2009-10-27  Jim Meyering  <jim@meyering.net>
63062             Bruno Haible  <bruno@clisp.org>
63064         Avoid warning despite dropping the return value of fwrite.
63065         * lib/unicodeio.c: Include ignore-value.h.
63066         (fwrite_success_callback): Explicitly ignore fwrite's return value.
63067         * modules/unicodeio (Depends-on): Add ignore-value.
63069 2009-10-26  Eric Blake  <ebb9@byu.net>
63071         areadlinkat: fix fallback path
63072         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
63073         pointer and zero.
63075 2009-10-22  Pádraig Brady  <P@draigBrady.com>
63077         Use a better IO block size for modern systems
63078         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
63079         * lib/md2.c: Likewise.
63080         * lib/md4.c: Likewise.
63081         * lib/md5.c: Likewise.
63082         * lib/sha1.c: Likewise.
63083         * lib/sha256.c: Likewise.
63084         * lib/sha512.c: Likewise.
63086 2009-10-22  Eric Blake  <ebb9@byu.net>
63088         tests: avoid several compiler warnings
63089         * tests/test-getcwd.c (main): Avoid buffer underflow.
63090         * tests/test-getdate.c (main): String literals are not safe with
63091         putenv, so use setenv.  Declare unused argument.
63092         * modules/getdate-tests (Depends-on): Add setenv.
63093         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
63094         problems with string literals in char *.
63095         * tests/test-hash.c (main): Avoid shadowing declaration.
63096         (insert_new): Treat string literals as char const *.
63097         * tests/test-getopt.h (test_getopt): Likewise.
63098         (getopt_loop): Alter types to minimize casting elsewhere.
63099         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
63100         (test_getopt_long_posix): Likewise.
63101         (do_getopt_long): Add wrapper to minimize casting.
63102         * tests/test-atexit.c (clear_temp_file): Use void.
63103         * tests/test-areadlink-with-size.c (main): Declare unused
63104         arguments.
63105         * tests/test-areadlink.c (main): Likewise.
63106         * tests/test-areadlinkat-with-size.c (main): Likewise.
63107         * tests/test-areadlinkat.c (main): Likewise.
63108         * tests/test-canonicalize-lgpl.c (main): Likewise.
63109         * tests/test-canonicalize.c (main): Likewise.
63110         * tests/test-dirent-safer.c (main): Likewise.
63111         * tests/test-dirname.c (main): Likewise.
63112         * tests/test-dup2.c (main): Likewise.
63113         * tests/test-fchdir.c (main): Likewise.
63114         * tests/test-fcntl-h.c (main): Likewise.
63115         * tests/test-fcntl-safer.c (main): Likewise.
63116         * tests/test-fdopendir.c (main): Likewise.
63117         * tests/test-fdutimensat.c (main): Likewise.
63118         * tests/test-fflush.c (main): Likewise.
63119         * tests/test-filenamecat.c (main): Likewise.
63120         * tests/test-filevercmp.c (main): Likewise.
63121         * tests/test-fopen-safer.c (main): Likewise.
63122         * tests/test-fopen.c (main): Likewise.
63123         * tests/test-fpending.c (main): Likewise.
63124         * tests/test-fpurge.c (main): Likewise.
63125         * tests/test-freading.c (main): Likewise.
63126         * tests/test-fstatat.c (main): Likewise.
63127         * tests/test-fsync.c (main): Likewise.
63128         * tests/test-futimens.c (main): Likewise.
63129         * tests/test-getndelim2.c (main): Likewise.
63130         * tests/test-gettimeofday.c (main): Likewise.
63131         * tests/test-getopt.c (main): Likewise.
63132         * tests/test-i-ring.c (main): Likewise.
63133         * tests/test-inttypes.c (main): Likewise.
63134         * tests/test-link.c (main): Likewise.
63135         * tests/test-lstat.c (main): Likewise.
63136         * tests/test-math.c (main): Likewise.
63137         * tests/test-md5.c (main): Likewise.
63138         * tests/test-memchr2.c (main): Likewise.
63139         * tests/test-memrchr.c (main): Likewise.
63140         * tests/test-mkdir.c (main): Likewise.
63141         * tests/test-mkdirat.c (main): Likewise.
63142         * tests/test-mkfifoat.c (main): Likewise.
63143         * tests/test-open.c (main): Likewise.
63144         * tests/test-openat-safer.c (main): Likewise.
63145         * tests/test-openat.c (main): Likewise.
63146         * tests/test-quotearg.c (main): Likewise.
63147         * tests/test-rawmemchr.c (main): Likewise.
63148         * tests/test-readlink.c (main): Likewise.
63149         * tests/test-remove.c (main): Likewise.
63150         * tests/test-rename.c (main): Likewise.
63151         * tests/test-renameat.c (main): Likewise.
63152         * tests/test-rmdir.c (main): Likewise.
63153         * tests/test-sha1.c (main): Likewise.
63154         * tests/test-signal.c (main): Likewise.
63155         * tests/test-sigaction.c (main): Likewise.
63156         * tests/test-stat.c (main): Likewise.
63157         * tests/test-stat-time.c (main): Likewise.
63158         * tests/test-stddef.c (main): Likewise.
63159         * tests/test-stdint.c (main): Likewise.
63160         * tests/test-stdio.c (main): Likewise.
63161         * tests/test-stdlib.c (main): Likewise.
63162         * tests/test-strchrnul.c (main): Likewise.
63163         * tests/test-strerror.c (main): Likewise.
63164         * tests/test-string.c (main): Likewise.
63165         * tests/test-strtod.c (main): Likewise.
63166         * tests/test-strverscmp.c (main): Likewise.
63167         * tests/test-symlink.c (main): Likewise.
63168         * tests/test-symlinkat.c (main): Likewise.
63169         * tests/test-sys_stat.c (main): Likewise.
63170         * tests/test-sys_time.c (main): Likewise.
63171         * tests/test-time.c (main): Likewise.
63172         * tests/test-unistd.c (main): Likewise.
63173         * tests/test-unlink.c (main): Likewise.
63174         * tests/test-unlinkat.c (main): Likewise.
63175         * tests/test-utimens.c (main): Likewise.
63176         * tests/test-utimensat.c (main): Likewise.
63177         * tests/test-version-etc.c (main): Likewise.
63178         * tests/test-wchar.c (main): Likewise.
63179         * tests/test-wctype.c (main): Likewise.
63180         * tests/test-xprintf-posix.c (main): Likewise.
63181         * tests/test-posixtm.c (main): Likewise.
63182         (STREQ): Delete unused macro.
63183         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
63184         shadowed variables.
63185         * tests/test-memchr.c (main): Likewise.
63187 2009-10-21  Eric Blake  <ebb9@byu.net>
63189         areadlinkat: avoid failure on older glibc
63190         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
63191         rather than mis-comparing 0 against FUNC_RESULT of char*.
63193 2009-10-21  Bruno Haible  <bruno@clisp.org>
63195         * modules/stpncpy (License): Relicense under LGPLv2+.
63196         Reported by David Lutterkort <lutter@redhat.com>.
63198 2009-10-20  Eric Blake  <ebb9@byu.net>
63200         utimensat: work around Solaris 9 bug
63201         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
63202         has trailing slash bugs.
63203         * tests/test-lutimens.h (test_lutimens): Enhance test.
63204         * tests/test-utimens.h (test_utimens): Likewise.
63205         * doc/posix-functions/utime.texi (utime): Enhance documentation.
63206         * doc/posix-functions/utimes.texi (utimes): Likewise.
63207         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63208         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
63209         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
63210         * doc/posix-functions/futimens.texi (futimens): Likewise.
63212         fdutimensat: new module
63213         * modules/fdutimensat: New file.
63214         * lib/fdutimensat.c (fdutimensat): Likewise.
63215         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
63216         * MODULES.html.sh (File system functions): Mention module.
63217         * modules/fdutimensat-tests: New test.
63218         * tests/test-fdutimensat.c: Likewise.
63220         doc: regenerate INSTALL
63221         * doc/INSTALL: Reflect recent autoconf update.
63222         * doc/INSTALL.ISO: Likewise.
63223         * doc/INSTALL.UTF-8: Likewise.
63225 2009-10-20  Pádraig Brady  <P@draigBrady.com>
63227         acl: warn if ACL support is not detected
63228         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
63230 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
63232         * lib/nproc.h: Add extern "C" block for C++.
63234 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
63235             Bruno Haible  <bruno@clisp.org>
63237         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
63238         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
63239         * doc/posix-functions/isalpha.texi: Likewise.
63240         * doc/posix-functions/isblank.texi: Likewise.
63241         * doc/posix-functions/iscntrl.texi: Likewise.
63242         * doc/posix-functions/isdigit.texi: Likewise.
63243         * doc/posix-functions/isgraph.texi: Likewise.
63244         * doc/posix-functions/islower.texi: Likewise.
63245         * doc/posix-functions/isprint.texi: Likewise.
63246         * doc/posix-functions/ispunct.texi: Likewise.
63247         * doc/posix-functions/isspace.texi: Likewise.
63248         * doc/posix-functions/isupper.texi: Likewise.
63249         * doc/posix-functions/isxdigit.texi: Likewise.
63251 2009-10-18  Bruno Haible  <bruno@clisp.org>
63253         Tests for module 'isblank'.
63254         * modules/isblank-tests: New file.
63255         * tests/test-isblank.c: New file.
63257         New module 'isblank'.
63258         * lib/isblank.c: New file.
63259         * m4/isblank.m4: New file.
63260         * modules/isblank: New file.
63261         * doc/posix-functions/isblank.texi: Mention the new module.
63263 2009-10-18  Bruno Haible  <bruno@clisp.org>
63265         New module 'ctype'.
63266         * lib/ctype.in.h: New file.
63267         * m4/ctype.m4: New file.
63268         * modules/ctype: New file.
63269         * doc/posix-headers/ctype.texi: Mention the new module.
63271 2009-10-18  Jim Meyering  <meyering@redhat.com>
63273         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
63274         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
63275         right after its initialization, rather than farther down.
63276         Keeping these in close proximity makes it easier to ensure
63277         that each such variable is initialized.  E.g.,
63279             LIB_CLOCK_GETTIME=
63280             AC_SUBST([LIB_CLOCK_GETTIME])
63282         This change also increments these serial numbers.
63283         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
63284         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63287 2009-10-18  Bruno Haible  <bruno@clisp.org>
63289         Don't let environment variables perturb build.
63290         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
63291         (gl_PREREQ_GETHRXTIME): ... not here.
63293 2009-10-18  Bruno Haible  <bruno@clisp.org>
63295         Avoid symlink attack in localcharset module.
63296         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
63297         (O_NOFOLLOW): Define fallback.
63298         (get_charset_aliases): Don't open the file if it is a symbolic link.
63299         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
63300         gl_FCNTL_H.
63301         (gl_FCNTL_H): Require it.
63302         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
63303         * modules/localcharset (Files): Add m4/fcntl_h.m4.
63304         Reported by Fergal Glynn <fglynn@veracode.com>.
63306 2009-10-18  Bruno Haible  <bruno@clisp.org>
63308         Implement nproc for mingw.
63309         * lib/nproc.c: Include <windows.h>
63310         (num_processors): On native Windows platforms, try GetSystemInfo.
63312 2009-10-18  Bruno Haible  <bruno@clisp.org>
63314         Implement nproc for IRIX.
63315         * lib/nproc.c: Include <sys/sysmp.h>.
63316         (num_processors): On IRIX systems, try sysmp.
63317         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
63319 2009-10-18  Bruno Haible  <bruno@clisp.org>
63321         Implement nproc for HP-UX.
63322         * lib/nproc.c: Include <sys/pstat.h>
63323         (num_processors): On HP-UX systems, try pstat_getdynamic.
63324         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
63325         pstat_getdynamic.
63327 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
63328             Bruno Haible  <bruno@clisp.org>
63330         Implement nproc for NetBSD, OpenBSD.
63331         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
63332         (ARRAY_SIZE): New macro.
63333         (num_processors): On BSD systems, try sysctl of HW_NCPU.
63334         * m4/nproc.m4: New file.
63335         * modules/nproc (Files): Add m4/nproc.m4.
63336         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
63337         (Makefile.am): Instead, augment lib_SOURCES.
63339 2009-10-18  Bruno Haible  <bruno@clisp.org>
63341         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
63342         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
63343         sys/param.h.
63345 2009-10-16  Eric Blake  <ebb9@byu.net>
63347         utimensat: new module
63348         * modules/utimensat: New file.
63349         * lib/utimensat.c (utimensat): Likewise.
63350         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63351         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
63352         so we can work around Linux bugs.
63353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63354         * modules/sys_stat (Makefile.am): Substitute them.
63355         * lib/sys_stat.in.h (utimensat): Declare it.
63356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63357         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63358         * modules/utimensat-tests: New test.
63359         * tests/test-utimensat.c: Likewise.
63361         utimens: let lutimens work on non-symlinks
63362         * lib/utimens.c (lutimens): Fall back to utimens rather than
63363         failing with ENOSYS, when file is not a symlink.
63364         (utimens): Reduce redirection.
63365         * tests/test-lutimens.h (test_lutimens): Update test to cover
63366         non-symlinks.
63367         * tests/test-utimens.h (test_utimens): Update test to cover
63368         symlinks.
63369         * tests/test-utimens.c (main): Update caller.
63371         utimens: cache whether utimensat syscall works
63372         * lib/utimens.c (utimensat_works_really): New cache variable.
63373         (fdutimens, lutimens): Use it to avoid failing syscall.
63375         test-stat-time, test-utimens: improve portability
63376         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
63377         ext4 on alpha, and for cygwin.
63378         * tests/test-utimens-common.h: New file.
63379         (nap): Factor delays into single function.
63380         * tests/test-lutimens.h (test_lutimens): Use new header.
63381         * tests/test-futimens.h (test_futimens): Likewise.
63382         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
63383         timestamps to occur from same machine, as was done previously for
63384         test_utimens.
63385         * modules/utimens-tests (Files): Ship new file.
63386         * modules/futimens-tests (Files): Likewise.
63387         Reported in part by Jim Meyering.
63389         sys_stat: sort replacement declarations
63390         * lib/sys_stat.in.h: Sort declarations.
63391         * lib/futimens.c (futimens): Fix typo.
63393 2009-10-15  Jim Meyering  <meyering@redhat.com>
63395         don't let environment settings perturb build
63396         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
63397         could cause a configure-time and/or build-time malfunction.
63398         Typically, a configure-time function-in-library test is performed
63399         via code like this:
63401           LIB_VAR=
63402           AC_SUBST([LIB_VAR])
63403           prefix_saved_LIBS=$LIBS
63404             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
63405                        [test "$ac_cv_search_FUNC" = "none required" ||
63406                         LIB_VAR=$ac_cv_search_FUNC])
63407           LIBS=$prefix_saved_LIBS
63409         However, in each of the files affected by this change, the LIB_VAR=
63410         initialization was omitted.  Thus, when set in the environment, its
63411         value would propagate into generated Makefiles when FUNC is not found
63412         in LIB_NAME.
63413         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
63414         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
63415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63417 2009-10-14  Eric Blake  <ebb9@byu.net>
63419         fchdir: avoid infinite recursion in mingw
63420         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
63421         recursing.
63423         test-stat-time: port to mingw
63424         * tests/test-stat-time.c (force_unlink): Return a value.
63425         (test_ctime) [W32]: Fix compilation error.
63426         (nap): Don't call usleep with too large an argument.  Use
63427         force_unlink.
63428         * doc/pastposix-functions/usleep.texi (usleep): Document the
63429         portability issue.
63431 2009-10-13  Jim Meyering  <meyering@redhat.com>
63433         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
63434         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
63435         * modules/pipe-filter-ii: Likewise.
63436         * modules/sys_socket-tests: Likewise.
63437         * modules/tsearch-tests: Likewise.
63438         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
63439         (check): Depend on it.
63441 2009-10-12  Eric Blake  <ebb9@byu.net>
63443         utimens-tests: port to NFS file systems
63444         * tests/test-utimens.h (test_utimens): Refactor utimecmp
63445         comparisons to avoid spurious failures from timestamp drift
63446         between NFS machines.
63448 2009-10-12  Eric Blake  <ebb9@byu.net>
63450         stat-time-tests: minor cleanups
63451         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
63452         * tests/test-stat-time.c (nap): Separate assignment from call.
63453         Suggested by Paolo Bonzini and Bruno Haible.
63455         sys_stat: guarantee struct timespec
63456         * lib/sys_stat.in.h (includes): Always include <time.h>
63457         * modules/sys_stat (Depends-on): Add time.
63458         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
63459         mode_t permission values.
63460         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
63461         get at subsecond timestamps.
63463 2009-10-10  Eric Blake  <ebb9@byu.net>
63465         futimens: new module
63466         * modules/futimens: New file.
63467         * lib/futimens.c (futimens): Likewise.
63468         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
63469         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
63470         we can work around Linux bugs.
63471         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
63472         * modules/sys_stat (Makefile.am): Substitute them.
63473         * lib/sys_stat.in.h (futimens): Declare it.
63474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63475         * doc/posix-functions/futimens.texi (futimens): Likewise.
63476         * modules/futimens-tests: New test.
63477         * tests/test-futimens.c: Likewise.
63479         utimens: introduce fdutimens
63480         * lib/utimens.h (fdutimens): New prototype.
63481         * lib/utimens.c (gl_futimens): Move guts...
63482         (fdutimens): ...to new interface.
63483         * tests/test-utimens.c (do_fdutimens): Use it.
63485         utimens: add UTIME_NOW and UTIME_OMIT support
63486         * lib/utimens.c (validate_timespec, update_timespec): New helper
63487         functions.
63488         (gl_futimens, lutimens): Use them.
63489         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
63490         stdbool, sys_stat.
63491         (Link): Mention resulting library dependency.
63492         * modules/utimecmp (Link): Likewise.
63493         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
63494         (Makefile.am): Pick up library dependency.
63495         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
63496         definition.
63497         * tests/test-sys_stat.c: Test the definitions.
63498         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
63499         * NEWS: Document library dependency.
63501         utimecmp: support symlink timestamps
63502         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
63503         hashing when possible.  Use pathconf when available.
63504         (SYSCALL_RESOLUTION): Recognize tighter resolution.
63505         * modules/utimecmp (Depends-on): Add lstat.
63507         utimens: add lutimens interface
63508         * lib/utimens.c (lutimens): New function.
63509         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
63510         * lib/utimens.h (lutimens): Declare new interface.
63511         * tests/test-utimens.c (main): Enhance test.
63512         * tests/test-lutimens.h (test_lutimens): New file.
63513         * modules/utimens-tests (Files): Distribute it.
63514         (Depends-on): Add symlink.
63515         (configure.ac): Check for usleep.
63517         utimens: validate futimens usage
63518         * lib/utimens.c (gl_futimens): Require valid fd up front, using
63519         fewer syscalls on failure later on.  Avoid compiler warning on
63520         mingw.
63521         * modules/utimens (Depends-on): Add dup2.
63523         utimens: add test
63524         * modules/utimens-tests: New test.
63525         * tests/test-utimens.h: New file.
63526         * tests/test-futimens.h: Likewise.
63527         * tests/test-utimens.c: Likewise.
63529         doc: mention timestamp portability issues
63530         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
63531         instead.
63532         * doc/posix-functions/utime.texi (utime): Likewise.
63533         * doc/posix-functions/utimes.texi (utimes): Likewise.
63534         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
63535         instead.
63536         * doc/posix-functions/futimens.texi (futimens): Mention utimens
63537         module.
63538         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
63539         Mention weakness with symlink timestamps.
63540         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
63541         to utimensat/futimens instead.
63542         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
63544         test-dup2: enhance test
63545         * tests/test-dup2.c (main): Also check AT_FDCWD.
63547         test-stat-time: avoid more spurious failures
63548         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
63549         xfs; and avoid race if the two timestamps cross quantization edge.
63551         relocatable: prefer 'file system' over 'filesystem'
63552         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
63553         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
63554         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
63555         * doc/relocatable.texi (Enabling Relocatability): Likewise.
63556         * lib/relocatable.c (compute_curr_prefix): Likewise.
63558 2009-10-10  Jim Meyering  <meyering@redhat.com>
63560         stat-time-tests: check for the usleep function
63561         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
63563 2009-10-10  Bruno Haible  <bruno@clisp.org>
63565         * modules/xnanosleep: Put the Link section after the Include section.
63567 2009-10-09  Eric Blake  <ebb9@byu.net>
63569         dup2: work around FreeBSD 6.1 bug
63570         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
63571         * doc/posix-functions/dup2.texi (dup2): Document it.
63572         Reported by Nelson H. F. Beebe and Jim Meyering.
63574         test-stat-time: port to buggy NFS clients
63575         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
63576         (test_ctime): Also skip test if mtime and ctime are skewed.
63578         maint: prefer 'file system' over 'filesystem'
63579         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
63580         * doc/posix-functions/lstat.texi (lstat): Likewise.
63581         * lib/file-has-acl.c (file_has_acl): Likewise.
63582         * lib/fwriteerror.c [TEST]: Likewise.
63583         * tests/test-areadlink.h (test_areadlink): Likewise.
63584         * tests/test-areadlinkat-with-size.c (main): Likewise.
63585         * tests/test-areadlinkat.c (main): Likewise.
63586         * tests/test-canonicalize-lgpl.c (main): Likewise.
63587         * tests/test-canonicalize.c (main): Likewise.
63588         * tests/test-fstatat.c (main): Likewise.
63589         * tests/test-linkat.c (main): Likewise.
63590         * tests/test-lstat.h (test_lstat_func): Likewise.
63591         * tests/test-mkdir.h (test_mkdir): Likewise.
63592         * tests/test-readlink.h (test_readlink): Likewise.
63593         * tests/test-remove.c (main): Likewise.
63594         * tests/test-rename.h (test_rename): Likewise.
63595         * tests/test-renameat.c (main): Likewise.
63596         * tests/test-rmdir.h (test_rmdir_func): Likewise.
63597         * tests/test-symlink.h (test_symlink): Likewise.
63598         * tests/test-symlinkat.c (main): Likewise.
63599         * tests/test-unlink.h (test_unlink_func): Likewise.
63600         * tests/test-unlinkat.c (main): Likewise.
63602         maint: make realtime library usage explicit
63603         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
63604         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
63605         * modules/settime (Link): Likewise.
63606         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
63608         test-stat-time: speed up execution
63609         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
63610         warning on mingw.
63611         (nap): New helper function.
63612         (prepare_test): Use it to reduce sleep time.
63613         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
63614         execution.
63615         * modules/stat-time-tests (configure.ac): Check for usleep.
63617 2009-10-09  Jim Meyering  <meyering@redhat.com>
63619         selinux-h: always use getfilecon wrappers
63620         * lib/getfilecon.c: New file.
63621         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
63622         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
63623         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
63624         (fgetfilecon): Provide a stub.
63625         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
63626         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
63627         file unconditionally.
63628         When <selinux/selinux.h> is found, arrange to use wrappers.
63629         * modules/selinux-h (Files): Add getfilecon.c.
63630         (Makefile.am): Substitute include-next-related bits
63631         into the now-always-generated selinux/selinux.h file.
63632         * doc/glibc-functions/lgetfilecon.texi: New file.
63633         * doc/glibc-functions/fgetfilecon.texi: New file.
63634         * doc/glibc-functions/getfilecon.texi: New file.
63635         * doc/glibc-functions/getfilecon-desc.texi: New file.
63636         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
63637         which to pull in the new files.
63638         * MODULES.html.sh (Misc): Add selinux-h.
63640 2009-10-08  Jim Meyering  <meyering@redhat.com>
63642         unistd: fix comment typo
63643         * lib/unistd.in.h (euidaccess): Fix a comment typo.
63645 2009-10-08  Eric Blake  <ebb9@byu.net>
63647         areadlink: use SIZE_MAX consistently
63648         * modules/areadlink (Depends-on): Add stdint.
63649         * modules/areadlink-with-size (Depends-on): Likewise.
63650         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
63651         gives NULL; drop sys/types, since unistd gives size_t; and add
63652         stdint for SIZE_MAX.
63653         (SIZE_MAX): Rely on headers.
63654         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
63655         and add stdint.
63656         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
63657         (SIZE_MAX): Likewise.
63658         (INITIAL_BUF_SIZE): Turn into enum.
63659         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
63661 2009-10-08  Jim Meyering  <meyering@redhat.com>
63663         areadlinkat: avoid compilation failure
63664         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
63665         Fix typo in comment.
63667 2009-10-07  Eric Blake  <ebb9@byu.net>
63669         areadlinkat-with-size: new module
63670         * modules/areadlinkat-with-size: New module.
63671         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
63672         * lib/areadlink.h (areadlinkat): Declare it.
63673         * MODULES.html.sh (File system functions): Mention it.
63674         * modules/areadlinkat-with-size-tests: New test.
63675         * tests/test-areadlinkat-with-size.c: New file.
63677         xreadlinkat: new module
63678         * modules/xreadlinkat: New module.
63679         * lib/xreadlinkat.c (xreadlinkat): New file.
63680         * lib/xreadlink.h (xreadlinkat): Declare it.
63681         * MODULES.html.sh (File system functions): Mention it.
63683         areadlinkat: new module
63684         * lib/at-func.c (FUNC_FAIL): New define.
63685         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
63686         * modules/areadlinkat: New module.
63687         * lib/linkat.c (areadlinkat): Move...
63688         * lib/areadlinkat.c (areadlinkat): ...to new file.
63689         * lib/areadlink.h (areadlinkat): Declare it.
63690         * modules/linkat (Depends-on): Add areadlinkat.
63691         * MODULES.html.sh (File system functions): Mention it.
63692         * modules/areadlinkat-tests: New test.
63693         * tests/test-areadlinkat.c: New file.
63695         areadlink, areadlink-with-size: add tests
63696         * modules/areadlink-tests: New test.
63697         * modules/areadlink-with-size-tests: Likewise.
63698         * tests/test-areadlink.h: New file.
63699         * tests/test-areadlink.c: Likewise.
63700         * tests/test-areadlink-with-size.c: Likewise.
63702         maint: minor cleanups
63703         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
63704         _UNUSED_PARAMETER_ instead.
63705         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
63706         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
63707         * modules/linkat-tests (Files): Distribute test-link.h.
63709         openat, utimens: whitespace cleanup
63710         * lib/openat.c: Prefer space throughout, rather than mix of 8
63711         spaces vs. tabs.
63712         * lib/at-func.c: Likewise.
63713         * lib/utimens.c: Likewise.
63715         openat: avoid using wrong fd
63716         * lib/openat.c (openat_permissive): Reject user's fd if saving the
63717         working directory chooses same fd.
63718         * lib/at-func.c (AT_FUNC_NAME): Likewise.
63720         mkdir, mkdirat: fix cygwin 1.5.x bug
63721         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
63722         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
63723         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
63724         bug.
63725         (gl_PREREQ_MKDIR): Delete unused macro.
63726         * modules/mkdir (Files): Track file rename.
63727         (configure.ac): Update macro name.
63728         * modules/openat (Depends-on): Add mkdir.
63729         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
63731         mkdir, mkdirat: add tests
63732         * modules/mkdir-tests: New test.
63733         * tests/test-mkdir.h: New file.
63734         * tests/test-mkdir.c: Likewise.
63735         * tests/test-mkdirat.c: Likewise.
63736         * modules/openat-tests (Files): Add new files.
63737         (Makefile.am): Run new test.
63739 2009-10-06  Eric Blake  <ebb9@byu.net>
63741         doc: tweak *at function documentation
63742         * doc/posix-functions/faccessat.texi (faccessat): Mention
63743         known issue with replacement.
63744         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
63745         * doc/posix-functions/linkat.texi (linkat): Likewise.
63746         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
63747         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
63748         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
63749         * doc/posix-functions/renameat.texi (renameat): Likewise.
63750         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
63752         openat: fix GNU/Hurd bug in unlinkat
63753         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
63754         broken.
63755         * doc/posix-functions/unlink.texi (unlink): Document this.
63756         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
63758         fdopendir: fix GNU/Hurd bug
63759         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
63760         allowing non-directory fds.
63761         * lib/fdopendir.c (rpl_fdopendir): Work around it.
63762         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
63763         * modules/dirent (Makefile.am): Substitute it.
63764         * lib/dirent.in.h (fdopendir): Declare replacement.
63765         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
63766         * tests/test-fdopendir.c (main): Test something other than
63767         /dev/null, since on Hurd that behaves like a directory.
63769         test-symlink: port to GNU/Hurd
63770         * tests/test-symlink.h (test_symlink): Relax expected errno.
63772         doc: tweak more cygwin information
63773         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
63774         now compatible with glibc.
63775         * doc/posix-functions/getopt.texi (getopt): Likewise.
63777         getopt-gnu: add another test
63778         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
63779         guarantee behavior relied on by m4.
63780         * tests/test-getopt.c (main): Use it.
63781         * modules/getopt-posix-tests (Depends-on): Add setenv.
63782         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
63784         getopt: fix compilation on darwin
63785         * lib/getopt.in.h (includes): Leave breadcrumbs during system
63786         include.
63787         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
63788         Reported by Ludovic Courtès.
63790 2009-10-06  Bruno Haible  <bruno@clisp.org>
63792         * modules/size_max (Description): Discourage its use.
63793         Reported by Simon Josefsson.
63795 2009-10-06  Jim Meyering  <meyering@redhat.com>
63797         linkat: avoid compilation failure
63798         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
63800 2009-10-05  Eric Blake  <ebb9@byu.net>
63802         linkat: support Linux 2.6.17
63803         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
63804         linkat on Linux, but allow cache variable override.
63805         * lib/linkat.c (rpl_linkat): Define override.
63806         * modules/linkat (Depends-on): Add symlinkat.
63807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
63808         * modules/unistd (Makefile.am): Substitute it.
63809         * lib/unistd.in.h (linkat): Declare replacement.
63810         Reported by Pádraig Brady.
63812         quotearg: port test to systems with C.UTF-8 locale
63813         * tests/test-quotearg.c (struct result_strings): Add another
63814         member, differentiating between C.ASCII and C.UTF-8 handling.
63815         (compare_strings): Add parameter.
63816         (main): Adjust all callers.
63818         getopt: avoid clash with FreeBSD _getopt_internal
63819         * lib/getopt.in.h (_getopt_internal): Override the name.
63820         * lib/getopt_int.h (includes): Pick up any overrides.
63821         Reported by Reuben Thomas.
63823         hash: allow C89 compilation
63824         * lib/hash.c (check_tuning): Move declaration before statement.
63825         Reported by Reuben Thomas.
63827 2009-10-05  Karl Berry  <karl@gnu.org>
63829         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
63831 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
63832             Bruno Haible  <bruno@clisp.org>
63834         * lib/uname.c (uname): Use a table-driven algorithm to compute
63835         Windows NT versions.
63837 2009-10-04  Bruno Haible  <bruno@clisp.org>
63839         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
63840         program_invocation_short_name.
63841         * modules/progname (configure.ac): Test for presence of
63842         program_invocation_short_name.
63843         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
63845 2009-10-04  Bruno Haible  <bruno@clisp.org>
63847         * lib/progname.c (set_program_name): Fix comment.
63848         Reported by Jim Meyering.
63850 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63851             Bruno Haible  <bruno@clisp.org>
63853         * lib/uname.c: Include <string.h>.
63854         (uname): Do only one call to GetVersionEx in the common case.
63856 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
63857             Bruno Haible  <bruno@clisp.org>
63859         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
63860         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
63861         (uname): Add support for Windows CE and various non-x86 CPU types.
63863 2009-10-03  Bruno Haible  <bruno@clisp.org>
63865         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
63866         invocation to tests/configure.ac.
63867         Reported by Ian Beckwith <ianb@erislabs.net>.
63869 2009-10-02  Eric Blake  <ebb9@byu.net>
63871         fchdir: avoid compiler warning
63872         * lib/fchdir.c (canonicalize_file_name)
63873         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
63875         test-open: support mingw errno values
63876         * tests/test-open.h (test_open): Relax test.
63877         * tests/test-fopen.h (test_fopen): Likewise.
63878         * tests/test-openat-safer.c (main): Likewise.
63880         open: fix opening directory on mingw
63881         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
63883         test-open: on GNU/Hurd, /dev/null is a directory
63884         * tests/test-fopen.h (main): Rename...
63885         (test_fopen): ...to this.  Use a guaranteed non-directory when
63886         confirming open behavior on trailing slash.
63887         * tests/test-openat-safer.c (main): Likewise.
63888         * tests/test-open.h (main): Likewise....
63889         (test_open): ...to this.
63890         * tests/test-fopen.c (main): Adjust caller.
63891         * tests/test-fopen-safer.c (main): Likewise.
63892         * tests/test-open.c (main): Likewise.
63893         * tests/test-fcntl-safer.c (main): Likewise.
63894         Reported by Samuel Thibault.
63896         rename, fchdir: don't ignore chdir failure
63897         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
63898         * lib/rename.c (rpl_rename) [W32]: Likewise.
63899         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
63900         an empty destination directory if source cannot be renamed,
63901         although there is still possibility for failure.
63902         * doc/posix-functions/rename.texi (rename): Document the race.
63903         Reported by Jim Meyering.
63905         maint: cleanup whitespace in recent commits
63906         * lib/rename.c (rpl_rename): Remove tabs.
63907         * tests/test-link.h (test_link): Likewise.
63908         * lib/fchdir.c (get_name): Likewise.
63909         Reported by Jim Meyering.
63911 2009-10-02  Ben Pfaff  <blp@gnu.org>
63913         relocatable-prog-wrapper: Add missing dependency on
63914         double-slash-root.
63915         * modules/relocatable-prog-wrapper: Add dependency.
63916         Reported by Ian Beckwith <ianb@erislabs.net>.
63918 2009-10-02  Eric Blake  <ebb9@byu.net>
63920         renameat: fix Solaris bugs
63921         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
63922         needed fixing.
63923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
63924         * modules/stdio (Makefile.am): Substitute it.
63925         * lib/stdio.in.h (renameat): Declare replacement.
63926         * lib/renameat.c (rpl_renameat): Implement fix.
63928         renameat: new module
63929         * modules/renameat: New file.
63930         * lib/renameat.c (renameat): Likewise.
63931         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
63932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
63933         * modules/stdio (Makefile.am): Substitute them.
63934         * lib/stdio.in.h (renameat): Declare it.
63935         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
63936         * doc/posix-functions/renameat.texi (renameat): Likewise.
63937         * modules/renameat-tests: New test.
63938         * tests/test-renameat.c: Likewise.
63940         rename: fix mingw bugs
63941         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
63942         directory overwrite bugs.
63944         rename: fix another cygwin 1.5 bug
63945         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
63946         checks.
63947         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
63948         unnecessary cygwin workarounds.  Also work around bug with moving
63949         full directory onto an empty one.
63950         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
63952         rename-dest-slash: merge into rename module
63953         * modules/rename-dest-slash (Status): Mark obsolete.
63954         (Depends-on): Add rename.
63955         (Files): Let rename do it all.
63956         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
63957         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
63958         * m4/rename-dest-slash.m4: ...so this file can be deleted.
63959         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
63960         * lib/rename.c (rpl_rename): Update comments.
63962         rename: fix cygwin 1.5.x bugs
63963         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
63964         * lib/rename.c (rpl_rename): Work around them.
63965         * modules/rename (Depends-on): Add same-inode.
63967         rename: fix Solaris 10 bug
63968         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63969         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
63970         was the only bug.
63972         rename: fix Solaris 9 bug
63973         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
63974         on non-directory.  Avoid calling exit.
63975         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
63976         strdup.
63977         * modules/rename-tests (Depends-on): Drop lstat.
63978         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
63979         (gl_PREREQ_RENAME): Delete unused macro.
63981         rename-dest-slash: fix NetBSD bug
63982         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
63983         links.
63984         * modules/rename-dest-slash (Depends-on): Add same-inode.
63986         rename-tests: new test, exposes several platform bugs
63987         * modules/rename-tests: New file.
63988         * tests/test-rename.h: Likewise.
63989         * tests/test-rename.c: Likewise.
63990         * doc/posix-functions/rename.texi (rename): Improve documentation,
63991         including bugs that will eventually be fixed in gnulib.
63993 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
63995         * lib/uname.c: Include <stdlib.h>
63996         (uname): Assume version info is available.
63998 2009-10-02  Jim Meyering  <meyering@redhat.com>
64000         gnu-web-doc-update: correct --help output
64001         * build-aux/gnu-web-doc-update: Make --help output relevant.
64003         gnu-web-doc-update: add standard options
64004         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
64006         gnu-web-doc-update: New module.
64007         Use this script to automatically update the on-line web documentation
64008         for your GNU project at http://www.gnu.org/software/$pkg/manual/
64009         * modules/gnu-web-doc-update: New file, from coreutils.
64010         * build-aux/gnu-web-doc-update: New script.
64012 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
64014         link: LoadLibrary is not needed.
64015         * lib/link.c: Use GetModuleHandle.
64017 2009-10-01  Eric Blake  <ebb9@byu.net>
64019         getopt: bump serial number
64020         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
64021         change.
64023         tests: tighten link, rmdir, and remove tests
64024         * tests/test-link.h (includes): No need to use <config.h> here.
64025         Clean up if directory hard link was created, otherwise test for
64026         trailing '.'.
64027         * tests/test-linkat.c (main): Simplify.
64028         * tests/test-remove.c (main): Enhance test for trailing '.'.
64029         * tests/test-rmdir.h (test_rmdir_func): Likewise.
64031 2009-10-01  Jim Meyering  <meyering@redhat.com>
64033         maint.mk: requiring "make major" was annoying, for a "minor" release.
64034         What is intended is "stable", to contrast with alpha and beta,
64035         so require "make stable", not "make major".
64036         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
64037         (get_tool_versions): Likewise.
64038         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
64040 2009-09-30  Ben Pfaff  <blp@gnu.org>
64042         Fix broken build of replacement for Windows tmpfile().
64043         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
64044         flags argument added along with the 'mkostemp' module.
64046 2009-09-28  Bruno Haible  <bruno@clisp.org>
64048         Avoid identifier clash with POSIX function 'remove' defined as a macro.
64049         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
64050         to 'remove_elt'.
64051         (gl_list_remove): Update.
64052         * lib/gl_list.c (gl_list_remove): Update.
64053         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
64054         to 'remove_elt'.
64055         (gl_oset_remove): Update.
64056         * lib/gl_list.c (gl_oset_remove): Update.
64057         Reported by Eric Blake.
64059 2009-09-28  Eric Blake  <ebb9@byu.net>
64061         doc: mention yet more cygwin 1.7 status
64062         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
64063         cygwin.
64064         * doc/glibc-functions/execvpe.texi (execvpe): New file.
64065         * doc/gnulib.texi (Glibc unistd.h): Mention it.
64067         argp: fix test failure
64068         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
64069         that are not upper-case.  Pass correct range to tolower.
64071 2009-09-27  Jim Meyering  <meyering@redhat.com>
64073         test-yesno: work around sparc-dash here-document infelicity
64074         Without this change, the literal \177 byte in a here document
64075         would make dash 0.5.5.1-3 access uninitialized memory.
64076         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
64077         Instead, use a marker, "@", and filter through tr to create the desired
64078         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
64080 2009-09-27  Bruno Haible  <bruno@clisp.org>
64082         Disable untested support for new flavours of ACLs on AIX.
64083         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
64084         progress.
64085         * lib/set-mode-acl.c (qset_acl): Likewise.
64087 2008-12-07  Bruno Haible  <bruno@clisp.org>
64089         Add support for new flavours of ACLs on AIX. (Untested.)
64090         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
64091         (file_has_acl): Add support for newer AIX.
64092         * lib/set-mode-acl.c (qset_acl): Likewise.
64093         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
64094         Rainer Tammer <tammer@tammer.net>.
64096 2009-09-26  Eric Blake  <ebb9@byu.net>
64098         argp: fix compilation of getopt
64099         * lib/getopt.in.h (includes): Use different guard than glibc.
64100         Reported by Sergey Poznyakoff.
64102         doc: mention more cygwin 1.7 status
64103         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
64104         bug.
64105         * doc/posix-functions/execl.texi (execl): Likewise.
64106         * doc/posix-functions/execle.texi (execle): Likewise.
64107         * doc/posix-functions/execlp.texi (execlp): Likewise.
64108         * doc/posix-functions/execv.texi (execv): Likewise.
64109         * doc/posix-functions/execve.texi (execve): Likewise.
64110         * doc/posix-functions/execvp.texi (execvp): Likewise.
64111         * doc/glibc-functions/canonicalize_file_name.texi
64112         (canonicalize_file_name): Cygwin 1.7 now provides this.
64113         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
64114         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
64115         on AT_SYMLINK_NOFOLLOW.
64117 2009-09-24  Eric Blake  <ebb9@byu.net>
64119         test-linkat: make test more robust
64120         * tests/test-linkat.c (main): Avoid collision with EEXIST.
64122         getopt: fix inclusion guards for cygwin
64123         * modules/getopt-posix (Depends-on): Add include-next.
64124         (Makefile.am): Substitute more items in replacement header.
64125         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
64126         <getopt.h>.
64127         * lib/getopt.in.h (includes): Use split inclusion guard, and
64128         prefer <getopt.h> over include <unistd.h> when one is present.
64129         (option): Also override name of 'struct option'.
64131         same-inode: revert prior change; it is not yet ready
64132         * NEWS: Undo mention of this change.
64133         * lib/same-inode.h (same-inode.h): Undo tri-state change.
64134         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
64135         * lib/cycle-check.c (cycle_check): Likewise.
64136         * lib/same.c (same_name): Likewise.
64137         * lib/at-func2.c (at_func2): Likewise.
64139 2009-09-23  Eric Blake  <ebb9@byu.net>
64141         linkat: new module
64142         * modules/linkat: New file.
64143         * lib/at-func2.c (at_func2): Likewise.
64144         * lib/linkat.c (linkat): Likewise.
64145         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
64146         * lib/openat-priv.h (at_func2): Add declaration.
64147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64148         * modules/unistd (Makefile.am): Substitute them.
64149         * lib/unistd.in.h (linkat): Declare it.
64150         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64151         * doc/posix-functions/linkat.texi (linkat): Likewise.
64152         * doc/posix-functions/link.texi (link): Tweak wording.
64153         * tests/test-link.c (main): Move guts...
64154         * tests/test-link.h (test_link): ...into new file.
64155         * modules/linkat-tests: New test.
64156         * tests/test-linkat.c: Likewise.
64157         * modules/link-tests (Files): Ship new file.
64158         (Depends-on): Add stdbool.
64160         dirname: add library-safe mdir_name
64161         * lib/dirname.h (mdir_name): New prototype.
64162         * lib/dirname.c (dir_name): Move guts...
64163         (mdir_name): ...to new function that avoids xalloc_die.
64165         fchdir: another mingw fix
64166         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
64167         * lib/fchdir.c (get_name): New helper method; skips canonicalize
64168         on mingw (where it has not yet been ported), and make it optional
64169         elsewhere.
64170         (_gl_register_fd): Use it.
64172         same-inode: make SAME_INODE tri-state, to port to mingw
64173         * NEWS: Mention this change.
64174         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
64175         st_ino always being 0.
64176         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
64177         * lib/cycle-check.c (cycle_check): Likewise.
64178         * lib/same.c (same_name): Likewise.
64180         lstat: avoid mingw compilation error
64181         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
64182         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
64183         lstat ourselves.
64184         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
64185         was adequate.
64186         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
64187         the checks for lstat.
64188         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
64190         link: fix test failure on Solaris 9
64191         * lib/link.c (rpl_link): Don't assume link will catch bogus
64192         trailing slash on source.
64194         test-symlinkat: enhance test
64195         * tests/test-readlink.c (main): Move guts...
64196         * tests/test-readlink.h (test_readlink): ...into new file.
64197         * tests/test-symlink.c (main): Move guts...
64198         * tests/test-symlink.h (test_symlink): ...into new file.
64199         * tests/test-symlinkat.c (main): Use new files for further
64200         coverage.
64201         (do_symlink, do_readlink): New helper functions.
64202         * modules/symlink-tests (Files): Ship new file.
64203         (Depends-on): Add stdbool.
64204         * modules/readlink-tests (Files): Ship new file.
64205         (Depends-on): Add stdbool.
64206         * modules/symlinkat-tests (Files): Use new files.
64208 2009-09-23  Eric Blake  <ebb9@byu.net>
64210         readlink: document portability issue with symlink length
64211         * doc/posix-functions/lstat.texi (lstat): Mention that some file
64212         systems have bogus st_size on symlinks, and mention the
64213         areadlink-with-size module.
64214         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
64215         * doc/posix-functions/readlink.texi (readlink): Mention the
64216         areadlink module, and ERANGE failure.
64217         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
64218         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
64220         readlink: fix Solaris 9 bug with trailing slash
64221         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
64222         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
64223         * doc/posix-functions/readlink.texi (readlink): Document this.
64224         * modules/readlink-tests: New test.
64225         * tests/test-readlink.c: Likewise.
64227         readlink: fix cygwin 1.5.x bug with return type
64228         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
64229         * lib/unistd.in.h (readlink): Use ssize_t.
64230         * lib/readlink.c (readlink): Likewise.
64231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64232         * modules/unistd (Makefile.am): Substitute it.
64233         * lib/unistd.in.h (readlink): Declare replacement.
64234         * doc/posix-functions/readlink.texi (readlink): Document this.
64236         symlink: use throughout gnulib
64237         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
64238         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
64239         symlink is not used.
64240         * modules/symlinkat (Depends-on): Add symlink.
64241         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64242         * modules/canonicalize-tests (Depends-on): Likewise.
64243         * modules/lstat-tests (Depends-on): Likewise.
64244         * modules/openat-tests (Depends-on): Likewise.
64245         * modules/remove-tests (Depends-on): Likewise.
64246         * modules/rmdir-tests (Depends-on): Likewise.
64247         * modules/unlink-tests (Depends-on): Likewise.
64248         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
64249         * tests/test-canonicalize.c (symlink): Likewise.
64250         * tests/test-fstatat.c (symlink): Likewise.
64251         * tests/test-lstat.c (symlink): Likewise.
64252         * tests/test-remove.c (symlink): Likewise.
64253         * tests/test-rmdir.c (symlink): Likewise.
64254         * tests/test-unlink.c (symlink): Likewise.
64255         * tests/test-unlinkat.c (symlink): Likewise.
64257         symlink: new module, for Solaris 9 bug
64258         * modules/symlink: New file.
64259         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
64260         * lib/symlink.c: Likewise.
64261         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
64262         * modules/unistd (Makefile.am): Substitute them.
64263         * lib/unistd.in.h (symlink): Declare replacement.
64264         * MODULES.html.sh (File system functions): Mention it.
64265         * doc/posix-functions/symlink.texi (symlink): Likewise.
64266         * modules/symlink-tests: New test.
64267         * tests/test-symlink.c: Likewise.
64269 2009-09-23  Bruno Haible  <bruno@clisp.org>
64271         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
64272         when needed.
64273         Test case: gnulib-tool --import --with-tests atexit inttypes.
64274         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
64276 2009-09-23  Bruno Haible  <bruno@clisp.org>
64278         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
64279         subcommand, not in a subshell.
64281 2009-09-22  Eric Blake  <ebb9@byu.net>
64283         unistd: sort replacement declarations
64284         * lib/unistd.in.h: Sort declarations.
64286         open, openat: minor optimization
64287         * lib/open.c (open): If open succeeded, len is non-zero.
64288         * lib/openat.c (rpl_openat): Likewise.
64290         link-follow: ensure correct result
64291         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
64292         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
64293         distinguish between possible failures.
64295 2009-09-21  Eric Blake  <ebb9@byu.net>
64297         fts: avoid compiler warning
64298         * lib/fts.c (dirent_inode_sort_may_be_useful)
64299         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
64301 2009-09-19  Bruno Haible  <bruno@clisp.org>
64303         * lib/progreloc.c (canonicalize_file_name): New declaration.
64305 2009-09-19  Eric Blake  <ebb9@byu.net>
64307         link: fix quoting
64308         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
64310         openat: fix openat bugs on Solaris 9
64311         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
64312         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
64313         * modules/openat (Depends-on): Add open.
64314         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
64315         * modules/fcntl-h (Makefile.am): Substitute it.
64316         * lib/fcntl.in.h (openat): Declare replacement.
64317         * doc/posix-functions/openat.texi (openat): Document this.
64319         openat: move fstatat and unlinkat into correct files
64320         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
64321         compiled.
64322         * lib/openat.c (fstatat, unlinkat): Move...
64323         * lib/fstatat.c (fstatat): ...into correct files.
64324         * lib/unlinkat.c (unlinkat): Likewise.
64326         openat: fix unlinkat bugs on Solaris 9
64327         * lib/unlinkat.c (unlinkat): New file.
64328         * modules/openat (Depends-on): Add unlink.
64329         (Files): Distribute it.
64330         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
64331         trailing slash behavior is broken.
64332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
64333         * modules/unistd (Makefile.am): Substitute it.
64334         * lib/unistd.in.h (unlinkat): Declare replacement.
64335         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
64337         openat: fix fstatat bugs on Solaris 9
64338         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
64339         stat.
64340         * doc/posix-functions/fstatat.texi (fstatat): Document this.
64342         test-unlinkat: enhance test, to expose Solaris 9 bug
64343         * tests/test-unlink.c (main): Factor guts...
64344         * tests/test-unlink.h (test_rmdir_func): ...into new file.
64345         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
64346         * tests/test-rmdir.c (main): Adjust caller.
64347         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
64348         (unlinker): New helper function.
64349         (rmdirat): Enhance check.
64350         * modules/rmdir-tests (Depends-on): Add stdbool.
64351         * modules/unlink-tests (Depends-on): Likewise.
64352         (Files): Add test-unlink.h.
64353         * modules/openat-tests (Files): Likewise.
64354         (Depends-on): Add unlinkdir.
64356         test-fstatat: new test, to expose Solaris 9 bugs
64357         * tests/test-stat.c (main): Factor guts...
64358         * tests/test-stat.h (test_stat_func): ...into new file.
64359         * tests/test-lstat.c (main): Factor guts...
64360         * tests/test-lstat.h (test_lstat_func): ...into new file.
64361         * tests/test-fstatat.c: New file.
64362         * modules/stat-tests (Files): Add test-stat.h.
64363         * modules/lstat-tests (Files): Add test-lstat.h.
64364         (Depends-on): Add stdbool.
64365         * modules/openat-tests (Depends-on): Add pathmax.
64366         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
64367         (Makefile.am): Run new test.
64369         remove: new module, for mingw and Solaris 9 bugs
64370         * modules/remove: New file.
64371         * lib/remove.c: Likewise.
64372         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
64373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
64374         * modules/stdio (Makefile.am): Use them.
64375         * lib/stdio.in.h (remove): Declare replacement.
64376         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64377         * doc/posix-functions/remove.texi (remove): Likewise.
64378         * modules/remove-tests: New test.
64379         * tests/test-remove.c: Likewise.
64381         unlink: new module, for Solaris 9 bug
64382         * modules/unlink: New file.
64383         * lib/unlink.c: Likewise.
64384         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
64385         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
64386         * modules/unistd (Makefile.am): Use them.
64387         * lib/unistd.in.h (stat): Declare replacement.
64388         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64389         * doc/posix-functions/unlink.texi (unlink): Likewise.
64390         * modules/unlink-tests: New test.
64391         * tests/test-unlink.c: Likewise.
64393         lstat: fix Solaris 9 bug
64394         * lib/lstat.c (lstat): Also check for trailing slash on
64395         non-symlink, non-directories.  Use stat module to simplify logic.
64396         * doc/posix-functions/lstat.texi (lstat): Document it.
64397         * modules/lstat-tests (Depends-on): Add errno, same-inode.
64398         (configure.ac): Check for symlink.
64399         * tests/test-lstat.c (main): Add more tests.
64401         stat: add as dependency to other modules
64402         * modules/chown (Depends-on): Add stat.
64403         * modules/euidaccess (Depends-on): Likewise.
64404         * modules/fchdir (Depends-on): Likewise.
64405         * modules/isdir (Depends-on): Likewise.
64406         * modules/link (Depends-on): Likewise.
64407         * modules/lstat (Depends-on): Likewise.
64408         * modules/mkdir-p (Depends-on): Likewise.
64409         * modules/modechange (Depends-on): Likewise.
64410         * modules/open (Depends-on): Likewise.
64411         * modules/readlink (Depends-on): Likewise.
64412         * modules/same (Depends-on): Likewise.
64414         stat: fix Solaris 9 bug
64415         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
64416         slash.
64417         * lib/stat.c (rpl_stat): Work around it.
64418         * doc/posix-functions/stat.texi (stat): Update documentation.
64420         stat: new module, for mingw bug
64421         * modules/stat: New file.
64422         * lib/stat.c: Likewise.
64423         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
64424         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64425         * modules/sys_stat (Makefile.am): Use them.
64426         * lib/sys_stat.in.h (stat): Declare replacement.
64427         * lib/openat.c (fstatat): Deal with lstat and stat being function
64428         macros.
64429         * modules/openat (Depends-on): Add inline.
64430         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
64431         * doc/posix-functions/stat.texi (stat): Likewise.
64432         * modules/stat-tests: New test.
64433         * tests/test-stat.c: Likewise.
64435 2009-09-19  Jim Meyering  <meyering@redhat.com>
64437         syntax-check: detect unnecessary inclusion of canonicalize.h
64438         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
64440 2009-09-19  Eric Blake  <ebb9@byu.net>
64442         canonicalize-lgpl: adjust clients to use correct header
64443         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64444         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
64445         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
64446         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
64447         * lib/progreloc.c (includes): Likewise.
64449 2009-09-19  Jim Meyering  <meyering@redhat.com>
64451         test-posixtm.c: correct a comment
64452         * tests/test-posixtm.c: Correct first-line comment.
64453         Spotted by Eric Blake.
64455 2009-09-16  Jim Meyering  <meyering@redhat.com>
64457         posixtm-tests: make T const-correct; add a test case
64458         * tests/test-posixtm.c (T): Declare const.
64459         Add a test for -(2^31+1).
64460         Remove useless can-succeed-only-in-2002 test.
64462         posixtm-tests: adjust the sole failing test
64463         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
64464         expected output matches what mktime now produces.  Cross-checked via
64465         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
64467         posixtm: move #ifdef'd tests into a new module
64468         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
64469         * tests/test-posixtm.c: ... this new file.
64470         * modules/posixtm-tests: New module.
64472 2009-09-19  Eric Blake  <ebb9@byu.net>
64474         openat: simplify use of at-func.c
64475         * lib/at-func.c (includes): Include prerequisites here, to
64476         simplify requirements on client files.
64477         * lib/openat-priv.h: Add double-inclusion guard.
64478         * lib/faccessat.c (includes): Simplify.
64479         * lib/fchmodat.c (includes): Likewise.
64480         * lib/fchownat.c (includes): Likewise.
64481         * lib/mkdirat.c (includes): Likewise.
64482         * lib/mkfifoat.c (includes): Likewise.
64483         * lib/symlinkat.c (includes): Likewise.
64485         openat: allow return of fd 0
64486         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
64487         * modules/save-cwd (Depends-on): Replace fcntl-safer with
64488         unistd-safer.
64489         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
64490         <fcntl.h>; this module does not leak fds.
64491         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
64492         must be allowed to return 0, leaving openat_safer to add the
64493         safety.
64494         (openat_permissive): Avoid writing to just-opened fd 2 if
64495         restoring the current directory fails.
64496         * lib/openat-die.c (openat_restore_fail): Add comment.
64497         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
64498         (save_cwd): Guarantee safe fd, but without use of open_safer.
64499         * tests/test-openat.c: New test.
64500         * modules/openat-tests (Files, Makefile.am): Distribute and build
64501         new file.
64503         relocatable-prog-wrapper: fix build
64504         * modules/relocatable-prog-wrapper (Files): Update name of
64505         canonicalize m4 file, broken on 2009-09-17.
64506         Reported by emad hajjar <aleppos@hotmail.com>.
64508 2009-09-19  Bruno Haible  <bruno@clisp.org>
64510         * lib/safe-alloc.h: Use the standard header with GPL copyright.
64511         * lib/safe-alloc.c: Likewise.
64512         Reported by Ian Beckwith <ianb@erislabs.net>.
64514 2009-09-18  Bruno Haible  <bruno@clisp.org>
64516         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
64517         Reported by <erobles@sensacd.com.mx>.
64519 2009-09-17  Eric Blake  <ebb9@byu.net>
64521         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
64522         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
64523         slashes when checking if last component is missing.
64524         * tests/test-canonicalize.c (main): Test this.
64526         canonicalize, canonicalize-lgpl: honor // if distinct from /
64527         * modules/canonicalize (Files): Add double-slash-root.m4.
64528         * modules/canonicalize-lgpl (Files): Likewise.
64529         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
64530         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
64531         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
64532         fallback definition.
64533         (canonicalize_filename_mode): Use it to protect //.
64534         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
64535         (__realpath): Likewise.
64536         * tests/test-canonicalize.c (main): Test this.
64537         * tests/test-canonicalize-lgpl.c (main): Likewise.
64538         * modules/canonicalize-tests (Depends-on): Add same-inode.
64539         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
64541         canonicalize-lgpl: fix glibc bug with trailing slash
64542         * m4/canonicalize-lgpl.m4: Move contents...
64543         * m4/canonicalize.m4: ...here.
64544         (gl_CANONICALIZE_LGPL): Factor realpath check...
64545         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
64546         glibc 2.3.5 bug, fixed 2005-04-27.
64547         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
64548         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
64549         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
64550         * modules/canonicalize-lgpl (Files): Manage file rename.
64551         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64552         * modules/stdlib (Makefile.am): Substitute witness.
64553         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
64554         is needed.
64555         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
64556         replacement is required.
64557         * lib/canonicalize.c (canonicalize_file_name): Likewise.
64558         * doc/glibc-functions/canonicalize_file_name.texi
64559         (canonicalize_file_name): Document this.
64560         * doc/posix-functions/realpath.texi (realpath): Likewise.
64562         canonicalize-lgpl: reject non-directory with trailing slash
64563         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
64564         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
64565         catches failures in glibc 2.3.5.
64566         * tests/test-canonicalize.c (main): Likewise.
64568         canonicalize-lgpl: use native realpath if it works
64569         * lib/canonicalize-lgpl.c (realpath): Guard with
64570         FUNC_REALPATH_WORKS.
64571         * lib/stdlib.in.h (realpath): Make declaration optional based on
64572         HAVE_REALPATH.
64573         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
64574         native realpath works.
64575         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
64576         * modules/stdlib (Makefile.am): Substitute witness.
64578         canonicalize, canonicalize-lgpl: use <stdlib.h>
64579         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
64580         (Include): Mention <stdlib.h>.
64581         (configure.ac): Mention functions we provide.
64582         * modules/canonicalize (configure.ac): Likewise.
64583         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
64584         realpath if canonicalize_file_name is missing.
64585         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
64586         * modules/stdlib (Makefile.am): Substitute witnesses.
64587         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
64588         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
64589         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
64590         * NEWS: Document this.
64591         * doc/glibc-functions/canonicalize_file_name.texi
64592         (canonicalize_file_name): Likewise.
64593         * doc/posix-functions/realpath.texi (realpath): Likewise.
64594         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
64596         test-canonicalize: consolidate into single C program
64597         * tests/test-canonicalize.sh: Delete; move setup into...
64598         * tests/test-canonicalize.c (main): ...the program, making it
64599         easier to run in debugger.  Add some tests.
64600         * modules/canonicalize-tests (Files): Remove unused file.
64601         (Depends-on): Add progname.
64602         (configure.ac, Makefile.am): Simplify.
64604         test-canonicalize-lgpl: consolidate into single C program
64605         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
64606         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
64607         easier to run in debugger.  Add some tests.
64608         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
64609         (configure.ac, Makefile.am): Simplify.
64611         canonicalize: avoid resolvepath
64612         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
64613         unnecessary checks.
64614         * lib/canonicalize.c (includes): Simplify.
64615         (canonicalize_file_name): Drop resolvepath implementation.
64616         * modules/canonicalize (Depends-on): Drop filenamecat.
64618         canonicalize: don't lose errno
64619         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
64620         over calls to free.
64622         canonicalize: simplify errno handling
64623         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
64624         assignment.
64626         canonicalize, canonicalize-lgpl: update module dependencies
64627         * modules/canonicalize (Depends-on): Add extensions, lstat,
64628         pathmax, stdlib.
64629         (Files): Drop pathmax.h.
64630         (configure.ac): Adjust macro name.
64631         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
64632         lstat, stdlib, sys_stat.
64633         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
64634         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
64635         extensions.
64636         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
64637         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
64638         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
64639         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
64640         declaration, if available.
64641         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
64642         we can rely on the readlink module.
64643         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
64644         (includes): Use <unistd.h> unconditionally.
64646 2009-09-17  Eric Blake  <ebb9@byu.net>
64648         maint: make Include sections of modules consistent
64649         * modules/alloca: Use only header name; no need to list #include.
64650         * modules/alloca-opt: Likewise.
64651         * modules/arpa_inet: Likewise.
64652         * modules/canon-host: Likewise.
64653         * modules/configmake: Likewise.
64654         * modules/dirent: Likewise.
64655         * modules/eealloc: Likewise.
64656         * modules/environ: Likewise.
64657         * modules/fchdir: Likewise.
64658         * modules/fcntl: Likewise.
64659         * modules/fcntl-h: Likewise.
64660         * modules/gethrxtime: Likewise.
64661         * modules/gettime: Likewise.
64662         * modules/ignore-value: Likewise.
64663         * modules/inet_ntop: Likewise.
64664         * modules/inet_pton: Likewise.
64665         * modules/inttypes: Likewise.
64666         * modules/isnand-nolibm: Likewise.
64667         * modules/isnanf-nolibm: Likewise.
64668         * modules/mbchar: Likewise.
64669         * modules/mbfile: Likewise.
64670         * modules/mbiter: Likewise.
64671         * modules/mbuiter: Likewise.
64672         * modules/netdb: Likewise.
64673         * modules/netinet_in: Likewise.
64674         * modules/nproc: Likewise.
64675         * modules/pagealign_alloc: Likewise.
64676         * modules/poll: Likewise.
64677         * modules/printf-frexp: Likewise.
64678         * modules/pthread: Likewise.
64679         * modules/putenv: Likewise.
64680         * modules/random_r: Likewise.
64681         * modules/relocatable-prog: Likewise.
64682         * modules/search: Likewise.
64683         * modules/select: Likewise.
64684         * modules/selinux-h: Likewise.
64685         * modules/settime: Likewise.
64686         * modules/signal: Likewise.
64687         * modules/size_max: Likewise.
64688         * modules/socklen: Likewise.
64689         * modules/ssize_t: Likewise.
64690         * modules/stdarg: Likewise.
64691         * modules/stdbool: Likewise.
64692         * modules/stddef: Likewise.
64693         * modules/stdint: Likewise.
64694         * modules/stdio: Likewise.
64695         * modules/stdlib: Likewise.
64696         * modules/string: Likewise.
64697         * modules/strings: Likewise.
64698         * modules/sys_file: Likewise.
64699         * modules/sys_ioctl: Likewise.
64700         * modules/sys_select: Likewise.
64701         * modules/sys_socket: Likewise.
64702         * modules/sys_stat: Likewise.
64703         * modules/sys_time: Likewise.
64704         * modules/sys_times: Likewise.
64705         * modules/sys_utsname: Likewise.
64706         * modules/sys_wait: Likewise.
64707         * modules/sysexits: Likewise.
64708         * modules/time: Likewise.
64709         * modules/times: Likewise.
64710         * modules/tmpfile: Likewise.
64711         * modules/trim: Likewise.
64712         * modules/unistd: Likewise.
64713         * modules/wchar: Likewise.
64714         * modules/wctype: Likewise.
64716 2009-09-17  Bruno Haible  <bruno@clisp.org>
64718         Make getdate.y compile on QNX and NetBSD 5 / i386.
64719         * m4/getdate.m4 (gl_GETDATE): Conditionally define
64720         TIME_T_FITS_IN_LONG_INT.
64721         * lib/getdate.y (long_time_t): New type.
64722         (relative_time): Change type of 'seconds' field to long_time_t.
64723         (get_date): Update types of local variables. Check against overflow
64724         during conversion from long_time_t to time_t.
64725         Reported by Matt Kraai <kraai@ftbfs.org>
64726         and Hasso Tepper <hasso@netbsd.org>.
64728 2009-09-17  Bruno Haible  <bruno@clisp.org>
64730         * modules/COPYING: Update copyright years.
64731         * modules/README: Likeiwse.
64732         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
64733         Reported by Ian Beckwith <ianb@erislabs.net>.
64735 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64737         * users.txt: Update references for gnuit package.
64739 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
64741         * m4/getdelim.m4: Fix typo in copyright line.
64743 2009-09-17  Bruno Haible  <bruno@clisp.org>
64745         * lib/atoll.c: Use the standard header with GPL copyright.
64746         * lib/argz.in.h: Likewise.
64747         * lib/glob.c: Likewise.
64748         * lib/glob-libc.h: Likewise.
64749         * lib/random_r.c: Likewise.
64750         * lib/siglist.h: Likewise.
64751         * lib/strsignal.c: Likewise.
64752         Reported by Ian Beckwith <ianb@erislabs.net>.
64754 2009-09-17  Eric Blake  <ebb9@byu.net>
64756         rmdir: ensure correct dependency order
64757         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
64759 2009-09-17  Bruno Haible  <bruno@clisp.org>
64761         Disable assertion that fails on NetBSD 5 / i386.
64762         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
64763         Reported by Sam Steingold <sds@gnu.org>
64764         and Hasso Tepper <hasso@netbsd.org>.
64766 2009-09-16  Eric Blake  <ebb9@byu.net>
64768         unlinkdir: port to mingw
64769         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
64770         on which no one can unlink a directory.
64772         stdlib: sort witness names
64773         * modules/stdlib (Makefile.am): Sort replacements.
64774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
64775         * lib/stdlib.in.h: Likewise.
64777         parse-duration-tests: avoid link failure
64778         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
64779         LIBINTL.
64780         Reported by Tom G. Christensen.
64782         openat-tests: ensure unlinkat behaves like rmdir
64783         * tests/test-rmdir.c (main): Factor guts...
64784         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
64785         * modules/rmdir-tests (Files): Ship new file.
64786         * modules/openat-tests: New test.
64787         * tests/test-unlinkat.c: Likewise.
64789         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
64790         * modules/rmdir-errno (Status, Notice): Now obsolete.
64792         rmdir: work around cygwin 1.5.x and mingw bugs
64793         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
64794         * lib/rmdir.c (rmdir): Work around it.
64795         * modules/rmdir (Status, Notice): No longer obsolete.
64796         (Files): Add dos.m4.
64797         (Depends-on): Add unistd.
64798         (configure.ac): Set witnesses.
64799         (License): Relax to LGPLv2+.
64800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
64801         * modules/unistd (Makefile.am): Substitute witnesses.
64802         * lib/unistd.in.h (rmdir): Declare replacement.
64803         * doc/posix-functions/rmdir.texi (rmdir): Document this.
64804         * modules/rmdir-tests: New tests.
64805         * tests/test-rmdir.c: Likewise.
64807 2009-09-15  Eric Blake  <ebb9@byu.net>
64809         fchdir: improve use of replacement functions
64810         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
64811         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
64812         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
64813         REPLACE_CLOSEDIR.
64814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
64815         * modules/sys_stat (Makefile.am): Substitute correct witness.
64816         * modules/dirent (Makefile.am): Likewise.
64817         * modules/unistd (Makefile.am): Likewise.
64818         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
64819         * lib/unistd.in.h (dup): Likewise.
64820         * lib/sys_stat.in.h (fstat): Likewise.
64822         maint: ignore gnulib-tool temp files
64823         * .gitignore: Ignore files created during gnulib-tool --test.
64825 2009-09-13  Jim Meyering  <meyering@redhat.com>
64827         posixtm: don't reject a time that specify "60" as the number of seconds
64828         * lib/posixtm.c (posixtime): The code to reject invalid dates
64829         would also reject a time specified with the .60 suffix.
64830         But POSIX allows that, in order to accommodate leap seconds.
64831         So don't reject it.
64832         (main): Adjust tests accordingly.
64833         * modules/posixtm (Depends-on): Add stpcpy.
64835 2009-09-11  Jim Meyering  <meyering@redhat.com>
64837         announce-gen: include [$release_type] in emitted Subject:
64838         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
64839         e.g., [stable] in the emitted Subject: line.
64841 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64843         Remove obsolete macros from several modules.
64844         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
64845         obsolete Autoconf macros with their modern counterparts.
64846         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
64847         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
64848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
64849         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64850         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
64851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64852         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
64853         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
64854         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
64855         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
64856         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
64857         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
64858         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
64859         * m4/sockets.m4 (gl_SOCKETS): Likewise.
64860         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
64861         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
64862         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
64863         * m4/time_r.m4 (gl_TIME_R): Likewise.
64864         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
64865         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
64866         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
64868         Fix copyright header in build-aux scripts.
64869         * build-aux/git-version-gen: Fix copyright header to match GPLv3
64870         recommendation.
64871         * build-aux/ncftpput-ftp: Likewise.
64872         * build-aux/update-copyright: Likewise.
64874 2009-09-09  Eric Blake  <ebb9@byu.net>
64876         test-link: allow Linux choice of errno
64877         * tests/test-link.c (main): Relax test for alternate error.
64879         strndup: fix improper m4 caching
64880         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
64881         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
64882         (gl_PREREQ_STRNDUP): Delete.
64883         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
64884         * modules/string (Makefile.am): Substitute it.
64885         * lib/string.in.h (strndup): Modernize prototype.
64887         getcwd: port to mingw
64888         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
64889         different from the POSIX assumptions made throughout the getcwd
64890         module; fortunately, the mingw getcwd does not need replacement.
64891         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
64892         * modules/getcwd-tests: New test.
64893         * tests/test-getcwd.c: Likewise.
64895         link: fix platform bugs
64896         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
64897         * lib/link.c (link): Work around them.  Fix related mingw bug.
64898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
64899         * modules/unistd (Makefile.am): Substitute it.
64900         * lib/unistd.in.h (link): Declare replacement.
64901         * doc/posix-functions/link.texi (link): Document this.
64902         * modules/link (Depends-on): Add strdup-posix, sys_stat.
64904         test-link: consolidate into single C program, test more cases
64905         * tests/test-link.sh: Delete.
64906         * tests/test-link.c: Test more error conditions.  Exposes bugs on
64907         at least Cygwin and Solaris.
64908         * modules/link-tests (Files): Remove unused file.
64909         (Depends-on): Add errno, sys_stat.
64910         (Makefile.am): Simplify.
64912 2009-09-08  Bruno Haible  <bruno@clisp.org>
64914         Work around towlower, towupper bug on mingw.
64915         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
64916         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
64917         * doc/posix-functions/towlower.texi: Mention the mingw bug.
64918         * doc/posix-functions/towupper.texi: Likewise.
64919         Reported by Eric Blake.
64921 2009-09-08  Jim Meyering  <meyering@redhat.com>
64923         build: don't try to run autoheader if we don't use it
64924         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
64925         is not used in configure.ac.
64927 2009-09-08  Eric Blake  <ebb9@byu.net>
64929         euidaccess: fix compilation error
64930         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
64932         rawmemchr: relax license
64933         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
64934         okay.
64935         Reported by Jim Meyering.
64937         mkfifoat: new module
64938         * modules/mkfifoat: New file.
64939         * lib/mkfifoat.c: Likewise.
64940         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
64941         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
64942         * modules/sys_stat (Makefile.am): Use them.
64943         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
64944         * MODULES.html.sh (File system functions): Mention module.
64945         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
64946         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
64947         * modules/mkfifoat-tests: New test.
64948         * tests/test-mkfifoat.c: Likewise.
64950         strchrnul: relax license
64951         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
64952         okay.
64953         Reported by Jim Meyering.
64955 2009-09-08  Eric Blake  <ebb9@byu.net>
64957         fstatat: fix compilation on Solaris
64958         * lib/fstatat.c (includes): Add fcntl.h.
64959         Reported by Pádraig Brady.
64961 2009-09-07  Eric Blake  <ebb9@byu.net>
64963         rename: modernize replacement
64964         * modules/rename (Depends-on): Add stdio.
64965         (configure.ac): Declare witness.
64966         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
64967         stdio take care of replacement.
64968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64969         * modules/stdio (Makefile.am): Substitute them.
64970         * lib/stdio.in.h (rename): Declare replacement.
64971         * lib/rename.c (includes): Allow cross-compilation to non-windows
64972         machines.
64973         * doc/posix-functions/rename.texi (rename): Improve
64974         documentation.
64976         stdio: sort witness names
64977         * modules/stdio (Makefile.am): Sort replacements.
64978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64979         * lib/stdio.in.h: Likewise.
64981         getcwd: minor cleanups
64982         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
64983         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
64985         openat: provide more convenience names
64986         * modules/faccessat (configure.ac): Add C witness.
64987         * lib/unistd.in.h (readlinkat): Fix typo.
64988         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
64989         convenience wrappers.
64990         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
64991         wrappers in syntax checks.
64993 2009-09-06  Eric Blake  <ebb9@byu.net>
64995         doc: fix comments in recent patches
64996         * lib/faccessat.c: Mention correct function.
64997         * lib/fchmodat.c: Likewise.
64998         * lib/fchownat.c: Likewise.
64999         * lib/symlinkat.c: Likewise.
65000         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
65001         constants.
65003         faccessat, symlinkat: continue cleanup of previous patch
65004         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
65005         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
65006         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
65007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
65008         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
65009         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
65010         set.
65012 2009-09-06  Bruno Haible  <bruno@clisp.org>
65014         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
65015         (fstatat): Declare if GNULIB_FSTATAT is set.
65016         (mkdirat): Declare if GNULIB_MKDIRAT is set.
65017         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
65018         (unlinkat): Declare if GNULIB_UNLINKAT is set.
65019         * modules/fcntl-h (Files): Remove m4/openat.m4.
65020         * modules/sys_stat (Files): Remove m4/openat.m4.
65021         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
65022         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
65023         * modules/unistd (Files): Remove m4/openat.m4.
65024         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
65025         GNULIB_OPENAT.
65026         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
65027         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
65028         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
65029         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
65030         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
65031         gl_OPENAT_DEFAULTS.
65032         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
65033         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
65034         Don't require gl_OPENAT_DEFAULTS.
65035         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
65036         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
65037         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
65038         (gl_OPENAT_DEFAULTS): Remove macro.
65040 2009-09-06  Bruno Haible  <bruno@clisp.org>
65042         * modules/openat (configure.ac): Remove unneeded witness.
65044 2009-09-06  Bruno Haible  <bruno@clisp.org>
65046         Set errno to ENOSYS when a function is entirely unsupported.
65047         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
65048         EOPNOTSUPP.
65049         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65050         * modules/chown (Depends-on): Remove errno.
65052 2009-09-06  Bruno Haible  <bruno@clisp.org>
65054         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
65056 2009-09-06  Bruno Haible  <bruno@clisp.org>
65058         * lib/sys_stat.in.h: Fix preprocessor command indentation.
65060 2009-09-06  Ben Pfaff  <blp@gnu.org>
65061             Bruno Haible  <bruno@clisp.org>
65063         Work around a glibc bug in strtok_r.
65064         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
65065         Undefine if UNDEFINE_STRTOK_R is set.
65066         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
65067         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65068         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
65069         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
65070         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
65071         UNDEFINE_STRTOK_R.
65072         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
65074 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
65076         exclude: minor fix
65077         * lib/exclude.c: Include wctype.h
65079 2009-09-06  Akim Demaille  <demaille@gostai.com>
65081         bootstrap: improve error message
65082         * build-aux/bootstrap (find_tool): Upon failure, report the list
65083         of candidates.
65084         Honor the initial value of the envvar.
65086 2009-09-05  Eric Blake  <ebb9@byu.net>
65088         symlinkat: new module
65089         * modules/symlinkat: New file.
65090         * lib/symlinkat.c: Likewise.
65091         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
65092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
65093         * modules/unistd (Makefile.am): Use them.
65094         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
65095         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
65096         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
65097         * MODULES.html.sh (File system functions): Mention module.
65098         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
65099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
65100         * modules/symlinkat-tests: New test.
65101         * tests/test-symlinkat.c: Likewise.
65103         test-openat-safer: add more checks
65104         * tests/test-openat-safer.c (main): Check more code paths.
65106 2009-09-05  Jim Meyering  <meyering@redhat.com>
65108         syntax-check: detect unnecessary inclusion of openat.h
65109         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
65111 2009-09-05  Bruno Haible  <bruno@clisp.org>
65113         Support towlower, towupper.
65114         * doc/posix-functions/towlower.texi: Mention module wctype.
65115         * doc/posix-functions/towupper.texi: Likewise.
65116         * lib/wctype.in.h (towlower, towupper): New functions.
65117         * tests/test-wctype.c: Include stdio.h, stdlib.h.
65118         (ASSERT): New macro.
65119         (e): New variable.
65120         (main): Test also towlower, towupper. Test WEOF argument.
65121         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
65123 2009-09-05  Bruno Haible  <bruno@clisp.org>
65125         Fix conversion behaviour when the input is invalid.
65126         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
65127         mark occurring in first pass of indirect conversion.
65128         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
65129         input.
65130         Found by clang's static analyzer.
65132 2009-09-05  Bruno Haible  <bruno@clisp.org>
65134         * tests/test-striconveh.c (main): Test indirect conversion on platforms
65135         where direct conversion is possible.
65137 2009-09-04  Eric Blake  <ebb9@byu.net>
65139         openat: fail with ENOENT on empty name
65140         * lib/openat-proc.c (openat_proc_name): Special-case the empty
65141         buffer.
65143         link-follow: fix logic bug in prior patch
65144         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
65145         reversed sense of yes and no in prior patch.  Avoid confusing
65146         compilation failure with desired semantics.
65148         link-follow: accommodate mingw and cross-compilation
65149         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
65150         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
65151         cross-compilation results to -1, to make linkat easier to
65152         implement when cross-compiling.  Trivially support mingw.
65153         * modules/link-follow (configure.ac): Call new name.
65154         * NEWS: Mention this.
65156 2009-09-03  Eric Blake  <ebb9@byu.net>
65158         faccessat: compile replacement
65159         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
65160         needed.
65162         fts: fix compilation error
65163         * lib/fts.c (includes): Re-add "openat.h", for
65164         openat_needs_fchdir.
65166         faccessat: new module
65167         * modules/faccessat: New file.
65168         * lib/faccessat.c: Likewise.
65169         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
65170         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
65171         * modules/unistd (Makefile.am): Use it.
65172         * lib/unistd.in.h (faccessat): Declare it.
65173         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
65174         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
65175         * MODULES.html.sh (File system functions): Mention it.
65176         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
65177         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
65179         euidaccess: prefer POSIX over non-standard implementation
65180         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
65181         * lib/euidaccess.c (euidaccess): Use it if available.
65183         openat: make template easier to use
65184         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
65185         AT_FUNC_F2 to be undefined.
65186         (VALIDATE_FLAG): New macro; use it to reject bad flags.
65187         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
65188         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
65189         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
65190         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
65191         Likewise.
65192         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
65193         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
65194         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
65195         Likewise.
65197         openat: declare in POSIX headers
65198         * NEWS: Mention this.
65199         * modules/openat (configure.ac): Declare witnesses.
65200         (Depends-on): Add fcntl-h, sys_stat, unistd.
65201         (Include): Mention correct headers.
65202         * modules/fcntl-h (Depends-on): Add link-warning.
65203         (Files): Add openat.m4.
65204         (Makefile.am): Substitute witnesses.
65205         * modules/sys_stat (Files, Makefile.am): Likewise.
65206         * modules/unistd (Files, Makefile.am): Likewise.
65207         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
65208         (gl_OPENAT_DEFAULTS): New macro.
65209         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
65210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
65211         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
65212         (SYS_STAT_H): Remove unused variable.
65213         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
65214         * lib/fcntl--.h (includes): Remove unneeded header.
65215         * lib/openat-safer.c (includes): Likewise.
65216         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
65217         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
65218         appropriate headers.
65219         (__OPENAT_PREFIX): Delete.
65220         * lib/fcntl.in.h (openat): Provide declaration.
65221         (AT_FDCWD): Fix Solaris bug.
65222         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
65223         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
65224         * lib/fchmodat.c (includes):  Adjust to find declaration.
65225         * lib/fchownat.c (includes): Likewise.
65226         * lib/mkdirat.c (includes): Likewise.
65227         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
65228         still visible.
65230 2009-09-02  Eric Blake  <ebb9@byu.net>
65232         errno: use consistently
65233         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
65234         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
65235         * lib/canonicalize.c (ELOOP): Likewise.
65236         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
65237         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
65238         * lib/lchown.c (EOPNOTSUPP): Likewise.
65239         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
65240         * lib/savewd.c (ESTALE): Likewise.
65241         * lib/settime.c (ENOSYS): Likewise.
65242         * lib/utimens.c (ENOSYS): Likewise.
65243         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
65244         * lib/chdir-safer.c (ELOOP): Likewise.
65245         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
65246         * modules/c-stack (Depends-on): Add errno.
65247         * modules/canonicalize (Depends-on): Likewise.
65248         * modules/chdir-safer (Depends-on): Likewise.
65249         * modules/fdopendir (Depends-on): Likewise.
65250         * modules/inet_ntop (Depends-on): Likewise.
65251         * modules/inet_pton (Depends-on): Likewise.
65252         * modules/lchown (Depends-on): Likewise.
65253         * modules/openat (Depends-on): Likewise.
65254         * modules/savewd (Depends-on): Likewise.
65255         * modules/settime (Depends-on): Likewise.
65256         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
65258         fts: avoid leaking fds
65259         * modules/fts (Depends-on): Add cloexec.
65260         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
65261         flag.
65263         fts: make directory fds more robust
65264         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
65265         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
65267         backupfile, chdir-long, fts, savedir: make safer
65268         * lib/backupfile.c (includes): Use "dirent--.h", since
65269         numbered_backup can write to stderr during readdir.
65270         * lib/savedir.c (includes): Likewise.
65271         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
65272         emulation can write to stderr on failure.
65273         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
65274         * lib/getcwd.c: Document why opendir_safer is unused.
65275         * lib/glob.c: Likewise.
65276         * lib/scandir.c: Likewise.
65277         * lib/openat-proc.c: Likewise, for open_safer.
65278         * modules/backupfile (Depends-on): Add dirent-safer.
65279         * modules/savedir (Depends-on): Likewise.
65280         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
65281         * modules/chdir-long (Depends-on): Add openat-safer.
65283         openat-safer: new module
65284         * modules/openat-safer: New file.
65285         * lib/openat-safer.c: Likewise.
65286         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
65287         * lib/fcntl-safer.h (openat_safer): Declare.
65288         * lib/fcntl--.h (openat): Override.
65289         * MODULES.html.sh (File descriptor based I/O): Mention it.
65290         * lib/openat.h: Add double-inclusion guards.
65291         * lib/openat.c (includes): Only include "fcntl-safer.h", not
65292         "fcntl--.h", so we can implement openat.
65293         * modules/openat-safer-tests: New test.
65294         * tests/test-openat-safer.c: New file.
65296         dirent-safer: new module
65297         * modules/dirent-safer: New file.
65298         * lib/dirent--.h: Likewise.
65299         * lib/dirent-safer.h: Likewise.
65300         * lib/opendir-safer.c: Likewise.
65301         * m4/dirent-safer.m4: Likewise.
65302         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
65303         * modules/dirent-safer-tests: New test.
65304         * tests/test-dirent-safer.c: New file.
65305         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
65307         fdopendir: optimize on mingw
65308         * lib/unistd.in.h (_gl_directory_name): New prototype.
65309         * lib/fchdir.c (_gl_directory_name): Implement it.
65310         (fchdir): Use it to simplify implementation.
65311         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
65312         fchdir, when available, to avoid calling [f]chdir().
65314         fdopendir: split into its own module
65315         * lib/openat.c (fdopendir): Move...
65316         * lib/fdopendir.c: ...into new file.
65317         * modules/fdopendir: New module.
65318         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
65319         * modules/openat (Depends-on): Add fdopendir.
65320         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
65321         fdopendir here.
65322         * modules/savedir (Depends-on): Only need fdopendir, not full
65323         openat.
65324         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
65325         * lib/openat.h (fdopendir): Drop prototype.
65326         * lib/dirent.in.h (fdopendir): Provide prototype.
65327         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
65328         * modules/dirent (Makefile.am): Substitute them.
65329         * MODULES.html.sh (File system functions): Mention it.
65330         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
65331         * modules/fdopendir-tests: New file.
65332         * tests/test-fdopendir.c: Likewise.
65334         fchdir: use more consistent macro convention
65335         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
65336         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
65337         REPLACE_FCHDIR, rather than relying on config.h macros.
65338         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
65339         inside a single make-time REPLACE_FCHDIR block, rather than using
65340         the config.h FCHDIR_REPLACEMENT.
65341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
65342         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
65343         Manage fstat replacement.
65344         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
65345         REPLACE_FCHDIR.
65346         * modules/sys_stat (Files): Add m4/unistd_h.m4.
65347         (Makefile.am): Substitute REPLACE_FCHDIR.
65348         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
65349         FCHDIR_REPLACEMENT.
65350         * lib/dup-safer.c (dup_safer): Likewise.
65351         * lib/dup2.c (rpl_dup2): Likewise.
65352         * lib/dup3.c (rpl_dup3): Likewise.
65353         * lib/open.c (rpl_open): Likewise.
65355         fchdir: simplify error handling, and support dup3
65356         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
65357         stdbool, malloc-posix, realloc-posix.
65358         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
65359         (ensure_dirs_slot): Return false on allocation failure.
65360         (rpl_dup2): Delete.
65361         (_gl_register_dup): New function.
65362         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
65363         (_gl_register_fd): Close fd on allocation failure.
65364         * lib/fcntl.in.h (_gl_register_fd): Update signature.
65365         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
65366         prototype.
65367         (rpl_dup2_fchdir): Delete prototype.
65368         * lib/open.c (open): Update caller.
65369         * lib/dup2.c (dup2): Track fchdir metadata.
65370         * lib/dup3.c (dup3): Likewise.
65371         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
65372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
65374 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65376         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
65377         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
65378         don't pass arguments to AC_OUTPUT.
65380 2009-09-02  Bruno Haible  <bruno@clisp.org>
65382         * modules/mkdtemp (License): Relicense under LGPLv2+.
65383         Reported by Paolo Bonzini.
65385 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65387         Replace uses of obsolete autoconf macros in Jim's modules.
65388         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
65389         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
65390         can evoke a warning from autoconf when run with -Wobsolete
65391         enabled.  They were declared obsolete for good reasons (see
65392         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
65393         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
65394         should not continue using the deprecated macros.
65395         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
65396         obsolete Autoconf macros with modern counterparts.
65397         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
65398         * m4/dos.m4 (gl_AC_DOS): Likewise.
65399         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
65400         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
65401         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
65402         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
65403         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
65404         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
65405         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
65406         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
65407         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
65408         Likewise.
65409         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
65410         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
65411         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
65412         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
65413         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
65414         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
65416 2009-09-01  Eric Blake  <ebb9@byu.net>
65418         fchdir: fix off-by-one bug in previous patch
65419         * lib/fchdir.c (rpl_fstat): Use correct bounds.
65420         (_gl_unregister_fd): Delete useless if.
65422 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
65424         maint.mk: sort the list of syntax-check rules
65425         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
65426         easier to get a sense of progress when the rules are run sequentially
65427         and take a long time.
65429 2009-09-01  Simon Josefsson  <simon@josefsson.org>
65431         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
65432         * modules/netinet_in: Likewise.
65433         * modules/sys_file: Likewise.
65434         * modules/sys_ioctl: Likewise.
65435         * modules/sys_select: Likewise.
65436         * modules/sys_socket: Likewise.
65437         * modules/sys_stat: Likewise.
65438         * modules/sys_time: Likewise.
65439         * modules/sys_times: Likewise.
65440         * modules/sys_utsname: Likewise.
65441         * modules/sys_wait: Likewise.
65443 2009-09-01  Jim Meyering  <meyering@redhat.com>
65445         fts: help ensure that return values are not ignored
65446         * lib/fts_.h (__GNUC_PREREQ): Define.
65447         (__attribute_warn_unused_result__): Define.
65448         (fts_children, fts_close, fts_open, fts_read): Declare with
65449         __attribute_warn_unused_result__.
65451         fts: fts_close now fails also when closing a dir file descriptor fails
65452         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
65453         and propagate to caller, along with errno.
65455         announce-gen: correct formatting in --help output
65456         * build-aux/announce-gen (usage): Move the one-line description in
65457         --help output "up", to where it belongs, just after Usage:.
65459 2009-08-31  Eric Blake  <ebb9@byu.net>
65461         fchdir: port to mingw
65462         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
65463         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
65464         opened, then use a substitute.
65465         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
65466         replacement.
65467         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
65468         (_gl_register_fd): No need to check stat if open already filters
65469         all directories.
65470         (fchdir): Fix error condition to match POSIX.
65471         * modules/fchdir (Depends-on): Add sys_stat.
65472         * doc/posix-functions/open.texi (open): Document the limitation.
65473         * modules/fchdir-tests: New file.
65474         * tests/test-fchdir.c: Likewise.
65476         canonicalize: allow cross-testing from cygwin to mingw
65477         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
65478         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
65479         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
65480         Likewise.
65481         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
65482         target does not support symlinks.
65483         * tests/test-canonicalize-lgpl.sh: Likewise.
65485         chown: avoid compilation warning on mingw
65486         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
65487         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
65488         mingw.
65489         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
65490         * modules/chown (Depends-on): Add errno.
65492 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65494         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
65495         command.
65497 2009-08-31  Jim Meyering  <meyering@redhat.com>
65499         canonicalize: remove useless initialization
65500         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
65501         initialization of local, "end".
65503 2009-08-30  Bruno Haible  <bruno@clisp.org>
65505         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
65506         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
65507         ENOSYS.
65509 2009-08-30  Bruno Haible  <bruno@clisp.org>
65511         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
65512         /usr/xpg4/bin/tr when it exists.
65513         * tests/test-pipe-filter-gi1.sh: Likewise.
65515 2009-08-30  Bruno Haible  <bruno@clisp.org>
65517         Work around deficient /usr/bin/id program on Solaris.
65518         * tests/test-file-has-acl.sh (ID): New variable.
65519         * tests/test-set-mode-acl.sh (ID): Likewise.
65520         * tests/test-copy-acl.sh (ID): Likewise.
65521         * tests/test-copy-file.sh (ID): Likewise.
65523 2009-08-30  Bruno Haible  <bruno@clisp.org>
65525         New module 'xstriconveh'.
65526         * lib/xstriconveh.h: New file.
65527         * lib/xstriconveh.c: New file.
65528         * modules/xstriconveh: New file.
65530 2009-08-30  Bruno Haible  <bruno@clisp.org>
65532         Make it easier to use mem_cd_iconveh.
65533         * lib/striconveh.h (iconveh_t): New type.
65534         (iconveh_open, iconveh_close): New declarations.
65535         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65536         with a single 'const iconveh_t *' argument.
65537         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
65538         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
65539         with a single 'const iconveh_t *' argument.
65540         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
65541         * tests/test-striconveh.c (main): Update.
65542         * NEWS: Mention the change.
65544 2009-08-30  Bruno Haible  <bruno@clisp.org>
65546         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
65547         problem.
65549 2009-08-30  Bruno Haible  <bruno@clisp.org>
65551         Work around iconv_open problem on Solaris.
65552         * lib/iconv_open-solaris.gperf: New file.
65553         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
65554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
65555         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
65556         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
65557         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
65558         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
65560 2009-08-29  Jim Meyering  <meyering@redhat.com>
65562         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
65563         * top/maint.mk (cvs-check): Remove target; it was just an alias
65564         to the better-named vc-diff-check.
65565         (maintainer-distcheck): Remove rule.  It was used only from
65566         the (alpha/beta/major) target, and all of its commands but one
65567         were coreutils-specific.
65568         (vc-dist): Remove rule.
65569         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
65570         Run vc-diff-check, not vc-dist.
65571         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
65573 2009-08-27  Bruno Haible  <bruno@clisp.org>
65575         * tests/test-bitrotate.c (main): Remove test that uses a shift count
65576         of 0.
65578 2009-08-27  Bruno Haible  <bruno@clisp.org>
65580         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
65581         compilers.
65582         * doc/func.texi: Document the SunPRO C bug.
65584 2009-08-27  Bruno Haible  <bruno@clisp.org>
65586         Fix link error on Solaris.
65587         * tests/test-parse-duration.c (xstrdup): Remove function.
65589 2009-08-26  Pádraig Brady  <P@draigbrady.com>
65591         ignore-value: handle pointer types, too
65592         * lib/ignore-value.h (__attribute__): Remove definition.
65593         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
65594         of a more concise and more-often effective "(void) i" statement.
65595         (ignore_ptr): New function to suppress warnings from functions that
65596         return pointers, and to make it explicit that one function doesn't
65597         handle all cases.
65599 2009-08-25  Bruno Haible  <bruno@clisp.org>
65601         dup2: work around a Linux bug.
65602         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
65603         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
65604         * doc/posix-functions/dup2.texi: Mention the Linux bug.
65605         Reported by Simon Josefsson.
65607 2009-08-25  Jim Meyering  <meyering@redhat.com>
65609         libguestfs uses gnulib
65610         * users.txt: Add libguestfs.
65612 2009-08-24  Eric Blake  <ebb9@byu.net>
65614         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
65615         * lib/pipe2.c (includes): Add binary-io.h.
65616         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
65618 2009-08-24  Bruno Haible  <bruno@clisp.org>
65620         Tolerate declared but missing accept4 syscall.
65621         * lib/accept4.c (accept4): Invoke original accept4 function first, if
65622         available.
65623         * lib/sys_socket.in.h (accept4): If the function is already present,
65624         override it.
65625         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
65626         * modules/accept4 (Makefile.am): Compile accept4.c always.
65627         Reported by Paolo Bonzini and Eric Blake.
65629 2009-08-23  Bruno Haible  <bruno@clisp.org>
65631         New module 'accept4'.
65632         * lib/sys_socket.in.h (accept4): New declaration.
65633         * lib/accept4.c: New file.
65634         * m4/accept4.m4: New file.
65635         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
65636         GNULIB_ACCEPT4, HAVE_ACCEPT4.
65637         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
65638         HAVE_ACCEPT4.
65639         * modules/accept4: New file.
65640         * doc/glibc-functions/accept4.texi: Mention the new module.
65642 2009-08-24  Jim Meyering  <meyering@redhat.com>
65644         progname: also set global program_invocation_name, when possible
65645         Before this change, a libtool-enabled program that calls glibc's
65646         error function would report the program name as
65647         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
65648         * modules/progname (configure.ac): Check for a declaration of
65649         program_invocation_name.
65650         * lib/progname.c:  Include <errno.h>.
65651         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
65652         Set program_invocation_name.
65654 2009-08-23  Bruno Haible  <bruno@clisp.org>
65656         * lib/dup3.c: Include <string.h>.
65658 2009-08-23  Bruno Haible  <bruno@clisp.org>
65660         * lib/dup3.c (dup3): Test only once whether the system actually exists.
65661         * lib/pipe2.c (pipe2): Likewise.
65662         Suggested by Eric Blake.
65664 2009-08-23  Bruno Haible  <bruno@clisp.org>
65666         Tolerate declared but missing dup3 syscall.
65667         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
65668         * lib/unistd.in.h (dup3): If the function is already present,
65669         override it.
65670         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
65671         * modules/dup3 (Makefile.am): Compile dup3.c always.
65672         Reported by Paolo Bonzini.
65674 2009-08-23  Bruno Haible  <bruno@clisp.org>
65676         Tolerate declared but missing pipe2 syscall.
65677         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
65678         available.
65679         * lib/unistd.in.h (pipe2): If the function is already present,
65680         override it.
65681         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
65682         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
65683         Reported by Paolo Bonzini.
65685 2009-08-23  Bruno Haible  <bruno@clisp.org>
65687         * lib/pipe2.c (pipe2): Move #ifs inside function.
65689 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65691         quotearg: document limitations of quote_these_too
65692         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
65693         those limitations are created.
65694         * lib/quotearg.h (set_char_quoting): Document that digits and
65695         letters that are special after backslash are not permitted.
65696         (quotearg_char): Cross-reference set_char_quoting documentation.
65698 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
65700         quotearg: implement custom_quoting_style
65701         * lib/quotearg.c: (struct quoting_options): Add left_quote and
65702         right_quote fields.
65703         (set_custom_quoting): New public function.
65704         (quotearg_buffer_restyled): Add left_quote and right_quote
65705         arguments, handle them very much like locale quoting, and update
65706         all uses.
65707         (quotearg_n_custom): New public function.
65708         (quotearg_n_custom_mem): New public function.
65709         (quotearg_custom): New public function.
65710         (quotearg_custom_mem): New public function.
65711         * lib/quotearg.h: Prototype and document new public functions.
65712         (enum quoting_style): For escape_quoting_style and
65713         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
65714         ignored even though they're otherwise like c_quoting_style.
65715         Add custom_quoting_style member and document with comparison to
65716         clocale_quoting_style.
65717         * tests/test-quotearg.c (custom_quotes): New array.
65718         (custom_results): New array.
65719         (main): Extend to test custom quoting.
65721 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65723         quotearg: fix right quote escaping when it's in quote_these_too
65724         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
65725         quote, be sure to prepend only one backslash.
65726         * tests/test-quotearg.c (use_quote_double_quotes): New function.
65727         (main): Test it.
65729 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
65731         quotearg-tests: test escaping of embedded locale quotes
65732         * tests/test-quotearg.c (struct result_strings): Add member for
65733         new input.
65734         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
65735         (inputs): Add new input.
65736         (results_g): Add expected results.
65737         (flag_results): Likewise.
65738         (locale_results): Likewise.
65739         (compare_strings): Check those.
65741 2009-08-23  Bruno Haible  <bruno@clisp.org>
65743         Tests for module 'dup3'.
65744         * modules/dup3-tests: New file.
65745         * tests/test-dup3.c: New file.
65747         New module 'dup3'.
65748         * lib/unistd.in.h (dup3): New declaration.
65749         * lib/dup3.c: New file.
65750         * m4/dup3.m4: New file.
65751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
65752         HAVE_DUP3.
65753         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
65754         * modules/dup3: New file.
65755         * doc/glibc-functions/dup3.texi: Mention the new module.
65757 2009-08-23  Bruno Haible  <bruno@clisp.org>
65759         Tweak the dup2 test.
65760         * tests/test-dup2.c (main): Create the test file empty. Verify that an
65761         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
65762         the test file is still empty. Fix argument order of lseek.
65764 2009-08-23  Bruno Haible  <bruno@clisp.org>
65766         Avoid test link errors when the modules getopt-gnu, gettext are used.
65767         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
65768         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65770 2009-08-23  Bruno Haible  <bruno@clisp.org>
65772         Fix getdtablesize() on mingw.
65773         * lib/getdtablesize.c (getdtablesize): Implement differently.
65774         * lib/unistd.in.h (getdtablesize): Improve comment.
65776 2009-08-23  Bruno Haible  <bruno@clisp.org>
65778         New module 'mkostemp'.
65779         Based on Ulrich Drepper's 2007-08-10 change in glibc.
65780         * lib/stdlib.in.h (mksotemp): New declaration.
65781         * lib/mkostemp.c: New file, from glibc with modifications.
65782         * lib/tempname.h (GT_FILE): Remove outdated comment.
65783         (gen_tempname): Add flags argument.
65784         * lib/tempname.c (__GT_BIGFILE): Remove macro.
65785         (__GT_FILE): Map to 1.
65786         (small_open, large_open): Remove macros.
65787         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
65788         * lib/mkstemp.c (mkstemp): Update.
65789         * lib/mkdtemp.c (mkdtemp): Likewise.
65790         * m4/mkostemp.m4: New file.
65791         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
65792         HAVE_MKOSTEMP.
65793         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
65794         HAVE_MKOSTEMP.
65795         * modules/mkostemp: New file, based on modules/mkstemp.
65796         * doc/glibc-functions/mkostemp.texi: Mention the new module.
65797         * NEWS: Mention the change.
65799 2009-08-23  Bruno Haible  <bruno@clisp.org>
65801         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
65802         Reported by Eric Blake.
65804 2009-08-23  Bruno Haible  <bruno@clisp.org>
65806         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
65807         Reported by Eric Blake.
65809 2009-08-23  Bruno Haible  <bruno@clisp.org>
65811         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
65812         * modules/pipe2 (Depends-on): Likewise.
65814 2009-08-23  Eric Blake  <ebb9@byu.net>
65816         fcntl-h: add O_TTY_INIT support
65817         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
65818         * tests/test-fcntl-h.c (o): Test it.
65819         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65821         fcntl-h: rename from fcntl, in preparation for fcntl(2)
65822         * modules/fcntl: Move <fcntl.h> header replacement...
65823         * modules/fcntl-h: ...to new name, so as not to collide with
65824         like-named function.
65825         * tests/test-fcntl.c: Rename...
65826         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
65827         * modules/fcntl-tests: Rename...
65828         * modules/fcntl-h-tests: ...to this.  Update test file name.
65829         * modules/chdir-long (Depends-on): Update clients.
65830         * modules/chdir-safer (Depends-on): Likewise.
65831         * modules/fcntl-safer (Depends-on): Likewise.
65832         * modules/fts (Depends-on): Likewise.
65833         * modules/mkancesdirs (Depends-on): Likewise.
65834         * modules/mkdir-p (Depends-on): Likewise.
65835         * modules/open (Depends-on): Likewise.
65836         * modules/savewd (Depends-on): Likewise.
65837         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
65838         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
65840 2009-08-22  Bruno Haible  <bruno@clisp.org>
65842         * modules/binary-io (License): Relicense under LGPL.
65843         * modules/pipe2 (License): Likewise.
65845 2009-08-22  Bruno Haible  <bruno@clisp.org>
65847         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
65848         return value.
65849         * lib/pipe-filter-gi.c (filter_init): Likewise.
65850         Reported by Eric Blake.
65852 2009-08-22  Bruno Haible  <bruno@clisp.org>
65854         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
65855         * modules/pipe (Depends-on): Add pipe2.
65857 2009-08-22  Bruno Haible  <bruno@clisp.org>
65859         Tests for module 'pipe2'.
65860         * modules/pipe2-tests: New file.
65861         * tests/test-pipe2.c: New file.
65863         New module 'pipe2'.
65864         * lib/unistd.in.h (pipe2): New declaration.
65865         * lib/pipe2.c: New file.
65866         * m4/pipe2.m4: New file.
65867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
65868         HAVE_PIPE2.
65869         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
65870         * modules/pipe2: New file.
65871         * doc/glibc-functions/pipe2.texi: Mention the new module.
65873 2009-08-22  Bruno Haible  <bruno@clisp.org>
65875         Reference some new glibc functions.
65876         * doc/glibc-functions/accept4.texi: New file.
65877         * doc/glibc-functions/dup3.texi: New file.
65878         * doc/glibc-functions/mkostemp.texi: New file.
65879         * doc/glibc-functions/pipe2.texi: New file.
65880         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
65881         (Glibc sys/socket.h): Refer to accept4.
65882         (Glibc unistd.h): Refer to dup3, pipe2.
65883         Reported by Eric Blake.
65885 2009-08-22  Jim Meyering  <meyering@redhat.com>
65886             Bruno Haible  <bruno@clisp.org>
65888         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
65889         This makes it so packages using automake-1.11's silent-rules option
65890         can print e.g., a single "GEN    configmake.h" line, rather than
65891         the 30+ statements that perform the job.  If you want to see the
65892         actual commands, you can still run "make V=1".
65893         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
65894         so that make output is abbreviated when those variables are defined
65895         appropriately.
65896         * modules/argz: Likewise.
65897         * modules/arpa_inet: Likewise.
65898         * modules/byteswap: Likewise.
65899         * modules/configmake: Likewise.
65900         * modules/dirent: Likewise.
65901         * modules/errno: Likewise.
65902         * modules/fcntl: Likewise.
65903         * modules/float: Likewise.
65904         * modules/fnmatch: Likewise.
65905         * modules/getopt-posix: Likewise.
65906         * modules/glob: Likewise.
65907         * modules/iconv_open: Likewise.
65908         * modules/inttypes: Likewise.
65909         * modules/localcharset: Likewise.
65910         * modules/locale: Likewise.
65911         * modules/math: Likewise.
65912         * modules/netdb: Likewise.
65913         * modules/netinet_in: Likewise.
65914         * modules/poll: Likewise.
65915         * modules/posix_spawnp-tests: Likewise.
65916         * modules/sched: Likewise.
65917         * modules/search: Likewise.
65918         * modules/selinux-h: Likewise.
65919         * modules/signal: Likewise.
65920         * modules/spawn: Likewise.
65921         * modules/stdarg: Likewise.
65922         * modules/stdbool: Likewise.
65923         * modules/stddef: Likewise.
65924         * modules/stdint: Likewise.
65925         * modules/stdio: Likewise.
65926         * modules/stdlib: Likewise.
65927         * modules/string: Likewise.
65928         * modules/strings: Likewise.
65929         * modules/sys_file: Likewise.
65930         * modules/sys_ioctl: Likewise.
65931         * modules/sys_select: Likewise.
65932         * modules/sys_socket: Likewise.
65933         * modules/sys_stat: Likewise.
65934         * modules/sys_time: Likewise.
65935         * modules/sys_times: Likewise.
65936         * modules/sys_utsname: Likewise.
65937         * modules/sys_wait: Likewise.
65938         * modules/sysexits: Likewise.
65939         * modules/time: Likewise.
65940         * modules/unistd: Likewise.
65941         * modules/wchar: Likewise.
65942         * modules/wctype: Likewise.
65944 2009-08-22  Jim Meyering  <meyering@redhat.com>
65946         announce-gen: detect write failure
65947         * build-aux/announce-gen: Add Coda at end.
65948         Remove equivalent-but-more-verbose block at top.
65950 2009-08-19  Akim Demaille  <demaille@gostai.com>
65952         bootstrap: --help to stdout.
65953         * bootstrap (usage): Don't send --help to stderr.
65954         Use a here doc instead of a long string.
65956 2009-08-21  Eric Blake  <ebb9@byu.net>
65958         test-popen-safer: split from test-popen
65959         * tests/test-popen.c (main): Move...
65960         * tests/test-popen.h: ...into new file.
65961         * tests/test-popen-safer2.c: New file.
65962         * modules/popen-tests (Files): Add test-popen.h.
65963         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
65964         Suggested by Bruno Haible.
65966         test-fcntl-safer: split from test-open
65967         * tests/test-open.c (main): Move...
65968         * tests/test-open.h: ...into new file.
65969         * tests/test-fcntl-safer.c: New file.
65970         * modules/open-tests (Files): Add test-open.h.
65971         * modules/fcntl-safer-tests: New file.
65972         Suggested by Bruno Haible.
65974         test-fopen-safer: split from test-fopen
65975         * tests/test-fopen.c (main): Move...
65976         * tests/test-fopen.h: ...into new file.
65977         * tests/test-fopen-safer.c: New file.
65978         * modules/fopen-tests (Files): Add test-fopen.h.
65979         * modules/fopen-safer-tests: New file.
65980         Suggested by Bruno Haible.
65982 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65984         popen-safer: test O_CLOEXEC at run-time.
65985         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
65987 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
65989         fcntl: move more flags to the header
65990         * lib/cloexec.c: Do not define FD_CLOEXEC here.
65991         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
65992         * lib/fcntl.in.h: Do both things here.
65994 2009-08-21  Jim Meyering  <meyering@redhat.com>
65996         consistently remove $@-t before redirecting to it
65997         * modules/argz: Remove $@-t and $@ before redirecting to the former.
65998         * modules/alloca-opt: Likewise.
65999         * modules/byteswap: Likewise.
66000         * modules/fnmatch: Likewise.
66001         * modules/getopt-posix: Likewise.
66002         * modules/glob: Likewise.
66003         * modules/poll: Likewise.
66004         * modules/posix_spawnp-tests: Likewise.
66005         * modules/sys_socket: Likewise.
66006         * modules/sysexits: Likewise.
66008 2009-08-21  Eric Blake  <ebb9@byu.net>
66010         popen: simplify access to original popen
66011         * lib/popen.c (rpl_popen): No need to worry about popen being a
66012         macro.
66013         Reported by Bruno Haible.
66015 2009-08-20  Eric Blake  <ebb9@byu.net>
66017         build: avoid some compiler warnings
66018         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
66019         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
66020         type.
66021         (new_exclude_segment, excluded_file_pattern_p)
66022         (excluded_file_name_p): Reduce scope.
66023         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
66024         old-style declaration.
66026 2009-08-20  Simon Josefsson  <simon@josefsson.org>
66028         * tests/test-exclude1.sh: Handle Windows EOL.
66029         * tests/test-exclude2.sh: Likewise.
66030         * tests/test-exclude3.sh: Likewise.
66031         * tests/test-exclude4.sh: Likewise.
66032         * tests/test-exclude5.sh: Likewise.
66033         * tests/test-exclude6.sh: Likewise.
66034         * tests/test-exclude7.sh: Likewise.
66036 2009-08-19  Akim Demaille  <demaille@gostai.com>
66038         bootstrap: find sha1sum when named gsha1sum.
66039         * bootstrap (find_tool): New.
66040         ($SHA1SUM): New.
66041         Use it.
66043 2009-08-20  Jim Meyering  <meyering@redhat.com>
66045         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
66046         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
66047         expression that converts "." in a file name to "\." in the resulting
66048         regexp.  Start with a dummy statement, so that prior shell variable
66049         definitions are expanded portably.  Reported by Simon Josefsson.
66051 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
66053         Fix polling for writeability of a screen buffer.
66054         * lib/poll.c: Distinguish input and screen buffers for the
66055         Win32 implementation.
66056         * lib/select.c: Likewise.
66058 2009-08-19  Eric Blake  <ebb9@byu.net>
66060         popen-safer: prevent popen from clobbering std descriptors
66061         * modules/popen-safer: New file.
66062         * lib/popen-safer.c: Likewise.
66063         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
66064         * lib/stdio--.h (popen): Provide override.
66065         * lib/stdio-safer.h (popen_safer): Provide declaration.
66066         * tests/test-popen.c (includes): Partially test this.
66067         * modules/popen-safer-tests: New file, for more tests.
66068         * tests/test-popen-safer.c: Likewise.
66069         * MODULES.html.sh (file stream based Input/Output): Mention it.
66071         tests: test some of the *-safer modules
66072         * modules/fopen-safer (Depends-on): Add fopen.
66073         * modules/fcntl-safer (Depends-on): Add fcntl.
66074         * modules/stdlib-safer (Depends-on): Add stdlib.
66075         (configure.ac): Set indicator.
66076         * modules/unistd-safer (configure.ac): Likewise.
66077         * modules/tmpfile-safer (configure.ac): Likewise.
66078         (Depends-on): Add tmpfile.
66079         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
66080         active.
66081         * tests/test-fopen.c (includes): Test safer versions when they are
66082         in use.
66083         * tests/test-open.c (includes): Likewise.
66085         popen: fix cygwin 1.5 bug when stdin closed
66086         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
66087         * modules/popen: New file.
66088         * modules/popen-tests: Likewise.
66089         * tests/test-popen.c: Likewise.
66090         * m4/popen.m4: Likewise.
66091         * lib/popen.c: Likewise.
66092         * lib/stdio.in.h (popen): New declaration.
66093         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
66094         * modules/stdio (Makefile.am): Likewise.
66095         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
66097 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
66099         maint.mk: give full control over update-copyright exclusions
66100         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
66101         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
66102         (update-copyright): Don't force inclusion of top-level
66103         ChangeLog.  Don't force exclusion of all COPYING files, but make
66104         them the default exclusion instead.
66106 2009-08-16  Bruno Haible  <bruno@clisp.org>
66108         Fix test failures on Solaris 10.
66109         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
66110         tests when Solaris iconv() is used.
66111         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
66112         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
66113         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
66114         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
66115         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
66117 2009-08-16  Bruno Haible  <bruno@clisp.org>
66119         Fix test failures on Solaris 10.
66120         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
66121         'tr' program and pass it as first argument.
66122         * tests/test-pipe-filter-gi1.sh: Likewise.
66123         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
66124         program as first argument.
66125         * tests/test-pipe-filter-gi1.c (main): Likewise.
66127 2009-08-16  Eric Blake  <ebb9@byu.net>
66129         fpurge: fix previous commits
66130         * modules/fpurge (Makefile.am): Make replacement conditional,
66131         partially reverting 2007-04-29 change; missed in previous
66132         attempt.
66133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
66134         is missing.
66136 2009-08-16  Bruno Haible  <bruno@clisp.org>
66138         Clarify fpurge's effect on the file position.
66139         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
66140         * tests/test-fpurge.c (main): Make a second pass for checking the file
66141         position.
66143 2009-08-16  Bruno Haible  <bruno@clisp.org>
66145         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
66146         declaration of fpurge is missing.
66147         * tests/test-fpurge.c (main): Check that the file has not more contents
66148         than expected. Close the file before removing it.
66150 2009-08-15  Eric Blake  <ebb9@byu.net>
66152         fpurge: don't wrap working cygwin implementation
66153         * lib/fpurge.c (fpurge): Fix comment typo.
66154         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
66155         1.7 to avoid replacement.
66156         * tests/test-fpurge.c (main): Enhance test.
66158 2009-08-15  Eric Blake  <ebb9@byu.net>
66159         and Jim Meyering  <meyering@redhat.com>
66161         test-update-copyright: skip if perl is insufficient
66162         * tests/test-update-copyright.sh: Failure to run maintainer tool
66163         should not cause testsuite failure on cygwin 1.5.
66165 2009-08-14  Eric Blake  <ebb9@byu.net>
66167         doc: mention more functions added in cygwin 1.7.0
66168         * doc/posix-headers/limits.texi (limits.h): Update for recent
66169         cygwin additions.
66170         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
66171         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
66172         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
66173         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
66174         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
66176 2009-08-14  Eric Blake  <ebb9@byu.net>
66178         maint.mk: simplify update-copyright rule
66179         * top/maint.mk (update-copyright-local): Delete, and document how
66180         to do it in cfg.mk instead.
66181         (update-copyright-exclude-regexp): Delete, and document how to do
66182         it in .x-update-copyright instead.
66183         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
66184         exclude ChangeLog.
66186 2009-08-14  Bruno Haible  <bruno@clisp.org>
66188         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
66190 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66192         maint.mk: support update-copyright-env
66193         * top/maint.mk (update-copyright-env): Define place-holder.
66194         (update-copyright): Expand $(update-copyright-env) before
66195         invoking update-copyright.
66197 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66199         update-copyright: implement forced reformatting
66200         * build-aux/update-copyright: Implement and document
66201         UPDATE_COPYRIGHT_FORCE.
66202         * tests/test-update-copyright.sh: Test it.
66204 2009-08-14  Eric Blake  <ebb9@byu.net>
66205         and Bruno Haible  <bruno@clisp.org>
66207         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
66208         * tests/test-locale.c: Revert previous patch related to NULL.
66209         * tests/test-stdio.c: Likewise.
66210         * tests/test-stdlib.c: Likewise.
66211         * tests/test-string.c: Likewise.
66212         * tests/test-unistd.c: Likewise.
66213         * modules/time-tests (Depends-on): Add verify.
66214         * modules/wchar-tests (Depends-on): Likewise.
66215         * tests/test-time.c: Test for NULL compliance.
66216         * tests/test-wchar.c: Likewise.
66217         * modules/locale (Depends-on): Add stddef.
66218         * modules/stdio (Depends-on): Likewise.
66219         * modules/stdlib (Depends-on): Likewise.
66220         * modules/string (Depends-on): Likewise.
66221         * modules/time (Depends-on): Likewise.
66222         * modules/unistd (Depends-on): Likewise.
66223         * modules/wchar (Depends-on): Likewise.
66224         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
66225         * lib/stdlib.in.h (includes): Likewise.
66226         * lib/string.in.h (includes): Likewise.
66227         * lib/time.in.h (includes): Likewise.
66228         * lib/unistd.in.h (includes): Likewise.
66229         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
66230         replaced.
66231         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66232         * m4/stddef_h.m4: New file.
66233         * modules/stddef: Likewise.
66234         * lib/stddef.in.h: Likewise.
66235         * modules/stddef-tests: Likewise.
66236         * tests/test-stddef.c: Likewise.
66237         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
66238         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
66239         * doc/posix-headers/locale.texi (locale.h): Likewise.
66240         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
66241         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
66242         * doc/posix-headers/string.texi (string.h): Likewise.
66243         * doc/posix-headers/time.texi (time.h): Likewise.
66244         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
66245         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
66247 2009-08-14  Eric Blake  <ebb9@byu.net>
66249         doc: improve git diff of texinfo files
66250         * .gitattributes: Add rule for *.texi files, with hint on how to
66251         use it.
66252         Copied from m4, and based on a report by Bruno Haible.
66254 2009-08-14  Bruno Haible  <bruno@clisp.org>
66256         Disable multithread support by default on Cygwin 1.5.x for real.
66257         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
66259 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
66261         update-copyright: much ado about intervals
66262         * build-aux/update-copyright: Implement and document
66263         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
66264         of copyright year intervals.
66265         Also, document UPDATE_COPYRIGHT_YEAR.
66266         * tests/test-update-copyright.sh: Test it.
66268         update-copyright: convert 2-digit to 4-digit years
66269         * build-aux/update-copyright: Implement and document.
66270         * tests/test-update-copyright.sh: Update.
66272 2009-08-14  Jim Meyering  <meyering@redhat.com>
66274         test-exclude: avoid coreutils "make check" failure
66275         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
66276         just as in test-argmatch.c.
66278 2009-08-13  Eric Blake  <ebb9@byu.net>
66280         test-dup2: fix bad assumption
66281         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
66282         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
66284         test-version-etc: fix CRLF portability issue
66285         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
66286         recognize \r.
66287         * tests/test-argp-version-etc-1.sh: Likewise.
66289         getopt: update client modules
66290         * modules/argp (Depends-on): Use getopt-gnu.
66291         * modules/git-merge-changelog (Depends-on): Likewise.
66292         * modules/long-options (Depends-on): Likewise.
66293         * modules/xstrtol (Depends-on): Likewise.
66295 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66297         * tests/test-version-etc.sh: Don't fail on different
66298         project/version.  Don't fail on CRLF differences.  Rewrite to use
66299         multiple -e instead of multiple sed forks, suggested by Eric Blake
66300         <ebb9@byu.net>.
66301         * tests/test-argp-version-etc-1.sh: Likewise.
66303 2009-08-13  Simon Josefsson  <simon@josefsson.org>
66305         * tests/test-version-etc.sh: Don't fail on different
66306         project/version.
66308 2009-08-12  Bruno Haible  <bruno@clisp.org>
66310         Tests for modules 'getopt-posix', 'getopt-gnu'.
66311         * modules/getopt-posix-tests: New file.
66312         * tests/test-getopt.c: New file.
66313         * tests/test-getopt.h: New file.
66314         * tests/test-getopt_long.h: New file.
66316         New modules 'getopt-posix', 'getopt-gnu'.
66317         * modules/getopt-gnu: New file, renamed from modules/getopt.
66318         * modules/getopt-posix: New file.
66319         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
66320         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
66321         (gl_GETOPT): Remove macro.
66322         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
66323         Disable the test against BSD systems that declare optreset. Test
66324         against mingw bug. Test against lack of support of optional arguments
66325         on many platforms.
66326         * doc/glibc-headers/getopt.texi: Update module name and list of
66327         relevant platforms.
66328         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
66329         'getopt-gnu' and more portability problems.
66330         * NEWS: Mention the changes.
66332 2009-08-12  Bruno Haible  <bruno@clisp.org>
66334         Ensure that optarg etc. get declared by <unistd.h>.
66335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
66336         AC_USE_SYSTEM_EXTENSIONS.
66337         * modules/getopt (Depends-on): Add 'extensions'.
66339 2009-08-12  Bruno Haible  <bruno@clisp.org>
66341         Avoid test link errors.
66342         * modules/pipe-filter-ii-tests (Makefile.am): Define
66343         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
66344         * modules/pipe-filter-gi-tests (Makefile.am): Define
66345         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
66346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66348 2009-08-12  Bruno Haible  <bruno@clisp.org>
66350         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
66351         gl_GETOPT_SUBSTITUTE before.
66352         (gl_GETOPT): Use it.
66353         * m4/argp.m4 (gl_ARGP): Update.
66354         Reported by Sergey Poznyakoff.
66356         * m4/getopt.m4: Reorder macros.
66357         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
66358         (gl_GETOPT_SUBSTITUTE): Remove macro.
66360 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66362         Minor improvement in gitlog-to-changelog
66364         * build-aux/gitlog-to-changelog: New option `--format' makes
66365         output format string configurable.
66367 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66369         Optimize exclude: use hash tables for non-wildcard patterns.
66371         * lib/exclude.c: Include hash.h and mbuiter.h
66372         (struct exclude_pattern, exclude_segment): New data types.
66373         (struct exclude): Rewrite.
66374         (fnmatch_pattern_has_wildcards): New function.
66375         (new_exclude_segment, free_exclude_segment): New functions.
66376         (excluded_file_pattern_p, excluded_file_name_p): New functions.
66377         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
66378         * lib/exclude.h (is_fnmatch_pattern): New prototype.
66379         * modules/exclude: Depend on hash and mbuiter.
66381         * modules/exclude-tests: New file.
66382         * tests/test-exclude.c: New file.
66383         * tests/test-exclude1.sh: New file.
66384         * tests/test-exclude2.sh: New file.
66385         * tests/test-exclude3.sh: New file.
66386         * tests/test-exclude4.sh: New file.
66387         * tests/test-exclude5.sh: New file.
66388         * tests/test-exclude6.sh: New file.
66389         * tests/test-exclude7.sh: New file.
66391 2009-08-12  Bruno Haible  <bruno@clisp.org>
66393         Ensure that getopt() gets declared by <unistd.h>.
66394         * lib/unistd.in.h: Conditionally include getopt.h.
66395         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
66396         Set GNULIB_UNISTD_H_GETOPT.
66397         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66398         GNULIB_UNISTD_H_GETOPT.
66399         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
66401 2009-08-12  Bruno Haible  <bruno@clisp.org>
66403         Clarify logic.
66404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
66405         gl_replace_getopt instead of GETOPT_H.
66407 2009-08-12  Bruno Haible  <bruno@clisp.org>
66409         * m4/getopt.m4: Add comments.
66411 2009-08-12  Bruno Haible  <bruno@clisp.org>
66413         Disable multithread support by default on Cygwin 1.5.x.
66414         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
66415         set gl_use_threads=no if not specified otherwise.
66417 2009-08-11  Bruno Haible  <bruno@clisp.org>
66419         Avoid compilation error on NetBSD 5.0.
66420         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
66421         * tests/test-stdio.c: Likewise.
66422         * tests/test-stdlib.c: Likewise.
66423         * tests/test-string.c: Likewise.
66424         * tests/test-unistd.c: Likewise.
66425         Reported by Greg Troxel <gdt@ir.bbn.com>
66426         at <https://savannah.gnu.org/support/?106973>.
66428 2009-08-11  Bruno Haible  <bruno@clisp.org>
66430         * modules/dup2-tests (Depends-on): Remove close.
66432         Undo 2009-07-19 commit.
66433         * modules/acl-tests (Depends-on): Remove close.
66434         * modules/binary-io-tests (Depends-on): Likewise.
66435         * modules/closein-tests (Depends-on): Likewise.
66436         * modules/flock-tests (Depends-on): Likewise.
66437         * modules/fsync-tests (Depends-on): Likewise.
66438         * modules/lseek-tests (Depends-on): Likewise.
66439         * modules/pipe-tests (Depends-on): Likewise.
66440         * modules/posix_spawn-tests (Depends-on): Likewise.
66441         * modules/posix_spawnp-tests (Depends-on): Likewise.
66442         * modules/stat-time-tests (Depends-on): Likewise.
66443         * modules/yesno-tests (Depends-on): Likewise.
66445 2009-08-10  Bruno Haible  <bruno@clisp.org>
66447         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
66449 2009-08-10  Bruno Haible  <bruno@clisp.org>
66451         Fix a gcc warning.
66452         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
66454 2009-08-10  Bruno Haible  <bruno@clisp.org>
66456         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
66457         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
66458         not only the first time.
66459         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
66460         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
66461         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
66462         is 1, not only the first time.
66464 2009-08-10  Bruno Haible  <bruno@clisp.org>
66466         Make it possible to use module 'gethostname' without module 'close'.
66467         * lib/unistd.in.h (close): Evoke a link error only if
66468         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66469         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
66470         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66471         * modules/unistd (Makefile.am): Substitute
66472         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66473         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
66474         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
66475         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
66476         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66477         * modules/sys_ioctl (Makefile.am): Substitute
66478         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66479         * modules/socket (configure.ac): On native Windows, set
66480         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
66481         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
66482         Reported by Sam Steingold <sds@gnu.org>.
66484 2009-08-10  Bruno Haible  <bruno@clisp.org>
66486         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
66487         * modules/ioctl (configure.ac): Likewise.
66489 2009-08-10  Bruno Haible  <bruno@clisp.org>
66491         Avoid collision between gnulib wrapper and libintl wrapper.
66492         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
66493         already defined in intl/printf.c.
66494         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
66495         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
66497 2009-08-09  Bruno Haible  <bruno@clisp.org>
66499         Make <sys/select.h> really self-contained, also on Solaris 10.
66500         * lib/sys_select.in.h: Include <string.h>.
66501         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
66502         Solaris 10 problem.
66503         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
66504         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
66505         Reported by Jim Meyering.
66507 2009-08-09  Bruno Haible  <bruno@clisp.org>
66509         Avoid warnings from 'aclocal' that are due to a use of macro name
66510         AM_XGETTEXT_OPTION that is not defined in automake.
66511         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
66512         automake.
66513         * modules/error (configure.ac): Likewise.
66514         * modules/propername (configure.ac): Likewise.
66515         * modules/vasprintf (configure.ac): Likewise.
66516         * modules/verror (configure.ac): Likewise.
66517         * modules/xprintf (configure.ac): Likewise.
66518         * modules/xvasprintf (configure.ac): Likewise.
66520 2009-08-08  Bruno Haible  <bruno@clisp.org>
66522         Avoid compilation error in C++ mode.
66523         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
66524         Reported by Sam Steingold <sds@gnu.org>.
66526 2009-08-08  Bruno Haible  <bruno@clisp.org>
66528         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
66529         for the various Unix platforms.
66530         * doc/posix-headers/limits.texi: Update platforms list regarding
66531         HOST_NAME_MAX.
66532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
66534 2009-08-07  Jim Meyering  <meyering@redhat.com>
66536         selinux-at: fix typo in a comment
66537         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
66538         Spotted by Paolo Bonzini.
66540         selinux-at: remove redundant m4 code, add documentation
66541         * modules/selinux-at (configure.ac): Remove redundant code.
66542         LIB_SELINUX is already set via the dependent module, selinux-h.
66543         (Include): Add quotes around selinux-at.h.
66544         * lib/selinux-at.h: Add documentation.
66545         Reported by Bruno Haible in
66546         http://marc.info/?l=gnulib-bug&m=124958988300749
66548 2009-08-07  Bruno Haible  <bruno@clisp.org>
66550         Avoid link error on MacOS X 10.3 and 10.4.
66551         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
66552         on non-ELF systems.
66553         * lib/argp-pv.c (argp_program_version): Likewise.
66554         Reported by Simon Josefsson.
66556 2009-08-07  Simon Josefsson  <simon@josefsson.org>
66558         * tests/test-version-etc.sh: Use $EXEEXT.
66560 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
66562         update-copyright: update documentation to point to maint.mk
66563         * build-aux/update-copyright: Here.
66565 2009-08-06  Jim Meyering  <meyering@redhat.com>
66567         maint.mk: support update-copyright-local
66568         * top/maint.mk (update-copyright-local): Define place-holder.
66569         (update-copyright): Depend on $(update-copyright-local).
66571 2009-08-06  Jim Meyering  <meyering@redhat.com>
66573         selinux-at: new module
66574         Initially written for coreutils, this module will soon be
66575         used by findutils, too.
66576         * MODULES.html.sh [Misc]: Add selinux-at.
66577         * lib/selinux-at.h: New file, from coreutils.
66578         * lib/selinux-at.c: Likewise.
66579         * modules/selinux-at: Likewise.
66580         (License): Change from LGPL to GPL, since it depends
66581         on the GPL'd openat module.
66583         doc: update README
66584         * README: Remove references to cogito.
66585         Remove cvs-repo-updating instructions from 2007.
66586         Don't imply that CVS is better if you have limited disk space.
66588 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66590         update-copyright: support C-style comments
66591         * build-aux/update-copyright: Implement and document.
66592         * tests/test-update-copyright.sh: Test.
66594 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66596         update-copyright: support omitted "(C)"
66597         * build-aux/update-copyright: Implement and document.  Also,
66598         allow variable whitespace before "(C)".
66599         * tests/test-update-copyright.sh: Test.
66601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66603         update-copyright: don't trip on non-FSF copyright statements
66604         * build-aux/update-copyright: Fix so that the first correctly
66605         formatted FSF copyright statement is recognized no matter what
66606         appears before it.  Update documentation.
66607         * tests/test-update-copyright.sh: Test that.
66609 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66611         update-copyright: clean up code a little
66612         * build-aux/update-copyright: Append "_re" to the name of any
66613         variable holding a regular expression.
66614         Replace "old" and "new" with "stmt" in variable names.
66615         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
66616         handled correctly.
66617         Format code more consistently.
66619 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
66621         update-copyright-tests: improve portability
66622         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
66623         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
66625 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66627         update-copyright: support @copyright{} and &copy;
66628         * build-aux/update-copyright: Implement and document.
66629         * tests/test-update-copyright.sh: Test.
66631 2009-08-04  Jim Meyering  <meyering@redhat.com>
66633         update-copyright-tests: correctly test EOL=\r\n handling
66634         * tests/test-update-copyright.sh: Put \r at the end of some lines
66635         for the dos-eol tests.  Based on a patch by Joel E. Denny.
66637         maint.mk: make update-copyright exclusion list more configurable
66638         * top/maint.mk (update-copyright): Default to excluding COPYING,
66639         but allow an override, in case someone does want to update that file.
66641         maint.mk: don't update copyright date in COPYING
66642         * top/maint.mk (update-copyright): Exclude COPYING.
66644         maint.mk: add a copyright-updating rule
66645         * top/maint.mk (update-copyright): New rule.
66646         Derived from coreutils/Makefile.am.
66648         update-copyright: rename some variables
66649         * build-aux/update-copyright: Rename a few variables for clarity.
66650         Tweak syntax.  List Joel E. Denny as coauthor.
66652 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
66654         update-copyright: fix bug for 2-digit last year and add tests
66655         * build-aux/update-copyright: Fix bug.
66656         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
66657         specified.
66658         * modules/update-copyright-tests: New
66659         * tests/test-update-copyright.sh: New.
66661 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66663         update-copyright: handle leading tabs in line prefix
66664         * build-aux/update-copyright: Count leading tabs as 8 spaces
66665         when computing margin.  This helps with the formatting of
66666         ChangeLogs, for example.
66667         Fix documentation a little.
66669 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66671         update-copyright: support EOL=\r\n
66672         * build-aux/update-copyright: Implement that.
66674 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
66676         update-copyright: automatically format copyright statements
66677         * build-aux/update-copyright: Implement that.
66678         Also, be a little more predictable and safer by always failing
66679         when the full copyright format is not perfectly recognized as an
66680         unbroken whole.  Discussed at
66681         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
66682         Rewrite documentation.
66684 2009-08-03  Bruno Haible  <bruno@clisp.org>
66686         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
66688 2009-08-02  Bruno Haible  <bruno@clisp.org>
66690         Tests for module 'uname'.
66691         * modules/uname-tests: New file.
66692         * tests/test-uname.c: New file.
66694         New module 'uname'.
66695         * lib/uname.c: New file.
66696         * m4/uname.m4: New file.
66697         * modules/uname: New file.
66698         * doc/posix-functions/uname.texi: Mention the new module.
66700 2009-08-02  Bruno Haible  <bruno@clisp.org>
66702         Tests for module 'sys_utsname'.
66703         * modules/sys_utsname-tests: New file.
66704         * tests/test-sys_utsname.c: New file.
66706         New module 'sys_utsname'.
66707         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
66708         * m4/sys_utsname_h.m4: New file.
66709         * modules/sys_utsname: New file.
66710         * doc/posix-headers/sys_utsname.texi: Mention the new module.
66712 2009-08-02  Bruno Haible  <bruno@clisp.org>
66714         Implicitly initialize the sockets library.
66715         * lib/gethostname.c: Include sockets.h.
66716         (rpl_gethostname): Invoke gl_sockets_startup.
66717         * lib/socket.c: Include sockets.h.
66718         (rpl_socket): Invoke gl_sockets_startup.
66719         * modules/gethostname (Depends-on): Add sockets.
66720         * modules/socket (Depends-on): Likewise.
66721         * tests/test-poll.c: Don't include sockets.h.
66722         (main): Don't invoke gl_sockets_startup.
66723         * tests/test-select.c: Don't include sockets.h.
66724         (main): Don't invoke gl_sockets_startup.
66726 2009-08-02  Bruno Haible  <bruno@clisp.org>
66728         Allow multiple calls to gl_sockets_startup.
66729         * lib/sockets.c (initialized_sockets_version): New variable.
66730         (gl_sockets_startup): Do nothing if already called for this or a higher
66731         version.
66732         (gl_sockets_cleanup): Reset initialized_sockets_version.
66734 2009-08-03  Simon Josefsson  <simon@josefsson.org>
66736         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
66737         different project/version.
66739 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
66740             Bruno Haible  <bruno@clisp.org>
66742         Tests for module 'pipe-filter-gi'.
66743         * modules/pipe-filter-gi-tests: New file.
66744         * tests/test-pipe-filter-gi1.sh: New file.
66745         * tests/test-pipe-filter-gi1.c: New file.
66746         * tests/test-pipe-filter-gi2.sh: New file.
66747         * tests/test-pipe-filter-gi2-main.c: New file.
66748         * tests/test-pipe-filter-gi2-child.c: New file.
66750         New module 'pipe-filter-gi'.
66751         * lib/pipe-filter-gi.c: New file.
66752         * modules/pipe-filter-gi: New file.
66754 2009-08-02  Bruno Haible  <bruno@clisp.org>
66755             Paolo Bonzini  <bonzini@gnu.org>
66757         Tests for module 'pipe-filter-ii'.
66758         * modules/pipe-filter-ii-tests: New file.
66759         * tests/test-pipe-filter-ii1.sh: New file.
66760         * tests/test-pipe-filter-ii1.c: New file.
66761         * tests/test-pipe-filter-ii2.sh: New file.
66762         * tests/test-pipe-filter-ii2-main.c: New file.
66763         * tests/test-pipe-filter-ii2-child.c: New file.
66765         New module 'pipe-filter-ii'.
66766         * lib/pipe-filter.h: New file.
66767         * lib/pipe-filter-ii.c: New file.
66768         * lib/pipe-filter-aux.h: New file.
66769         * modules/pipe-filter-ii: New file.
66771 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66773         * lib/gc-libgcrypt.c: Change copyright to FSF.
66774         * lib/gc-gnulib.c: Likewise.
66776 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
66778         * lib/gethostname.c: Include limits.h.
66780 2009-08-02  Simon Josefsson  <simon@josefsson.org>
66781             Bruno Haible  <bruno@clisp.org>
66783         Ensure HOST_NAME_MAX as part of the gethostname module.
66784         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
66785         define also HOST_NAME_MAX.
66786         * tests/test-gethostname.c: Include <limits.h>.
66787         (main): Check also HOST_NAME_MAX.
66788         * doc/posix-headers/limits.texi: Document the mingw problem.
66790 2009-08-02  Bruno Haible  <bruno@clisp.org>
66792         * lib/gethostname.c (gethostname): Fix handling of large len argument.
66793         Add comments.
66795 2009-03-31  Simon Josefsson  <simon@josefsson.org>
66797         * lib/gethostname.c: Add Windows wrapper.
66798         * m4/gethostname.m4: Look for gethostname in -lws2_32.
66799         * modules/gethostname: Depend on sys_socket & errno, for also
66800         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
66801         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
66803 2009-07-31  Jim Meyering  <meyering@redhat.com>
66805         getloadavg: fix symbol name in comment
66806         * lib/getloadavg.c: Correct a typo I introduced when adding
66807         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
66808         Matt Kraai spotted the problem.
66810 2009-07-29  Matt Kraai  <mkraai@beckman.com>
66812         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
66813         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
66814         code also if ! defined N_NAME_POINTER.
66815         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
66816         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
66817         but the n_name member is a 12-byte array.
66819 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
66821         update-copyright: generalize comment handling
66822         * build-aux/update-copyright: Handle copyright statements
66823         within more comment styles.
66824         Document usage.
66825         Report any file with an external copyright holder or parse failure.
66827 2009-07-29  Jim Meyering  <meyering@redhat.com>
66829         mktime: correct setting of REPLACE_MKTIME
66830         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
66832         update-copyright: new module
66833         * modules/update-copyright: New file.
66834         * build-aux/update-copyright: New file.
66835         * MODULES.html.sh (maint+release support): Add update-copyright.
66837 2009-07-27  Bruno Haible  <bruno@clisp.org>
66839         Fix compilation error when <ctime> is used and mktime is replaced.
66840         * lib/time.in.h (mktime): New declaration.
66841         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
66842         REPLACE_MKTIME instead of defining mktime in config.h.
66843         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
66844         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
66845         Reported by Ross McFarland <rwmcfa1@neces.com>.
66847 2009-07-27  Bruno Haible  <bruno@clisp.org>
66849         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
66850         Reported by Matt Kraai <mkraai@beckman.com>.
66852 2009-07-25  Jim Meyering  <meyering@redhat.com>
66854         maint.mk: avoid warnings about missing files
66855         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
66856         diagnostic when .prev-version does not exist.
66857         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
66858         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
66859         nonexistent cfg.mk.
66860         Suggestions from Simon Josefsson.
66862 2009-07-25  Bruno Haible  <bruno@clisp.org>
66864         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
66865         defined as macros. Needed on QNX 6.4.1.
66866         Reported by Matt Kraai <mkraai@beckman.com>.
66868 2009-07-23  Jim Meyering  <meyering@redhat.com>
66870         maint.mk: invoke "make dist" with a working value of XZ_OPT
66871         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
66873 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
66875         Make fseeko.c compile on QNX.
66876         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
66878 2009-07-22  Peter Simons  <simons@cryp.to>
66880         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
66881         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
66882         * lib/md4.h: Likewise.
66883         * lib/md5.h: Likewise.
66884         * lib/sha1.h: Likewise.
66885         * lib/sha256.h: Likewise.
66886         * lib/sha512.h: Likewise.
66888         tests-sha1: don't assign literal string to 'char *' variable
66889         * tests/test-sha1.c (main): Declare locals with "const" to match
66890         attributes of the right hand side.
66892 2009-07-21  Eric Blake  <ebb9@byu.net>
66894         dup2: fix more mingw problems
66895         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
66896         fd to itself.
66897         * doc/posix-functions/dup2.texi (dup2): Document the bug.
66898         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
66899         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
66900         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
66901         care of mingw bugs.
66903 2009-07-21  Jim Meyering  <meyering@redhat.com>
66905         vc-list-files: avoid failure when /bin/sh is dash
66906         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
66907         On some Debian based systems, /bin/sh is a symlink to dash, and running
66908         this command would omit the "/" following each 'tests' prefix:
66909           dash -x build-aux/vc-list-files -C . tests
66910         That is because bash and dash work differently:
66911           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
66912           bash ok
66913           dash odd
66915 2009-07-21  Eric Blake  <ebb9@byu.net>
66917         dup2-tests: test previous patch
66918         * modules/dup2-tests: New file.
66919         * tests/test-dup2.c: Likewise.
66920         * tests/test-open.c (main): Avoid unspecified behavior.
66921         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
66922         test.
66924         dup2: work around mingw and cygwin 1.5 bug
66925         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
66926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
66927         * modules/unistd (Makefile.am): Substitute it.
66928         * lib/unistd.in.h (dup2): Declare the replacement.
66929         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
66930         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
66931         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
66932         * modules/execute (Depends-on): Add dup2.
66933         * modules/fseterr (Depends-on): Likewise.
66934         * modules/pipe (Depends-on): Likewise.
66935         * modules/posix_spawn-internal (Depends-on): Likewise.
66937 2009-07-21  Bruno Haible  <bruno@clisp.org>
66939         * modules/.gitattributes: New file.
66941 2009-07-20  Bruno Haible  <bruno@clisp.org>
66943         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
66944         (main): Use it.
66946 2009-07-20  Eric Blake  <ebb9@byu.net>
66948         test-pipe: make a bit more robust.
66949         * tests/test-pipe.c (myerr): Allow error messages regardless of
66950         what we do to stderr.
66951         (test_pipe): Rearrange to avoid deadlock.
66952         (child_main): Try a larger read, to ensure we avoided deadlock.
66953         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
66954         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
66955         if misused.
66957 2009-07-19  Jim Meyering  <meyering@redhat.com>
66959         fts: avoid false-positive cycle-detection
66960         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
66961         for each new command line argument.
66963 2009-07-19  Bruno Haible  <bruno@clisp.org>
66965         Fix build error on mingw with the modules sys_select and unistd.
66966         * modules/acl-tests (Depends-on): Add close.
66967         * modules/binary-io-tests (Depends-on): Likewise.
66968         * modules/closein-tests (Depends-on): Likewise.
66969         * modules/flock-tests (Depends-on): Likewise.
66970         * modules/fsync-tests (Depends-on): Likewise.
66971         * modules/lseek-tests (Depends-on): Likewise.
66972         * modules/pipe-tests (Depends-on): Likewise.
66973         * modules/posix_spawn-tests (Depends-on): Likewise.
66974         * modules/posix_spawnp-tests (Depends-on): Likewise.
66975         * modules/stat-time-tests (Depends-on): Likewise.
66976         * modules/yesno-tests (Depends-on): Likewise.
66978 2009-07-19  Bruno Haible  <bruno@clisp.org>
66980         Unify conditionals.
66981         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
66982         macros, not at the compiler macros.
66983         * lib/pipe.c: Likewise.
66984         * lib/execute.c: Likewise.
66985         * lib/spawni.c: Likewise.
66987 2009-07-19  Bruno Haible  <bruno@clisp.org>
66989         Fix handling of closed stdin/stdout/stderr on mingw.
66990         * lib/w32spawn.h: Include unistd.h.
66991         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
66992         file descriptor with O_NOINHERIT flag.
66993         (fd_safer_noinherit): New function, based on fd-safer.c.
66994         (dup_safer_noinherit): New function, based on dup-safer.c.
66995         (undup_safer_noinherit): New function.
66996         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
66997         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
66998         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
66999         instead of fd_safer.
67000         * tests/test-pipe.c: Include <windows.h>.
67001         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
67002         result.
67004         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
67005         from main.
67006         (test_pipe): Pass an extra argument for disambiguation.
67007         (main): Invoke parent_main or child_main.
67009         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
67010         consistently.
67012 2009-07-18  Eric Blake  <ebb9@byu.net>
67014         test-pipe: fix mingw build
67015         * tests/test-pipe.c (main): Avoid fcntl on mingw.
67017 2009-07-18  Bruno Haible  <bruno@clisp.org>
67019         * modules/pipe-tests (Makefile.am): Fix typo.
67021 2009-07-18  Eric Blake  <ebb9@byu.net>
67023         error: fix mingw build
67024         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
67025         Reported by Bruno Haible.
67027         error: avoid undefined use of stdout
67028         * lib/error.c (error, error_at_line): Check that fd 1 is open
67029         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
67030         is handling faults and the close_stdout module wants to report the
67031         detection of closed stdout as an error.
67033 2009-07-17  Eric Blake  <ebb9@byu.net>
67035         pipe: be robust in face of closed fds
67036         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
67037         should cause child to misbehave.
67038         * modules/pipe-tests: New module.
67039         * tests/test-pipe.c: New file.
67040         * tests/test-pipe.sh: New file.
67041         Reported by Akim Demaille.
67043 2009-07-14  Bruno Haible  <bruno@clisp.org>
67045         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
67046         Reported by anonymous kc.
67048 2009-07-07  Jim Meyering  <meyering@redhat.com>
67050         maint.mk: don't look for translatable strings in *.m4 or *.mk
67051         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
67052         when searching for translatable strings.
67054 2009-07-05  Jim Meyering  <meyering@redhat.com>
67056         remove superfluous parentheses in STREQ definition
67057         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
67058         * lib/getugroups.c (STREQ): Likewise.
67059         * lib/fnmatch.c (STREQ): Likewise.
67060         Spotted by Bruno Haible.
67062 2009-07-04  Jim Meyering  <meyering@redhat.com>
67064         argv-iter: new module
67065         * MODULES.html.sh: Add argv-iter.
67066         * lib/argv-iter.c, lib/argv-iter.h: New files.
67067         * modules/argv-iter: New file.
67068         * modules/argv-iter-tests: New file.
67069         * tests/test-argv-iter.c: Test it.
67071 2009-07-04  Bruno Haible  <bruno@clisp.org>
67073         Fix assertion.
67074         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
67075         contains more exact copies of a given entry than file2, leave the extra
67076         copies unpaired rather than aborting.
67077         Reported by Eric Blake.
67079 2009-07-02  Bruno Haible  <bruno@clisp.org>
67081         Speedup git-merge-changelog for git cherry-pick.
67082         * lib/git-merge-changelog.c (struct entries_mapping): New type.
67083         (entries_mapping_get): New function, extracted from compute_mapping.
67084         (entries_mapping_reverse_get): New function.
67085         (compute_mapping): Add a 'full' argument. Return the result in a
67086         'struct entries_mapping'.
67087         (main): Update. Access the mappings through entries_mapping_get.
67088         Reported by Eric Blake.
67090 2009-07-02  Bruno Haible  <bruno@clisp.org>
67092         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
67093         best_i.
67095 2009-07-02  Bruno Haible  <bruno@clisp.org>
67097         Speed up approximate search for matching ChangeLog entries.
67098         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
67099         argument. Call fstrcmp_bounded instead of fstrcmp.
67100         (compute_mapping, try_split_merged_entry, main): Update callers.
67102 2009-07-02  Bruno Haible  <bruno@clisp.org>
67104         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
67106 2009-06-30  Bruno Haible  <bruno@clisp.org>
67108         Reduce the number of uc_is_cased calls.
67109         * lib/unicase.h (casing_suffix_context_t): Add
67110         'first_char_except_ignorable' field.
67111         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
67112         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
67113         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
67114         Update initializer.
67115         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
67116         case-ignorable characters.
67117         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
67118         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
67119         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
67120         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
67121         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
67123 2009-06-30  Bruno Haible  <bruno@clisp.org>
67125         Tests for module 'unicase/ignorable'.
67126         * modules/unicase/ignorable-tests: New file.
67127         * tests/unicase/test-ignorable.c: New file, generated by
67128         gen-uni-tables.
67130         Tests for module 'unicase/cased'.
67131         * modules/unicase/cased-tests: New file.
67132         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
67133         * tests/unicase/test-predicate-part1.h: New file, derived from
67134         tests/unictype/test-predicate-part1.h.
67135         * tests/unicase/test-predicate-part2.h: New file, same as
67136         tests/unictype/test-predicate-part2.h.
67138         Fix evaluation of "Before C" condition of FINAL_SIGMA.
67139         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
67140         (output_casing_properties): New function.
67141         (main): Call it.
67142         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
67143         * lib/unicase/cased.c: Include unictype/bitmap.h.
67144         (uc_is_cased): Define through a bitmap lookup.
67145         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
67146         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
67147         (uc_is_case_ignorable): Define through a bitmap lookup.
67148         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
67149         lib/unictype/bitmap.h.
67150         (Depends-on): Add inline. Clean up.
67151         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
67152         lib/unictype/bitmap.h.
67153         (Depends-on): Add inline. Clean up.
67154         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
67155         recognition.
67156         * tests/unicase/test-u16-tolower.c (main): Likewise.
67157         * tests/unicase/test-u32-tolower.c (main): Likewise.
67159 2009-06-30  Bruno Haible  <bruno@clisp.org>
67161         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
67162         * lib/unicase/u16-casemap.c: Likewise.
67163         * lib/unicase/u32-casemap.c: Likewise.
67165 2009-06-29  Bruno Haible  <bruno@clisp.org>
67167         Define u32_casefold as a wrapper around u32_ct_casefold.
67168         * lib/unicase/u32-casefold.c: Update.
67169         * modules/unicase/u32-casefold (Depends-on): Add
67170         unicase/u32-ct-casefold, unicase/empty-prefix-context,
67171         unicase/empty-suffix-context. Clean up.
67173         Define u16_casefold as a wrapper around u16_ct_casefold.
67174         * lib/unicase/u16-casefold.c: Update.
67175         * modules/unicase/u16-casefold (Depends-on): Add
67176         unicase/u16-ct-casefold, unicase/empty-prefix-context,
67177         unicase/empty-suffix-context. Clean up.
67179         Define u8_casefold as a wrapper around u8_ct_casefold.
67180         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
67181         * lib/unicase/u8-casefold.c: Update.
67182         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
67183         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67185         Define u32_totitle as a wrapper around u32_ct_totitle.
67186         * lib/unicase/u32-totitle.c: Update.
67187         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
67188         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67190         Define u16_totitle as a wrapper around u16_ct_totitle.
67191         * lib/unicase/u16-totitle.c: Update.
67192         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
67193         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67195         Define u8_totitle as a wrapper around u8_ct_totitle.
67196         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
67197         functions.
67198         (FUNC): Delegate to U_CT_TOTITLE.
67199         * lib/unicase/u8-totitle.c: Update.
67200         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
67201         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
67203         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
67204         invocation.
67205         * modules/unicase/u32-tolower (Depends-on): Add
67206         unicase/empty-prefix-context, unicase/empty-suffix-context.
67208         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
67209         invocation.
67210         * modules/unicase/u16-tolower (Depends-on): Add
67211         unicase/empty-prefix-context, unicase/empty-suffix-context.
67213         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
67214         * modules/unicase/u8-tolower (Depends-on): Add
67215         unicase/empty-prefix-context, unicase/empty-suffix-context.
67217         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
67218         invocation.
67219         * modules/unicase/u32-toupper (Depends-on): Add
67220         unicase/empty-prefix-context, unicase/empty-suffix-context.
67222         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
67223         invocation.
67224         * modules/unicase/u16-toupper (Depends-on): Add
67225         unicase/empty-prefix-context, unicase/empty-suffix-context.
67227         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
67228         * modules/unicase/u8-toupper (Depends-on): Add
67229         unicase/empty-prefix-context, unicase/empty-suffix-context.
67231         New module 'unicase/u32-ct-casefold'.
67232         * lib/unicase/u32-ct-casefold.c: New file.
67233         * modules/unicase/u32-ct-casefold: New file.
67235         New module 'unicase/u16-ct-casefold'.
67236         * lib/unicase/u16-ct-casefold.c: New file.
67237         * modules/unicase/u16-ct-casefold: New file.
67239         New module 'unicase/u8-ct-casefold'.
67240         * lib/unicase/u8-ct-casefold.c: New file.
67241         * lib/unicase/u-ct-casefold.h: New file, derived from
67242         lib/unicase/u-casefold.h.
67243         * modules/unicase/u8-ct-casefold: New file.
67245         New module 'unicase/u32-ct-totitle'.
67246         * lib/unicase/u32-ct-totitle.c: New file.
67247         * modules/unicase/u32-ct-totitle: New file.
67249         New module 'unicase/u16-ct-totitle'.
67250         * lib/unicase/u16-ct-totitle.c: New file.
67251         * modules/unicase/u16-ct-totitle: New file.
67253         New module 'unicase/u8-ct-totitle'.
67254         * lib/unicase/u8-ct-totitle.c: New file.
67255         * lib/unicase/u-ct-totitle.h: New file, derived from
67256         lib/unicase/u-totitle.h.
67257         * modules/unicase/u8-ct-totitle: New file.
67259         New module 'unicase/u32-ct-tolower'.
67260         * lib/unicase/u32-ct-tolower.c: New file.
67261         * modules/unicase/u32-ct-tolower: New file.
67263         New module 'unicase/u16-ct-tolower'.
67264         * lib/unicase/u16-ct-tolower.c: New file.
67265         * modules/unicase/u16-ct-tolower: New file.
67267         New module 'unicase/u8-ct-tolower'.
67268         * lib/unicase/u8-ct-tolower.c: New file.
67269         * modules/unicase/u8-ct-tolower: New file.
67271         New module 'unicase/u32-ct-toupper'.
67272         * lib/unicase/u32-ct-toupper.c: New file.
67273         * modules/unicase/u32-ct-toupper: New file.
67275         New module 'unicase/u16-ct-toupper'.
67276         * lib/unicase/u16-ct-toupper.c: New file.
67277         * modules/unicase/u16-ct-toupper: New file.
67279         New module 'unicase/u8-ct-toupper'.
67280         * lib/unicase/u8-ct-toupper.c: New file.
67281         * modules/unicase/u8-ct-toupper: New file.
67283         Add context arguments to u*_casemap functions.
67284         * lib/unicase/unicasemap.h: Include unicase.h.
67285         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
67286         suffix_context arguments.
67287         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
67288         functions.
67289         (FUNC): Add prefix_context and suffix_context arguments. Use
67290         uc_is_cased and uc_is_case_ignorable.
67291         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
67292         * lib/unicase/u16-casemap.c: Likewise.
67293         * lib/unicase/u32-casemap.c: Likewise.
67294         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
67295         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67296         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
67297         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67298         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
67299         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
67301         New module 'unicase/u32-suffix-context'.
67302         * lib/unicase/u32-suffix-context.c: New file.
67303         * modules/unicase/u32-suffix-context: New file.
67305         New module 'unicase/u16-suffix-context'.
67306         * lib/unicase/u16-suffix-context.c: New file.
67307         * modules/unicase/u16-suffix-context: New file.
67309         New module 'unicase/u8-suffix-context'.
67310         * lib/unicase/u8-suffix-context.c: New file.
67311         * lib/unicase/u-suffix-context.h: New file.
67312         * modules/unicase/u8-suffix-context: New file.
67314         New module 'unicase/empty-suffix-context'.
67315         * lib/unicase/empty-suffix-context.c: New file.
67316         * modules/unicase/empty-suffix-context: New file.
67318         New module 'unicase/u32-prefix-context'.
67319         * lib/unicase/u32-prefix-context.c: New file.
67320         * modules/unicase/u32-prefix-context: New file.
67322         New module 'unicase/u16-prefix-context'.
67323         * lib/unicase/u16-prefix-context.c: New file.
67324         * modules/unicase/u16-prefix-context: New file.
67326         New module 'unicase/u8-prefix-context'.
67327         * lib/unicase/u8-prefix-context.c: New file.
67328         * lib/unicase/u-prefix-context.h: New file.
67329         * lib/unicase/context.h: New file.
67330         * modules/unicase/u8-prefix-context: New file.
67332         New module 'unicase/empty-prefix-context'.
67333         * lib/unicase/empty-prefix-context.c: New file.
67334         * modules/unicase/empty-prefix-context: New file.
67336         New module 'unicase/ignorable'.
67337         * lib/unicase/ignorable.c: New file.
67338         * modules/unicase/ignorable: New file.
67340         New module 'unicase/cased'.
67341         * lib/unicase/caseprop.h: New file.
67342         * lib/unicase/cased.c: New file.
67343         * modules/unicase/cased: New file.
67345         New functions for case mapping of substrings.
67346         * lib/unicase.h (casing_prefix_context_t): New type.
67347         (unicase_empty_prefix_context): New variable.
67348         (u8_casing_prefix_context, u16_casing_prefix_context,
67349         u32_casing_prefix_context, u8_casing_prefixes_context,
67350         u16_casing_prefixes_context, u32_casing_prefixes_context): New
67351         declarations.
67352         (casing_suffix_context_t): New type.
67353         (unicase_empty_suffix_context): New variable.
67354         (u8_casing_suffix_context, u16_casing_suffix_context,
67355         u32_casing_suffix_context, u8_casing_suffixes_context,
67356         u16_casing_suffixes_context, u32_casing_suffixes_context,
67357         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
67358         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
67359         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
67360         declarations.
67362 2009-06-28  Jim Meyering  <meyering@redhat.com>
67364         boostrap: indent only with spaces
67365         * build-aux/bootstrap: Indent only with spaces, never TABs.
67367         bootstrap: split long lines
67368         * build-aux/bootstrap: Keep line length < 80.
67370         bootstrap: sync from coreutils
67371         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
67372         just as autoreconf does.  Verify a list of prerequisite
67373         package-name,version-number pairs if defined in bootstrap.conf.
67374         Refer to README-prereq, if prerequisites are not satisfied.
67376 2009-06-27  Eric Blake  <ebb9@byu.net>
67378         tests: add test for bogus NULL definition
67379         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
67380         * tests/test-stdlib.c: Likewise.
67381         * tests/test-string.c: Likewise.
67382         * tests/test-locale.c: Likewise.
67383         * tests/test-unistd.c: Likewise.
67384         * modules/stdio-tests (Depends-on): Add verify.
67385         * modules/stdlib-tests (Depends-on): Likewise.
67386         * modules/string-tests (Depends-on): Likewise.
67387         * modules/locale-tests (Depends-on): Likewise.
67388         * modules/unistd-tests (Depends-on): Likewise.
67390 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
67392         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
67393         self-explaining comment.
67394         * m4/selinux-selinux-h: Update serial.
67395         (gl_LIBSELINUX): New macro, adding a warning for missing development
67396         packages to code extracted from...
67397         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
67398         Add warning for missing development packages here, too.
67400 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
67402         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
67404 2009-06-25  Eric Blake  <ebb9@byu.net>
67406         version-etc: fix regression
67407         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
67408         gcc.
67409         (version_etc): Use it, to catch bugs with trailing NULL.
67410         * lib/version-etc.c (version_etc_arn): Delete unused argument.
67411         (version_etc_va): Fix logic bug.
67412         * modules/version-etc-tests: Add test.
67413         * tests/test-version-etc.c: New file.
67414         * tests/test-version-etc.sh: Likewise.
67416 2009-06-25  Sam Steingold  <sds@gnu.org>
67418         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
67419         mbtowc declaration.
67421 2009-06-25  Eric Blake  <ebb9@byu.net>
67423         fpurge: migrate into <stdio.h>
67424         * lib/fpurge.h: Delete...
67425         * lib/stdio.in.h (fpurge): ...and declare here, instead.
67426         * lib/fpurge.c (fpurge): Change declaring header.
67427         * modules/fpurge (Files): Drop deleted file.
67428         (Depends-on): Add stdio.
67429         (configure.ac): Set witness.
67430         * modules/stdio (Makefile.am): Support fpurge macros.
67431         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67432         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
67433         * lib/fflush.c: Update client.
67434         * tests/test-fpurge.c: Likewise.
67435         * NEWS: Mention the change.
67437 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67439         * lib/argp-version-etc.c (program_authors): Add const
67440         qualifier.
67441         * lib/version-etc.c: Fix typos in the comments.
67442         * modules/argp-version-etc: Depends on version-etc.
67444 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67446         argp-version-etc: new module.
67448         * lib/argp-version-etc.c: New file.
67449         * lib/argp-version-etc.h: New file.
67450         * modules/argp-version-etc: New file.
67451         * modules/argp-version-etc-tests: New file.
67452         * tests/test-argp-version-etc.c: New test.
67453         * tests/test-argp-version-etc-1.sh: New test.
67455 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67457         Provide additional interfaces and documentation for version-etc
67458         module.
67460         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
67461         interfaces.
67462         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
67463         prototypes.
67465 2009-06-24  Bruno Haible  <bruno@clisp.org>
67467         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
67468         HAVE_LIB${NAME} macro.
67469         Reported by Sam Steingold <sds@gnu.org>.
67471 2009-06-23  Simon Josefsson  <simon@josefsson.org>
67473         * modules/hash-tests (test_hash_LDADD): Link to libintl when
67474         needed.
67476 2009-06-21  Bruno Haible  <bruno@clisp.org>
67478         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
67479         work.
67480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
67481         together with LIB${NAME}, LTLIB${NAME}.
67482         Reported by Sam Steingold <sds@gnu.org>.
67484 2009-06-20  Jim Meyering  <meyering@redhat.com>
67486         tests: make sc_require_test_exit_idiom more generic
67487         * top/maint.mk (Exit_witness_file): New overridable variable.
67488         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
67489         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
67491 2009-06-19  Jim Meyering  <meyering@redhat.com>
67493         hash: reverse order of src/dst parameters in an internal interface
67494         * lib/hash.c (transfer_entries): Reverse order of parameters to
67495         put DST before SRC.  Adjust callers.
67497         tests: test-hash: avoid wholesale duplication
67498         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
67499         Instead, use a loop and add a single conditional.
67501         tests: test-hash: allow seed selection via a command line argument
67502         * tests/test-hash.c (get_seed): New function.
67503         (main): Use it.
67505 2009-06-19  Eric Blake  <ebb9@byu.net>
67507         hash: avoid memory leak on allocation failure
67508         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
67509         failure.  Factor repeated algorithm...
67510         (transfer_entries): ...into new helper routine.
67511         (hash_delete): React to hash_rehash return value.
67513         hash: reduce memory pressure in hash_rehash no-op case
67514         * lib/hash.c (next_prime): Avoid overflow.
67515         (hash_initialize): Factor bucket size computation...
67516         (compute_bucket_size): ...into new helper function.
67517         (hash_rehash): Use new function and open coding to reduce memory
67518         pressure, and avoid a memory leak in USE_OBSTACK code.
67519         Reported by Jim Meyering.
67521 2009-06-18  Eric Blake  <ebb9@byu.net>
67523         hash: make rotation more obvious
67524         * modules/hash (Depends-on): Add bitrotate and stdint.
67525         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
67526         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
67527         (SIZE_MAX): Rely on headers for definition.
67528         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
67529         (raw_hasher): Use rotr_sz.
67530         Suggested by Jim Meyering.
67532         hash: fix memory leak in last patch
67533         * lib/hash.c (hash_rehash): Avoid memory leak.
67535         hash: avoid no-op rehashing
67536         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
67538         hash: provide default callback functions
67539         * lib/hash.c (raw_hasher, raw_comparator): New functions.
67540         (hash_initialize): Use them as defaults.
67541         * tests/test-hash.c (main): Test this.
67543         hash: minor optimization
67544         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
67545         when possible.
67546         (hash_initialize): Document this promise.
67547         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
67548         * tests/test-hash.c (hash_compare_strings): Test this.
67550 2009-06-18  Bruno Haible  <bruno@clisp.org>
67552         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
67553         going to be replaced anyway.
67555 2009-06-18  Bruno Haible  <bruno@clisp.org>
67557         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
67558         in one place.
67559         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
67560         be replaced anyway.
67562 2009-06-18  Eric Blake  <ebb9@byu.net>
67564         hash: check for resize before insertion
67565         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
67566         threshold before insertion, so that a pathological hash_rehash
67567         that fills every bucket can still trigger another rehash.
67569 2009-06-18  Jim Meyering  <meyering@redhat.com>
67571         hash-tests: add a loop around the small tests
67572         * tests/test-hash.c (main): Repeat small tests with selected
67573         small initial table sizes.
67575 2009-06-17  Eric Blake  <ebb9@byu.net>
67577         hash: minor cleanups
67578         * lib/hash.h (hash_entry): Make opaque, by moving...
67579         * lib/hash.c (hash_entry): ...here.
67580         (hash_insert): Clarify restrictions on what can be inserted.
67581         (hash_get_next): Clarify when it is safe to remove an element
67582         during traversal.
67583         (check_tuning): Skip verification when tuning is known safe.
67584         (hash_initialize): Clarify restrictions on tuning.
67586 2009-06-17  Jim Meyering  <jim@meyering.net>
67587         and Eric Blake  <ebb9@byu.net>
67589         hash-tests: new module
67590         * modules/hash-tests: New file.
67591         * tests/test-hash.c: New file.
67593 2009-06-17  Eric Blake  <ebb9@byu.net>
67595         strstr-simple: document new module
67596         * MODULES.html.sh: Document new module.
67598         strstr, strcasestr: replace on platforms with broken memchr
67599         * modules/strstr: Split into...
67600         * modules/strstr-simple: ...new module that does not care about
67601         performance, but does care about glibc bug.
67602         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
67603         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
67604         if platform memchr is broken, per Debian bug 521737.
67605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
67606         memchr.
67607         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
67608         * doc/posix-functions/strstr.texi (strstr): Document the fix.
67609         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
67610         * modules/mountlist (Depends-on): Add strstr-simple.
67611         * modules/gen-uni-tables (Depends-on): Likewise.
67612         * modules/argz (Depends-on): Add strstr.
67614 2009-06-17  Bruno Haible  <bruno@clisp.org>
67616         * modules/posix_spawn-internal (Depends-on): Add errno.
67618 2009-06-17  Bruno Haible  <bruno@clisp.org>
67620         Define missing ESTALE on Interix 3.5.
67621         * lib/errno.in.h (ESTALE): Assign a value if missing.
67622         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
67623         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
67624         missing.
67625         * doc/posix-headers/errno.texi: Mention the Interix bug.
67626         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
67628 2009-06-15  Eric Blake  <ebb9@byu.net>
67630         memchr, memchr2: add valgrind exception
67631         * lib/memchr.valgrind: New file.
67632         * lib/memchr2.valgrind: New file.
67633         * modules/memchr (Files): Distribute valgrind file.
67634         * modules/memchr2 (Files): Likewise.
67636         docs: memchr is no longer obsolete
67637         * MODULES.html.sh: Move memchr from obsolete to string.h section.
67638         * lib/string.in.h (memchr): Simplify logic.
67640 2009-06-14  Jim Meyering  <meyering@redhat.com>
67642         link-follow: fix the "checking..." message to not mention trailing slash
67643         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
67644         never considered trailing slashes.
67646 2009-06-14  Bruno Haible  <bruno@clisp.org>
67648         * m4/memchr.m4: Mention also the bug on IA-64.
67649         * doc/posix-functions/memchr.texi: Likewise.
67651 2009-06-12  Eric Blake  <ebb9@byu.net>
67653         memchr: detect broken x86_64 and alpha implementations
67654         * modules/memchr-tests (Depends-on): Move mmap detection...
67655         * modules/memchr (Depends-on): ...here.
67656         (configure.ac): Set indicator.
67657         * lib/string.in.h (memchr): Declare replacement.
67658         * modules/string (Makefile.am): Trigger replacement.
67659         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
67660         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
67661         bugs.
67662         * doc/posix-functions/memchr.texi (memchr): Document the bug.
67663         * modules/getpagesize (License): Relax license.
67665 2009-06-11  Bruno Haible  <bruno@clisp.org>
67667         * lib/idpriv.h: Add more references.
67669 2009-06-08  Bruno Haible  <bruno@clisp.org>
67671         Tests for module 'idpriv-droptemp'.
67672         * modules/idpriv-droptemp-tests: New file.
67673         * tests/test-idpriv-droptemp.sh: New file.
67674         * tests/test-idpriv-droptemp.su.sh: New file.
67675         * tests/test-idpriv-droptemp.c: New file.
67677         New module 'idpriv-droptemp'.
67678         * lib/idpriv-droptemp.c: New file.
67679         * modules/idpriv-droptemp: New file.
67681 2009-06-08  Bruno Haible  <bruno@clisp.org>
67683         Tests for module 'idpriv-drop'.
67684         * modules/idpriv-drop-tests: New file.
67685         * tests/test-idpriv-drop.sh: New file.
67686         * tests/test-idpriv-drop.su.sh: New file.
67687         * tests/test-idpriv-drop.c: New file.
67689         New module 'idpriv-drop'.
67690         * lib/idpriv.h: New file.
67691         * lib-idpriv-drop.c: New file.
67692         * m4/idpriv.m4: New file.
67693         * modules/idpriv-drop: New file.
67695 2009-06-08  Bruno Haible  <bruno@clisp.org>
67697         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
67698         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
67699         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
67700         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
67701         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
67702         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
67703         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
67705 2009-06-08  Eric Blake  <ebb9@byu.net>
67707         test-strstr: use memory fence, when possible
67708         * tests/test-strstr.c (main): Use memory fence, in order to be
67709         more likely to trigger Debian bug 521737.
67710         * modules/strstr-tests (Files): Pull in additional files.
67712         memchr: no longer obsolete, for wider field testing
67713         * modules/memchr (Status, Notice): Delete, this module is no
67714         longer obsolete.
67715         * modules/vasnprintf (Depends-on): Add memchr.
67717 2009-06-07  Jim Meyering  <meyering@redhat.com>
67719         hash: declare some functions with the warn_unused_result attribute
67720         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
67722 2009-06-07  Bruno Haible  <bruno@clisp.org>
67724         * tests/test-alignof.c: Don't test int64_t if it does not exist.
67725         Reported by Eric Blake.
67727 2009-06-06  Eric Blake  <ebb9@byu.net>
67729         test-alignof: fix typo with long double
67730         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
67731         compiler error.
67733 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
67735         Escape non-texinfo { and }s.
67736         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
67737         markup error.
67739 2009-06-04  Jim Meyering  <meyering@redhat.com>
67741         gitlog-to-changelog: don't infloop on an empty commit log
67742         * build-aux/gitlog-to-changelog: Warn about an empty log message.
67743         Reported by Boris Petersen <transacid@centerim.org>.
67745 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
67747         version-etc: extend for packagers
67748         Add three new configure options, intended for packagers:
67749           --with-packager="packager name"
67750           --with-packager-version="packager-specific version"
67751           --with-packager-bug-reports="packager bug reporting"
67752         An example with coreutils:
67753           $ ./configure \
67754             --with-packager=Gentoo \
67755             --with-packager-bug-report=http://bugs.gentoo.org/ \
67756             --with-packager-version="patchset 1.6"
67757           $ ./src/ls --version | head -n2
67758           ls (GNU coreutils) 7.1-dirty
67759           Packaged by Gentoo (patchset 1.6)
67760         Note that the bug reporting info via --help doesn't show up because
67761         coreutils uses its own custom emit_bug_reporting_address() implementation
67762         in src/system.h.  If it didn't, it'd look like:
67763           $ ./src/ls --help | tail -n4
67764           Report bugs to <bug-coreutils@gnu.org>.
67765           Report Gentoo bugs to <http://bugs.gentoo.org/>.
67766           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
67767           General help using GNU software: <http://www.gnu.org/gethelp/>.
67768         * lib/version-etc.c: Print new information, if provided.
67769         * m4/version-etc.m4: New file.
67770         * modules/version-etc (Files): Add m4/version-etc.m4.
67771         (configure.ac): Add gl_VERSION_ETC.
67773 2009-05-31  Bruno Haible  <bruno@clisp.org>
67775         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
67776         and 'int64_t'.
67777         * modules/alignof-tests (Dependencies): Add stdint.
67778         Reported by Eric Blake.
67780 2009-05-31  Bruno Haible  <bruno@clisp.org>
67782         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
67783         restriction due to compiler bugs.
67784         Reported by Eric Blake.
67786 2009-05-31  Simon Josefsson  <simon@josefsson.org>
67787             Bruno Haible  <bruno@clisp.org>
67789         Fix test-alignof failure.
67790         * lib/alignof.h (alignof_slot): New macro.
67791         (alignof_type): New macro, with the same semantics as the previous
67792         'alignof'.
67793         (alignof): Alias to alignof_slot.
67794         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
67795         check that the results are usable as constant expressions.
67797 2009-05-31  Bruno Haible  <bruno@clisp.org>
67799         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
67800         * tests/test-memchr.c (main): Check that memchr does not read past the
67801         first occurrence of the byte.
67802         * tests/test-strstr.c (main): Update comment.
67803         Suggested by Eric Blake.
67805 2009-05-30  Bruno Haible  <bruno@clisp.org>
67807         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
67808         detail how to use dumpbin.
67809         Reported by David Byron <dbyron@dbyron.com>.
67811 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67813         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
67815 2009-06-02  Simon Josefsson  <simon@josefsson.org>
67817         * m4/manywarnings.m4: Add GCC 4.4 warnings.
67819 2009-05-28  Bruno Haible  <bruno@clisp.org>
67821         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
67822         build-aux/ files.
67824 2009-05-28  Simon Josefsson  <simon@josefsson.org>
67826         * gnulib-tool (func_import): Transform license on build-aux/ files too.
67828 2009-05-27  Simon Josefsson  <simon@josefsson.org>
67830         * gnulib-tool (sed_transform_main_lib_file)
67831         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
67832         regexps.
67834 2009-05-26  Simon Josefsson  <simon@josefsson.org>
67836         * tests/test-strstr.c: Add another self-test.
67837         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
67838         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
67840 2009-05-23  Bruno Haible  <bruno@clisp.org>
67842         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
67843         change.
67845 2009-05-21  Bruno Haible  <bruno@clisp.org>
67847         Simplify use of mode_t varargs.
67848         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
67849         uses 'mode_t' or 'int'.
67850         * lib/openat.c (openat): Likewise.
67851         * lib/open-safer.c (open_safer): Likewise.
67852         * m4/mode_t.m4: New file.
67853         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
67854         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
67855         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
67856         * modules/open (Files): Add m4/mode_t.m4.
67857         * modules/openat (Files): Likewise.
67858         * modules/fcntl-safer (Files): Likewise.
67859         Suggested by Eric Blake.
67861 2009-05-21  Pádraig Brady  <P@draigbrady.com>
67863         * doc/glibc-functions/fallocate.texi: New file.
67864         * doc/gnulib.texi: Include it.
67866 2009-05-21  Eric Blake  <ebb9@byu.net>
67867             Bruno Haible  <bruno@clisp.org>
67869         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
67870         invocations.
67871         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
67873 2009-05-21  Eric Blake  <ebb9@byu.net>
67874             Bruno Haible  <bruno@clisp.org>
67876         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
67877         include_next. Fix of 2008-11-20 commit.
67878         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
67879         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
67880         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
67881         NEXT_MATH_H.
67882         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
67883         instead of NEXT_MATH_H.
67885 2009-05-21  Bruno Haible  <bruno@clisp.org>
67887         Avoid redefinition warnings for SIZE_MAX.
67888         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
67889         Reported by Simon Josefsson.
67891 2009-05-21  Bruno Haible  <bruno@clisp.org>
67893         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
67894         AC_CACHE_VAL.
67896 2009-05-20  Bruno Haible  <bruno@clisp.org>
67898         Make zeroptr.h work on mingw.
67899         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
67900         mprotect.
67901         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
67902         * modules/memchr2-tests (configure.ac): Likewise.
67903         * modules/memcmp-tests (configure.ac): Likewise.
67904         * modules/memmem-tests (configure.ac): Likewise.
67905         * modules/memrchr-tests (configure.ac): Likewise.
67906         Reported by Simon Josefsson.
67908 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67910         * tests/test-glob.c: Include string.h for strcmp prototype.
67912 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67914         * modules/getdelim (Depends-on): Add explicit stdint, although it
67915         was implicitly already pulled in via realloc-posix.
67916         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
67918 2009-05-20  Simon Josefsson  <simon@josefsson.org>
67920         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
67921         G. Christensen" <tgc@jupiterrise.com>.
67922         * m4/sys_socket_h.m4: Check for sa_family_t.
67923         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
67924         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
67925         * tests/test-sys_socket.c: Check that sa_family_t works.
67927 2009-05-18  Eric Blake  <ebb9@byu.net>
67929         maint.mk: allow gnulib_dir in VPATH build
67930         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
67932 2009-05-15  Jim Meyering  <meyering@redhat.com>
67934         maint.mk: Give gnulib_dir a default definition.
67935         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
67936         Thus, most packages no longer need to specify this variable in cfg.mk
67938 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
67940         rename.m4: fix typos that would make non-mingw cross-configure fail
67941         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
67943 2009-05-13  Eric Blake  <ebb9@byu.net>
67945         mmap-anon: avoid out-of-order autoconf expansion
67946         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
67947         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
67948         * modules/memchr-tests (Depends-on): Add extensions.
67949         * modules/memchr2-tests (Depends-on): Add extensions.
67950         * modules/memcmp-tests (Depends-on): Add extensions.
67951         * modules/memmem-tests (Depends-on): Add extensions.
67952         * modules/memrchr-tests (Depends-on): Add extensions.
67954 2009-05-13  Bruno Haible  <bruno@clisp.org>
67956         Make some tests ISO C 99 compliant.
67957         * tests/zerosize-ptr.h: New file.
67958         * tests/test-memchr.c: Include zerosize-ptr.h.
67959         (main): Use a zero-size object pointer instead of NULL.
67960         * tests/test-memchr2.c: Include zerosize-ptr.h.
67961         (main): Use a zero-size object pointer instead of NULL.
67962         * tests/test-memcmp.c: Include zerosize-ptr.h.
67963         (main): Use a zero-size object pointer instead of NULL.
67964         * tests/test-memmem.c: Include zerosize-ptr.h.
67965         (main): Use a zero-size object pointer instead of NULL.
67966         * tests/test-memrchr.c: Include zerosize-ptr.h.
67967         (main): Use a zero-size object pointer instead of NULL.
67968         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
67969         m4/mmap-anon.m4.
67970         (Depends-on): Add getpagesize.
67971         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67972         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
67973         m4/mmap-anon.m4.
67974         (Depends-on): Add getpagesize.
67975         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67976         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
67977         m4/mmap-anon.m4.
67978         (Depends-on): Add getpagesize.
67979         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67980         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
67981         m4/mmap-anon.m4.
67982         (Depends-on): Add getpagesize.
67983         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67984         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
67985         m4/mmap-anon.m4.
67986         (Depends-on): Add getpagesize.
67987         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
67989 2009-05-12  Bruno Haible  <bruno@clisp.org>
67991         Tests for module 'alignof'.
67992         * modules/alignof-tests: New file.
67993         * tests/test-alignof.c: New file.
67995 2009-05-12  Bruno Haible  <bruno@clisp.org>
67997         Fix alignof macro.
67998         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
67999         vendor compilers that are always correct.
68001 2009-05-12  Bruno Haible  <bruno@clisp.org>
68003         Make the MAP_ANONYMOUS detection work on HP-UX 11.
68004         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
68005         not whether its fully works.
68007 2009-05-12  Bruno Haible  <bruno@clisp.org>
68009         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
68011 2009-05-12  Jim Meyering  <meyering@redhat.com>
68013         * top/maint.mk: Adjust backslash alignment.
68015 2009-05-11  Simon Josefsson  <simon@josefsson.org>
68017         * top/maint.mk: Make $(srcdir)/build-aux configurable.
68019 2009-05-11  Eric Blake  <ebb9@byu.net>
68021         argp: avoid undefined behavior
68022         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
68023         macros.
68025 2009-05-08  Simon Josefsson  <simon@josefsson.org>
68027         * tests/test-vc-list-files-git.sh: Do git config of user.email and
68028         user.name to prevent git commit from complaining.
68030 2009-05-10  Bruno Haible  <bruno@clisp.org>
68032         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
68033         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
68034         it rewrites every file name only once.
68035         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
68037 2009-05-08  Bruno Haible  <bruno@clisp.org>
68039         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
68040         instead of 'max'.
68042 2009-05-08  Simon Josefsson  <simon@josefsson.org>
68044         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
68045         sockaddr_storage test.
68047 2009-05-07  Simon Josefsson  <simon@josefsson.org>
68049         * modules/sys_socket (Makefile.am): Substitute
68050         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
68051         * m4/sys_socket_h.m4: Check for sockaddr_storage.
68052         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
68053         * tests/test-sys_socket.c: Check sockaddr_storage.
68055 2009-05-08  Bruno Haible  <bruno@clisp.org>
68057         New module 'alignof'.
68058         * lib/alignof.h: New file.
68059         * modules/alignof: New file.
68061 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68062             Bruno Haible  <bruno@clisp.org>
68064         Fix test-file-has-acl on FreeBSD.
68065         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
68066         mask is implicitly added.
68067         * tests/test-file-has-acl.c: Include <signal.h>.
68068         (main): Terminate the test after 5 seconds.
68069         * modules/acl-tests (configure.ac): Check for alarm function.
68071 2009-05-04  Bruno Haible  <bruno@clisp.org>
68073         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
68074         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
68075         * modules/errno (configure.ac): Drop AC_REQUIRE.
68076         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
68077         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
68079 2009-05-04  Simon Josefsson  <simon@josefsson.org>
68081         * modules/glob-tests: New module.
68082         * tests/test-glob.c: Add.
68084 2009-05-04  Simon Josefsson  <simon@josefsson.org>
68086         * modules/fnmatch-tests: New module.
68087         * tests/test-fnmatch.c: Add.
68089 2009-05-04  Eric Blake  <ebb9@byu.net>
68091         maint: make the new no-submodule-changes rule VPATH-safe
68092         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
68094 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68095             Bruno Haible  <bruno@clisp.org>
68097         acl: Fix infinite loop on FreeBSD.
68098         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
68099         of return value from acl_get_entry.
68100         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
68101         Likewise.
68103 2009-05-03  Bruno Haible  <bruno@clisp.org>
68105         * lib/acl-internal.h (acl_entries): Clarify return value.
68106         * lib/acl_entries.c (acl_entries): Likewise.
68108 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68110         Bug fix in acl module.
68111         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
68113 2009-05-03  Bruno Haible  <bruno@clisp.org>
68115         Create gperf-generated file in the source dir, not in the build dir.
68116         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
68117         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
68118         * modules/unicase/locale-language (unicase/locale-languages.h):
68119         Likewise.
68120         * modules/unicase/special-casing (unicase/special-casing-table.h):
68121         Likewise.
68122         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
68123         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
68124         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
68125         Reported by Ralf Wildenhues.
68127 2009-05-03  Bruno Haible  <bruno@clisp.org>
68129         * modules/fnmatch (Description, configure.ac): Taken from
68130         fnmatch-posix.
68131         * modules/fnmatch-posix: Turn into a symbolic reference to the
68132         'fnmatch' module, and deprecate.
68133         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
68135 2009-05-03  Bruno Haible  <bruno@clisp.org>
68137         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
68138         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
68139         Reported by Ralf Wildenhues.
68141 2009-05-04  Simon Josefsson  <simon@josefsson.org>
68143         * m4/fnmatch.m4: Fix fnmatch re-define.
68145 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
68147         priv-set: new module and tests; adapt write-any-file
68148         * lib/priv-set.c: New file.
68149         * lib/priv-set.h: New file.
68150         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
68151         * lib/write-any-file.c: Simplify by using priv-set module.
68152         * m4/priv-set.m4: New file.
68153         * modules/priv-set: New file.
68154         * modules/unlinkdir: Add dependency on priv-set module.
68155         * modules/write-any-file: Likewise.
68157         Tests for module 'priv-set'.
68158         * modules/priv-set-tests: New file.
68159         * tests/test-priv-set.c: New file.
68161 2009-05-03  Jim Meyering  <meyering@redhat.com>
68162             Bruno Haible  <bruno@clisp.org>
68164         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
68165         use the converted UTF-8 variant of the name instead.
68167 2009-05-03  Jim Meyering  <meyering@redhat.com>
68169         tests: tighten some getdate tests
68170         * tests/test-getdate.c (main): Tighten tests: require equality,
68171         not just greater than.  Set TZ envvar to UTC0.
68173 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68175         getdate: correctly interpret "next monday" when run on a Monday
68176         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
68177         that e.g., "next tues" (when run on a tuesday) results in a date
68178         that is one week in the future, and not today's date.
68179         I.e., add a week when the wday is the same as the current one.
68180         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
68181         and earlier by Martin Bernreuther and Jan Minář.
68182         * tests/test-getdate.c (main): Check that "next DAY" is always in
68183         the future and that "last DAY" is always in the past.
68185 2009-05-02  Jim Meyering  <meyering@redhat.com>
68187         build: ensure that a release build fails when a submodule is unclean
68188         * top/maint.mk (no-submodule-changes): New rule.
68189         (alpha beta major): Depend on it.
68191 2009-05-02  Bruno Haible  <bruno@clisp.org>
68193         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
68194         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
68195         shell variable gl_fnmatch_required to detect which variant is
68196         requested.
68197         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
68198         gl_FUNC_FNMATCH_POSIX.
68199         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
68200         exclude fnmatch-posix.
68202 2009-05-02  Bruno Haible  <bruno@clisp.org>
68204         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
68205         * modules/mbsrtowcs (License): Change to LGPLv2+.
68206         * modules/strnlen1 (License): Likewise.
68207         Reported by Simon Josefsson.
68209 2009-05-02  Bruno Haible  <bruno@clisp.org>
68211         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
68212         "cross".
68213         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
68214         gnulib-tool was called with option --source-base=lib.
68216 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68218         Use automake *-local hooks without commands, for extensibility.
68219         * modules/localcharset (Makefile.am): Rename install-exec-local
68220         rule to install-exec-localcharset, and make it a prerequisite of
68221         install-exec-local.  Likewise, rename the uninstall-local rule to
68222         uninstall-localcharset, and make it a prerequisite of the former.
68224 2009-05-01  Bruno Haible  <bruno@clisp.org>
68226         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
68227         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68228         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
68229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
68230         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
68231         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68232         m4/locale-zh.m4, m4/codeset.m4.
68234         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
68235         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
68236         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
68237         m4/locale-zh.m4.
68239         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
68240         REPLACE_WCRTOMB if mbstate_t must be replaced.
68241         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
68242         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
68244 2009-05-01  Bruno Haible  <bruno@clisp.org>
68246         Avoid compiler warnings when redefining macros defined by <libintl.h>.
68247         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
68248         dngettext, dcngettext, textdomain, bindtextdomain,
68249         bind_textdomain_codeset): Undefine before redefining.
68251 2009-04-30  Bruno Haible  <bruno@clisp.org>
68253         Fix bug introduced on 2009-04-25.
68254         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
68255         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
68256         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
68257         is defined.
68258         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
68259         is defined.
68260         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
68261         is defined.
68262         Reported by Elbert_Pol <elbert.pol@gmail.com>.
68264 2009-04-28  Bruno Haible  <bruno@clisp.org>
68266         Comment tweaks.
68267         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
68268         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
68269         * lib/unicase.h (u*_casexfrm): Likewise.
68270         Reported by Paolo Bonzini.
68272 2009-04-28  Bruno Haible  <bruno@clisp.org>
68274         Fix a compilation error.
68275         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
68276         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
68277         Reported by Jim Meyering.
68279 2009-04-27  Bruno Haible  <bruno@clisp.org>
68281         New module 'libunistring'.
68282         * modules/libunistring: New file.
68283         * m4/libunistring.m4: New file.
68284         * MODULES.html.sh (Unicode string functions): Add it.
68286 2009-04-27  Eric Blake  <ebb9@byu.net>
68288         maint.mk: allow package-specific header to provide <config.h>
68289         * top/maint.mk (sc_require_config_h): New variable.
68290         (sc_require_config_h, sc_require_config_h_first): Use it.
68292 2009-04-27  Simon Josefsson  <simon@josefsson.org>
68294         * top/maint.mk (sc_avoid_if_before_free): Except
68295         useless-if-before-free script.
68297 2009-04-27  Eric Blake  <ebb9@byu.net>
68299         maintainer-makefile: depend on all required helper scripts
68300         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
68301         useless-if-before-free.
68302         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
68303         version, rather than assuming gnulib checkout is available.
68304         Reported by Simen Josefsson.
68306 2009-04-26  Bruno Haible  <bruno@clisp.org>
68308         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
68309         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
68310         "../" or "..".
68312 2009-04-26  Bruno Haible  <bruno@clisp.org>
68314         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
68315         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
68316         AC_LIB_HAVE_LINKFLAGS.
68318 2009-04-26  Bruno Haible  <bruno@clisp.org>
68320         Simplify calling convention of u*_conv_from_encoding.
68321         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
68322         u32_conv_from_encoding): Expect a resultbuf argument and return the
68323         result directly as a pointer.
68324         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
68325         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
68326         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
68327         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
68328         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
68329         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68330         Update.
68331         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
68332         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
68333         * lib/vasnprintf.c (VASNPRINTF): Update.
68334         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
68335         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
68336         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
68337         * NEWS: Mention the change.
68339 2009-04-26  Bruno Haible  <bruno@clisp.org>
68341         Simplify calling convention of u*_conv_to_encoding.
68342         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68343         u32_conv_to_encoding): Expect a resultbuf argument and return the
68344         result directly as a pointer.
68345         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68346         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
68347         freeing scaled_offsets if mem_iconveha failed.
68348         * lib/unicase/u-casexfrm.h (FUNC): Update.
68349         * lib/uninorm/u-normxfrm.h (FUNC): Update.
68350         * lib/vasnprintf.c (VASNPRINTF): Update.
68351         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
68352         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
68353         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
68354         * NEWS: Mention the change.
68356 2009-04-26  Bruno Haible  <bruno@clisp.org>
68358         Avoid test failures on AIX and OSF/1.
68359         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
68360         malloc(0).
68361         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
68362         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
68363         Likewise.
68364         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
68365         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
68366         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
68367         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
68368         * doc/posix-functions/malloc.texi: Document the portability problem
68369         related to malloc(0).
68371 2009-04-26  Bruno Haible  <bruno@clisp.org>
68373         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
68374         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
68375         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
68377 2009-04-25  Bruno Haible  <bruno@clisp.org>
68379         Avoid link error when creating a namespace clean library.
68380         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
68381         as macro with arguments if already defined as an alias.
68382         * lib/signbitf.c (gl_signbitf): Don't undefine.
68383         * lib/signbitd.c (gl_signbitd): Don't undefine.
68384         * lib/signbitl.c (gl_signbitl): Don't undefine.
68386 2009-04-25  Jim Meyering  <meyering@redhat.com>
68388         vc-list-files: fix another quoting bug
68389         * build-aux/vc-list-files: Avoid sed backslash expansion
68390         of pathological directory names.
68392 2009-04-25  Eric Blake  <ebb9@byu.net>
68394         vc-list-files: fix shell quoting error
68395         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
68396         timestamp.
68398 2009-04-25  Jim Meyering  <meyering@redhat.com>
68400         vc-list-files: restore lost functionality with subdir argument
68401         * build-aux/vc-list-files: When given a non-"." sub-directory
68402         argument, substitute the $dir/ prefix back onto each resulting name.
68403         Otherwise, coreutils' root_tests check would fail.
68405 2009-04-24  Eric Blake  <ebb9@byu.net>
68407         vc-list-files: ignore git symlinks
68408         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
68409         than ls-files, to ignore git symlinks.
68411         maint.mk: import improvements from m4
68412         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
68413         (move_if_change): Delete unused macro.
68414         (news-date-check, vc-diff-check): Support VPATH builds.
68415         (announcement): Likewise.  Split --bootstrap-tools list...
68416         (boostrap-tools): ...into separate list, which can be overridden
68417         in cfg.mk.
68418         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
68419         requiring dependency on useless-if-before-free module.
68420         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
68421         Support VPATH builds.
68423 2009-04-24  Jim Meyering  <meyering@redhat.com>
68425         maint.mk: remove coreutils-specific rules and variables
68426         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
68427         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
68428         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
68430         maint.mk: remove obsolete rule
68431         * top/maint.mk (rel-check): Remove rule.
68432         (WGET, WGETFLAGS): Remove now-unused variables.
68434 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68436         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
68437         consistency.
68439         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
68440         '$(PATH_SEPARATOR)' instead of ':'.
68442 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68444         * lib/getopt1.c (main): Use 'const' for static array.
68446 2009-04-24  Simon Josefsson  <simon@josefsson.org>
68448         * top/maint.mk: Sync with coreutils.
68449         * NEWS: Explain incompatibilities.
68451 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68452             Bruno Haible  <bruno@clisp.org>
68454         Fix cross-compilation results.
68455         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
68456         statement, as third argument of AC_TRY_RUN.
68457         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
68458         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
68459         Likewise.
68460         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
68461         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
68462         Likewise.
68463         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
68464         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
68465         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
68467 2009-04-20  Bruno Haible  <bruno@clisp.org>
68469         Avoid test failure on mingw.
68470         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
68472 2009-04-20  Bruno Haible  <bruno@clisp.org>
68474         Avoid compilation error on mingw.
68475         * modules/localename-tests (Depends-on): Add locale.
68477 2009-04-19  Bruno Haible  <bruno@clisp.org>
68479         Support for building a shared library on Windows platforms.
68480         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
68481         (main): Test the presence of UNINORM_NFC here.
68482         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
68483         (main): Test the presence of UNINORM_NFD here.
68484         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
68485         (main): Test the presence of UNINORM_NFKC here.
68486         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
68487         (main): Test the presence of UNINORM_NFKD here.
68489 2009-04-19  Bruno Haible  <bruno@clisp.org>
68491         Avoid a compiler warning.
68492         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
68493         Change type of variable 'sequence'.
68495 2009-04-19  Bruno Haible  <bruno@clisp.org>
68497         * modules/configmake (Makefile.am): When the contents of configmake.h
68498         does not change, arrange to preserve its modification time.
68500 2009-04-17  Simon Josefsson  <simon@josefsson.org>
68502         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
68503         gettext domain.
68505 2009-04-16  Jim Meyering  <meyering@redhat.com>
68507         useless-if-before-free: improve conversion code
68508         * build-aux/useless-if-before-free: Adjust code-in-comment to match
68509         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
68511 2009-04-14  Bruno Haible  <bruno@clisp.org>
68513         * modules/fcntl (Depends-on): Add extensions.
68514         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
68516 2009-04-12  Ben Pfaff  <blp@gnu.org>
68518         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
68519         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
68521 2009-03-20  Ben Pfaff  <blp@gnu.org>
68523         Make rename replace existing destinations on Windows.
68524         * m4/rename.m4: Add test for Mingw.
68525         * lib/rename.c: Add rename replacement that uses MoveFileEx with
68526         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
68527         * doc/posix-functions/rename.texi: Document.
68529 2009-04-10  Bruno Haible  <bruno@clisp.org>
68531         New include file "iconveh.h".
68532         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
68533         * lib/striconveh.h: Include it.
68534         (enum iconv_ilseq_handler): Remove definition.
68535         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
68536         striconveh.h.
68537         * lib/striconveha.c: Include striconveh.h.
68538         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
68539         * modules/striconveh (Files): Add lib/iconveh.h.
68540         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
68541         lib/striconveh.h.
68543 2009-04-10  Bruno Haible  <bruno@clisp.org>
68545         * lib/uniconv.h: Update comment.
68547 2009-04-10  Bruno Haible  <bruno@clisp.org>
68549         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
68550         always.
68551         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
68552         * lib/unistr/u16-mbtouc-aux.c: Likewise.
68553         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
68554         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
68555         "unistring-notinline.h", so that the function gets defined always.
68556         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
68557         * lib/unistr/u8-uctomb.c: Likewise.
68558         * lib/unistr/u16-mbtouc.c: Likewise.
68559         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
68560         * lib/unistr/u16-uctomb.c: Likewise.
68561         * lib/unistr/u32-mbtouc.c: Likewise.
68562         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
68563         * lib/unistr/u32-uctomb.c: Likewise.
68565 2009-04-10  Bruno Haible  <bruno@clisp.org>
68567         Mark 'utime' obsolete.
68568         * modules/utime (Status, Notice): New sections.
68569         Suggested by Jim Meyering.
68571         Fix cross-compile guess for utime test.
68572         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
68573         autoconf.
68574         * doc/posix-functions/utime.texi: Give more precisions.
68575         Reported by Jan <ipif@ymail.com>.
68577 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
68579         filevercmp: correct today's change
68580         * lib/filevercmp.c: Also handle coreutils' test inputs.
68581         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
68583         Fix regression in 'filevercmp' module. Thanks Sven Joachim
68584         for reporting it.
68585         * lib/filevercmp.c: Special handle for "", "." and "..".
68586         * tests/test-filevercmp.c: Enlarge the set suite.
68588 2009-04-07  Jim Meyering  <meyering@redhat.com>
68590         useless-if-before-free: show how to remove braced useless free, too
68591         * build-aux/useless-if-before-free: still only in a comment, though.
68593 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
68595         maint.mk: import changes to syntax-check macros from coreutils
68596         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
68597         Use them in the relevant macros.
68599 2009-04-06  Bruno Haible  <bruno@clisp.org>
68601         Fix unportable use of bit-fields.
68602         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
68603         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
68604         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
68606 2009-04-06  Bruno Haible  <bruno@clisp.org>
68608         Avoid test failures on AIX and OSF/1.
68609         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
68610         that malloc(0) = NULL.
68611         * tests/unicase/test-u8-tolower.c (check): Likewise.
68612         * tests/unicase/test-u8-totitle.c (check): Likewise.
68613         * tests/unicase/test-u8-toupper.c (check): Likewise.
68614         * tests/unicase/test-u16-casefold.c (check): Likewise.
68615         * tests/unicase/test-u16-tolower.c (check): Likewise.
68616         * tests/unicase/test-u16-totitle.c (check): Likewise.
68617         * tests/unicase/test-u16-toupper.c (check): Likewise.
68618         * tests/unicase/test-u32-casefold.c (check): Likewise.
68619         * tests/unicase/test-u32-tolower.c (check): Likewise.
68620         * tests/unicase/test-u32-totitle.c (check): Likewise.
68621         * tests/unicase/test-u32-toupper.c (check): Likewise.
68622         * tests/uninorm/test-u8-nfc.c (check): Likewise.
68623         * tests/uninorm/test-u8-nfd.c (check): Likewise.
68624         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
68625         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
68626         * tests/uninorm/test-u16-nfc.c (check): Likewise.
68627         * tests/uninorm/test-u16-nfd.c (check): Likewise.
68628         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
68629         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
68630         * tests/uninorm/test-u32-nfc.c (check): Likewise.
68631         * tests/uninorm/test-u32-nfd.c (check): Likewise.
68632         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
68633         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
68635 2009-04-05  Bruno Haible  <bruno@clisp.org>
68637         Work around an autoconf limitation.
68638         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
68639         comment line if it would be longer than 3 KB.
68641 2009-04-05  Bruno Haible  <bruno@clisp.org>
68643         Avoid test failure with libiconv-1.13.
68644         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
68645         of the expected test results.
68647 2009-04-05  Bruno Haible  <bruno@clisp.org>
68649         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
68650         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
68651         that it should be installed.
68653 2009-04-05  Bruno Haible  <bruno@clisp.org>
68655         * gnulib-tool: New option --copy-file.
68656         (func_usage): Document it.
68657         (func_dest_tmpfilename): Moved out of func_import.
68658         (func_add_file, func_update_file): New functions, extracted from
68659         func_import.
68660         (func_import): Update.
68662 2009-04-05  Karl Berry  <karl@gnu.org>
68664         * README: prominently mention gnulib-tool.
68665         Rearrange sections so getting the code is near the top.
68667 2009-04-05  Bruno Haible  <bruno@clisp.org>
68669         * lib/unicase.h: Mention u*_cmp2.
68670         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68671         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
68672         * lib/unicase/ulc-casecmp.c: Likewise.
68673         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
68674         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
68675         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
68676         unistr/u8-cmp.
68677         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
68678         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
68679         unistr/u16-cmp.
68680         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
68681         unistr/u32-cmp.
68683         * lib/uninorm.h: Mention u*_cmp2.
68684         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
68685         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
68686         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
68687         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
68688         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
68689         unistr/u8-cmp.
68690         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
68691         unistr/u16-cmp.
68692         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
68693         unistr/u32-cmp.
68695         New module 'unistr/u32-cmp2'.
68696         * lib/unistr/u32-cmp2.c: New file.
68697         * modules/unistr/u32-cmp2: New file.
68699         New module 'unistr/u16-cmp2'.
68700         * lib/unistr/u16-cmp2.c: New file.
68701         * modules/unistr/u16-cmp2: New file.
68703         New module 'unistr/u8-cmp2'.
68704         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
68705         * lib/unistr/u8-cmp2.c: New file.
68706         * lib/unistr/u-cmp2.h: New file.
68707         * modules/unistr/u8-cmp2: New file.
68709 2009-04-05  Bruno Haible  <bruno@clisp.org>
68711         * lib/unictype.h (uc_property_is_valid): New macro.
68712         * tests/unictype/test-pr_byname.c (main): Use it.
68714         * lib/unistr.h: Doc fixes.
68715         * lib/uniconv.h: Doc fixes.
68716         * lib/unictype.h: Doc fixes.
68718 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
68720         Port coreutils 7.2 to Solaris 8.
68722         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
68723         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
68724         for Solaris 8.  This is a bit of a hack, as it means it's the
68725         caller's responsibility to add -lnsl if needed, but most likely it
68726         won't be needed since only getaddrinfo uses this and getaddrinfo
68727         isn't needed on Solaris 8.
68729         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
68730         problem to Solaris 8 encountered with coreutils 7.2, which
68731         resulted in a message "fnmatch.c:292: warning: passing argument 4
68732         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
68733         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
68735 2009-04-03  Simon Josefsson  <simon@josefsson.org>
68737         * m4/ld-version-script.m4: Add FIXME comment.
68739 2009-04-02  Simon Josefsson  <simon@josefsson.org>
68741         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
68742         SOVERSION variable.
68744 2009-04-02  Bruno Haible  <bruno@clisp.org>
68746         * Makefile (info, html, dvi, pdf): Combine the rules.
68747         Suggested by Jim Meyering.
68749 2009-04-01  Bruno Haible  <bruno@clisp.org>
68751         * Makefile (info, html, dvi, pdf): New targets.
68752         Reported by Reuben Thomas <rrt@sc3d.org>.
68754 2009-04-01  Bruno Haible  <bruno@clisp.org>
68756         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
68757         can be put into PATH.
68758         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
68760 2009-04-01  Bruno Haible  <bruno@clisp.org>
68762         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
68764 2009-04-01  Bruno Haible  <bruno@clisp.org>
68766         Rename module 'visibility'.
68767         * modules/lib-symbol-visibility: Renamed from modules/visibility.
68768         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
68769         * doc/gnulib.texi: Update.
68770         * MODULES.html.sh (Misc): Update.
68771         * NEWS: Mention the change.
68773 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68775         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
68776         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
68777         Eric Blake <ebb9@byu.net> for review.
68778         * MODULES.html.sh: Add lib-msvc-compat.
68779         * doc/gnulib.texi: Link to new section.
68780         * m4/ld-output-def.m4: New file.
68781         * doc/ld-output-def.texi: New file.
68783 2009-04-01  Simon Josefsson  <simon@josefsson.org>
68785         Rename ld-version-script to lib-symbol-versions.  Suggested by
68786         Bruno Haible <bruno@clisp.org>.
68787         * modules/ld-version-script: Renamed to lib-symbol-versions.
68788         * doc/ld-version-script.texi: Fix module name.
68789         * MODULES.html.sh: Add lib-symbol-versions.
68791 2009-03-31  Simon Josefsson  <simon@josefsson.org>
68793         * modules/u64-tests: New file.
68794         * tests/test-u64.c: New file.
68796 2009-03-04  Simon Josefsson  <simon@josefsson.org>
68798         * MODULES.html.sh: Mention u64.
68799         * modules/u64: New module.
68800         * modules/crypto/sha512: Depend on u64 module instead of providing
68801         u64.h.
68803 2009-03-27  Eric Blake  <ebb9@byu.net>
68805         test-strerror: make debugging EAI_SYSTEM easier
68806         * modules/getaddrinfo-tests (Depends-on): Add strerror.
68807         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
68808         failure was EAI_SYSTEM.
68810 2009-03-25  Bruno Haible  <bruno@clisp.org>
68812         Fix a problem with --enable-relocatable on Solaris 7.
68813         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
68814         since 2008-02-24.
68816 2009-03-25  Eric Blake  <ebb9@byu.net>
68818         test-sockets: avoid gcc warning
68819         * tests/test-sockets.c (main): Silence compiler warning.
68821 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68823         New modules nproc, pthread, contributed by Glen Lenker.
68825         * MODULES.html.sh: Add pthread, nproc.
68826         * lib/nproc.c: New file.
68827         * lib/nproc.h: New file.
68828         * lib/pthread.in.h: New file.
68829         * m4/pthread.m4: New file.
68830         * modules/nproc: New file.
68831         * modules/pthread: New file.
68833 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68835         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
68836         New variable.
68838 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
68840         filevercmp: handle simple~ and numbered.~3~ backup suffixes
68841         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
68842         * tests/test-filevercmp.c: Add tests for backup suffixes.
68844 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68846         * modules/stdlib (Depends-on): Add stdint, needed when defining
68847         struct random_data on, for example, HP-UX 10.20.  Reported by
68848         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
68850 2009-03-24  Simon Josefsson  <simon@josefsson.org>
68852         * lib/readline.c (readline): Call fflush on stdout after printing
68853         prompt.
68855 2009-03-20  Bruno Haible  <bruno@clisp.org>
68857         Remove dependency from 'close' module to -lws2_32 on native Windows.
68858         * lib/close-hook.h: New file.
68859         * lib/close-hook.c: New file.
68860         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
68861         w32sock.h.
68862         (_gl_close_fd_maybe_socket): Remove function.
68863         (rpl_close): Invoke execute_all_close_hooks instead of
68864         _gl_close_fd_maybe_socket.
68865         * lib/sockets.c: Include close-hook.h, w32sock.h.
68866         (close_fd_maybe_socket): New function, essentially from lib/close.c.
68867         (close_sockets_hook): New variable.
68868         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
68869         (gl_sockets_cleanup): Unregister it.
68870         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
68871         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
68872         * modules/close-hook: New file.
68873         * modules/close (Files): Remove lib/w32sock.h.
68874         (Depends-on): Add close-hook.
68875         (Link): Remove section.
68876         * modules/sockets (Files): Add lib/w32sock.h.
68877         (Depends-on): Add close-hook.
68878         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
68879         invocation.
68880         * NEWS: Mention that LIB_CLOSE is gone.
68882 2009-03-23  Eric Blake  <ebb9@byu.net>
68884         signal-tests: test previous patch
68885         * tests/test-signal.c: New file.
68886         * modules/signal-tests: Likewise.
68888         signal.h: always support 'volatile sig_atomic_t'
68889         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
68890         (gl_SIGNAL_H_DEFAULTS): Add a default.
68891         * modules/signal (Makefile.am): Substitute if needed.
68892         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
68893         users can blindly add volatile.
68894         * doc/posix-headers/signal.texi (signal.h): Document it.
68895         Reported by Matthew Woehlke.
68897 2009-03-23  Jim Meyering  <meyering@redhat.com>
68899         pathmax: PATH_MAX: use pathconf only when available
68900         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
68901         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
68902         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
68903         This avoids a link failure in a PSP cross-compilation environment
68904         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
68906         * lib/vasnprintf.c (divide): Fix typo in comment.
68908 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68910         * gnulib-tool (func_filter_filelist): Fix comment.
68912 2009-03-20  Bruno Haible  <bruno@clisp.org>
68914         Make sockets.h self-contained.
68915         * lib/sockets.c: Include sockets.h first.
68916         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
68918 2009-03-19  Eric Blake  <ebb9@byu.net>
68920         doc: mention more functions added in cygwin 1.7.0
68921         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
68922         addition.
68923         * doc/posix-functions/log2f.texi: Likewise.
68925 2009-03-19  Jim Meyering  <meyering@redhat.com>
68927         fsusage: avoid syntax error due to statement-before-declaration
68928         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
68929         after all declarations.  Reported by Matthew Woehlke in
68930         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
68932 2009-03-18  Eric Blake  <ebb9@byu.net>
68934         build-aux/compile: sync from automake
68935         * build-aux/compile: New file, from automake.
68936         * config/srclist.txt: Mention build-aux/compile.
68938 2009-03-17  Bruno Haible  <bruno@clisp.org>
68940         * lib/git-merge-changelog.c: Fix typo in comment.
68941         Reported by Reuben Thomas <rrt@sc3d.org>.
68943 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
68945         * m4/regex.m4: update and improve help for
68946         --without-included-regex.
68948 2009-03-17  Simon Josefsson  <simon@josefsson.org>
68950         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
68951         failure on missing include files.
68953 2009-03-17  Eric Blake  <ebb9@byu.net>
68955         doc: mention more functions added in cygwin 1.7.0
68956         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
68957         addition.
68958         * doc/posix-functions/fwscanf.texi: Likewise.
68959         * doc/posix-functions/swprintf.texi: Likewise.
68960         * doc/posix-functions/swscanf.texi: Likewise.
68961         * doc/posix-functions/vfwprintf.texi: Likewise.
68962         * doc/posix-functions/vfwscanf.texi: Likewise.
68963         * doc/posix-functions/vswprintf.texi: Likewise.
68964         * doc/posix-functions/vswscanf.texi: Likewise.
68965         * doc/posix-functions/vwprintf.texi: Likewise.
68966         * doc/posix-functions/vwscanf.texi: Likewise.
68967         * doc/posix-functions/wcscasecmp.texi: Likewise.
68968         * doc/posix-functions/wcsdup.texi: Likewise.
68969         * doc/posix-functions/wcsftime.texi: Likewise.
68970         * doc/posix-functions/wcsncasecmp.texi: Likewise.
68971         * doc/posix-functions/wprintf.texi: Likewise.
68972         * doc/posix-functions/wscanf.texi: Likewise.
68973         * doc/glibc-functions/gethostbyname2.texi: Likewise.
68975 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68977         maint.mk: really add $(AM_MAKEFLAGS)
68978         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
68979         was inadvertently omitted in the last commit.
68980         Spotted by Bruno Haible.
68982         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
68983         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
68984         $(AM_MAKEFLAGS)' rather than plain `make'.
68986         gnulib-tool: execute $MAKE not make
68987         * gnulib-tool: Default $MAKE to 'make'.
68988         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
68989         than make.  Initialize $MAKE in the do-autobuild script.
68991         gnulib-tool: use $MAKE not make in generated files
68992         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
68993         make, in generated files.  Initialize $MAKE in the do-autobuild
68994         script.
68996         * top/GNUmakefile (_have-git-version-gen): Fix typo.
68998         GNUmakefile: disable parallelism only for multiple, recursive targets
68999         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
69000         additions in the Makefile.
69001         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
69002         by Automake.
69003         (.NOTPARALLEL): Only disable parallel builds if multiple targets
69004         are listed on the command line and at least one of them is
69005         listed in $(ALL_RECURSIVE_TARGETS).
69007 2009-03-14  Bruno Haible  <bruno@clisp.org>
69009         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
69010         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
69011         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
69012         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
69013         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
69014         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
69015         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
69016         unistr/u8-uctomb.
69017         * modules/unistr/u8-strchr (Depends-on): Likewise.
69018         * modules/unistr/u8-strrchr (Depends-on): Likewise.
69019         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
69020         unistr/u16-uctomb.
69021         * modules/unistr/u16-strchr (Depends-on): Likewise.
69022         * modules/unistr/u16-strrchr (Depends-on): Likewise.
69024 2009-03-12  Bruno Haible  <bruno@clisp.org>
69026         Work around select() bug on Interix 3.5.
69027         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
69028         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
69029         * m4/select.m4: New file.
69030         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
69031         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
69032         * modules/select (Files): Add m4/select.m4.
69033         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
69034         * modules/nanosleep (Depends-on): Add select.
69035         * modules/poll (Depends-on): Likewise.
69036         * doc/posix-functions/select.texi: Mention the Interix bug.
69037         Reported by Markus Duft <mduft@gentoo.org>.
69039         * lib/select.c: Renamed from lib/winsock-select.c.
69040         * modules/select (Files): Add lib/select.c, remove
69041         lib/winsock-select.c.
69042         (configure.ac): Update.
69044 2009-03-12  Jim Meyering  <meyering@redhat.com>
69046         avoid gcc warnings about unused macro definitions
69047         * lib/readtokens.c (STREQ): Remove unused definition.
69048         * lib/xmalloc.c (SIZE_MAX): Likewise.
69049         * lib/openat-die.c (N_): Likewise.
69050         * lib/mountlist.c (SIZE_MAX): Remove definition.
69051         Instead, include <stdint.h>.
69052         * lib/readutmp.c: Likewise.
69053         * modules/readutmp (Depends-on): Add stdint.
69054         * modules/mountlist (Depends-on): Add stdint.
69055         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
69057 2009-03-10  Bruno Haible  <bruno@clisp.org>
69059         Tests for module 'mbmemcasecoll'.
69060         * modules/mbmemcasecoll-tests: New file.
69061         * tests/test-mbmemcasecoll1.sh: New file.
69062         * tests/test-mbmemcasecoll2.sh: New file.
69063         * tests/test-mbmemcasecoll3.sh: New file.
69064         * tests/test-mbmemcasecoll.c: New file.
69066         New module 'mbmemcasecoll'.
69067         * lib/mbmemcasecoll.h: New file.
69068         * lib/mbmemcasecoll.c: New file.
69069         * modules/mbmemcasecoll: New file.
69071         * tests/test-mbmemcasecmp.h: New file, extracted from
69072         tests/test-mbmemcasecmp.c.
69073         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
69074         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
69075         (main): Update.
69076         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
69078 2009-03-09  Bruno Haible  <bruno@clisp.org>
69080         Tests for module 'mbmemcasecmp'.
69081         * modules/mbmemcasecmp-tests: New file.
69082         * tests/test-mbmemcasecmp1.sh: New file.
69083         * tests/test-mbmemcasecmp2.sh: New file.
69084         * tests/test-mbmemcasecmp3.sh: New file.
69085         * tests/test-mbmemcasecmp.c: New file.
69087         New module 'mbmemcasecmp'.
69088         * lib/mbmemcasecmp.h: New file.
69089         * lib/mbmemcasecmp.c: New file.
69090         * modules/mbmemcasecmp: New file.
69092 2009-03-09  Bruno Haible  <bruno@clisp.org>
69094         Tests for module 'unicase/ulc-casecoll'.
69095         * modules/unicase/ulc-casecoll-tests: New file.
69096         * tests/unicase/test-ulc-casecoll1.sh: New file.
69097         * tests/unicase/test-ulc-casecoll2.sh: New file.
69098         * tests/unicase/test-ulc-casecoll.c: New file.
69100         New module 'unicase/ulc-casecoll'.
69101         * lib/unicase.h (ulc_casecoll): New declaration.
69102         * lib/unicase/ulc-casecoll.c: New file.
69103         * modules/unicase/ulc-casecoll: New file.
69105         New module 'unicase/ulc-casexfrm'.
69106         * lib/unicase.h (ulc_casexfrm): New declaration.
69107         * lib/unicase/ulc-casexfrm.c: New file.
69108         * modules/unicase/ulc-casexfrm: New file.
69110 2009-03-09  Bruno Haible  <bruno@clisp.org>
69112         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
69113         invocations.
69115         * m4/mbscasecmp.m4: Remove file.
69116         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
69117         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
69119         * m4/mbscasestr.m4: Remove file.
69120         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
69121         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
69123         * m4/mbschr.m4: Remove file.
69124         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
69125         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
69127         * m4/mbscspn.m4: Remove file.
69128         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
69129         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
69131         * m4/mbslen.m4: Remove file.
69132         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
69133         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
69135         * m4/mbsncasecmp.m4: Remove file.
69136         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
69137         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
69139         * m4/mbsnlen.m4: Remove file.
69140         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
69141         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
69143         * m4/mbspbrk.m4: Remove file.
69144         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
69145         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
69147         * m4/mbspcasecmp.m4: Remove file.
69148         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
69149         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
69151         * m4/mbsrchr.m4: Remove file.
69152         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
69153         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
69155         * m4/mbssep.m4: Remove file.
69156         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
69157         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
69159         * m4/mbsspn.m4: Remove file.
69160         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
69161         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
69163         * m4/mbsstr.m4: Remove file.
69164         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
69165         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
69167         * m4/mbstok_r.m4: Remove file.
69168         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
69169         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
69171         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
69173         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
69174         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
69176         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
69178 2009-03-08  Bruno Haible  <bruno@clisp.org>
69180         Tests for module 'unicase/ulc-casecmp'.
69181         * modules/unicase/ulc-casecmp-tests: New file.
69182         * tests/unicase/test-ulc-casecmp1.sh: New file.
69183         * tests/unicase/test-ulc-casecmp2.sh: New file.
69184         * tests/unicase/test-ulc-casecmp.c: New file.
69186         New module 'unicase/ulc-casecmp'.
69187         * lib/unicase.h (ulc_casecmp): New declaration.
69188         * lib/unicase/ulc-casecmp.c: New file.
69189         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
69190         'const SRC_UNIT *'.
69191         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
69192         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
69193         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
69194         * modules/unicase/ulc-casecmp: New file.
69196         Tests for module 'unicase/u32-is-cased'.
69197         * modules/unicase/u32-is-cased-tests: New file.
69198         * tests/unicase/test-u32-is-cased.c: New file.
69200         Tests for module 'unicase/u16-is-cased'.
69201         * modules/unicase/u16-is-cased-tests: New file.
69202         * tests/unicase/test-u16-is-cased.c: New file.
69204         Tests for module 'unicase/u8-is-cased'.
69205         * modules/unicase/u8-is-cased-tests: New file.
69206         * tests/unicase/test-u8-is-cased.c: New file.
69207         * tests/unicase/test-is-cased.h: New file.
69209         New module 'unicase/u32-is-cased'.
69210         * lib/unicase/u32-is-cased.c: New file.
69211         * modules/unicase/u32-is-cased: New file.
69213         New module 'unicase/u16-is-cased'.
69214         * lib/unicase/u16-is-cased.c: New file.
69215         * modules/unicase/u16-is-cased: New file.
69217         New module 'unicase/u8-is-cased'.
69218         * lib/unicase/u8-is-cased.c: New file.
69219         * lib/unicase/u-is-cased.h: New file.
69220         * modules/unicase/u8-is-cased: New file.
69222         Tests for module 'unicase/u32-is-casefolded'.
69223         * modules/unicase/u32-is-casefolded-tests: New file.
69224         * tests/unicase/test-u32-is-casefolded.c: New file.
69226         Tests for module 'unicase/u16-is-casefolded'.
69227         * modules/unicase/u16-is-casefolded-tests: New file.
69228         * tests/unicase/test-u16-is-casefolded.c: New file.
69230         Tests for module 'unicase/u8-is-casefolded'.
69231         * modules/unicase/u8-is-casefolded-tests: New file.
69232         * tests/unicase/test-u8-is-casefolded.c: New file.
69233         * tests/unicase/test-is-casefolded.h: New file.
69235         New module 'unicase/u32-is-casefolded'.
69236         * lib/unicase/u32-is-casefolded.c: New file.
69237         * modules/unicase/u32-is-casefolded: New file.
69239         New module 'unicase/u16-is-casefolded'.
69240         * lib/unicase/u16-is-casefolded.c: New file.
69241         * modules/unicase/u16-is-casefolded: New file.
69243         New module 'unicase/u8-is-casefolded'.
69244         * lib/unicase/u8-is-casefolded.c: New file.
69245         * modules/unicase/u8-is-casefolded: New file.
69247         Tests for module 'unicase/u32-is-titlecase'.
69248         * modules/unicase/u32-is-titlecase-tests: New file.
69249         * tests/unicase/test-u32-is-titlecase.c: New file.
69251         Tests for module 'unicase/u16-is-titlecase'.
69252         * modules/unicase/u16-is-titlecase-tests: New file.
69253         * tests/unicase/test-u16-is-titlecase.c: New file.
69255         Tests for module 'unicase/u8-is-titlecase'.
69256         * modules/unicase/u8-is-titlecase-tests: New file.
69257         * tests/unicase/test-u8-is-titlecase.c: New file.
69258         * tests/unicase/test-is-titlecase.h: New file.
69260         New module 'unicase/u32-is-titlecase'.
69261         * lib/unicase/u32-is-titlecase.c: New file.
69262         * modules/unicase/u32-is-titlecase: New file.
69264         New module 'unicase/u16-is-titlecase'.
69265         * lib/unicase/u16-is-titlecase.c: New file.
69266         * modules/unicase/u16-is-titlecase: New file.
69268         New module 'unicase/u8-is-titlecase'.
69269         * lib/unicase/u8-is-titlecase.c: New file.
69270         * modules/unicase/u8-is-titlecase: New file.
69272         Tests for module 'unicase/u32-is-lowercase'.
69273         * modules/unicase/u32-is-lowercase-tests: New file.
69274         * tests/unicase/test-u32-is-lowercase.c: New file.
69276         Tests for module 'unicase/u16-is-lowercase'.
69277         * modules/unicase/u16-is-lowercase-tests: New file.
69278         * tests/unicase/test-u16-is-lowercase.c: New file.
69280         Tests for module 'unicase/u8-is-lowercase'.
69281         * modules/unicase/u8-is-lowercase-tests: New file.
69282         * tests/unicase/test-u8-is-lowercase.c: New file.
69283         * tests/unicase/test-is-lowercase.h: New file.
69285         New module 'unicase/u32-is-lowercase'.
69286         * lib/unicase/u32-is-lowercase.c: New file.
69287         * modules/unicase/u32-is-lowercase: New file.
69289         New module 'unicase/u16-is-lowercase'.
69290         * lib/unicase/u16-is-lowercase.c: New file.
69291         * modules/unicase/u16-is-lowercase: New file.
69293         New module 'unicase/u8-is-lowercase'.
69294         * lib/unicase/u8-is-lowercase.c: New file.
69295         * modules/unicase/u8-is-lowercase: New file.
69297         Tests for module 'unicase/u32-is-uppercase'.
69298         * modules/unicase/u32-is-uppercase-tests: New file.
69299         * tests/unicase/test-u32-is-uppercase.c: New file.
69301         Tests for module 'unicase/u16-is-uppercase'.
69302         * modules/unicase/u16-is-uppercase-tests: New file.
69303         * tests/unicase/test-u16-is-uppercase.c: New file.
69305         Tests for module 'unicase/u8-is-uppercase'.
69306         * modules/unicase/u8-is-uppercase-tests: New file.
69307         * tests/unicase/test-u8-is-uppercase.c: New file.
69308         * tests/unicase/test-is-uppercase.h: New file.
69310         New module 'unicase/u32-is-uppercase'.
69311         * lib/unicase/u32-is-uppercase.c: New file.
69312         * modules/unicase/u32-is-uppercase: New file.
69314         New module 'unicase/u16-is-uppercase'.
69315         * lib/unicase/u16-is-uppercase.c: New file.
69316         * modules/unicase/u16-is-uppercase: New file.
69318         New module 'unicase/u8-is-uppercase'.
69319         * lib/unicase/u8-is-uppercase.c: New file.
69320         * modules/unicase/u8-is-uppercase: New file.
69322         New module 'unicase/u32-is-invariant'.
69323         * lib/unicase/u32-is-invariant.c: New file.
69324         * modules/unicase/u32-is-invariant: New file.
69326         New module 'unicase/u16-is-invariant'.
69327         * lib/unicase/u16-is-invariant.c: New file.
69328         * modules/unicase/u16-is-invariant: New file.
69330         New module 'unicase/u8-is-invariant'.
69331         * lib/unicase/u8-is-invariant.c: New file.
69332         * lib/unicase/invariant.h: New file.
69333         * lib/unicase/u-is-invariant.h: New file.
69334         * modules/unicase/u8-is-invariant: New file.
69336         Tests for module 'unicase/u32-casecoll'.
69337         * modules/unicase/u32-casecoll-tests: New file.
69338         * tests/unicase/test-u32-casecoll.c: New file.
69340         Tests for module 'unicase/u16-casecoll'.
69341         * modules/unicase/u16-casecoll-tests: New file.
69342         * tests/unicase/test-u16-casecoll.c: New file.
69344         Tests for module 'unicase/u8-casecoll'.
69345         * modules/unicase/u8-casecoll-tests: New file.
69346         * tests/unicase/test-u8-casecoll.c: New file.
69348         New module 'unicase/u32-casecoll'.
69349         * lib/unicase/u32-casecoll.c: New file.
69350         * modules/unicase/u32-casecoll: New file.
69352         New module 'unicase/u16-casecoll'.
69353         * lib/unicase/u16-casecoll.c: New file.
69354         * modules/unicase/u16-casecoll: New file.
69356         New module 'unicase/u8-casecoll'.
69357         * lib/unicase/u8-casecoll.c: New file.
69358         * lib/unicase/u-casecoll.h: New file.
69359         * modules/unicase/u8-casecoll: New file.
69361         New module 'unicase/u32-casexfrm'.
69362         * lib/unicase/u32-casexfrm.c: New file.
69363         * modules/unicase/u32-casexfrm: New file.
69365         New module 'unicase/u16-casexfrm'.
69366         * lib/unicase/u16-casexfrm.c: New file.
69367         * modules/unicase/u16-casexfrm: New file.
69369         New module 'unicase/u8-casexfrm'.
69370         * lib/unicase/u8-casexfrm.c: New file.
69371         * lib/unicase/u-casexfrm.h: New file.
69372         * modules/unicase/u8-casexfrm: New file.
69374         Tests for module 'unicase/u32-casecmp'.
69375         * modules/unicase/u32-casecmp-tests: New file.
69376         * tests/unicase/test-u32-casecmp.c: New file.
69378         Tests for module 'unicase/u16-casecmp'.
69379         * modules/unicase/u16-casecmp-tests: New file.
69380         * tests/unicase/test-u16-casecmp.c: New file.
69382         Tests for module 'unicase/u8-casecmp'.
69383         * modules/unicase/u8-casecmp-tests: New file.
69384         * tests/unicase/test-u8-casecmp.c: New file.
69385         * tests/unicase/test-casecmp.h: New file.
69387         New module 'unicase/u32-casecmp'.
69388         * lib/unicase/u32-casecmp.c: New file.
69389         * modules/unicase/u32-casecmp: New file.
69391         New module 'unicase/u16-casecmp'.
69392         * lib/unicase/u16-casecmp.c: New file.
69393         * modules/unicase/u16-casecmp: New file.
69395         New module 'unicase/u8-casecmp'.
69396         * lib/unicase/u8-casecmp.c: New file.
69397         * lib/unicase/u-casecmp.h: New file.
69398         * modules/unicase/u8-casecmp: New file.
69400         Tests for module 'unicase/u32-casefold'.
69401         * modules/unicase/u32-casefold-tests: New file.
69402         * tests/unicase/test-u32-casefold.c: New file.
69404         Tests for module 'unicase/u16-casefold'.
69405         * modules/unicase/u16-casefold-tests: New file.
69406         * tests/unicase/test-u16-casefold.c: New file.
69408         Tests for module 'unicase/u8-casefold'.
69409         * modules/unicase/u8-casefold-tests: New file.
69410         * tests/unicase/test-u8-casefold.c: New file.
69412         New module 'unicase/u32-casefold'.
69413         * lib/unicase/u32-casefold.c: New file.
69414         * modules/unicase/u32-casefold: New file.
69416         New module 'unicase/u16-casefold'.
69417         * lib/unicase/u16-casefold.c: New file.
69418         * modules/unicase/u16-casefold: New file.
69420         New module 'unicase/u8-casefold'.
69421         * lib/unicase/u8-casefold.c: New file.
69422         * lib/unicase/u-casefold.h: New file.
69423         * modules/unicase/u8-casefold: New file.
69425         New module 'unicase/tocasefold'.
69426         * lib/unicase/casefold.h: New file.
69427         * lib/unicase/tocasefold.c: New file.
69428         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
69429         * modules/unicase/tocasefold: New file.
69431         Tests for module 'unicase/u32-totitle'.
69432         * modules/unicase/u32-totitle-tests: New file.
69433         * tests/unicase/test-u32-totitle.c: New file.
69435         Tests for module 'unicase/u16-totitle'.
69436         * modules/unicase/u16-totitle-tests: New file.
69437         * tests/unicase/test-u16-totitle.c: New file.
69439         Tests for module 'unicase/u8-totitle'.
69440         * modules/unicase/u8-totitle-tests: New file.
69441         * tests/unicase/test-u8-totitle.c: New file.
69443         New module 'unicase/u32-totitle'.
69444         * lib/unicase/u32-totitle.c: New file.
69445         * modules/unicase/u32-totitle: New file.
69447         New module 'unicase/u16-totitle'.
69448         * lib/unicase/u16-totitle.c: New file.
69449         * modules/unicase/u16-totitle: New file.
69451         New module 'unicase/u8-totitle'.
69452         * lib/unicase/u8-totitle.c: New file.
69453         * lib/unicase/u-totitle.h: New file.
69454         * modules/unicase/u8-totitle: New file.
69456         Tests for module 'unicase/u32-tolower'.
69457         * modules/unicase/u32-tolower-tests: New file.
69458         * tests/unicase/test-u32-tolower.c: New file.
69460         Tests for module 'unicase/u16-tolower'.
69461         * modules/unicase/u16-tolower-tests: New file.
69462         * tests/unicase/test-u16-tolower.c: New file.
69464         Tests for module 'unicase/u8-tolower'.
69465         * modules/unicase/u8-tolower-tests: New file.
69466         * tests/unicase/test-u8-tolower.c: New file.
69468         New module 'unicase/u32-tolower'.
69469         * lib/unicase/u32-tolower.c: New file.
69470         * modules/unicase/u32-tolower: New file.
69472         New module 'unicase/u16-tolower'.
69473         * lib/unicase/u16-tolower.c: New file.
69474         * modules/unicase/u16-tolower: New file.
69476         New module 'unicase/u8-tolower'.
69477         * lib/unicase/u8-tolower.c: New file.
69478         * modules/unicase/u8-tolower: New file.
69480         Tests for module 'unicase/u32-toupper'.
69481         * modules/unicase/u32-toupper-tests: New file.
69482         * tests/unicase/test-u32-toupper.c: New file.
69484         Tests for module 'unicase/u16-toupper'.
69485         * modules/unicase/u16-toupper-tests: New file.
69486         * tests/unicase/test-u16-toupper.c: New file.
69488         Tests for module 'unicase/u8-toupper'.
69489         * modules/unicase/u8-toupper-tests: New file.
69490         * tests/unicase/test-u8-toupper.c: New file.
69492         New module 'unicase/u32-toupper'.
69493         * lib/unicase/u32-toupper.c: New file.
69494         * modules/unicase/u32-toupper: New file.
69496         New module 'unicase/u16-toupper'.
69497         * lib/unicase/u16-toupper.c: New file.
69498         * modules/unicase/u16-toupper: New file.
69500         New module 'unicase/u8-toupper'.
69501         * lib/unicase/u8-toupper.c: New file.
69502         * modules/unicase/u8-toupper: New file.
69504         New module 'unicase/u32-casemap'.
69505         * lib/unicase/u32-casemap.c: New file.
69506         * modules/unicase/u32-casemap: New file.
69508         New module 'unicase/u16-casemap'.
69509         * lib/unicase/u16-casemap.c: New file.
69510         * modules/unicase/u16-casemap: New file.
69512         New module 'unicase/u8-casemap'.
69513         * lib/unicase/unicasemap.h: New file.
69514         * lib/unicase/u8-casemap.c: New file.
69515         * lib/unicase/u-casemap.h: New file.
69516         * modules/unicase/u8-casemap: New file.
69518         New module 'unicase/special-casing'.
69519         * lib/unicase/special-casing.h: New file.
69520         * lib/unicase/special-casing.c: New file.
69521         * lib/unicase/special-casing-table.gperf: New file, generated by
69522         gen-uni-tables.c.
69523         * modules/unicase/special-casing: New file.
69525         Tests for module 'unicase/locale-language'.
69526         * modules/unicase/locale-language-tests: New file.
69527         * tests/unicase/test-locale-language.sh: New file.
69528         * tests/unicase/test-locale-language.c: New file.
69530         New module 'unicase/locale-language'.
69531         * lib/unicase/locale-language.c: New file.
69532         * lib/unicase/locale-languages.gperf: New file.
69533         * modules/unicase/locale-language: New file.
69535         Generate more tables for case conversion and case folding.
69536         * lib/gen-uni-tables.c (SCC_*): New enum items.
69537         (struct special_casing_rule): New type.
69538         (casing_rules, num_casing_rules, allocated_casing_rules): New
69539         variables.
69540         (add_casing_rule, fill_casing_rules): New functions.
69541         (struct casefold_rule): New type.
69542         (casefolding_rules, num_casefolding_rules,
69543         allocated_casefolding_rules): New variables.
69544         (fill_casefolding_rules): New function.
69545         (unicode_casefold): New variable.
69546         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
69547         sort_casing_rules, output_casing_rules): New functions.
69548         (main): Accept to more arguments: SpecialCasing.txt and
69549         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
69550         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
69551         Output mapping for casefolding.
69553         * lib/unicase.h: Include stdbool.h, uninorm.h.
69554         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
69555         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
69556         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
69557         arguments.
69558         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
69559         resultp arguments.
69560         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
69561         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
69562         resultp arguments.
69563         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
69564         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
69565         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
69566         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
69567         declarations.
69568         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
69570 2009-03-08  Bruno Haible  <bruno@clisp.org>
69572         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69573         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
69574         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
69575         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69577 2009-03-07  Bruno Haible  <bruno@clisp.org>
69579         Adjust u*_normcmp, u*_normcoll API.
69580         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
69581         u16_normcoll, u32_normcoll): Change failure conventions.
69582         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
69583         errno and return -1.
69584         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
69586 2009-03-07  Bruno Haible  <bruno@clisp.org>
69588         Tests for module 'uninorm/u32-normcoll'.
69589         * modules/uninorm/u32-normcoll-tests: New file.
69590         * tests/uninorm/test-u32-normcoll.c: New file.
69592         Tests for module 'uninorm/u16-normcoll'.
69593         * modules/uninorm/u16-normcoll-tests: New file.
69594         * tests/uninorm/test-u16-normcoll.c: New file.
69596         Tests for module 'uninorm/u8-normcoll'.
69597         * modules/uninorm/u8-normcoll-tests: New file.
69598         * tests/uninorm/test-u8-normcoll.c: New file.
69600 2009-03-07  Bruno Haible  <bruno@clisp.org>
69602         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
69603         tests/uninorm/test-u32-normcmp.c.
69604         * tests/uninorm/test-u32-normcmp.c: Include it.
69605         (test_nonascii): New function, extracted from main. Add some more
69606         tests.
69607         (main): Invoke test_ascii and test_nonascii.
69608         * modules/uninorm/u32-normcmp-tests (Files): Add
69609         tests/uninorm/test-u32-normcmp.h.
69610         (Depends-on): Remove uninorm/u32-normcmp.
69612         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
69613         tests/uninorm/test-u16-normcmp.c.
69614         * tests/uninorm/test-u16-normcmp.c: Include it.
69615         (test_nonascii): New function, extracted from main. Add some more
69616         tests.
69617         (main): Invoke test_ascii and test_nonascii.
69618         * modules/uninorm/u16-normcmp-tests (Files): Add
69619         tests/uninorm/test-u16-normcmp.h.
69620         (Depends-on): Remove uninorm/u16-normcmp.
69622         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
69623         tests/uninorm/test-u8-normcmp.c.
69624         * tests/uninorm/test-u8-normcmp.c: Include it.
69625         (test_nonascii): New function, extracted from main. Add some more
69626         tests.
69627         (main): Invoke test_ascii and test_nonascii.
69628         * modules/uninorm/u8-normcmp-tests (Files): Add
69629         tests/uninorm/test-u8-normcmp.h.
69630         (Depends-on): Remove uninorm/u8-normcmp.
69632 2009-03-07  Bruno Haible  <bruno@clisp.org>
69634         New module 'uninorm/u32-normcoll'.
69635         * lib/uninorm/u32-normcoll.c: New file.
69636         * modules/uninorm/u32-normcoll: New file.
69638         New module 'uninorm/u16-normcoll'.
69639         * lib/uninorm/u16-normcoll.c: New file.
69640         * modules/uninorm/u16-normcoll: New file.
69642         New module 'uninorm/u8-normcoll'.
69643         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
69644         declarations.
69645         * lib/uninorm/u8-normcoll.c: New file.
69646         * lib/uninorm/u-normcoll.h: New file.
69647         * modules/uninorm/u8-normcoll: New file.
69649         New module 'uninorm/u32-normxfrm'.
69650         * lib/uninorm/u32-normxfrm.c: New file.
69651         * modules/uninorm/u32-normxfrm: New file.
69653         New module 'uninorm/u16-normxfrm'.
69654         * lib/uninorm/u16-normxfrm.c: New file.
69655         * modules/uninorm/u16-normxfrm: New file.
69657         New module 'uninorm/u8-normxfrm'.
69658         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
69659         declarations.
69660         * lib/uninorm/u8-normxfrm.c: New file.
69661         * lib/uninorm/u-normxfrm.h: New file.
69662         * modules/uninorm/u8-normxfrm: New file.
69664 2009-03-07  Bruno Haible  <bruno@clisp.org>
69666         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
69667         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
69668         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
69670 2009-03-07  Bruno Haible  <bruno@clisp.org>
69672         New module 'memxfrm'.
69673         * lib/memxfrm.h: New file.
69674         * lib/memxfrm.c: New file.
69675         * modules/memxfrm: New file.
69677 2009-03-07  Bruno Haible  <bruno@clisp.org>
69679         New module 'memcmp2'.
69680         * lib/memcmp2.h: New file.
69681         * lib/memcmp2.c: New file.
69682         * modules/memcmp2: New file.
69684 2009-03-07  Bruno Haible  <bruno@clisp.org>
69686         Tests for module 'uninorm/decomposing-form'.
69687         * modules/uninorm/decomposing-form-tests: New file.
69688         * tests/uninorm/test-decomposing-form.c: New file.
69690         New module 'uninorm/decomposing-form'.
69691         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
69692         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
69693         Add 'decomposing_variant' field.
69694         * lib/uninorm/decomposing-form.c: New file.
69695         * lib/uninorm/nfc.c (uninorm_nfc): Update.
69696         * lib/uninorm/nfd.c (uninorm_nfd): Update.
69697         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
69698         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
69699         * modules/uninorm/decomposing-form: New file.
69700         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
69701         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
69703 2009-03-07  Bruno Haible  <bruno@clisp.org>
69705         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
69706         strings.
69708 2009-03-06  Bruno Haible  <bruno@clisp.org>
69710         Tests for module 'uninorm/u32-normcmp'.
69711         * tests/uninorm/test-u32-normcmp.c: New file.
69712         * modules/uninorm/u32-normcmp-tests: New file.
69714         Tests for module 'uninorm/u16-normcmp'.
69715         * tests/uninorm/test-u16-normcmp.c: New file.
69716         * modules/uninorm/u16-normcmp-tests: New file.
69718         Tests for module 'uninorm/u8-normcmp'.
69719         * tests/uninorm/test-u8-normcmp.c: New file.
69720         * modules/uninorm/u8-normcmp-tests: New file.
69722         New module 'uninorm/u32-normcmp'.
69723         * lib/uninorm/u32-normcmp.c: New file.
69724         * modules/uninorm/u32-normcmp: New file.
69726         New module 'uninorm/u16-normcmp'.
69727         * lib/uninorm/u16-normcmp.c: New file.
69728         * modules/uninorm/u16-normcmp: New file.
69730         New module 'uninorm/u8-normcmp'.
69731         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
69732         declarations.
69733         * lib/uninorm/u8-normcmp.c: New file.
69734         * lib/uninorm/u-normcmp.h: New file.
69735         * modules/uninorm/u8-normcmp: New file.
69737 2009-03-06  Bruno Haible  <bruno@clisp.org>
69739         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
69740         Reported by Eric Blake.
69742 2009-03-06  Eric Blake  <ebb9@byu.net>
69743             Bruno Haible  <bruno@clisp.org>
69745         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
69746         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
69747         condition.
69748         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69749         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
69750         condition.
69751         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
69753 2009-03-06  Eric Blake  <ebb9@byu.net>
69755         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
69756         to avoid compiler warnings.
69757         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
69759 2009-03-05  Bruno Haible  <bruno@clisp.org>
69761         * tests/test-ftell.c (main): Disable test beyond end of file on
69762         FreeMiNT.
69763         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69765 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
69767         * lib/filevercmp.c: Move hidden files up in ordering.
69768         * tests/test-filevercmp.c: Add tests for hidden files.
69770 2009-03-04  Bruno Haible  <bruno@clisp.org>
69772         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
69773         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
69774         AM_CFLAGS.
69775         Reported by Simon Josefsson.
69777 2009-03-03  Bruno Haible  <bruno@clisp.org>
69779         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
69780         Reported by Simon Josefsson.
69782         * doc/ld-version-script.texi: Update node reference.
69784 2009-03-03  Bruno Haible  <bruno@clisp.org>
69786         * modules/visibility (License): Change to 'unlimited'.
69787         Suggested by Simon Josefsson.
69789 2009-03-03  Jim Meyering  <meyering@redhat.com>
69791         unlinkdir: cannot_unlink_dir may modify process state
69792         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
69793         it's neither thread-safe nor appropriate for use in a library.
69795 2009-03-03  Eric Blake  <ebb9@byu.net>
69797         test-closein: silence test under Darwin
69798         * tests/test-closein.sh: Ignore stderr from cat, since we don't
69799         care if it dies from EPIPE or EBADF.
69801 2009-03-03  Bruno Haible  <bruno@clisp.org>
69803         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
69804         earlier.
69805         * doc/visibility.texi: Fix @node and @section.
69807 2009-03-03  Simon Josefsson  <simon@josefsson.org>
69809         * doc/gnulib.texi: Link to sections for ld version script and
69810         visibility.
69811         * doc/visibility.texi: Add @node and @section.
69812         * modules/ld-version-script: New module.
69813         * m4/ld-version-script.m4: New file.
69814         * doc/ld-version-script.texi: New file.
69816 2009-03-02  David Lutterkort  <lutter@redhat.com>
69818         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
69819         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69821 2009-03-02  Bruno Haible  <bruno@clisp.org>
69823         * doc/visibility.texi: Mention libtool's -export-symbols option.
69825 2009-03-02  Jim Meyering  <meyering@redhat.com>
69827         announce-gen: new option: --no-print-checksums
69828         * build-aux/announce-gen (usage): Describe it.
69829         (print_checksums): Print a newline here, not in the [*] footnote.
69830         (main): Honor it.
69832 2009-03-01  Bruno Haible  <bruno@clisp.org>
69834         Use socklen_t in the native Windows replacements prototypes.
69835         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
69836         instead of 'int'.
69837         * lib/getsockopt.c (rpl_getsockopt): Likewise.
69838         * lib/setsockopt.c (rpl_setsockopt): Likewise.
69839         * modules/getsockopt (Depends-on): Add socklen.
69840         * modules/setsockopt (Depends-on): Add socklen.
69842 2009-03-01  Bruno Haible  <bruno@clisp.org>
69844         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
69845         least 4.2.
69847 2009-03-01  Eric Blake  <ebb9@byu.net>
69848             Bruno Haible  <bruno@clisp.org>
69850         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
69851         error messages.
69852         * lib/wait-process.c (wait_subprocess): Omit error message about
69853         deadly signal sent to the child of termsigp != NULL.
69855 2009-03-01  Eric Blake  <ebb9@byu.net>
69857         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
69859 2009-03-01  Bruno Haible  <bruno@clisp.org>
69861         Avoid a gcc warning.
69862         * tests/test-sched.c (b): Make global.
69863         Reported by Eric Blake.
69865 2009-01-19  Martin Lambers  <marlam@marlam.de>
69867         Provide POSIX semantics for socket timeout options on W32.
69868         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
69869         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
69870         * modules/setsockopt: Depend on sys_time module for struct timeval.
69871         * modules/getsockopt: Depend on sys_time module for struct timeval.
69873 2009-03-01  Simon Josefsson  <simon@josefsson.org>
69875         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
69876         __USE_GNU, for consistency with netdb.in.h.
69877         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69879 2009-03-01  Bruno Haible  <bruno@clisp.org>
69881         More support for FreeMiNT.
69882         * lib/fseeko.c (rpl_fseeko): Complete last commit.
69883         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69885 2009-03-01  Bruno Haible  <bruno@clisp.org>
69887         More support for FreeMiNT.
69888         * lib/fpurge.c (fpurge): Correct last commit.
69889         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69891 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69893         Fix unportable awk script in vc-list-files.
69894         * build-aux/vc-list-files: In the replacement awk script, use
69895         substr with a second argument of 1, not zero.
69896         Report by Simon Josefsson.
69898 2009-02-28  Bruno Haible  <bruno@clisp.org>
69900         More support for FreeMiNT.
69901         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
69902         to FreeMiNT today.
69903         * lib/fwriting.c (fwriting): Likewise.
69904         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
69906 2009-02-28  Bruno Haible  <bruno@clisp.org>
69908         * tests/test-freadseek.c (main): Disable test beyond end of file on
69909         FreeMiNT.
69910         * tests/test-ftello.c (main): Likewise.
69911         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
69913 2009-02-28  Bruno Haible  <bruno@clisp.org>
69915         Add tentative support for FreeMiNT.
69916         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
69917         * lib/fpurge.c (fpurge): Likewise.
69918         * lib/freadable.c (freadable): Likewise.
69919         * lib/freading.c (freading): Likewise.
69920         * lib/freadptr.c (freadptr): Likewise.
69921         * lib/freadseek.c (freadptrinc): Likewise.
69922         * lib/fseeko.c (rpl_fseeko): Likewise.
69923         * lib/fseterr.c (fseterr): Likewise.
69924         * lib/fwritable.c (fwritable): Likewise.
69925         * lib/fwriting.c (fwriting): Likewise.
69926         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
69927         Hourihane.
69928         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
69930 2009-02-28  Bruno Haible  <bruno@clisp.org>
69932         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
69933         SIGCHLD.
69934         Reported by Jim Meyering.
69936 2009-02-28  Bruno Haible  <bruno@clisp.org>
69938         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
69939         Mention the results of these tests on various platforms.
69940         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
69941         order.
69942         * doc/posix-functions/printf.texi: Likewise.
69943         * doc/posix-functions/snprintf.texi: Likewise.
69944         * doc/posix-functions/sprintf.texi: Likewise.
69945         * doc/posix-functions/vfprintf.texi: Likewise.
69946         * doc/posix-functions/vprintf.texi: Likewise.
69947         * doc/posix-functions/vsnprintf.texi: Likewise.
69948         * doc/posix-functions/vsprintf.texi: Likewise.
69949         * doc/glibc-functions/obstack_printf.texi: Likewise.
69950         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
69952 2009-02-28  Bruno Haible  <bruno@clisp.org>
69954         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
69955         Reported by Loïc Minier <lool@dooz.org>.
69957 2009-02-27  Bruno Haible  <bruno@clisp.org>
69959         * gnulib-tool (func_import): Make the sed expression used to create the
69960         sed script for updating the .gitignore file POSIX compliant.
69961         Reported by Eric Blake.
69963 2009-02-27  Bruno Haible  <bruno@clisp.org>
69965         * gnulib-tool (sed): Don't alias as "sed --posix".
69966         Reported by Eric Blake.
69968 2009-02-27  Bruno Haible  <bruno@clisp.org>
69970         Avoid test link errors.
69971         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
69972         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
69973         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
69974         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
69975         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
69977 2009-02-27  Bruno Haible  <bruno@clisp.org>
69979         Avoid spurious "(cached)" in configure output.
69980         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
69981         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
69982         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
69983         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
69984         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
69985         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
69986         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
69987         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
69988         Reported by Eric Blake.
69990 2009-02-27  Eric Blake  <ebb9@byu.net>
69992         printf: fix regression in previous patch
69993         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
69995 2009-02-27  Bruno Haible  <bruno@clisp.org>
69997         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
69998         value.
69999         * lib/stdint.in.h: Likewise.
70000         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
70002 2009-02-27  Eric Blake  <ebb9@byu.net>
70004         doc: mention more functions added in cygwin 1.7.0
70005         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
70006         addition.
70007         * doc/posix-functions/open_wmemstream.texi: Likewise.
70008         * doc/posix-functions/wcsnlen.texi: Likewise.
70009         * doc/posix-functions/wcsnrtombs.texi: Likewise.
70010         * doc/posix-functions/wcstod.texi: Likewise.
70011         * doc/posix-functions/wcstof.texi: Likewise.
70012         * doc/posix-functions/wcstoimax.texi: Likewise.
70013         * doc/posix-functions/wcstok.texi: Likewise.
70014         * doc/posix-functions/wcstoumax.texi: Likewise.
70016         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
70017         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
70018         * doc/posix-functions/fprintf.texi: Update.
70019         * doc/posix-functions/printf.texi: Update.
70020         * doc/posix-functions/snprintf.texi: Update.
70021         * doc/posix-functions/sprintf.texi: Update.
70022         * doc/posix-functions/vfprintf.texi: Update.
70023         * doc/posix-functions/vprintf.texi: Update.
70024         * doc/posix-functions/vsnprintf.texi: Update.
70025         * doc/posix-functions/vsprintf.texi: Update.
70026         * doc/glibc-functions/obstack_printf.texi: Update.
70027         * doc/glibc-functions/obstack_vprintf.texi: Update.
70029 2009-02-26  Eric Blake  <ebb9@byu.net>
70031         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
70032         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
70033         compilation bug by using runtime conversion.
70034         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
70035         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
70036         * modules/ceill-tests (Files): Use nan.h.
70037         * modules/floorl-tests (Files): Likewise.
70038         * modules/frexpl-tests (Files): Likewise.
70039         * modules/isnanl-tests (Files): Likewise.
70040         * modules/ldexpl-tests (Files): Likewise.
70041         * modules/roundl-tests (Files): Likewise.
70042         * modules/truncl-tests (Files): Likewise.
70043         * tests/test-ceill.c (main): Use a working NaN.
70044         * tests/test-floorl.c (main): Likewise.
70045         * tests/test-frexpl.c (main): Likewise.
70046         * tests/test-isnan.c (test_long_double): Likewise.
70047         * tests/test-isnanl.h (main): Likewise.
70048         * tests/test-ldexpl.h (main): Likewise.
70049         * tests/test-roundl.h (main): Likewise.
70050         * tests/test-truncl.h (main): Likewise.
70051         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
70053 2009-02-26  Eric Blake  <ebb9@byu.net>
70054             Bruno Haible  <bruno@clisp.org>
70056         Work around a *printf bug with %ls on Solaris.
70057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
70058         precision is specified, sprintf stops converting the wide string
70059         argument when the number of bytes that have been produced by this
70060         conversion equals or exceeds the precision.
70061         * doc/posix-functions/fprintf.texi: Update.
70062         * doc/posix-functions/printf.texi: Update.
70063         * doc/posix-functions/snprintf.texi: Update.
70064         * doc/posix-functions/sprintf.texi: Update.
70065         * doc/posix-functions/vfprintf.texi: Update.
70066         * doc/posix-functions/vprintf.texi: Update.
70067         * doc/posix-functions/vsnprintf.texi: Update.
70068         * doc/posix-functions/vsprintf.texi: Update.
70069         * doc/glibc-functions/obstack_printf.texi: Update.
70070         * doc/glibc-functions/obstack_vprintf.texi: Update.
70072 2009-02-26  Eric Blake  <ebb9@byu.net>
70074         stdlib: favor compiler check of random.h
70075         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
70076         to avoid an ObjC random.h installed by Swarm.
70078 2009-02-26  Bruno Haible  <bruno@clisp.org>
70080         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
70081         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
70082         Reported by Gary V. Vaughan <gary@gnu.org>.
70084 2009-02-26  Bruno Haible  <bruno@clisp.org>
70086         Fix *printf behaviour regarding the %ls directive.
70087         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
70088         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
70089         NEED_PRINTF_DIRECTIVE_LS.
70090         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
70091         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
70092         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
70093         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
70094         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
70095         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
70096         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
70097         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70098         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70099         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70100         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70101         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
70102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70105         * doc/posix-functions/fprintf.texi: Update.
70106         * doc/posix-functions/printf.texi: Update.
70107         * doc/posix-functions/snprintf.texi: Update.
70108         * doc/posix-functions/sprintf.texi: Update.
70109         * doc/posix-functions/vfprintf.texi: Update.
70110         * doc/posix-functions/vprintf.texi: Update.
70111         * doc/posix-functions/vsnprintf.texi: Update.
70112         * doc/posix-functions/vsprintf.texi: Update.
70113         * doc/glibc-functions/obstack_printf.texi: Update.
70114         * doc/glibc-functions/obstack_vprintf.texi: Update.
70115         Reported by Eric Blake.
70117 2009-02-25  Bruno Haible  <bruno@clisp.org>
70119         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
70120         with known value.
70121         Reported by Gary V. Vaughan <gary@gnu.org>.
70123 2009-02-25  Bruno Haible  <bruno@clisp.org>
70125         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
70126         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
70127         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
70128         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
70129         Reported by Gary V. Vaughan <gary@gnu.org>.
70131 2009-02-25  Bruno Haible  <bruno@clisp.org>
70133         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
70134         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
70135         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
70136         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
70137         Reported by Gary V. Vaughan <gary@gnu.org>.
70139 2009-02-25  Eric Blake  <ebb9@byu.net>
70141         tests: skip fseek/ftell tests if ungetc is broken
70142         * m4/ungetc.m4: New file.
70143         * modules/fseek-tests: Split test, so ungetc dependency is
70144         separate from rest of test.
70145         * modules/fseeko-tests: Likewise.
70146         * modules/ftell-tests: Likewise.
70147         * modules/ftello-tests: Likewise.
70148         * tests/test-fseek.c (main): Isolate ungetc dependency.
70149         * tests/test-fseeko.c (main): Likewise.
70150         * tests/test-ftell.c (main): Likewise.
70151         * tests/test-ftello.c (main): Likewise.
70152         * tests/test-fseek2.sh: New file.
70153         * tests/test-fseeko2.sh: Likewise.
70154         * tests/test-ftell2.sh: Likewise.
70155         * tests/test-ftello2.sh: Likewise.
70157 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
70159         test-getaddrinfo: fix usage of skip return code 77
70160         * tests/test-gettaddrinfo.c: Return skip code 77 only
70161         for first occurrence of skip (4x77 is not 77)
70163 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
70165         strtod: avoid C99 decl-after-statement
70166         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
70168 2009-02-24  Eric Blake  <ebb9@byu.net>
70170         strtod: detect HP-UX 11.31 bug
70171         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
70172         Reported by Gary V. Vaughan.
70174 2009-02-23  Bruno Haible  <bruno@clisp.org>
70176         Fix invalid read past end of memory block.
70177         * lib/vasnprintf.c (DCHAR_SET): Define.
70178         (local_wcslen): Define only when needed.
70179         (local_strnlen, local_wcsnlen): New functions.
70180         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
70181         directives that involve a conversion ourselves.
70182         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
70183         wcsnlen, mbrtowc, wcrtomb.
70184         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
70185         * tests/test-vasprintf-posix.c (test_function): Likewise.
70186         * tests/test-snprintf-posix.h (test_function): Likewise.
70187         * tests/test-sprintf-posix.h (test_function): Likewise.
70188         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70190 2009-02-22  Bruno Haible  <bruno@clisp.org>
70192         Implement new clarified decomposition of Hangul syllables.
70193         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
70194         of type LTV, return only a pairwise decomposition.
70195         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
70196         Likewise.
70197         * tests/uninorm/test-decomposition.c (main): Updated expected result.
70198         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
70199         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
70201 2009-02-22  Bruno Haible  <bruno@clisp.org>
70203         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
70204         zero-length results and shrink excess allocated memory.
70205         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
70206         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
70207         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
70208         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
70209         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
70210         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
70211         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
70212         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
70213         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
70214         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
70215         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
70216         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
70218 2009-02-21  Bruno Haible  <bruno@clisp.org>
70220         * doc/gnulib.texi: Include safe-alloc.texi earlier.
70221         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
70222         spaces after a period. Put a space between a macro name and its
70223         argument list. Trivial rewordings.
70224         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
70225         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
70226         (main): Return 0 explicitly.
70228 2009-02-21  Bruno Haible  <bruno@clisp.org>
70230         Tests for module 'uninorm/filter'.
70231         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
70232         * modules/uninorm/filter-tests: New file.
70234         New module 'uninorm/filter'.
70235         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
70236         uninorm_filter_flush, uninorm_filter_free): New declarations.
70237         * lib/uninorm/uninorm-filter.c: New file.
70238         * modules/uninorm/filter: New file.
70240 2009-02-21  Bruno Haible  <bruno@clisp.org>
70242         Tests for module 'uninorm/nfkc'.
70243         * tests/uninorm/test-nfkc.c: New file.
70244         * tests/uninorm/test-u8-nfkc.c: New file.
70245         * tests/uninorm/test-u16-nfkc.c: New file.
70246         * tests/uninorm/test-u32-nfkc.c: New file.
70247         * tests/uninorm/test-u32-nfkc-big.sh: New file.
70248         * tests/uninorm/test-u32-nfkc-big.c: New file.
70249         * modules/uninorm/nfkc-tests: New file.
70251         New module 'uninorm/nfkc'.
70252         * lib/uninorm/nfkc.c: New file.
70253         * modules/uninorm/nfkc: New file.
70255         Tests for module 'uninorm/nfkd'.
70256         * tests/uninorm/test-nfkd.c: New file.
70257         * tests/uninorm/test-u8-nfkd.c: New file.
70258         * tests/uninorm/test-u16-nfkd.c: New file.
70259         * tests/uninorm/test-u32-nfkd.c: New file.
70260         * tests/uninorm/test-u32-nfkd-big.sh: New file.
70261         * tests/uninorm/test-u32-nfkd-big.c: New file.
70262         * modules/uninorm/nfkd-tests: New file.
70264         New module 'uninorm/nfkd'.
70265         * lib/uninorm/nfkd.c: New file.
70266         * modules/uninorm/nfkd: New file.
70268         Tests for module 'uninorm/nfc'.
70269         * tests/uninorm/test-nfc.c: New file.
70270         * tests/uninorm/test-u8-nfc.c: New file.
70271         * tests/uninorm/test-u16-nfc.c: New file.
70272         * tests/uninorm/test-u32-nfc.c: New file.
70273         * tests/uninorm/test-u32-nfc-big.sh: New file.
70274         * tests/uninorm/test-u32-nfc-big.c: New file.
70275         * modules/uninorm/nfc-tests: New file.
70277         New module 'uninorm/nfc'.
70278         * lib/uninorm/nfc.c: New file.
70279         * modules/uninorm/nfc: New file.
70281         Tests for module 'uninorm/nfd'.
70282         * tests/uninorm/test-nfd.c: New file.
70283         * tests/uninorm/test-u8-nfd.c: New file.
70284         * tests/uninorm/test-u16-nfd.c: New file.
70285         * tests/uninorm/test-u32-nfd.c: New file.
70286         * tests/uninorm/test-u32-nfd-big.sh: New file.
70287         * tests/uninorm/test-u32-nfd-big.c: New file.
70288         * tests/uninorm/test-u32-normalize-big.h: New file.
70289         * tests/uninorm/test-u32-normalize-big.c: New file.
70290         * tests/uninorm/NormalizationTest.txt: New file, created from
70291         Unicode 5.1.0 NormalizationTest.txt.
70292         * modules/uninorm/nfd-tests: New file.
70294         New module 'uninorm/nfd'.
70295         * lib/uninorm/nfd.c: New file.
70296         * modules/uninorm/nfd: New file.
70298         New module 'uninorm/u32-normalize'.
70299         * lib/uninorm/u32-normalize.c: New file.
70300         * modules/uninorm/u32-normalize: New file.
70302         New module 'uninorm/u16-normalize'.
70303         * lib/uninorm/u16-normalize.c: New file.
70304         * modules/uninorm/u16-normalize: New file.
70306         New module 'uninorm/u8-normalize'.
70307         * lib/uninorm/u8-normalize.c: New file.
70308         * lib/uninorm/normalize-internal.h: New file.
70309         * lib/uninorm/u-normalize-internal.h: New file.
70310         * modules/uninorm/u8-normalize: New file.
70312         New module 'uninorm/decompose-internal'.
70313         * lib/uninorm/decompose-internal.c: New file.
70314         * modules/uninorm/decompose-internal: New file.
70316         Tests for module 'uninorm/composition'.
70317         * tests/uninorm/test-composition.c: New file.
70318         * modules/uninorm/composition-tests: New file.
70320         New module 'uninorm/composition'.
70321         * lib/uninorm/composition.c: New file.
70322         * lib/uninorm/composition-table.gperf: New file, generated by
70323         gen-uni-tables.
70324         * modules/uninorm/composition: New file.
70326         Tests for module 'uninorm/compat-decomposition'.
70327         * tests/uninorm/test-compat-decomposition.c: New file.
70328         * modules/uninorm/compat-decomposition-tests: New file.
70330         New module 'uninorm/compat-decomposition'.
70331         * lib/uninorm/decompose-internal.h: New file.
70332         * lib/uninorm/compat-decomposition.c: New file.
70333         * modules/uninorm/compat-decomposition: New file.
70335         Tests for module 'uninorm/canonical-decomposition'.
70336         * tests/uninorm/test-canonical-decomposition.c: New file.
70337         * modules/uninorm/canonical-decomposition-tests: New file.
70339         New module 'uninorm/canonical-decomposition'.
70340         * lib/uninorm/canonical-decomposition.c: New file.
70341         * modules/uninorm/canonical-decomposition: New file.
70343         Tests for module 'uninorm/decomposition'.
70344         * tests/uninorm/test-decomposition.c: New file.
70345         * modules/uninorm/decomposition-tests: New file.
70347         New module 'uninorm/decomposition'.
70348         * lib/uninorm/decomposition.c: New file.
70349         * modules/uninorm/decomposition: New file.
70351         New module 'uninorm/decomposition-table'.
70352         * lib/uninorm/decomposition-table.h: New file.
70353         * lib/uninorm/decomposition-table.c: New file.
70354         * lib/uninorm/decomposition-table1.h: New file, generated by
70355         gen-uni-tables.
70356         * lib/uninorm/decomposition-table2.h: New file, generated by
70357         gen-uni-tables.
70358         * modules/uninorm/decomposition-table: New file.
70360         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
70361         (UC_DECOMP_*): New enumeration items.
70362         (get_decomposition): New function.
70363         (struct decomp_table): New type.
70364         (output_decomposition, output_decomposition_tables): New functions.
70365         (unicode_composition_exclusions): New variable.
70366         (fill_composition_exclusions, debug_output_composition_tables): New
70367         functions.
70368         (main): Accept one more argument. Invoke fill_composition_exclusions.
70369         Output decomposition and composition tables.
70371         New module 'uninorm/base'.
70372         * lib/uninorm.h: New file.
70373         * lib/unictype.h: Update comment.
70374         * modules/uninorm/base: New file.
70376 2009-02-21  David Lutterkort  <lutter@redhat.com>
70378         Tests for module 'safe-alloc'.
70379         * tests/test-safe-alloc.c: New file.
70380         * modules/safe-alloc-tests: New file.
70382         New module 'safe-alloc'.
70383         * lib/safe-alloc.h: New file.
70384         * lib/safe-alloc.c: New file.
70385         * m4/safe-alloc.m4: New file.
70386         * modules/safe-alloc: New file.
70387         * doc/safe-alloc.texi: New file.
70388         * doc/gnulib.texi: Include it.
70389         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
70390         safe-alloc.
70392 2009-02-18  Bruno Haible  <bruno@clisp.org>
70394         Fix link error on non-glibc systems.
70395         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
70396         variable.
70397         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
70399 2009-02-18  Jim Meyering  <meyering@redhat.com>
70401         fts: avoid used-uninitialized error due to recent change
70402         * lib/fts.c (fts_read): Guard uses of the new member,
70403         parent->fts_n_dirs_remaining, since it's not relevant for
70404         the parent of a directory specified on the command-line.
70406 2009-02-17  James Youngman  <jay@gnu.org>
70407             Bruno Haible  <bruno@clisp.org>
70409         * m4/include_next.m4: Reformulate comment.
70411 2009-02-16  Jim Meyering  <meyering@redhat.com>
70413         fts: add #if guards so that the fts_lgpl module still builds
70414         * lib/fts.c: Guard just-added hash-table-using parts with
70415         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
70416         Reported by Simon Josefsson.
70418 2009-02-15  Bruno Haible  <bruno@clisp.org>
70420         * modules/array-mergesort-tests: New file.
70421         * tests/test-array-mergesort.c: New file.
70423         New module 'array-mergesort'.
70424         * modules/array-mergesort: New file.
70425         * lib/array-mergesort.h: New file.
70427 2009-02-15  Bruno Haible  <bruno@clisp.org>
70429         Fix 2009-02-07 commit.
70430         * lib/gen-uni-tables.c (output_predicate, output_category,
70431         output_combclass, output_bidi_category, output_decimal_digit,
70432         output_digit, output_numeric, output_mirror, output_scripts,
70433         output_ident_category, output_simple_mapping): Fix format directives.
70434         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
70436 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
70438         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
70439         fixes are available from IBM.
70441 2009-02-13  Jim Meyering  <meyering@redhat.com>
70443         fts: arrange not to stat non-directories in more cases
70444         This makes GNU find (when it doesn't need to stat each file)
70445         *much* more efficient at traversing reiserfs file systems.
70446         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
70447         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
70448         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
70449         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
70450         (leaf_optimization_applies): New function.
70451         (LCO_hash, LCO_compare): New helper functions.
70452         (link_count_optimize_ok): New function.
70453         (fts_stat): Initialize new member (if dir).
70454         (fts_read): Decrement parent's fts_n_dirs_remaining count if
70455         we've just stat'ed a directory.  Skip the stat call when possible.
70456         ---
70457         Note this AFS-related exchange:
70458         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
70459         and note find's pioctl call in find/fstype.c.
70460         But that is necessary only if you want to enable the
70461         optimization for AFS, and for now, I don't.
70463         fts: move a function definition "up" (no semantic change)
70464         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
70465         "up" to precede upcoming use of a related function.
70467 2009-02-11  Jim Meyering  <meyering@redhat.com>
70469         fts: correct internal computation of nlinks (optimization-related)
70470         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
70471         whether the current entry is a directory, so don't test it.
70473 2009-02-10  Bruno Haible  <bruno@clisp.org>
70475         Tests for module 'uniwbrk/ulc-wordbreaks'.
70476         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
70477         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
70478         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
70480         Tests for module 'uniwbrk/u32-wordbreaks'.
70481         * modules/uniwbrk/u32-wordbreaks-tests: New file.
70482         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
70484         Tests for module 'uniwbrk/u16-wordbreaks'.
70485         * modules/uniwbrk/u16-wordbreaks-tests: New file.
70486         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
70488         Tests for module 'uniwbrk/u8-wordbreaks'.
70489         * modules/uniwbrk/u8-wordbreaks-tests: New file.
70490         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
70492 2009-02-10  Bruno Haible  <bruno@clisp.org>
70494         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
70495         property.
70496         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
70497         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
70498         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
70500 2009-02-10  Simon Josefsson  <simon@josefsson.org>
70502         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
70503         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
70505 2009-02-10  Bruno Haible  <bruno@clisp.org>
70507         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
70508         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
70509         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
70510         * lib/unilbrk/u8-possible-linebreaks.c: Update.
70511         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
70512         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
70514 2009-02-09  Simon Josefsson  <simon@josefsson.org>
70516         * lib/sockets.h (gl_fd_to_handle): New function.
70518         * tests/test-sockets.c: Call gl_fd_to_handle.
70520 2009-02-09  Bruno Haible  <bruno@clisp.org>
70522         * doc/havelib.texi: Document the conventions on bi-arch systems.
70524 2009-02-08  Bruno Haible  <bruno@clisp.org>
70526         Document the AC_LIB_LINKFLAGS macro.
70527         * doc/havelib.texi: New file, mostly written on 2005-05-24.
70528         * doc/gnulib.texi: Include it.
70530 2009-02-08  Bruno Haible  <bruno@clisp.org>
70532         Fix wrong order of sections, compared to TOC.
70533         * doc/gnulib.texi: Include relocatable-maint.texi after the
70534         "Regular expressions" node, not before.
70536 2009-02-08  Bruno Haible  <bruno@clisp.org>
70538         Tests for module 'unicase/totitle'.
70539         * modules/unicase/totitle-tests: New file.
70541         Tests for module 'unicase/tolower'.
70542         * modules/unicase/tolower-tests: New file.
70544         Tests for module 'unicase/toupper'.
70545         * modules/unicase/toupper-tests: New file.
70546         * tests/unicase/test-mapping-part1.h: New file.
70547         * tests/unicase/test-mapping-part2.h: New file.
70549         New module 'unicase/totitle'.
70550         * modules/unicase/totitle: New file.
70551         * lib/unicase/totitle.c: New file.
70553         New module 'unicase/tolower'.
70554         * modules/unicase/tolower: New file.
70555         * lib/unicase/tolower.c: New file.
70557         New module 'unicase/toupper'.
70558         * modules/unicase/toupper: New file.
70559         * lib/unicase/toupper.c: New file.
70560         * lib/unicase/simple-mapping.h: New file.
70562         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
70563         (mapping_table): New structure.
70564         (output_simple_mapping): New function.
70565         (main): Invoke output_simple_mapping_test and output_simple_mapping.
70566         * modules/gen-uni-tables (Description): Update.
70567         * lib/unicase/toupper.h: New file, automatically generated by
70568         gen-uni-tables.
70569         * lib/unicase/tolower.h: New file, automatically generated by
70570         gen-uni-tables.
70571         * lib/unicase/totitle.h: New file, automatically generated by
70572         gen-uni-tables.
70573         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
70574         gen-uni-tables.
70575         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
70576         gen-uni-tables.
70577         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
70578         gen-uni-tables.
70580         New module 'unicase/base'.
70581         * modules/unicase/base: New file.
70582         * lib/unicase.h: New file.
70584 2009-02-08  Bruno Haible  <bruno@clisp.org>
70586         New module 'uniwbrk/ulc-wordbreaks'.
70587         * modules/uniwbrk/ulc-wordbreaks: New file.
70588         * lib/uniwbrk/ulc-wordbreaks.c: New file.
70590         New module 'uniwbrk/u32-wordbreaks'.
70591         * modules/uniwbrk/u32-wordbreaks: New file.
70592         * lib/uniwbrk/u32-wordbreaks.c: New file.
70594         New module 'uniwbrk/u16-wordbreaks'.
70595         * modules/uniwbrk/u16-wordbreaks: New file.
70596         * lib/uniwbrk/u16-wordbreaks.c: New file.
70598         New module 'uniwbrk/u8-wordbreaks'.
70599         * modules/uniwbrk/u8-wordbreaks: New file.
70600         * lib/uniwbrk/u8-wordbreaks.c: New file.
70601         * lib/uniwbrk/u-wordbreaks.h: New file.
70603         New module 'uniwbrk/table'.
70604         * modules/uniwbrk/table: New file.
70605         * lib/uniwbrk/wbrktable.h: New file.
70606         * lib/uniwbrk/wbrktable.c: New file.
70608         New module 'uniwbrk/wordbreak-property'.
70609         * modules/uniwbrk/wordbreak-property: New file.
70610         * lib/uniwbrk/wordbreak-property.c: New file.
70612         * lib/gen-uni-tables.c (WBP_*): New enum items.
70613         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
70614         (unicode_org_wbp): New variable.
70615         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
70616         New functions.
70617         (wbp_table): New structure.
70618         (output_wbp, output_wbrk_tables): New functions.
70619         (main): Accept additional argument. Invoke fill_org_wbp,
70620         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
70621         output_wbrk_tables.
70622         * modules/gen-uni-tables (Description): Update.
70623         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
70624         gen-uni-tables.
70626         New module 'uniwbrk/base'.
70627         * modules/uniwbrk/base: New file.
70628         * lib/uniwbrk.h: New file.
70630 2009-02-08  Bruno Haible  <bruno@clisp.org>
70632         Update to Unicode 5.1.0.
70633         * lib/gen-uni-tables.c (is_property_alphabetic): Include
70634         U+2185..U+2188.
70635         (is_property_default_ignorable_code_point): Don't include characters
70636         of category Cc or Cs and not-a-characters.
70637         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
70638         U+0D79, U+109E, U+109F, U+A60C.
70639         * lib/unictype/bidi_of.h: Regenerated.
70640         * lib/unictype/blocks.h: Regenerated.
70641         * lib/unictype/categ_C.h: Regenerated.
70642         * lib/unictype/categ_Cf.h: Regenerated.
70643         * lib/unictype/categ_Cn.h: Regenerated.
70644         * lib/unictype/categ_L.h: Regenerated.
70645         * lib/unictype/categ_Ll.h: Regenerated.
70646         * lib/unictype/categ_Lm.h: Regenerated.
70647         * lib/unictype/categ_Lo.h: Regenerated.
70648         * lib/unictype/categ_Lu.h: Regenerated.
70649         * lib/unictype/categ_M.h: Regenerated.
70650         * lib/unictype/categ_Mc.h: Regenerated.
70651         * lib/unictype/categ_Me.h: Regenerated.
70652         * lib/unictype/categ_Mn.h: Regenerated.
70653         * lib/unictype/categ_N.h: Regenerated.
70654         * lib/unictype/categ_Nd.h: Regenerated.
70655         * lib/unictype/categ_Nl.h: Regenerated.
70656         * lib/unictype/categ_No.h: Regenerated.
70657         * lib/unictype/categ_P.h: Regenerated.
70658         * lib/unictype/categ_Pd.h: Regenerated.
70659         * lib/unictype/categ_Pe.h: Regenerated.
70660         * lib/unictype/categ_Pf.h: Regenerated.
70661         * lib/unictype/categ_Pi.h: Regenerated.
70662         * lib/unictype/categ_Po.h: Regenerated.
70663         * lib/unictype/categ_Ps.h: Regenerated.
70664         * lib/unictype/categ_S.h: Regenerated.
70665         * lib/unictype/categ_Sk.h: Regenerated.
70666         * lib/unictype/categ_Sm.h: Regenerated.
70667         * lib/unictype/categ_So.h: Regenerated.
70668         * lib/unictype/categ_of.h: Regenerated.
70669         * lib/unictype/combining.h: Regenerated.
70670         * lib/unictype/ctype_alnum.h: Regenerated.
70671         * lib/unictype/ctype_alpha.h: Regenerated.
70672         * lib/unictype/ctype_graph.h: Regenerated.
70673         * lib/unictype/ctype_lower.h: Regenerated.
70674         * lib/unictype/ctype_print.h: Regenerated.
70675         * lib/unictype/ctype_punct.h: Regenerated.
70676         * lib/unictype/ctype_upper.h: Regenerated.
70677         * lib/unictype/decdigit.h: Regenerated.
70678         * lib/unictype/digit.h: Regenerated.
70679         * lib/unictype/mirror.h: Regenerated.
70680         * lib/unictype/numeric.h: Regenerated.
70681         * lib/unictype/pr_alphabetic.h: Regenerated.
70682         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
70683         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
70684         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
70685         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
70686         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
70687         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
70688         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
70689         * lib/unictype/pr_combining.h: Regenerated.
70690         * lib/unictype/pr_dash.h: Regenerated.
70691         * lib/unictype/pr_decimal_digit.h: Regenerated.
70692         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
70693         * lib/unictype/pr_deprecated.h: Regenerated.
70694         * lib/unictype/pr_diacritic.h: Regenerated.
70695         * lib/unictype/pr_extender.h: Regenerated.
70696         * lib/unictype/pr_format_control.h: Regenerated.
70697         * lib/unictype/pr_grapheme_base.h: Regenerated.
70698         * lib/unictype/pr_grapheme_extend.h: Regenerated.
70699         * lib/unictype/pr_grapheme_link.h: Regenerated.
70700         * lib/unictype/pr_id_continue.h: Regenerated.
70701         * lib/unictype/pr_id_start.h: Regenerated.
70702         * lib/unictype/pr_ideographic.h: Regenerated.
70703         * lib/unictype/pr_ignorable_control.h: Regenerated.
70704         * lib/unictype/pr_lowercase.h: Regenerated.
70705         * lib/unictype/pr_math.h: Regenerated.
70706         * lib/unictype/pr_numeric.h: Regenerated.
70707         * lib/unictype/pr_other_alphabetic.h: Regenerated.
70708         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
70709         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
70710         * lib/unictype/pr_other_id_continue.h: Regenerated.
70711         * lib/unictype/pr_other_lowercase.h: Regenerated.
70712         * lib/unictype/pr_other_math.h: Regenerated.
70713         * lib/unictype/pr_punctuation.h: Regenerated.
70714         * lib/unictype/pr_sentence_terminal.h: Regenerated.
70715         * lib/unictype/pr_soft_dotted.h: Regenerated.
70716         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
70717         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
70718         * lib/unictype/pr_unified_ideograph.h: Regenerated.
70719         * lib/unictype/pr_uppercase.h: Regenerated.
70720         * lib/unictype/pr_xid_continue.h: Regenerated.
70721         * lib/unictype/pr_xid_start.h: Regenerated.
70722         * lib/unictype/pr_zero_width.h: Regenerated.
70723         * lib/unictype/scripts.h: Regenerated.
70724         * lib/unictype/scripts_byname.gperf: Regenerated.
70725         * lib/unictype/sy_java_ident.h: Regenerated.
70726         * lib/unilbrk/lbrkprop1.h: Regenerated.
70727         * lib/unilbrk/lbrkprop2.h: Regenerated.
70728         * tests/unictype/test-categ_C.c: Regenerated.
70729         * tests/unictype/test-categ_Cf.c: Regenerated.
70730         * tests/unictype/test-categ_Cn.c: Regenerated.
70731         * tests/unictype/test-categ_L.c: Regenerated.
70732         * tests/unictype/test-categ_Ll.c: Regenerated.
70733         * tests/unictype/test-categ_Lm.c: Regenerated.
70734         * tests/unictype/test-categ_Lo.c: Regenerated.
70735         * tests/unictype/test-categ_Lu.c: Regenerated.
70736         * tests/unictype/test-categ_M.c: Regenerated.
70737         * tests/unictype/test-categ_Mc.c: Regenerated.
70738         * tests/unictype/test-categ_Me.c: Regenerated.
70739         * tests/unictype/test-categ_Mn.c: Regenerated.
70740         * tests/unictype/test-categ_N.c: Regenerated.
70741         * tests/unictype/test-categ_Nd.c: Regenerated.
70742         * tests/unictype/test-categ_Nl.c: Regenerated.
70743         * tests/unictype/test-categ_No.c: Regenerated.
70744         * tests/unictype/test-categ_P.c: Regenerated.
70745         * tests/unictype/test-categ_Pd.c: Regenerated.
70746         * tests/unictype/test-categ_Pe.c: Regenerated.
70747         * tests/unictype/test-categ_Pf.c: Regenerated.
70748         * tests/unictype/test-categ_Pi.c: Regenerated.
70749         * tests/unictype/test-categ_Po.c: Regenerated.
70750         * tests/unictype/test-categ_Ps.c: Regenerated.
70751         * tests/unictype/test-categ_S.c: Regenerated.
70752         * tests/unictype/test-categ_Sk.c: Regenerated.
70753         * tests/unictype/test-categ_Sm.c: Regenerated.
70754         * tests/unictype/test-categ_So.c: Regenerated.
70755         * tests/unictype/test-ctype_alnum.c: Regenerated.
70756         * tests/unictype/test-ctype_alpha.c: Regenerated.
70757         * tests/unictype/test-ctype_graph.c: Regenerated.
70758         * tests/unictype/test-ctype_lower.c: Regenerated.
70759         * tests/unictype/test-ctype_print.c: Regenerated.
70760         * tests/unictype/test-ctype_punct.c: Regenerated.
70761         * tests/unictype/test-ctype_upper.c: Regenerated.
70762         * tests/unictype/test-decdigit.h: Regenerated.
70763         * tests/unictype/test-digit.h: Regenerated.
70764         * tests/unictype/test-numeric.h: Regenerated.
70765         * tests/unictype/test-pr_alphabetic.c: Regenerated.
70766         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
70767         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
70768         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
70769         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
70770         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
70771         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
70772         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
70773         * tests/unictype/test-pr_combining.c: Regenerated.
70774         * tests/unictype/test-pr_dash.c: Regenerated.
70775         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
70776         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
70777         * tests/unictype/test-pr_deprecated.c: Regenerated.
70778         * tests/unictype/test-pr_diacritic.c: Regenerated.
70779         * tests/unictype/test-pr_extender.c: Regenerated.
70780         * tests/unictype/test-pr_format_control.c: Regenerated.
70781         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
70782         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
70783         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
70784         * tests/unictype/test-pr_id_continue.c: Regenerated.
70785         * tests/unictype/test-pr_id_start.c: Regenerated.
70786         * tests/unictype/test-pr_ideographic.c: Regenerated.
70787         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
70788         * tests/unictype/test-pr_lowercase.c: Regenerated.
70789         * tests/unictype/test-pr_math.c: Regenerated.
70790         * tests/unictype/test-pr_numeric.c: Regenerated.
70791         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
70792         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
70793         Regenerated.
70794         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
70795         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
70796         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
70797         * tests/unictype/test-pr_other_math.c: Regenerated.
70798         * tests/unictype/test-pr_punctuation.c: Regenerated.
70799         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
70800         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
70801         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
70802         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
70803         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
70804         * tests/unictype/test-pr_uppercase.c: Regenerated.
70805         * tests/unictype/test-pr_xid_continue.c: Regenerated.
70806         * tests/unictype/test-pr_xid_start.c: Regenerated.
70807         * tests/unictype/test-pr_zero_width.c: Regenerated.
70809         Update to Unicode 5.1.0.
70810         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
70811         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
70812         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
70813         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
70814         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
70815         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
70816         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
70817         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
70818         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
70819         (nonspacing_table_ind): Update.
70820         * tests/uniwidth/test-uc_width2.sh: Update expected result.
70822         Update to Unicode 5.1.0.
70823         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
70824         code transform.
70825         * lib/uniname/uniname.c (unicode_character_name,
70826         unicode_name_character): Add the range 0x1Fxxx to the code transform.
70827         * lib/uniname/uninames.h: Regenerated.
70828         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
70830 2009-02-07  Bruno Haible  <bruno@clisp.org>
70832         Merge gen-ctype and gen-lbrk into a single program.
70833         * lib/gen-uni-tables.c: New file, incorporating
70834         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
70835         Add directory prefixes to the names of the generated files.
70836         * lib/unictype/gen-ctype.c: Remove file.
70837         * lib/unilbrk/gen-lbrk.c: Remove file.
70838         * modules/gen-uni-tables: New file.
70839         * modules/unictype/gen-ctype: Remove file.
70840         * modules/unilbrk/gen-lbrk: Remove file.
70842 2009-02-07  Bruno Haible  <bruno@clisp.org>
70844         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
70846         New module 'unistr/u32-strcoll'.
70847         * modules/unistr/u32-strcoll: New file.
70848         * lib/unistr/u32-strcoll.c: New file.
70850         New module 'unistr/u16-strcoll'.
70851         * modules/unistr/u16-strcoll: New file.
70852         * lib/unistr/u16-strcoll.c: New file.
70854         New module 'unistr/u8-strcoll'.
70855         * modules/unistr/u8-strcoll: New file.
70856         * lib/unistr/u8-strcoll.c: New file.
70857         * lib/unistr/u-strcoll.h: New file.
70859 2009-02-07  Bruno Haible  <bruno@clisp.org>
70861         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
70862         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70863         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
70864         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
70865         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
70866         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
70868 2009-02-07  Bruno Haible  <bruno@clisp.org>
70870         Make 64-bit clean.
70871         * lib/unictype/gen-ctype.c (output_predicate, output_category,
70872         output_combclass, output_bidi_category, output_decimal_digit,
70873         output_digit, output_numeric, output_mirror, output_scripts,
70874         output_ident_category): Use proper width specifier in format strings.
70876 2009-02-07  Bruno Haible  <bruno@clisp.org>
70878         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
70879         failure behaviour.
70881 2009-02-07  Jim Meyering  <meyering@redhat.com>
70883         regex: avoid compilation failure with upcoming gcc-4.4
70884         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
70885         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
70886         "... error: integer overflow in preprocessor expression".
70888 2009-02-05  Ben Pfaff  <blp@gnu.org>
70890         Fix link errors on Windows when close module is used.
70891         * modules/close: Add $(LIB_CLOSE) to Link section.
70892         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
70893         $(LIB_CLOSE) on Windows.
70895 2009-02-05  Jim Meyering  <meyering@redhat.com>
70897         still avoid unused-parameter warnings, but do it cleanly
70898         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
70899         (get_fs_usage): Cast to void instead.
70900         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
70901         (dev_from_mount_options, read_file_system_list): Cast to void.
70902         Prompted by Bruno Haible.
70904 2009-02-04  Jim Meyering  <meyering@redhat.com>
70906         fsusage.c: correct copyright year
70907         * lib/fsusage.c: Reflect year in which the change is pushed into
70909         avoid misc. warnings
70910         * lib/fsusage.c (UNUSED_PARAM): Define.
70911         (get_fs_usage): Mark parameter "disk" as unused.
70912         * lib/getugroups.c (getgrent): Use "void" in prototype.
70913         * lib/mountlist.c: Mark unused parameters.
70914         (read_file_system_list): Declare a local with "const".
70915         * lib/nanosleep.c (getnow): Declare static.
70916         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
70918         dirfd: set errno upon failure
70919         * lib/dirfd.c: Include <errno.h>.
70920         Set errno to ENOTSUP when returning -1.
70921         * modules/dirfd (Depends-on): Add errno.
70922         Suggested by John Kodis <kodis@comcast.net>.
70924 2009-02-01  Bruno Haible  <bruno@clisp.org>
70926         Don't assume sizeof (long) >= sizeof (void *).
70927         * lib/memcmp.c: Include stdint.h.
70928         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
70929         srcp2 to 'const byte *'.
70930         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
70931         types to uintptr_t.
70932         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
70933         * modules/memcmp (Depends-on): Add stdint.
70934         Reported by Ozkan Sezer <sezeroz@gmail.com>.
70936 2009-01-30  Eric Blake  <ebb9@byu.net>
70938         fix more require-before-expand issues
70939         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
70940         expand, AC_PROG_AWK.
70941         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
70943 2009-01-28  Eric Blake  <ebb9@byu.net>
70945         version-etc: use consistent URL formatting
70946         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
70947         Improve formatting.  Use fputs for string without %.
70949 2009-01-28  Jim Meyering  <meyering@redhat.com>
70951         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
70952         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
70953         "underquoted definition of NAME" from autoconf-2.59.
70955 2009-01-28  Bruno Haible  <bruno@clisp.org>
70957         * doc/gnulib.texi: Add "Obsolete modules" to index.
70959 2009-01-28  Jim Meyering  <meyering@redhat.com>
70961         useless-if-before-free: recognize more variants
70962         * build-aux/useless-if-before-free: Also recognize e.g.,
70963         if (NULL != p) free (p);
70965 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
70967         test-getaddrinfo: skip (don't fail) this test when there's no network
70968         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
70969         on the presumption that it means you lack network access.
70971 2009-01-26  Jim Meyering  <meyering@redhat.com>
70973         fflush: avoid warnings on modern systems
70974         * lib/fflush.c (rpl_fflush): Move declarations of locals,
70975         pos and result, into scopes where they're used.
70977 2009-01-26  Eric Blake  <ebb9@byu.net>
70979         Silence warning reintroduced by recent extensions patch.
70980         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
70981         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
70982         autoconf.
70984         Backport improved autoconf semantics of AC_DEFUN_ONCE.
70985         * m4/00gnulib.m4: New file.
70986         * gnulib-tool (func_get_filelist): Always use it.
70987         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
70988         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
70990 2009-01-25  Bruno Haible  <bruno@clisp.org>
70992         Make test-quotearg work on MacOS X and AIX.
70993         * tests/test-quotearg.sh: New file.
70994         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
70995         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
70996         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
70997         include <libintl.h>.
70998         (fake_locale): Remove variable.
70999         (gettext, dgettext, dcgettext): Remove functions.
71000         (main): Instead of setting a fake locale, set a real locale. Call
71001         textdomain and bindtextdomain.
71002         * modules/quotearg-tests (Files): Add the new files.
71003         (Depends-on): Add gettext, setenv, unsetenv.
71004         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71005         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
71006         Augment TESTS_ENVIRONMENT.
71008 2009-01-25  Bruno Haible  <bruno@clisp.org>
71010         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
71011         fr_FR.ISO8859-1 locale on MacOS X.
71012         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
71013         ja_JP.eucJP locale on MacOS X.
71014         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
71015         zh_CN.GB18030 locale on MacOS X.
71017 2009-01-25  Bruno Haible  <bruno@clisp.org>
71019         Avoid link errors on MacOS X 10.3.
71020         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
71021         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
71023 2009-01-25  Bruno Haible  <bruno@clisp.org>
71025         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
71026         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
71027         * modules/pipe (Files): Remove m4/posix_spawn.m4.
71028         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
71029         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
71030         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
71031         posix_spawnattr_init, posix_spawnattr_setsigmask,
71032         posix_spawnattr_setflags, posix_spawnattr_destroy.
71034         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
71035         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
71036         * modules/execute (Files): Remove m4/posix_spawn.m4.
71037         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
71038         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
71039         posix_spawnattr_init, posix_spawnattr_setsigmask,
71040         posix_spawnattr_setflags, posix_spawnattr_destroy.
71042 2009-01-25  Bruno Haible  <bruno@clisp.org>
71044         * lib/glthread/threadlib.c: Include <stdlib.h>.
71046 2009-01-25  Bruno Haible  <bruno@clisp.org>
71048         * lib/glthread/threadlib.c (dummy): New declaration.
71050 2009-01-25  Bruno Haible  <bruno@clisp.org>
71052         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
71053         multibyte characters also for the GB18030 encoding. Don't crash when
71054         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
71056 2009-01-25  Bruno Haible  <bruno@clisp.org>
71058         Avoid redefining 'struct random_data' on OSF/1 5.1.
71059         * lib/stdlib.in.h: Include <random.h> if it exists.
71060         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
71061         HAVE_RANDOM_H. Include <random.h> when testing whether
71062         'struct random_data' exists.
71063         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
71065 2009-01-25  Bruno Haible  <bruno@clisp.org>
71067         Don't install charset.alias on MacOS X >= 10.3.
71068         * lib/localcharset.c (DARWIN7): New macro.
71069         (get_charset_aliases): Hardcode the result for Darwin7.
71070         * modules/localcharset (install-exec-local): Don't install
71071         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
71073 2009-01-25  Bruno Haible  <bruno@clisp.org>
71075         Don't install charset.alias on mingw and Cygwin.
71076         * modules/localcharset (install-exec-local): Don't install
71077         charset.alias on mingw and Cygwin, if the file does not yet exist.
71078         The result for these platforms is hardcoded in localcharset.c.
71080 2009-01-25  Bruno Haible  <bruno@clisp.org>
71082         Make it possible again to use AC_GNU_SOURCE together with gnulib.
71083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
71084         before requiring AC_USE_SYSTEM_EXTENSIONS.
71086 2009-01-25  Jim Meyering  <meyering@redhat.com>
71088         c-strtod: avoid warnings
71089         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
71090         "assignment discards qualifiers from pointer target type" warnings.
71092 2009-01-24  Bruno Haible  <bruno@clisp.org>
71094         Add support for non-UTF-8 locales on MacOS X.
71095         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
71096         canonical encodings. For Darwin 7 and newer, don't map traditional
71097         encodings to UTF-8.
71098         Reported by Vincent Lefevre <vincent@vinc17.org>
71099         at <http://savannah.gnu.org/bugs/?25235>.
71101 2009-01-24  Bruno Haible  <bruno@clisp.org>
71103         * doc/gnulib.texi (Obsolete modules): New section.
71104         Reported by Mike Frysinger <vapier@gentoo.org>.
71106 2009-01-24  Bruno Haible  <bruno@clisp.org>
71108         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
71109         (%.dvi): New rule.
71111 2009-01-24  Bruno Haible  <bruno@clisp.org>
71113         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
71114         Reported by Eric Blake.
71116 2009-01-24  Bruno Haible  <bruno@clisp.org>
71118         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
71119         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
71120         Reported by Gary V. Vaughan <gary@gnu.org>.
71122 2009-01-24  Bruno Haible  <bruno@clisp.org>
71124         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
71126 2009-01-23  Bruno Haible  <bruno@clisp.org>
71128         Make c-strtod, c-strtold usable in libraries.
71129         * lib/c-strtod.c: Include string.h instead of xalloc.h.
71130         (C_STRTOD): Call strdup instead of xstrdup.
71131         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
71132         * modules/c-strtold (Depends-on): Likewise.
71133         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
71134         * NEWS: Mention the change.
71135         Reported by Michael Gold <mgold@ncf.ca>.
71137 2009-01-23  Jim Meyering  <meyering@redhat.com>
71139         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
71140         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
71141         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
71143 2009-01-23  Simon Josefsson  <simon@josefsson.org>
71145         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
71146         GNU CoreUtils.
71147         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
71148         * modules/version-etc (Description): Update.
71150 2009-01-22  Bruno Haible  <bruno@clisp.org>
71152         Cache the C locale object.
71153         * lib/c-strtod.c (c_locale_cache): New variable.
71154         (c_locale): New function.
71155         (C_STRTOD): Use it, and don't call freelocale.
71156         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
71157         Suggested by Paolo Bonzini.
71159 2009-01-21  Bruno Haible  <bruno@clisp.org>
71161         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
71162         conditions other than overflow.
71164 2009-01-21  Bruno Haible  <bruno@clisp.org>
71166         * lib/c-strtod.c: Include errno.h.
71167         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
71168         value from STRTOD_L and STRTOD.
71170 2009-01-21  Bruno Haible  <bruno@clisp.org>
71171         and Jim Meyering  <meyering@redhat.com>
71173         nanosleep: skip configure test (fail it) for apple universal builds
71174         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
71175         universal builds, assume that nanosleep does not work.
71176         * modules/nanosleep (Depends-on): Add multiarch.
71178         mktime: skip configure test (fail it) for apple universal builds
71179         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
71180         universal builds, assume that mktime does not work.
71181         * modules/mktime (Depends-on): Add multiarch.
71183 2009-01-21  Eric Blake  <ebb9@byu.net>
71185         multiarch: avoid expand-before-require warning
71186         * modules/multiarch (configure.ac): Require, rather than expand,
71187         gl_MULTIARCH.
71188         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
71189         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
71190         enforce that all clients require it.  Partial reversion of
71191         2008-12-29 patch.
71193         error: avoid expand-before-require warning
71194         * modules/errno (configure.ac): Require, rather than expand,
71195         gl_HEADER_ERRNO_H.
71196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
71197         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
71198         enforce that all clients require it.
71200         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
71201         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
71202         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
71203         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
71205 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
71207         Revert:
71208         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71210         regex: do not depend on obsolete modules.
71211         * modules/regex: Remove memcmp and memmove.
71213 2009-01-20  Bruno Haible  <bruno@clisp.org>
71215         Make the 'link' module link on Windows NT 4.
71216         * lib/link.c (_WIN32_WINNT): Don't define.
71217         (CreateHardLinkFuncType): New type.
71218         (CreateHardLinkFunc, initialized): New variables.
71219         (initialize): New function.
71220         (link): Invoke CreateHardLink indirectly through the function pointer.
71222 2009-01-20  Bruno Haible  <bruno@clisp.org>
71224         Fix compilation failure on mingw.
71225         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
71227 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
71229         * doc/c-strtod.texi: Mention a couple of restrictions.
71231 2009-01-20  Jim Meyering  <meyering@redhat.com>
71233         gettimeofday: move more declarations out of functions
71234         * lib/gettimeofday.c: Move extern declarations of tzset and
71235         gmtime out of containing functions.  Prompted by Bruno Haible.
71237 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
71239         regex: do not depend on obsolete modules.
71240         * modules/regex: Remove memcmp and memmove.
71242 2009-01-19  Bruno Haible  <bruno@clisp.org>
71244         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71245         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
71246         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71247         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
71248         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
71250 2009-01-19  Bruno Haible  <bruno@clisp.org>
71252         * tests/test-link.c: Include <errno.h>.
71253         (main): Exit with code 77 when a hard link cannot be created due to
71254         the file system.
71255         * tests/test-link.sh: Skip test when a hard link cannot be created due
71256         to the file system.
71257         Suggested by Eric Blake.
71259 2009-01-19  Martin Lambers  <marlam@marlam.de>
71261         * modules/link-tests: New file.
71262         * tests/test-link.sh: New file.
71263         * tests/test-link.c: New file.
71265 2009-01-19  Eric Blake  <ebb9@byu.net>
71267         doc: mention another function added in cygwin 1.7.0
71268         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
71269         Another new function in cygwin 1.7.
71271 2009-01-19  Bruno Haible  <bruno@clisp.org>
71273         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
71274         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
71275         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
71276         gl_BIGENDIAN, not AC_C_BIGENDIAN.
71277         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
71278         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
71279         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
71280         * m4/md4.m4 (gl_MD4): Likewise.
71281         * m4/md5.m4 (gl_MD5): Likewise.
71282         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
71283         * m4/sha1.m4 (gl_SHA1): Likewise.
71284         * m4/sha256.m4 (gl_SHA256): Likewise.
71285         * m4/sha512.m4 (gl_SHA512): Likewise.
71287 2009-01-19  Bruno Haible  <bruno@clisp.org>
71289         * modules/uniname/uniname-tests (Depends-on): Add progname.
71290         * tests/uniname/test-uninames.c: Include progname.h.
71291         (main): Call set_program_name.
71293         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
71294         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
71295         (main): Call set_program_name.
71297         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
71298         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
71299         (main): Call set_program_name.
71301         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
71302         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
71303         (main): Call set_program_name.
71305         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
71306         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
71307         (main): Call set_program_name.
71309         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
71310         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
71311         (main): Call set_program_name.
71313         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
71314         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
71315         (main): Call set_program_name.
71317         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
71318         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
71319         (main): Call set_program_name.
71321         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
71322         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
71323         (main): Call set_program_name.
71325 2009-01-19  Eric Blake  <ebb9@byu.net>
71327         test-unistd: test previous patch
71328         * tests/test-unistd.c: Test *_FILENO macros.
71330         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
71331         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71332         Guarantee a definition.
71333         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
71334         * modules/unistd-safer (Depends-on): Add dependency on unistd.
71335         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
71336         * lib/dup-safer.c (STDERR_FILENO): Likewise.
71337         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71338         Likewise.
71339         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
71340         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
71341         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
71342         Likewise.
71343         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
71344         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
71345         (STDERR_FILENO): Likewise.
71346         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
71347         (STDERR_FILENO): Likewise.
71348         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
71349         (STDERR_FILENO): Likewise.
71350         Reported by Elbert Pol.
71352 2009-01-19  Eric Blake  <ebb9@byu.net>
71354         doc: mention more functions added in cygwin 1.7.0
71355         * doc/posix-functions/abort.texi (abort): Update wording related
71356         to cygwin.
71357         * doc/posix-functions/daylight.texi (daylight): Likewise.
71358         * doc/posix-functions/optarg.texi (optarg): Likewise.
71359         * doc/posix-functions/optarg.texi (opterr): Likewise.
71360         * doc/posix-functions/optarg.texi (optind): Likewise.
71361         * doc/posix-functions/optarg.texi (optopt): Likewise.
71362         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
71363         worked in 1.5.x, and was withdrawn in 1.7.
71364         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
71365         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
71366         cygwin versions.
71367         * doc/posix-functions/perror.texi (perror): Likewise.
71368         * doc/posix-functions/printf.texi (printf): Likewise.
71369         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
71370         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
71371         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
71372         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
71373         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
71374         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
71375         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
71376         Likewise.
71377         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
71378         Likewise.
71379         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
71380         this function.
71381         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
71382         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
71383         Likewise.
71384         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
71385         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
71386         * doc/posix-functions/confstr.texi (confstr): Likewise.
71387         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
71388         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
71389         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
71390         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
71391         * doc/posix-functions/fputws.texi (fputws): Likewise.
71392         * doc/posix-functions/fwide.texi (fwide): Likewise.
71393         * doc/posix-functions/getwc.texi (getwc): Likewise.
71394         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
71395         * doc/posix-functions/putwc.texi (putwc): Likewise.
71396         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
71397         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
71398         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
71399         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
71400         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
71401         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
71402         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
71403         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
71404         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
71405         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
71406         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
71408 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71410         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
71411         * lib/ioctl.c: Include <sys/ioctl.h>.
71413 2009-01-19  Simon Josefsson  <simon@josefsson.org>
71415         * modules/getdate-tests (Depends-on): Add progname.
71416         * tests/test-getdate.c: Use progname module, to avoid link errors
71417         on non-glibc systems.
71419 2009-01-18  Simon Josefsson  <simon@josefsson.org>
71421         * modules/filenamecat-tests (Depends-on): Add progname.
71422         * modules/fstrcmp-tests (Depends-on): Likewise.
71424         * tests/test-filenamecat.c: Use progname module, to avoid link
71425         errors on non-glibc systems.
71426         * tests/test-fstrcmp.c: Likewise.
71428 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
71430         gettimeofday: avoid warning: nested extern declaration of 'localtime'
71431         * lib/gettimeofday.c: Move extern declaration out of function.
71433 2009-01-18  Bruno Haible  <bruno@clisp.org>
71435         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
71436         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
71437         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
71439 2009-01-18  Bruno Haible  <bruno@clisp.org>
71441         * lib/strftime.c (MEMPCPY): Remove unused macro.
71442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
71444 2009-01-18  Martin Lambers  <marlam@marlam.de>
71446         New module 'link'.
71447         * lib/unistd.in.h (link): New declaration.
71448         * lib/link.c: New file.
71449         * m4/link.m4: New file.
71450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
71451         HAVE_LINK.
71452         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
71453         * modules/link: New file.
71454         * doc/posix-functions/link.texi: Mention the new module.
71456 2009-01-18  Bruno Haible  <bruno@clisp.org>
71458         * tests/test-avltree_list.c (main): Call set_program_name.
71459         * tests/test-avltree_oset.c (main): Likewise.
71460         * tests/test-obstack-printf.c: Include progname.h.
71461         (main): Call set_program_name.
71462         * tests/test-quotearg.c: Include progname.h.
71463         (main): Call set_program_name.
71464         * tests/test-xmemdup0.c: Include progname.h.
71465         (main): Call set_program_name.
71467 2009-01-18  Bruno Haible  <bruno@clisp.org>
71469         New module 'alphasort'.
71470         * lib/dirent.in.h (alphasort): New declaration.
71471         * lib/alphasort.c: New file, from glibc with modifications.
71472         * m4/alphasort.m4: New file.
71473         * modules/alphasort: New file.
71474         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
71475         HAVE_ALPHASORT.
71476         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
71477         HAVE_ALPHASORT.
71478         * doc/posix-functions/alphasort.texi: Mention the new module and the
71479         portability problems.
71481 2009-01-18  Bruno Haible  <bruno@clisp.org>
71483         New module 'scandir'.
71484         * lib/dirent.in.h (scandir): New declaration.
71485         * lib/scandir.c: New file, from glibc with modifications.
71486         * m4/scandir.m4: New file.
71487         * modules/scandir: New file.
71488         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
71489         HAVE_SCANDIR.
71490         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
71491         HAVE_SCANDIR.
71492         * doc/posix-functions/scandir.texi: Mention the new module and the
71493         portability problems.
71495 2009-01-17  Bruno Haible  <bruno@clisp.org>
71497         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
71498         Update documentation.
71499         (func_remove_suffix): Escape all dots in the suffix. Update
71500         documentation.
71501         (func_filter_filelist): Update documentation.
71502         Reported by Ralf Wildenhues.
71504 2009-01-17  Bruno Haible  <bruno@clisp.org>
71506         * modules/dprintf-posix-tests: New file.
71507         * tests/test-dprintf-posix.sh: New file.
71508         * tests/test-dprintf-posix.c: New file.
71510         New modules 'dprintf', 'dprintf-posix'.
71511         * lib/stdio.in.h (dprintf): New declaration.
71512         * lib/dprintf.c: New file.
71513         * m4/dprintf.m4: New file.
71514         * m4/dprintf-posix.m4: New file.
71515         * modules/dprintf: New file.
71516         * modules/dprintf-posix: New file.
71517         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
71518         HAVE_DPRINTF, REPLACE_DPRINTF.
71519         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
71520         HAVE_DPRINTF, REPLACE_DPRINTF.
71521         * doc/posix-functions/dprintf.texi: Mention the new modules.
71523 2009-01-17  Bruno Haible  <bruno@clisp.org>
71525         * modules/vdprintf-posix-tests: New file.
71526         * tests/test-vdprintf-posix.sh: New file.
71527         * tests/test-vdprintf-posix.c: New file.
71529         New modules 'vdprintf', 'vdprintf-posix'.
71530         * lib/stdio.in.h (vdprintf): New declaration.
71531         * lib/vdprintf.c: New file.
71532         * m4/vdprintf.m4: New file.
71533         * m4/vdprintf-posix.m4: New file.
71534         * modules/vdprintf: New file.
71535         * modules/vdprintf-posix: New file.
71536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
71537         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71538         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
71539         HAVE_VDPRINTF, REPLACE_VDPRINTF.
71540         * doc/posix-functions/vdprintf.texi: Mention the new modules.
71542 2009-01-17  Bruno Haible  <bruno@clisp.org>
71544         Fix replacement of fopen on mingw.
71545         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
71546         mingw.
71548 2009-01-17  Bruno Haible  <bruno@clisp.org>
71550         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
71551         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
71553 2009-01-17  Bruno Haible  <bruno@clisp.org>
71555         Avoid test-fflush2.sh failure on mingw.
71556         * tests/test-fflush2.c: Include binary-io.h.
71557         (main): Put standard input into binary mode.
71558         * modules/fflush-tests (Depends-on): Add binary-io.
71560 2009-01-17  Bruno Haible  <bruno@clisp.org>
71562         * lib/wchar.in.h: In another particular situation, include only the
71563         system's <wchar.h> file.
71564         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
71565         Reported by Albert Chin-A-Young <china@thewrittenword.com>
71566         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
71568 2009-01-17  Bruno Haible  <bruno@clisp.org>
71570         Support for stripping executables in --enable-relocatable.
71571         * build-aux/install-reloc: Expect one more argument, or an environment
71572         variable RELOC_STRIP_PROG. If set, strip the destination program and
71573         its wrapper.
71574         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
71575         RELOC_STRIP_PROG.
71576         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
71577         to set RELOCATABLE_STRIP.
71578         * NEWS: Mention the new Makefile requirement.
71580 2009-01-17  Bruno Haible  <bruno@clisp.org>
71582         * build-aux/install-reloc: Remove debugging information left over by
71583         C compiler on MacOS X.
71585 2009-01-17  Bruno Haible  <bruno@clisp.org>
71587         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
71588         * lib/progreloc.c (find_executable): Fix type of pointer passed to
71589         _NSGetExecutablePath.
71591 2009-01-16  Jim Meyering  <meyering@redhat.com>
71593         strerror: avoid warnings about discarding "const"
71594         * lib/strerror.c (rpl_strerror): Instead of returning a const
71595         string from each and every "case", use a variable, and add a single
71596         cast after the switch.
71598 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
71600         * lib/arpa_inet.in.h: Add extern "C" block for C++.
71602 2009-01-16  Bruno Haible  <bruno@clisp.org>
71604         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
71605         array initializer syntax that also works in C++ mode.
71606         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71608 2009-01-16  Jim Meyering  <meyering@redhat.com>
71610         poll: suppress a warning
71611         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
71612         to ignore "...unsigned expression < 0 is always false" warnings.
71614 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
71616         poll: remove declarations of unused variables
71617         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
71618         sockbuf and optlen.
71620 2009-01-15  Bruno Haible  <bruno@clisp.org>
71622         Make fflush-after-ungetc POSIX compliant on BSD systems.
71623         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
71624         (clear_ungetc_buffer): Implement also for other systems.
71625         (rpl_fflush): On glibc systems, invoke
71626         clear_ungetc_buffer_preserving_position. Otherwise, invoke
71627         clear_ungetc_buffer after fetching the stream's position, not before.
71629 2009-01-15  Bruno Haible  <bruno@clisp.org>
71631         Make fflush-after-ungetc POSIX compliant on glibc systems.
71632         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
71633         after ungetc.
71634         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
71635         (rpl_fflush): On glibc systems, simply call the system's fflush
71636         function after clearing the ungetc buffer.
71637         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
71638         Instead, lseek only to the end of file, then use the system's fseeko
71639         for the rest. On glibc systems, reset the EOF indicator bit.
71641 2009-01-15  Jim Meyering  <meyering@redhat.com>
71643         openmp.m4: revert quote-adding change, for portability to older autoconf
71644         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
71645         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
71646         Simon Josefsson noticed the problem when using autoconf-2.61.
71648 2009-01-15  Bruno Haible  <bruno@clisp.org>
71650         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
71651         * tests/test-fflush2.c (ASSERT): Always fail.
71652         (main): Add two tests for fflush() after ungetc(), taking into account
71653         the Austin Group's clarification.
71654         Suggested by Eric Blake.
71656 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
71658         mktime.m4: remove K&R-style function prototypes
71659         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
71660         for the Sun C++ compiler.
71662 2009-01-14  Bruno Haible  <bruno@clisp.org>
71664         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
71665         while including <wchar.h>.
71666         * lib/wchar.in.h: In two particular situations on HP-UX, include only
71667         the system's <wchar.h> file.
71668         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71670 2009-01-14  Bruno Haible  <bruno@clisp.org>
71672         * m4/csharp.m4: Don't mention gettext on the serial number line.
71673         * m4/csharpexec.m4: Likewise.
71674         * m4/eaccess.m4: Likewise.
71675         * m4/javaexec.m4: Likewise.
71676         * m4/sig_atomic_t.m4: Likewise.
71677         * m4/tmpdir.m4: Likewise.
71678         * m4/intldir.m4: Bump gettext version.
71679         * m4/lib-ld.m4: Likewise.
71681 2009-01-14  Bruno Haible  <bruno@clisp.org>
71683         * lib/progname.c (set_program_name): Add more comments.
71684         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
71686 2009-01-14  Simon Josefsson  <simon@josefsson.org>
71688         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
71689         were sys/stat.h does not define it.
71691 2009-01-14  Jim Meyering  <meyering@redhat.com>
71693         many *.m4 files: improve m4 quoting
71694         99% of this change was performed by running the following commands:
71695         git ls-files | grep '\.m4$' | xargs perl -pi \
71696           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
71697           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71698           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
71699           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
71700         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
71701         The remainder were to add Copyright dates, increment serial numbers,
71702         undo some changes in comments, exclude m4/intl.m4, and add quotes
71703         around the "1" in ",1" where the unusual spacing prohibited the
71704         above regexps from doing the job.  For more details, see
71705         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
71706         * m4/acl.m4: Modified.
71707         * m4/afs.m4: Likewise.
71708         * m4/alloca.m4: Likewise.
71709         * m4/argp.m4: Likewise.
71710         * m4/argz.m4: Likewise.
71711         * m4/atexit.m4: Likewise.
71712         * m4/bison-i18n.m4: Likewise.
71713         * m4/bison.m4: Likewise.
71714         * m4/byteswap.m4: Likewise.
71715         * m4/c-stack.m4: Likewise.
71716         * m4/c-strtod.m4: Likewise.
71717         * m4/calloc.m4: Likewise.
71718         * m4/canonicalize-lgpl.m4: Likewise.
71719         * m4/chown.m4: Likewise.
71720         * m4/clock_time.m4: Likewise.
71721         * m4/codeset.m4: Likewise.
71722         * m4/copy-file.m4: Likewise.
71723         * m4/csharp.m4: Likewise.
71724         * m4/csharpcomp.m4: Likewise.
71725         * m4/csharpexec.m4: Likewise.
71726         * m4/d-ino.m4: Likewise.
71727         * m4/d-type.m4: Likewise.
71728         * m4/dirfd.m4: Likewise.
71729         * m4/double-slash-root.m4: Likewise.
71730         * m4/eaccess.m4: Likewise.
71731         * m4/eealloc.m4: Likewise.
71732         * m4/environ.m4: Likewise.
71733         * m4/errno_h.m4: Likewise.
71734         * m4/euidaccess.m4: Likewise.
71735         * m4/execute.m4: Likewise.
71736         * m4/fatal-signal.m4: Likewise.
71737         * m4/fchdir.m4: Likewise.
71738         * m4/fcntl_h.m4: Likewise.
71739         * m4/fileblocks.m4: Likewise.
71740         * m4/filenamecat.m4: Likewise.
71741         * m4/findprog.m4: Likewise.
71742         * m4/flexmember.m4: Likewise.
71743         * m4/fnmatch.m4: Likewise.
71744         * m4/fopen.m4: Likewise.
71745         * m4/fpending.m4: Likewise.
71746         * m4/fprintf-posix.m4: Likewise.
71747         * m4/free.m4: Likewise.
71748         * m4/frexp.m4: Likewise.
71749         * m4/frexpl.m4: Likewise.
71750         * m4/fsusage.m4: Likewise.
71751         * m4/ftruncate.m4: Likewise.
71752         * m4/gc-camellia.m4: Likewise.
71753         * m4/gc-random.m4: Likewise.
71754         * m4/gc.m4: Likewise.
71755         * m4/getaddrinfo.m4: Likewise.
71756         * m4/getcwd-abort-bug.m4: Likewise.
71757         * m4/getcwd-path-max.m4: Likewise.
71758         * m4/getdate.m4: Likewise.
71759         * m4/getdomainname.m4: Likewise.
71760         * m4/getgroups.m4: Likewise.
71761         * m4/gethostname.m4: Likewise.
71762         * m4/gethrxtime.m4: Likewise.
71763         * m4/getline.m4: Likewise.
71764         * m4/getloadavg.m4: Likewise.
71765         * m4/getndelim2.m4: Likewise.
71766         * m4/getpass.m4: Likewise.
71767         * m4/gettext.m4: Likewise.
71768         * m4/gettime.m4: Likewise.
71769         * m4/gettimeofday.m4: Likewise.
71770         * m4/gnulib-common.m4: Likewise.
71771         * m4/group-member.m4: Likewise.
71772         * m4/host-os.m4: Likewise.
71773         * m4/iconv.m4: Likewise.
71774         * m4/iconv_open.m4: Likewise.
71775         * m4/inet_ntop.m4: Likewise.
71776         * m4/inet_pton.m4: Likewise.
71777         * m4/inline.m4: Likewise.
71778         * m4/intldir.m4: Likewise.
71779         * m4/intlmacosx.m4: Likewise.
71780         * m4/intmax.m4: Likewise.
71781         * m4/intmax_t.m4: Likewise.
71782         * m4/inttypes.m4: Likewise.
71783         * m4/inttypes_h.m4: Likewise.
71784         * m4/inttypes-pri.m4: Likewise.
71785         * m4/isapipe.m4: Likewise.
71786         * m4/isnand.m4: Likewise.
71787         * m4/isnanf.m4: Likewise.
71788         * m4/isnanl.m4: Likewise.
71789         * m4/javacomp.m4: Likewise.
71790         * m4/javaexec.m4: Likewise.
71791         * m4/jm-winsz1.m4: Likewise.
71792         * m4/jm-winsz2.m4: Likewise.
71793         * m4/lchown.m4: Likewise.
71794         * m4/lcmessage.m4: Likewise.
71795         * m4/ldexpl.m4: Likewise.
71796         * m4/lib-ld.m4: Likewise.
71797         * m4/lib-link.m4: Likewise.
71798         * m4/libsigsegv.m4: Likewise.
71799         * m4/link-follow.m4: Likewise.
71800         * m4/localcharset.m4: Likewise.
71801         * m4/locale-fr.m4: Likewise.
71802         * m4/locale-ja.m4: Likewise.
71803         * m4/locale-tr.m4: Likewise.
71804         * m4/locale-zh.m4: Likewise.
71805         * m4/lock.m4: Likewise.
71806         * m4/longlong.m4: Likewise.
71807         * m4/ls-mntd-fs.m4: Likewise.
71808         * m4/lstat.m4: Likewise.
71809         * m4/malloc.m4: Likewise.
71810         * m4/mathl.m4: Likewise.
71811         * m4/mbrtowc.m4: Likewise.
71812         * m4/mbstate_t.m4: Likewise.
71813         * m4/mbswidth.m4: Likewise.
71814         * m4/memchr.m4: Likewise.
71815         * m4/memcmp.m4: Likewise.
71816         * m4/memcpy.m4: Likewise.
71817         * m4/memmem.m4: Likewise.
71818         * m4/memmove.m4: Likewise.
71819         * m4/mempcpy.m4: Likewise.
71820         * m4/memrchr.m4: Likewise.
71821         * m4/memset.m4: Likewise.
71822         * m4/minmax.m4: Likewise.
71823         * m4/mkdir-slash.m4: Likewise.
71824         * m4/mkdtemp.m4: Likewise.
71825         * m4/mktime.m4: Likewise.
71826         * m4/mmap-anon.m4: Likewise.
71827         * m4/mountlist.m4: Likewise.
71828         * m4/nanosleep.m4: Likewise.
71829         * m4/nls.m4: Likewise.
71830         * m4/nocrash.m4: Likewise.
71831         * m4/open.m4: Likewise.
71832         * m4/openat.m4: Likewise.
71833         * m4/openmp.m4: Likewise.
71834         * m4/pathmax.m4: Likewise.
71835         * m4/perl.m4: Likewise.
71836         * m4/physmem.m4: Likewise.
71837         * m4/pipe.m4: Likewise.
71838         * m4/po.m4: Likewise.
71839         * m4/poll.m4: Likewise.
71840         * m4/posixtm.m4: Likewise.
71841         * m4/posixver.m4: Likewise.
71842         * m4/printf-frexp.m4: Likewise.
71843         * m4/printf-frexpl.m4: Likewise.
71844         * m4/printf-posix.m4: Likewise.
71845         * m4/printf-posix-rpl.m4: Likewise.
71846         * m4/printf.m4: Likewise.
71847         * m4/progtest.m4: Likewise.
71848         * m4/putenv.m4: Likewise.
71849         * m4/readline.m4: Likewise.
71850         * m4/readlink.m4: Likewise.
71851         * m4/readutmp.m4: Likewise.
71852         * m4/realloc.m4: Likewise.
71853         * m4/regex.m4: Likewise.
71854         * m4/relocatable.m4: Likewise.
71855         * m4/relocatable-lib.m4: Likewise.
71856         * m4/rename-dest-slash.m4: Likewise.
71857         * m4/rename.m4: Likewise.
71858         * m4/rmdir-errno.m4: Likewise.
71859         * m4/rmdir.m4: Likewise.
71860         * m4/roundf.m4: Likewise.
71861         * m4/roundl.m4: Likewise.
71862         * m4/rpmatch.m4: Likewise.
71863         * m4/save-cwd.m4: Likewise.
71864         * m4/selinux-selinux-h.m4: Likewise.
71865         * m4/setenv.m4: Likewise.
71866         * m4/settime.m4: Likewise.
71867         * m4/sig2str.m4: Likewise.
71868         * m4/sig_atomic_t.m4: Likewise.
71869         * m4/signalblocking.m4: Likewise.
71870         * m4/signbit.m4: Likewise.
71871         * m4/sigpipe.m4: Likewise.
71872         * m4/sockets.m4: Likewise.
71873         * m4/sockpfaf.m4: Likewise.
71874         * m4/st_dm_mode.m4: Likewise.
71875         * m4/stat-time.m4: Likewise.
71876         * m4/stdbool.m4: Likewise.
71877         * m4/stdint.m4: Likewise.
71878         * m4/stdint_h.m4: Likewise.
71879         * m4/stpcpy.m4: Likewise.
71880         * m4/stpncpy.m4: Likewise.
71881         * m4/strcase.m4: Likewise.
71882         * m4/strchrnul.m4: Likewise.
71883         * m4/strcspn.m4: Likewise.
71884         * m4/strdup.m4: Likewise.
71885         * m4/strftime.m4: Likewise.
71886         * m4/strndup.m4: Likewise.
71887         * m4/strnlen.m4: Likewise.
71888         * m4/strpbrk.m4: Likewise.
71889         * m4/strptime.m4: Likewise.
71890         * m4/strsep.m4: Likewise.
71891         * m4/strtod.m4: Likewise.
71892         * m4/strtoimax.m4: Likewise.
71893         * m4/strtok_r.m4: Likewise.
71894         * m4/strtol.m4: Likewise.
71895         * m4/strtoll.m4: Likewise.
71896         * m4/strtoul.m4: Likewise.
71897         * m4/strtoull.m4: Likewise.
71898         * m4/strtoumax.m4: Likewise.
71899         * m4/strverscmp.m4: Likewise.
71900         * m4/threadlib.m4: Likewise.
71901         * m4/timegm.m4: Likewise.
71902         * m4/tm_gmtoff.m4: Likewise.
71903         * m4/tmpdir.m4: Likewise.
71904         * m4/tmpfile.m4: Likewise.
71905         * m4/tzset.m4: Likewise.
71906         * m4/uintmax_t.m4: Likewise.
71907         * m4/unlinkdir.m4: Likewise.
71908         * m4/unlocked-io.m4: Likewise.
71909         * m4/uptime.m4: Likewise.
71910         * m4/userspec.m4: Likewise.
71911         * m4/utimbuf.m4: Likewise.
71912         * m4/utime.m4: Likewise.
71913         * m4/utimes-null.m4: Likewise.
71914         * m4/utimes.m4: Likewise.
71915         * m4/vararrays.m4: Likewise.
71916         * m4/vasnprintf.m4: Likewise.
71917         * m4/vfprintf-posix.m4: Likewise.
71918         * m4/vprintf-posix.m4: Likewise.
71919         * m4/wait-process.m4: Likewise.
71920         * m4/wchar_t.m4: Likewise.
71921         * m4/wint_t.m4: Likewise.
71922         * m4/write-any-file.m4: Likewise.
71923         * m4/yield.m4: Likewise.
71925 2009-01-13  Bruno Haible  <bruno@clisp.org>
71927         Avoid test-copy-file.sh failures when ACL support insufficient.
71928         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
71929         TESTS_ENVIRONMENT.
71930         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
71931         Reported by Jim Meyering.
71933 2009-01-13  Bruno Haible  <bruno@clisp.org>
71935         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
71936         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
71937         * modules/unistdio/u8-printf-parse (Files): Likewise.
71938         * modules/unistdio/u32-printf-parse (Files): Likewise.
71939         * modules/unistdio/ulc-printf-parse (Files): Likewise.
71941 2009-01-13  Simon Josefsson  <simon@josefsson.org>
71943         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
71944         and m4/inttypes_h.m4 too.
71946 2009-01-12  Eric Blake  <ebb9@byu.net>
71948         tests: IRIX 6.2 cc can't compile -0.0 into .data
71949         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
71950         rather than at compile-time.
71951         * tests/test-floorl.c (minus_zero): Likewise.
71952         * tests/test-frexpl.c (minus_zero): Likewise.
71953         * tests/test-isnan.c (minus_zerol): Likewise.
71954         * tests/test-isnanl.h (minus_zero): Likewise.
71955         * tests/test-ldexpl.c (minus_zero): Likewise.
71956         * tests/test-roundl.c (minus_zero): Likewise.
71957         * tests/test-signbit.c (minus_zerol): Likewise.
71958         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
71959         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
71960         * tests/test-truncl.c (minus_zero): Likewise.
71961         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
71962         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
71963         Reported by Tom G. Christensen and Nelson H. F. Beebe.
71965 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71967         regex: fix glibc bug 9697
71968         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
71969         handling.
71971 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71973         regex: fix glibc bug 697
71974         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
71975         being NULL also if there are no backreferences.
71977 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
71979         regex: merge glibc changes
71980         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
71981         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
71982         re_string_skip_chars, re_string_reconstruct): Likewise.
71983         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
71985 2009-01-07  Jim Meyering  <meyering@redhat.com>
71987         poll: filter through cppi
71988         * lib/poll.c: Indent cpp directives to reflect nesting.
71990 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
71992         poll: don't return uninitialized
71993         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
71995 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
71997         avoid compile failure on AIX 6.1
71998         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
71999         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
72001 2009-01-04  Jim Meyering  <meyering@redhat.com>
72003         remove duplicate inclusion of <stdio.h>
72004         * tests/test-fprintf-posix.c: Likewise.
72005         * tests/test-printf-posix.c: Likewise.
72006         * tests/test-snprintf-posix.c: Likewise.
72007         * tests/test-sprintf-posix.c: Likewise.
72008         * tests/test-vasprintf-posix.c: Likewise.
72009         * tests/test-vfprintf-posix.c: Likewise.
72010         * tests/test-vprintf-posix.c: Likewise.
72011         * tests/test-vsnprintf-posix.c: Likewise.
72012         * tests/test-vsprintf-posix.c: Likewise.
72014 2009-01-03  Jim Meyering  <meyering@redhat.com>
72016         gnulib-tool: fix sed-based filtering
72017         * gnulib-tool (func_filter_filelist): Remove extra backslash
72018         in sed_fff_filter definition.
72020 2009-01-02  Jim Meyering  <meyering@redhat.com>
72022         strftime: avoid compilation failure on Solaris 2.6
72023         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
72024         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
72025         Don't #define mbrlen or mbsinit, since now they're guaranteed to
72026         be available.  Reported by Tom G. Christensen.  Details in
72027         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
72029 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72030             Bruno Haible  <bruno@clisp.org>
72032         Speed up gnulib-tool by doing more string processing through shell
72033         built-ins.
72034         * gnulib-tool (fast_func_append): New variable.
72035         (func_remove_prefix, func_remove_suffix): New functions.
72036         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
72037         (func_filter_filelist): New function.
72038         (func_get_dependencies): Use func_remove_suffix instead of sed.
72039         (func_get_automake_snippet): Use func_filter_filelist instead of a
72040         subshell and sed invocation.
72042 2009-01-01  Bruno Haible  <bruno@clisp.org>
72044         Fix a security bug.
72045         * gnulib-tool (func_import, import, update): Don't allow the characters
72046         '"', '$', '`', '\' in macro arguments that become part of commands that
72047         are evaluated.
72049 2009-01-01  Bruno Haible  <bruno@clisp.org>
72051         * gnulib-tool (func_reset_sigpipe): Add more comments.
72053 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72055         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
72056         func_emit_tests_Makefile_am, func_import): Abort loops early if we
72057         already know the answer.
72059 2009-01-01  Jim Meyering  <meyering@redhat.com>
72061         * lib/version-etc.c (version_etc_va): Update copyright year.
72063 2008-12-30  Bruno Haible  <bruno@clisp.org>
72065         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
72066         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
72067         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
72069 2008-12-29  Eric Blake  <ebb9@byu.net>
72071         multiarch: avoid autoconf AC_REQUIRE bug
72072         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
72073         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
72074         2.63 and older.
72075         Reported by Bruno Haible, and analyzed in
72076         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
72078 2008-12-29  Bruno Haible  <bruno@clisp.org>
72080         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
72081         files in subdirectories correctly.
72082         Reported by Ralf Wildenhues.
72084 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72086         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
72087         rather than 'join FILE -', for Solaris join.
72089 2008-12-29  Bruno Haible  <bruno@clisp.org>
72091         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
72092         quoting.
72093         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72094         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
72095         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
72096         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
72097         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
72098         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
72099         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
72100         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
72101         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
72102         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
72103         * m4/nls.m4 (AM_NLS): Likewise.
72104         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
72105         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
72106         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
72107         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
72108         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
72109         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
72110         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
72111         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
72112         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
72113         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72114         * m4/xsize.m4 (gl_XSIZE): Likewise.
72115         Suggested by Jim Meyering.
72117 2008-11-17  Bruce Korb  <bkorb@gnu.org>
72119         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
72120         * lib/parse-duration.c: use a switch instead of cascading if's.
72122 2008-12-29  Eric Blake  <ebb9@byu.net>
72124         wchar.h: supply WEOF on Irix 5.3
72125         * lib/wchar.in.h (wint_t): Also supply WEOF.
72126         * lib/wctype.in.h (wint_t): Likewise.
72127         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
72128         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
72129         Reported by Tom G. Christensen.
72131 2008-12-26  Bruno Haible  <bruno@clisp.org>
72133         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
72134         i486, i586, i686.
72136 2008-12-26  Bruno Haible  <bruno@clisp.org>
72138         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
72140 2008-12-26  Bruno Haible  <bruno@clisp.org>
72142         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
72143         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
72144         not __STDC_CONSTANT_MACROS.
72145         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
72147 2008-12-25  Bruno Haible  <bruno@clisp.org>
72149         Add support for universal builds to vasnprintf.
72150         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
72151         universal builds, guess no.
72152         * modules/vasnprintf-posix (Depends-on): Add multiarch.
72153         * modules/vasprintf-posix (Depends-on): Likewise.
72154         * modules/fprintf-posix (Depends-on): Likewise.
72155         * modules/vfprintf-posix (Depends-on): Likewise.
72156         * modules/snprintf-posix (Depends-on): Likewise.
72157         * modules/vsnprintf-posix (Depends-on): Likewise.
72158         * modules/sprintf-posix (Depends-on): Likewise.
72159         * modules/vsprintf-posix (Depends-on): Likewise.
72160         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
72161         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
72162         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
72163         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
72164         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
72165         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
72166         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
72168         Add support for universal builds to <inttypes.h>.
72169         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
72170         _SCNu64_PREFIX): In Apple
72171         universal builds, define directly, using _LP64.
72172         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
72173         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
72174         * modules/inttypes (Depends-on): Add multiarch.
72175         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
72177         Add support for universal builds to <stdint.h>.
72178         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
72179         universal builds, define directly, using _LP64.
72180         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
72181         Apple universal builds, don't test for the size and suffix of ptrdiff_t
72182         and size_t.
72183         * modules/stdint (Depends-on): Add multiarch.
72184         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
72186         New module 'multiarch'.
72187         * modules/multiarch: New file.
72188         * m4/multiarch.m4: New file.
72190 2008-12-25  Bruno Haible  <bruno@clisp.org>
72192         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
72194 2008-12-25  Bruno Haible  <bruno@clisp.org>
72196         * modules/btowc (License): Relicense under LGPLv2+.
72197         * modules/mbsinit (License): Likewise.
72198         * modules/mbrtowc (License): Likewise.
72199         * modules/wcrtomb (License): Likewise.
72200         * modules/streq (License): Likewise.
72201         Reported by David Lutterkort <lutter@redhat.com>.
72203 2008-12-23  Bruno Haible  <bruno@clisp.org>
72205         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
72207 2008-12-23  Bruno Haible  <bruno@clisp.org>
72209         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
72210         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
72211         GETADDRINFO_LIB, not in LIBS.
72212         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
72213         * modules/canon-host (Link): Likewise.
72214         * NEWS: Mention the change.
72215         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
72216         GETADDRINFO_LIB.
72218 2008-12-22  Bruno Haible  <bruno@clisp.org>
72220         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
72221         * doc/posix-functions/iswalpha_l.texi: Likewise.
72222         * doc/posix-functions/iswblank_l.texi: Likewise.
72223         * doc/posix-functions/iswcntrl_l.texi: Likewise.
72224         * doc/posix-functions/iswctype_l.texi: Likewise.
72225         * doc/posix-functions/iswdigit_l.texi: Likewise.
72226         * doc/posix-functions/iswgraph_l.texi: Likewise.
72227         * doc/posix-functions/iswlower_l.texi: Likewise.
72228         * doc/posix-functions/iswprint_l.texi: Likewise.
72229         * doc/posix-functions/iswpunct_l.texi: Likewise.
72230         * doc/posix-functions/iswspace_l.texi: Likewise.
72231         * doc/posix-functions/iswupper_l.texi: Likewise.
72232         * doc/posix-functions/iswxdigit_l.texi: Likewise.
72233         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
72234         * doc/posix-functions/open_wmemstream.texi: Likewise.
72235         * doc/posix-functions/swscanf.texi: Likewise.
72236         * doc/posix-functions/towctrans_l.texi: Likewise.
72237         * doc/posix-functions/towlower.texi: Likewise.
72238         * doc/posix-functions/towlower_l.texi: Likewise.
72239         * doc/posix-functions/towupper.texi: Likewise.
72240         * doc/posix-functions/towupper_l.texi: Likewise.
72241         * doc/posix-functions/vfwprintf.texi: Likewise.
72242         * doc/posix-functions/vfwscanf.texi: Likewise.
72243         * doc/posix-functions/vswscanf.texi: Likewise.
72244         * doc/posix-functions/vwprintf.texi: Likewise.
72245         * doc/posix-functions/vwscanf.texi: Likewise.
72246         * doc/posix-functions/wcpcpy.texi: Likewise.
72247         * doc/posix-functions/wcpncpy.texi: Likewise.
72248         * doc/posix-functions/wcscasecmp.texi: Likewise.
72249         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
72250         * doc/posix-functions/wcscoll_l.texi: Likewise.
72251         * doc/posix-functions/wcsdup.texi: Likewise.
72252         * doc/posix-functions/wcsncasecmp.texi: Likewise.
72253         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
72254         * doc/posix-functions/wcsnlen.texi: Likewise.
72255         * doc/posix-functions/wcsnrtombs.texi: Likewise.
72256         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
72257         * doc/posix-functions/wctrans_l.texi: Likewise.
72258         * doc/posix-functions/wctype_l.texi: Likewise.
72259         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
72260         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
72261         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
72262         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
72263         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
72264         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
72265         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
72266         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
72267         * doc/glibc-functions/wcschrnul.texi: Likewise.
72268         * doc/glibc-functions/wcsftime_l.texi: Likewise.
72269         * doc/glibc-functions/wcstod_l.texi: Likewise.
72270         * doc/glibc-functions/wcstof_l.texi: Likewise.
72271         * doc/glibc-functions/wcstol_l.texi: Likewise.
72272         * doc/glibc-functions/wcstold_l.texi: Likewise.
72273         * doc/glibc-functions/wcstoll_l.texi: Likewise.
72274         * doc/glibc-functions/wcstoq.texi: Likewise.
72275         * doc/glibc-functions/wcstoul_l.texi: Likewise.
72276         * doc/glibc-functions/wcstoull_l.texi: Likewise.
72277         * doc/glibc-functions/wcstouq.texi: Likewise.
72278         * doc/glibc-functions/wmempcpy.texi: Likewise.
72280 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
72281             Eric Blake  <ebb9@byu.net>
72282             Paolo Bonzini  <bonzini@gnu.org>
72283             Bruno Haible  <bruno@clisp.org>
72285         Make c-stack work on Haiku.
72286         * lib/c-stack.c (SA_ONSTACK): Define fallback.
72287         (c_stack_action): Use SA_ONSTACK flag.
72289 2008-12-22  Bruno Haible  <bruno@clisp.org>
72291         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
72293 2008-12-22  Bruno Haible  <bruno@clisp.org>
72295         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
72296         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
72297         being overridden.
72298         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
72299         New macros.
72300         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
72301         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
72302         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
72303         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
72305 2008-12-22  Bruno Haible  <bruno@clisp.org>
72307         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
72308         from test code.
72310 2008-12-22  Eric Blake  <ebb9@byu.net>
72312         Avoid gcc warnings on cygwin.
72313         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
72314         Avoid unused variable.
72315         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
72316         Likewise.
72318 2008-12-22  Bruno Haible  <bruno@clisp.org>
72320         Remove HAVE_MBRTOWC conditionals.
72321         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
72322         (mbscasecmp): Assume mbrtowc function.
72323         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
72324         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
72325         * lib/mbschr.c: Include mbuiter.h unconditionally.
72326         (mbschr): Assume mbrtowc function.
72327         * lib/mbscspn.c: Include mbuiter.h unconditionally.
72328         (mbscspn): Assume mbrtowc function.
72329         * lib/mbslen.c: Include mbuiter.h unconditionally.
72330         (mbslen): Assume mbrtowc function.
72331         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
72332         (mbsncasecmp): Assume mbrtowc function.
72333         * lib/mbsnlen.c: Include mbiter.h unconditionally.
72334         (mbsnlen): Assume mbrtowc function.
72335         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
72336         (mbspbrk): Assume mbrtowc function.
72337         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
72338         (mbspcasecmp): Assume mbrtowc function.
72339         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
72340         (mbsrchr): Assume mbrtowc function.
72341         * lib/mbssep.c: Include mbuiter.h unconditionally.
72342         (mbssep): Assume mbrtowc function.
72343         * lib/mbsspn.c: Include mbuiter.h unconditionally.
72344         (mbsspn): Assume mbrtowc function.
72345         * lib/mbsstr.c: Include mbuiter.h unconditionally.
72346         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
72347         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
72348         (mbstok_r): Assume mbrtowc function.
72349         * lib/propername.c: Include mbuiter.h unconditionally.
72350         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
72351         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
72352         (trim2): Assume mbrtowc function.
72353         * lib/mbswidth.c (mbsinit): Remove fallback definition.
72354         (mbsnwidth): Assume mbrtowc function.
72355         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
72356         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
72357         fallback definitions.
72358         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
72360 2008-12-22  Bruno Haible  <bruno@clisp.org>
72362         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
72364 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
72366         * modules/regex: Request emulations for the mb*/wc* functions we need.
72367         * m4/regex.m4: Don't look for those functions here.
72368         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
72370 2008-12-22  Bruno Haible  <bruno@clisp.org>
72372         * modules/fnmatch (Depends-on): Remove duplicated dependency.
72374 2008-12-21  Bruno Haible  <bruno@clisp.org>
72376         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
72377         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
72378         (Include): Remove conditionalization.
72379         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
72380         (Include): Remove conditionalization.
72381         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
72382         (Include): Remove conditionalization.
72383         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
72384         * m4/mbfile.m4 (gl_MBFILE): Likewise.
72385         * NEWS: Mention the change.
72386         Reported by Alan Hourihane <alanh@fairlite.co.uk>
72387         via Sergey Poznyakoff <gray@gnu.org.ua>.
72389 2008-12-21  Bruno Haible  <bruno@clisp.org>
72391         * MODULES.html.sh (Extended multibyte and wide character utilities
72392         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
72393         wcrtomb, wcsrtombs.
72394         (Support for systems lacking POSIX:2008): Add accept, bind, close,
72395         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
72396         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
72397         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
72399 2008-12-21  Bruno Haible  <bruno@clisp.org>
72401         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
72403 2008-12-21  Bruno Haible  <bruno@clisp.org>
72405         * modules/wcsnrtombs-tests: New file.
72406         * tests/test-wcsnrtombs1.sh: New file.
72407         * tests/test-wcsnrtombs2.sh: New file.
72408         * tests/test-wcsnrtombs3.sh: New file.
72409         * tests/test-wcsnrtombs4.sh: New file.
72410         * tests/test-wcsnrtombs.c: New file.
72412         New module 'wcsnrtombs'.
72413         * lib/wchar.in.h (wcsnrtombs): New declaration.
72414         * lib/wcsnrtombs.c: New file.
72415         * lib/wcsrtombs-state.c: New file.
72416         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
72417         (internal_state): Remove variable.
72418         * m4/wcsnrtombs.m4: New file.
72419         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
72420         compilation units.
72421         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
72422         HAVE_WCSNRTOMBS.
72423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
72424         HAVE_WCSNRTOMBS.
72425         * modules/wcsnrtombs: New file.
72426         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
72427         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
72429 2008-12-21  Bruno Haible  <bruno@clisp.org>
72431         * modules/wcsrtombs-tests: New file.
72432         * tests/test-wcsrtombs1.sh: New file.
72433         * tests/test-wcsrtombs2.sh: New file.
72434         * tests/test-wcsrtombs3.sh: New file.
72435         * tests/test-wcsrtombs4.sh: New file.
72436         * tests/test-wcsrtombs.c: New file.
72438         New module 'wcsrtombs'.
72439         * lib/wchar.in.h (wcsrtombs): New declaration.
72440         * lib/wcsrtombs.c: New file.
72441         * m4/wcsrtombs.m4: New file.
72442         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
72443         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72444         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
72445         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
72446         * modules/wcsrtombs: New file.
72447         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
72448         bugs.
72450 2008-12-21  Bruno Haible  <bruno@clisp.org>
72452         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
72453         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
72454         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
72455         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
72456         if not correct.
72457         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
72458         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
72459         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72460         m4/locale-zh.m4, m4/codeset.m4.
72461         * doc/posix-functions/wcrtomb.texi: Document the bug.
72463 2008-12-21  Bruno Haible  <bruno@clisp.org>
72465         Work around a btowc() bug on IRIX 6.5.
72466         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
72467         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
72468         REPLACE_WTOBC if not.
72469         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
72470         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
72471         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
72473 2008-12-21  Bruno Haible  <bruno@clisp.org>
72475         * modules/wcrtomb-tests: New file.
72476         * tests/test-wcrtomb.sh: New file.
72477         * tests/test-wcrtomb.c: New file.
72479         New module 'wcrtomb'.
72480         * lib/wchar.in.h (wcrtomb): New declaration.
72481         * lib/wcrtomb.c: New file.
72482         * m4/wcrtomb.m4: New file.
72483         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
72484         HAVE_WCRTOMB.
72485         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
72486         HAVE_WCRTOMB.
72487         * modules/wcrtomb: New file.
72488         * doc/posix-functions/wcrtomb.texi: Mention the new module.
72490 2008-12-21  Bruno Haible  <bruno@clisp.org>
72492         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
72493         * modules/mbsrtowcs (Files): Likewise.
72494         * modules/wctob (Files): Likewise.
72495         * modules/c-strcase-tests (Files): Likewise.
72496         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
72497         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
72498         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
72499         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
72500         * modules/vasnprintf-posix-tests (Files): Likewise.
72502 2008-12-21  William Pursell  <bill.pursell@gmail.com>
72504         gitlog-to-changelog: pass all command-line arguments to git-log
72505         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
72506         it is sometimes convenient to filter the commits in various ways.
72507         gitlog-to-changelog only allows --since to specify a start date,
72508         but git-log itself supports many other filtering mechanisms.
72509         At the moment, I want to filter by branch name.  Rather than
72510         adding a --branch option to gitlog-to-changelog, it seems more
72511         flexible to simply pass all options directly to git-log and let
72512         git do the work.  Notice that this effectively makes --since a
72513         redundant option for gitlog-to-changelog, but removing it would
72514         require current usage to change since calls would then require
72515         an additional '--'.
72517 2008-12-21  Bruno Haible  <bruno@clisp.org>
72519         * modules/mbsnrtowcs-tests: New file.
72520         * tests/test-mbsnrtowcs1.sh: New file.
72521         * tests/test-mbsnrtowcs2.sh: New file.
72522         * tests/test-mbsnrtowcs3.sh: New file.
72523         * tests/test-mbsnrtowcs4.sh: New file.
72524         * tests/test-mbsnrtowcs.c: New file.
72526         New module 'mbsnrtowcs'.
72527         * lib/wchar.in.h (mbsnrtowcs): New declaration.
72528         * lib/mbsnrtowcs.c: New file.
72529         * lib/mbsrtowcs-state.c: New file.
72530         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
72531         (internal_state): Remove variable.
72532         * m4/mbsnrtowcs.m4: New file.
72533         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
72534         compilation units.
72535         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
72536         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72537         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
72538         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
72539         * modules/mbsnrtowcs: New file.
72540         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
72541         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
72542         portability problem.
72544 2008-12-21  Bruno Haible  <bruno@clisp.org>
72546         Work around mbsrtowcs bug.
72547         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
72548         (gl_FUNC_MBSRTOWCS): Invoke it.
72549         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72550         m4/locale-zh.m4.
72551         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
72553 2008-12-21  Bruno Haible  <bruno@clisp.org>
72555         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
72557 2008-12-21  Bruno Haible  <bruno@clisp.org>
72559         Update doc for AIX.
72560         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
72561         16-bit wchar_t type.
72562         * doc/posix-functions/btowc.texi: Likewise.
72563         * doc/posix-functions/fgetwc.texi: Likewise.
72564         * doc/posix-functions/fgetws.texi: Likewise.
72565         * doc/posix-functions/fputwc.texi: Likewise.
72566         * doc/posix-functions/fputws.texi: Likewise.
72567         * doc/posix-functions/fwide.texi: Likewise.
72568         * doc/posix-functions/fwprintf.texi: Likewise.
72569         * doc/posix-functions/fwscanf.texi: Likewise.
72570         * doc/posix-functions/getwchar.texi: Likewise.
72571         * doc/posix-functions/getwc.texi: Likewise.
72572         * doc/posix-functions/iswalnum.texi: Likewise.
72573         * doc/posix-functions/iswalpha.texi: Likewise.
72574         * doc/posix-functions/iswblank.texi: Likewise.
72575         * doc/posix-functions/iswcntrl.texi: Likewise.
72576         * doc/posix-functions/iswctype.texi: Likewise.
72577         * doc/posix-functions/iswdigit.texi: Likewise.
72578         * doc/posix-functions/iswgraph.texi: Likewise.
72579         * doc/posix-functions/iswlower.texi: Likewise.
72580         * doc/posix-functions/iswprint.texi: Likewise.
72581         * doc/posix-functions/iswpunct.texi: Likewise.
72582         * doc/posix-functions/iswspace.texi: Likewise.
72583         * doc/posix-functions/iswupper.texi: Likewise.
72584         * doc/posix-functions/iswxdigit.texi: Likewise.
72585         * doc/posix-functions/mbrtowc.texi: Likewise.
72586         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72587         * doc/posix-functions/mbstowcs.texi: Likewise.
72588         * doc/posix-functions/mbtowc.texi: Likewise.
72589         * doc/posix-functions/putwchar.texi: Likewise.
72590         * doc/posix-functions/putwc.texi: Likewise.
72591         * doc/posix-functions/swprintf.texi: Likewise.
72592         * doc/posix-functions/tolower.texi: Likewise.
72593         * doc/posix-functions/toupper.texi: Likewise.
72594         * doc/posix-functions/towctrans.texi: Likewise.
72595         * doc/posix-functions/ungetwc.texi: Likewise.
72596         * doc/posix-functions/vswprintf.texi: Likewise.
72597         * doc/posix-functions/wcrtomb.texi: Likewise.
72598         * doc/posix-functions/wcscat.texi: Likewise.
72599         * doc/posix-functions/wcschr.texi: Likewise.
72600         * doc/posix-functions/wcscmp.texi: Likewise.
72601         * doc/posix-functions/wcscoll.texi: Likewise.
72602         * doc/posix-functions/wcscpy.texi: Likewise.
72603         * doc/posix-functions/wcscspn.texi: Likewise.
72604         * doc/posix-functions/wcsftime.texi: Likewise.
72605         * doc/posix-functions/wcslen.texi: Likewise.
72606         * doc/posix-functions/wcsncat.texi: Likewise.
72607         * doc/posix-functions/wcsncmp.texi: Likewise.
72608         * doc/posix-functions/wcsncpy.texi: Likewise.
72609         * doc/posix-functions/wcspbrk.texi: Likewise.
72610         * doc/posix-functions/wcsrchr.texi: Likewise.
72611         * doc/posix-functions/wcsrtombs.texi: Likewise.
72612         * doc/posix-functions/wcsspn.texi: Likewise.
72613         * doc/posix-functions/wcsstr.texi: Likewise.
72614         * doc/posix-functions/wcstod.texi: Likewise.
72615         * doc/posix-functions/wcstof.texi: Likewise.
72616         * doc/posix-functions/wcstoimax.texi: Likewise.
72617         * doc/posix-functions/wcstok.texi: Likewise.
72618         * doc/posix-functions/wcstold.texi: Likewise.
72619         * doc/posix-functions/wcstoll.texi: Likewise.
72620         * doc/posix-functions/wcstol.texi: Likewise.
72621         * doc/posix-functions/wcstombs.texi: Likewise.
72622         * doc/posix-functions/wcstoull.texi: Likewise.
72623         * doc/posix-functions/wcstoul.texi: Likewise.
72624         * doc/posix-functions/wcstoumax.texi: Likewise.
72625         * doc/posix-functions/wcswidth.texi: Likewise.
72626         * doc/posix-functions/wcsxfrm.texi: Likewise.
72627         * doc/posix-functions/wctob.texi: Likewise.
72628         * doc/posix-functions/wctomb.texi: Likewise.
72629         * doc/posix-functions/wctrans.texi: Likewise.
72630         * doc/posix-functions/wctype.texi: Likewise.
72631         * doc/posix-functions/wcwidth.texi: Likewise.
72632         * doc/posix-functions/wmemchr.texi: Likewise.
72633         * doc/posix-functions/wmemcmp.texi: Likewise.
72634         * doc/posix-functions/wmemcpy.texi: Likewise.
72635         * doc/posix-functions/wmemmove.texi: Likewise.
72636         * doc/posix-functions/wmemset.texi: Likewise.
72637         * doc/posix-functions/wprintf.texi: Likewise.
72638         * doc/posix-functions/wscanf.texi: Likewise.
72640 2008-12-21  Bruno Haible  <bruno@clisp.org>
72642         Update doc for HP-UX 11.11.
72643         * doc/posix-functions/btowc.texi: Clarify that the function is missing
72644         in HP-UX version 11.00, not in all versions of HP-UX 11.
72645         * doc/posix-functions/fwide.texi: Likewise.
72646         * doc/posix-functions/fwprintf.texi: Likewise.
72647         * doc/posix-functions/fwscanf.texi: Likewise.
72648         * doc/posix-functions/inet_ntop.texi: Likewise.
72649         * doc/posix-functions/inet_pton.texi: Likewise.
72650         * doc/posix-functions/mbrlen.texi: Likewise.
72651         * doc/posix-functions/mbrtowc.texi: Likewise.
72652         * doc/posix-functions/mbsinit.texi: Likewise.
72653         * doc/posix-functions/mbsrtowcs.texi: Likewise.
72654         * doc/posix-functions/swprintf.texi: Likewise.
72655         * doc/posix-functions/swscanf.texi: Likewise.
72656         * doc/posix-functions/towctrans.texi: Likewise.
72657         * doc/posix-functions/vfwprintf.texi: Likewise.
72658         * doc/posix-functions/vswprintf.texi: Likewise.
72659         * doc/posix-functions/vwprintf.texi: Likewise.
72660         * doc/posix-functions/wcrtomb.texi: Likewise.
72661         * doc/posix-functions/wcsrtombs.texi: Likewise.
72662         * doc/posix-functions/wcsstr.texi: Likewise.
72663         * doc/posix-functions/wctob.texi: Likewise.
72664         * doc/posix-functions/wctrans.texi: Likewise.
72665         * doc/posix-functions/wmemchr.texi: Likewise.
72666         * doc/posix-functions/wmemcmp.texi: Likewise.
72667         * doc/posix-functions/wmemcpy.texi: Likewise.
72668         * doc/posix-functions/wmemmove.texi: Likewise.
72669         * doc/posix-functions/wmemset.texi: Likewise.
72670         * doc/posix-functions/wprintf.texi: Likewise.
72671         * doc/posix-functions/wscanf.texi: Likewise.
72673 2008-12-21  Bruno Haible  <bruno@clisp.org>
72675         Work around a portability problem.
72676         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
72677         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
72679 2008-12-20  Bruno Haible  <bruno@clisp.org>
72681         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
72682         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
72683         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
72684         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
72685         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
72687         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
72688         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
72689         set.
72690         (GNULIB_defined_mbstate_t): New macro.
72691         (mbsinit): Redefine if REPLACE_MBSINIT is set.
72692         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
72693         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
72694         reuses the system's mbrtowc function but works around the bugs.
72695         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
72696         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
72697         macros.
72698         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
72699         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
72700         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
72701         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
72702         REPLACE_MBSINIT if mbsinit needs to be overridden.
72703         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
72704         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72705         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
72706         REPLACE_MBSINIT, REPLACE_MBRTOWC.
72707         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
72708         m4/locale-zh.m4.
72709         (Depends): Add mbsinit.
72710         * modules/mbsinit (Depends): Add mbrtowc.
72711         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
72713 2008-12-20  Bruno Haible  <bruno@clisp.org>
72715         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
72716         so that there are no conversion errors on AIX.
72717         * tests/test-mbsrtowcs.c (main): LIkewise.
72719 2008-12-20  Bruno Haible  <bruno@clisp.org>
72721         Work around wctob bug on Solaris <= 9.
72722         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
72723         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
72724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
72725         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
72726         * modules/wctob (Files): Add m4/locale-fr.m4.
72727         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
72729 2008-12-20  Bruno Haible  <bruno@clisp.org>
72731         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
72732         /dev/null.
72733         * tests/test-select-in.sh: Likewise.
72734         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
72736 2008-12-20  Bruno Haible  <bruno@clisp.org>
72738         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
72739         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
72740         Cygwin 1.5.x.
72742 2008-12-20  Bruno Haible  <bruno@clisp.org>
72744         Ensure mbstate_t is defined on HP-UX 11.11.
72745         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
72746         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
72747         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
72748         AC_USE_SYSTEM_EXTENSIONS.
72749         * modules/fnmatch (Depends-on): Add extensions.
72750         * modules/mbrlen (Depends-on): Likewise.
72751         * modules/mbrtowc (Depends-on): Likewise.
72752         * modules/mbsinit (Depends-on): Likewise.
72753         * modules/mbsrtowcs (Depends-on): Likewise.
72754         * modules/mbswidth (Depends-on): Likewise.
72755         * modules/quotearg (Depends-on): Likewise.
72756         * modules/strftime (Depends-on): Likewise.
72758 2008-12-20  Bruno Haible  <bruno@clisp.org>
72760         Ensure wctob is declared on IRIX 6.5.
72761         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
72762         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
72763         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
72764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
72765         of HAVE_WCTOB.
72766         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
72767         HAVE_WCTOB.
72768         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
72770 2008-12-19  Bruno Haible  <bruno@clisp.org>
72772         * modules/mbsrtowcs-tests: New file.
72773         * tests/test-mbsrtowcs1.sh: New file.
72774         * tests/test-mbsrtowcs2.sh: New file.
72775         * tests/test-mbsrtowcs3.sh: New file.
72776         * tests/test-mbsrtowcs4.sh: New file.
72777         * tests/test-mbsrtowcs.c: New file.
72779         New module 'mbsrtowcs'.
72780         * lib/wchar.in.h (mbsrtowcs): New declaration.
72781         * lib/mbsrtowcs.c: New file.
72782         * m4/mbsrtowcs.m4: New file.
72783         * modules/mbsrtowcs: New file.
72784         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
72785         HAVE_MBSRTOWCS.
72786         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
72787         HAVE_MBSRTOWCS.
72788         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
72790 2008-12-19  Bruno Haible  <bruno@clisp.org>
72792         New module 'mbrlen'.
72793         * lib/wchar.in.h (mbrlen): New declaration.
72794         * lib/mbrlen.c: New file.
72795         * m4/mbrlen.m4: New file.
72796         * modules/mbrlen: New file.
72797         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
72798         HAVE_MBRLEN.
72799         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
72800         HAVE_MBRLEN.
72801         * doc/posix-functions/mbrlen.texi: Document the new module.
72803 2008-12-19  Bruno Haible  <bruno@clisp.org>
72805         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
72806         * modules/mbrtowc (Depends-on): Add verify.
72807         Suggested by Paul Eggert.
72809 2008-12-18  Bruno Haible  <bruno@clisp.org>
72811         * modules/mbsinit-tests: New file.
72812         * tests/test-mbsinit.sh: New file.
72813         * tests/test-mbsinit.c: New file.
72815 2008-12-18  Bruno Haible  <bruno@clisp.org>
72817         * modules/mbrtowc-tests: New file.
72818         * tests/test-mbrtowc1.sh: New file.
72819         * tests/test-mbrtowc2.sh: New file.
72820         * tests/test-mbrtowc3.sh: New file.
72821         * tests/test-mbrtowc4.sh: New file.
72822         * tests/test-mbrtowc.c: New file.
72824         New module 'mbrtowc'.
72825         * lib/wchar.in.h (mbstate_t): Override when the system does not have
72826         mbsinit and mbrtowc.
72827         (mbrtowc): New declaration.
72828         * lib/mbrtowc.c: New file.
72829         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
72830         * modules/mbrtowc: New file.
72831         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
72832         HAVE_MBRTOWC.
72833         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
72834         HAVE_MBRTOWC.
72835         * doc/posix-functions/mbrtowc.texi: Document the new module.
72837 2008-12-18  Bruno Haible  <bruno@clisp.org>
72839         New module 'wctob'.
72840         * lib/wchar.in.h (wctob): New declaration.
72841         * lib/wctob.c: New file.
72842         * m4/wctob.m4: New file.
72843         * modules/wctob: New file.
72844         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
72845         HAVE_WCTOB.
72846         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
72847         * doc/posix-functions/wctob.texi: Document the new module.
72849 2008-12-18  Bruno Haible  <bruno@clisp.org>
72851         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
72852         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
72854 2008-12-18  Simon Josefsson  <simon@josefsson.org>
72856         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
72857         G. Christensen" <tgc@jupiterrise.com>.
72859         * lib/flock.c: Need to include errno.h.  Reported by "Tom
72860         G. Christensen" <tgc@jupiterrise.com>.
72862         * lib/flock.c: Need to include string.h.  Reported by "Tom
72863         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
72864         <ebb9@byu.net>.
72866 2008-12-18  Bruno Haible  <bruno@clisp.org>
72868         * m4/locale-ja.m4: New file, from GNU gettext.
72870 2008-12-17  Bruno Haible  <bruno@clisp.org>
72872         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
72873         Suggested by Eric Blake.
72875 2008-12-17  Bruno Haible  <bruno@clisp.org>
72877         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
72879 2008-12-17  Bruno Haible  <bruno@clisp.org>
72881         * lib/mbsinit.c: Include verify.h. Verify an assumption.
72882         * modules/mbsinit (Depends-on): Add verify.
72883         Suggested by Paul Eggert.
72885 2008-12-17  Bruno Haible  <bruno@clisp.org>
72887         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
72888         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
72889         gl_FUNC_MBRTOWC.
72890         * m4/mbiter.m4 (gl_MBITER): LIkewise.
72891         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
72892         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
72893         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
72894         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
72895         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
72896         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
72897         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
72898         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
72899         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
72900         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
72901         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
72902         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
72903         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
72904         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
72905         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72906         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
72907         * modules/trim (configure.ac): Likewise.
72909 2008-12-17  Bruno Haible  <bruno@clisp.org>
72911         * modules/btowc-tests: New file.
72912         * tests/test-btowc1.sh: New file.
72913         * tests/test-btowc2.sh: New file.
72914         * tests/test-btowc.c: New file.
72916         New module 'btowc'.
72917         * lib/wchar.in.h (btowc): New declaration.
72918         * lib/btowc.c: New file.
72919         * m4/btowc.m4: New file.
72920         * modules/btowc: New file.
72921         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
72922         HAVE_BTOWC.
72923         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
72924         * doc/posix-functions/btowc.texi: Document the new module.
72926 2008-12-17  Bruno Haible  <bruno@clisp.org>
72928         New module 'mbsinit'.
72929         * lib/wchar.in.h (mbsinit): New declaration.
72930         * lib/mbsinit.c: New file.
72931         * m4/mbsinit.m4: New file.
72932         * modules/mbsinit: New file.
72933         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
72934         HAVE_MBSINIT.
72935         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
72936         HAVE_MBSINIT.
72937         * doc/posix-functions/mbsinit.texi: Document the new module.
72939 2008-12-16  Bruno Haible  <bruno@clisp.org>
72941         * lib/unistd.in.h: Add comment.
72942         * tests/test-environ.c: Don't include <stdlib.h>.
72944 2008-12-16  Bruno Haible  <bruno@clisp.org>
72946         * lib/parse-duration.h (parse_duration): Document return value
72947         convention.
72948         * lib/parse-duration.c: Include specification header first. Add
72949         comments.
72950         (_): Remove macro.
72951         (parse_year_month_day, parse_hour_minute_second): Move side effects
72952         outside of strchr call.
72953         (parse_non_iso8601): Move side effects outside of isspace call.
72954         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
72955         call.
72957 2008-12-16  Bruno Haible  <bruno@clisp.org>
72959         * tests/test-parse-duration.sh: Produce no output when the test
72960         succeeds.
72962 2008-12-16  Bruno Haible  <bruno@clisp.org>
72964         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
72965         expressions.
72967 2008-12-15  Bruno Haible  <bruno@clisp.org>
72969         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
72970         * doc/glibc-functions/flistxattr.texi: Likewise.
72971         * doc/glibc-functions/fopencookie.texi: Likewise.
72972         * doc/glibc-functions/fremovexattr.texi: Likewise.
72973         * doc/glibc-functions/fsetxattr.texi: Likewise.
72974         * doc/glibc-functions/getxattr.texi: Likewise.
72975         * doc/glibc-functions/lgetxattr.texi: Likewise.
72976         * doc/glibc-functions/listxattr.texi: Likewise.
72977         * doc/glibc-functions/llistxattr.texi: Likewise.
72978         * doc/glibc-functions/lremovexattr.texi: Likewise.
72979         * doc/glibc-functions/lsetxattr.texi: Likewise.
72980         * doc/glibc-functions/removexattr.texi: Likewise.
72981         * doc/glibc-functions/setxattr.texi: Likewise.
72982         * doc/posix-functions/open_memstream.texi: Likewise.
72984 2008-12-15  Eric Blake  <ebb9@byu.net>
72986         Update doc for cygwin 1.7.
72987         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
72988         functions.
72989         * doc/posix-functions/fchmodat.texi: Likewise.
72990         * doc/posix-functions/fchownat.texi: Likewise.
72991         * doc/posix-functions/fdopendir.texi: Likewise.
72992         * doc/posix-functions/fmemopen.texi: Likewise.
72993         * doc/posix-functions/freeaddrinfo.texi: Likewise.
72994         * doc/posix-functions/fstatat.texi: Likewise.
72995         * doc/posix-functions/futimens.texi: Likewise.
72996         * doc/posix-functions/gai_strerror.texi: Likewise.
72997         * doc/posix-functions/getaddrinfo.texi: Likewise.
72998         * doc/posix-functions/getnameinfo.texi: Likewise.
72999         * doc/posix-functions/if_freenameindex.texi: Likewise.
73000         * doc/posix-functions/if_indextoname.texi: Likewise.
73001         * doc/posix-functions/if_nameindex.texi: Likewise.
73002         * doc/posix-functions/if_nametoindex.texi: Likewise.
73003         * doc/posix-functions/insque.texi: Likewise.
73004         * doc/posix-functions/linkat.texi: Likewise.
73005         * doc/posix-functions/llrint.texi: Likewise.
73006         * doc/posix-functions/llrintf.texi: Likewise.
73007         * doc/posix-functions/llrintl.texi: Likewise.
73008         * doc/posix-functions/lockf.texi: Likewise.
73009         * doc/posix-functions/lrintl.texi: Likewise.
73010         * doc/posix-functions/mkdirat.texi: Likewise.
73011         * doc/posix-functions/mkfifoat.texi: Likewise.
73012         * doc/posix-functions/mknodat.texi: Likewise.
73013         * doc/posix-functions/mq_close.texi: Likewise.
73014         * doc/posix-functions/mq_getattr.texi: Likewise.
73015         * doc/posix-functions/mq_notify.texi: Likewise.
73016         * doc/posix-functions/mq_open.texi: Likewise.
73017         * doc/posix-functions/mq_receive.texi: Likewise.
73018         * doc/posix-functions/mq_send.texi: Likewise.
73019         * doc/posix-functions/mq_setattr.texi: Likewise.
73020         * doc/posix-functions/mq_timedreceive.texi: Likewise.
73021         * doc/posix-functions/mq_timedsend.texi: Likewise.
73022         * doc/posix-functions/mq_unlink.texi: Likewise.
73023         * doc/posix-functions/open_memstream.texi: Likewise.
73024         * doc/posix-functions/openat.texi: Likewise.
73025         * doc/posix-functions/posix_fadvise.texi: Likewise.
73026         * doc/posix-functions/posix_fallocate.texi: Likewise.
73027         * doc/posix-functions/posix_madvise.texi: Likewise.
73028         * doc/posix-functions/posix_memalign.texi: Likewise.
73029         * doc/posix-functions/posix_openpt.texi: Likewise.
73030         * doc/posix-functions/readlinkat.texi: Likewise.
73031         * doc/posix-functions/remque.texi: Likewise.
73032         * doc/posix-functions/renameat.texi: Likewise.
73033         * doc/posix-functions/rintl.texi: Likewise.
73034         * doc/posix-functions/sem_unlink.texi: Likewise.
73035         * doc/posix-functions/shm_open.texi: Likewise.
73036         * doc/posix-functions/shm_unlink.texi: Likewise.
73037         * doc/posix-functions/signgam.texi: Likewise.
73038         * doc/posix-functions/sigset.texi: Likewise.
73039         * doc/posix-functions/stpcpy.texi: Likewise.
73040         * doc/posix-functions/stpncpy.texi: Likewise.
73041         * doc/posix-functions/strerror.texi: Likewise.
73042         * doc/posix-functions/strtod.texi: Likewise.
73043         * doc/posix-functions/symlinkat.texi: Likewise.
73044         * doc/posix-functions/unlinkat.texi: Likewise.
73045         * doc/posix-functions/utimensat.texi: Likewise.
73046         * doc/glibc-functions/bindresvport.texi: Likewise.
73047         * doc/glibc-functions/dn_expand.texi: Likewise.
73048         * doc/glibc-functions/exp10.texi: Likewise.
73049         * doc/glibc-functions/exp10f.texi: Likewise.
73050         * doc/glibc-functions/fgetxattr.texi: Likewise.
73051         * doc/glibc-functions/flistxattr.texi: Likewise.
73052         * doc/glibc-functions/fopencookie.texi: Likewise.
73053         * doc/glibc-functions/freeifaddrs.texi: Likewise.
73054         * doc/glibc-functions/fremovexattr.texi: Likewise.
73055         * doc/glibc-functions/fsetxattr.texi: Likewise.
73056         * doc/glibc-functions/getifaddrs.texi: Likewise.
73057         * doc/glibc-functions/getxattr.texi: Likewise.
73058         * doc/glibc-functions/lgetxattr.texi: Likewise.
73059         * doc/glibc-functions/listxattr.texi: Likewise.
73060         * doc/glibc-functions/llistxattr.texi: Likewise.
73061         * doc/glibc-functions/lremovexattr.texi: Likewise.
73062         * doc/glibc-functions/lsetxattr.texi: Likewise.
73063         * doc/glibc-functions/pow10.texi: Likewise.
73064         * doc/glibc-functions/pow10f.texi: Likewise.
73065         * doc/glibc-functions/rcmd_af.texi: Likewise.
73066         * doc/glibc-functions/removexattr.texi: Likewise.
73067         * doc/glibc-functions/res_init.texi: Likewise.
73068         * doc/glibc-functions/res_mkquery.texi: Likewise.
73069         * doc/glibc-functions/res_query.texi: Likewise.
73070         * doc/glibc-functions/res_querydomain.texi: Likewise.
73071         * doc/glibc-functions/res_send.texi: Likewise.
73072         * doc/glibc-functions/rresvport_af.texi: Likewise.
73073         * doc/glibc-functions/setxattr.texi: Likewise.
73074         * doc/glibc-functions/strcasestr.texi: Likewise.
73076 2008-12-15  Bruno Haible  <bruno@clisp.org>
73078         Fix compilation error on OSF/1 4.0.
73079         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
73080         <sys/time.h>, simply delegate to the system header.
73081         Reported by Daniel Richard G. <oss@teragram.com>.
73083 2008-12-15  Bruno Haible  <bruno@clisp.org>
73085         * doc/posix-functions/openat.texi: Mention the 'openat' module.
73086         * doc/posix-functions/fchmodat.texi: Likewise.
73087         * doc/posix-functions/fchownat.texi: Likewise.
73088         * doc/posix-functions/fdopendir.texi: Likewise.
73089         * doc/posix-functions/fstatat.texi: Likewise.
73090         * doc/posix-functions/mkdirat.texi: Likewise.
73091         * doc/posix-functions/unlinkat.texi: Likewise.
73093 2008-12-14  Bruno Haible  <bruno@clisp.org>
73095         Update doc for POSIX:2008.
73096         * doc/posix-functions/faccessat.texi: New file.
73097         * doc/posix-functions/fchmodat.texi: New file.
73098         * doc/posix-functions/fchownat.texi: New file.
73099         * doc/posix-functions/fdopendir.texi: New file.
73100         * doc/posix-functions/fstatat.texi: New file.
73101         * doc/posix-functions/futimens.texi: New file.
73102         * doc/posix-functions/linkat.texi: New file.
73103         * doc/posix-functions/mkdirat.texi: New file.
73104         * doc/posix-functions/mkfifoat.texi: New file.
73105         * doc/posix-functions/mknodat.texi: New file.
73106         * doc/posix-functions/open_wmemstream.texi: New file.
73107         * doc/posix-functions/openat.texi: New file.
73108         * doc/posix-functions/psiginfo.texi: New file.
73109         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
73110         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
73111         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
73112         * doc/posix-functions/readlinkat.texi: New file.
73113         * doc/posix-functions/renameat.texi: New file.
73114         * doc/posix-functions/strerror_l.texi: New file.
73115         * doc/posix-functions/symlinkat.texi: New file.
73116         * doc/posix-functions/unlinkat.texi: New file.
73117         * doc/posix-functions/utimensat.texi: New file.
73118         * doc/gnulib.texi (Function Substitutes): Add these subsections.
73120 2008-12-14  Bruno Haible  <bruno@clisp.org>
73122         Update doc for POSIX:2008.
73123         * doc/posix-functions/alphasort.texi: Renamed from
73124         doc/glibc-functions/alphasort.texi.
73125         * doc/posix-functions/dirfd.texi: Renamed from
73126         doc/glibc-functions/dirfd.texi.
73127         * doc/posix-functions/dprintf.texi: Renamed from
73128         doc/glibc-functions/dprintf.texi.
73129         * doc/posix-functions/duplocale.texi: Renamed from
73130         doc/glibc-functions/duplocale.texi.
73131         * doc/posix-functions/fexecve.texi: Renamed from
73132         doc/glibc-functions/fexecve.texi.
73133         * doc/posix-functions/fmemopen.texi: Renamed from
73134         doc/glibc-functions/fmemopen.texi.
73135         * doc/posix-functions/freelocale.texi: Renamed from
73136         doc/glibc-functions/freelocale.texi.
73137         * doc/posix-functions/getdate_err.texi: Renamed from
73138         doc/glibc-functions/getdate_err.texi.
73139         * doc/posix-functions/isalnum_l.texi: Renamed from
73140         doc/glibc-functions/isalnum_l.texi.
73141         * doc/posix-functions/isalpha_l.texi: Renamed from
73142         doc/glibc-functions/isalpha_l.texi.
73143         * doc/posix-functions/isblank_l.texi: Renamed from
73144         doc/glibc-functions/isblank_l.texi.
73145         * doc/posix-functions/iscntrl_l.texi: Renamed from
73146         doc/glibc-functions/iscntrl_l.texi.
73147         * doc/posix-functions/isdigit_l.texi: Renamed from
73148         doc/glibc-functions/isdigit_l.texi.
73149         * doc/posix-functions/isgraph_l.texi: Renamed from
73150         doc/glibc-functions/isgraph_l.texi.
73151         * doc/posix-functions/islower_l.texi: Renamed from
73152         doc/glibc-functions/islower_l.texi.
73153         * doc/posix-functions/isprint_l.texi: Renamed from
73154         doc/glibc-functions/isprint_l.texi.
73155         * doc/posix-functions/ispunct_l.texi: Renamed from
73156         doc/glibc-functions/ispunct_l.texi.
73157         * doc/posix-functions/isspace_l.texi: Renamed from
73158         doc/glibc-functions/isspace_l.texi.
73159         * doc/posix-functions/isupper_l.texi: Renamed from
73160         doc/glibc-functions/isupper_l.texi.
73161         * doc/posix-functions/iswalnum_l.texi: Renamed from
73162         doc/glibc-functions/iswalnum_l.texi.
73163         * doc/posix-functions/iswalpha_l.texi: Renamed from
73164         doc/glibc-functions/iswalpha_l.texi.
73165         * doc/posix-functions/iswblank_l.texi: Renamed from
73166         doc/glibc-functions/iswblank_l.texi.
73167         * doc/posix-functions/iswcntrl_l.texi: Renamed from
73168         doc/glibc-functions/iswcntrl_l.texi.
73169         * doc/posix-functions/iswctype_l.texi: Renamed from
73170         doc/glibc-functions/iswctype_l.texi.
73171         * doc/posix-functions/iswdigit_l.texi: Renamed from
73172         doc/glibc-functions/iswdigit_l.texi.
73173         * doc/posix-functions/iswgraph_l.texi: Renamed from
73174         doc/glibc-functions/iswgraph_l.texi.
73175         * doc/posix-functions/iswlower_l.texi: Renamed from
73176         doc/glibc-functions/iswlower_l.texi.
73177         * doc/posix-functions/iswprint_l.texi: Renamed from
73178         doc/glibc-functions/iswprint_l.texi.
73179         * doc/posix-functions/iswpunct_l.texi: Renamed from
73180         doc/glibc-functions/iswpunct_l.texi.
73181         * doc/posix-functions/iswspace_l.texi: Renamed from
73182         doc/glibc-functions/iswspace_l.texi.
73183         * doc/posix-functions/iswupper_l.texi: Renamed from
73184         doc/glibc-functions/iswupper_l.texi.
73185         * doc/posix-functions/iswxdigit_l.texi: Renamed from
73186         doc/glibc-functions/iswxdigit_l.texi.
73187         * doc/posix-functions/isxdigit_l.texi: Renamed from
73188         doc/glibc-functions/isxdigit_l.texi.
73189         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
73190         doc/glibc-functions/mbsnrtowcs.texi.
73191         * doc/posix-functions/mkdtemp.texi: Renamed from
73192         doc/glibc-functions/mkdtemp.texi.
73193         * doc/posix-functions/newlocale.texi: Renamed from
73194         doc/glibc-functions/newlocale.texi.
73195         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
73196         doc/glibc-functions/nl_langinfo_l.texi.
73197         * doc/posix-functions/open_memstream.texi: Renamed from
73198         doc/glibc-functions/open_memstream.texi.
73199         * doc/posix-functions/opterr.texi: Renamed from
73200         doc/glibc-functions/opterr.texi.
73201         * doc/posix-functions/optind.texi: Renamed from
73202         doc/glibc-functions/optind.texi.
73203         * doc/posix-functions/optopt.texi: Renamed from
73204         doc/glibc-functions/optopt.texi.
73205         * doc/posix-functions/psignal.texi: Renamed from
73206         doc/glibc-functions/psignal.texi.
73207         * doc/posix-functions/scandir.texi: Renamed from
73208         doc/glibc-functions/scandir.texi.
73209         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
73210         doc/glibc-functions/sched_get_priority_min.texi.
73211         * doc/posix-functions/signgam.texi: Renamed from
73212         doc/glibc-functions/signgam.texi.
73213         * doc/posix-functions/stpcpy.texi: Renamed from
73214         doc/glibc-functions/stpcpy.texi.
73215         * doc/posix-functions/stpncpy.texi: Renamed from
73216         doc/glibc-functions/stpncpy.texi.
73217         * doc/posix-functions/strcasecmp_l.texi: Renamed from
73218         doc/glibc-functions/strcasecmp_l.texi.
73219         * doc/posix-functions/strcoll_l.texi: Renamed from
73220         doc/glibc-functions/strcoll_l.texi.
73221         * doc/posix-functions/strfmon_l.texi: Renamed from
73222         doc/glibc-functions/strfmon_l.texi.
73223         * doc/posix-functions/strftime_l.texi: Renamed from
73224         doc/glibc-functions/strftime_l.texi.
73225         * doc/posix-functions/strncasecmp_l.texi: Renamed from
73226         doc/glibc-functions/strncasecmp_l.texi.
73227         * doc/posix-functions/strndup.texi: Renamed from
73228         doc/glibc-functions/strndup.texi.
73229         * doc/posix-functions/strnlen.texi: Renamed from
73230         doc/glibc-functions/strnlen.texi.
73231         * doc/posix-functions/strsignal.texi: Renamed from
73232         doc/glibc-functions/strsignal.texi.
73233         * doc/posix-functions/strxfrm_l.texi: Renamed from
73234         doc/glibc-functions/strxfrm_l.texi.
73235         * doc/posix-functions/timer_gettime.texi: Renamed from
73236         doc/glibc-functions/timer_gettime.texi.
73237         * doc/posix-functions/tolower_l.texi: Renamed from
73238         doc/glibc-functions/tolower_l.texi.
73239         * doc/posix-functions/toupper_l.texi: Renamed from
73240         doc/glibc-functions/toupper_l.texi.
73241         * doc/posix-functions/towctrans_l.texi: Renamed from
73242         doc/glibc-functions/towctrans_l.texi.
73243         * doc/posix-functions/towlower_l.texi: Renamed from
73244         doc/glibc-functions/towlower_l.texi.
73245         * doc/posix-functions/towupper_l.texi: Renamed from
73246         doc/glibc-functions/towupper_l.texi.
73247         * doc/posix-functions/uselocale.texi: Renamed from
73248         doc/glibc-functions/uselocale.texi.
73249         * doc/posix-functions/vdprintf.texi: Renamed from
73250         doc/glibc-functions/vdprintf.texi.
73251         * doc/posix-functions/wcpcpy.texi:
73252         Renamed from doc/glibc-functions/wcpcpy.texi.
73253         * doc/posix-functions/wcpncpy.texi: Renamed from
73254         doc/glibc-functions/wcpncpy.texi.
73255         * doc/posix-functions/wcscasecmp.texi: Renamed from
73256         doc/glibc-functions/wcscasecmp.texi.
73257         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
73258         doc/glibc-functions/wcscasecmp_l.texi.
73259         * doc/posix-functions/wcscoll_l.texi: Renamed from
73260         doc/glibc-functions/wcscoll_l.texi.
73261         * doc/posix-functions/wcsdup.texi: Renamed from
73262         doc/glibc-functions/wcsdup.texi.
73263         * doc/posix-functions/wcsncasecmp.texi: Renamed from
73264         doc/glibc-functions/wcsncasecmp.texi.
73265         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
73266         doc/glibc-functions/wcsncasecmp_l.texi.
73267         * doc/posix-functions/wcsnlen.texi: Renamed from
73268         doc/glibc-functions/wcsnlen.texi.
73269         * doc/posix-functions/wcsnrtombs.texi: Renamed from
73270         doc/glibc-functions/wcsnrtombs.texi.
73271         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
73272         doc/glibc-functions/wcsxfrm_l.texi.
73273         * doc/posix-functions/wctrans_l.texi: Renamed from
73274         doc/glibc-functions/wctrans_l.texi.
73275         * doc/posix-functions/wctype_l.texi: Renamed from
73276         doc/glibc-functions/wctype_l.texi.
73277         * doc/gnulib.texi (Function Substitutes): Add these subsections.
73278         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
73279         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
73280         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
73281         these subsections.
73282         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
73283         Remove sections.
73285 2008-12-14  Bruno Haible  <bruno@clisp.org>
73287         Update doc for POSIX:2008.
73288         * doc/posix-functions/*.texi: Update URL of POSIX specification.
73290 2008-12-14  Bruno Haible  <bruno@clisp.org>
73292         Update doc for POSIX:2008.
73293         * doc/pastposix-functions/bcmp.texi: Renamed from
73294         doc/posix-functions/bcmp.texi.
73295         * doc/pastposix-functions/bcopy.texi: Renamed from
73296         doc/posix-functions/bcopy.texi.
73297         * doc/pastposix-functions/bsd_signal.texi: Renamed from
73298         doc/posix-functions/bsd_signal.texi.
73299         * doc/pastposix-functions/bzero.texi: Renamed from
73300         doc/posix-functions/bzero.texi.
73301         * doc/pastposix-functions/ecvt.texi: Renamed from
73302         doc/posix-functions/ecvt.texi.
73303         * doc/pastposix-functions/fcvt.texi: Renamed from
73304         doc/posix-functions/fcvt.texi.
73305         * doc/pastposix-functions/ftime.texi: Renamed from
73306         doc/posix-functions/ftime.texi.
73307         * doc/pastposix-functions/gcvt.texi: Renamed from
73308         doc/posix-functions/gcvt.texi.
73309         * doc/pastposix-functions/getcontext.texi: Renamed from
73310         doc/posix-functions/getcontext.texi.
73311         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
73312         doc/posix-functions/gethostbyaddr.texi.
73313         * doc/pastposix-functions/gethostbyname.texi: Renamed from
73314         doc/posix-functions/gethostbyname.texi.
73315         * doc/pastposix-functions/getwd.texi: Renamed from
73316         doc/posix-functions/getwd.texi.
73317         * doc/pastposix-functions/h_errno.texi: Renamed from
73318         doc/posix-functions/h_errno.texi.
73319         * doc/pastposix-functions/index.texi: Renamed from
73320         doc/posix-functions/index.texi.
73321         * doc/pastposix-functions/makecontext.texi: Renamed from
73322         doc/posix-functions/makecontext.texi.
73323         * doc/pastposix-functions/mktemp.texi: Renamed from
73324         doc/posix-functions/mktemp.texi.
73325         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
73326         doc/posix-functions/pthread_attr_getstackaddr.texi.
73327         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
73328         doc/posix-functions/pthread_attr_setstackaddr.texi.
73329         * doc/pastposix-functions/rindex.texi: Renamed from
73330         doc/posix-functions/rindex.texi.
73331         * doc/pastposix-functions/scalb.texi: Renamed from
73332         doc/posix-functions/scalb.texi.
73333         * doc/pastposix-functions/setcontext.texi: Renamed from
73334         doc/posix-functions/setcontext.texi.
73335         * doc/pastposix-functions/swapcontext.texi: Renamed from
73336         doc/posix-functions/swapcontext.texi.
73337         * doc/pastposix-functions/ualarm.texi: Renamed from
73338         doc/posix-functions/ualarm.texi.
73339         * doc/pastposix-functions/usleep.texi: Renamed from
73340         doc/posix-functions/usleep.texi.
73341         * doc/pastposix-functions/vfork.texi: Renamed from
73342         doc/posix-functions/vfork.texi.
73343         * doc/pastposix-functions/wcswcs.texi: Renamed from
73344         doc/posix-functions/wcswcs.texi.
73345         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
73346         (Function Substitutes): Update.
73348 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73350         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
73351         m4/strerror.m4.
73353 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73354             Bruno Haible  <bruno@clisp.org>
73356         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
73358 2008-12-13  Bruno Haible  <bruno@clisp.org>
73360         * modules/strtoull (Depends-on): Remove unistd.
73362 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73364         * modules/strtoull (Depends-on): Add stdlib.
73366 2008-12-11  Simon Josefsson  <simon@josefsson.org>
73368         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
73370 2008-12-10  Jim Meyering  <meyering@redhat.com>
73372         gl_ASSERT: don't say assertions are disabled when they're not
73373         * m4/assert.m4 (gl_ASSERT): Do not make configure report
73374         "checking whether to enable assertions... no", when they are in
73375         fact enabled.  This is solely a bug in the output of configure.
73376         In spite of saying "no", NDEBUG was not defined in that case.
73377         Also, as noted by Eric Blake, leave assertions enabled upon
73378         --enable-assert=INVALID.
73380 2008-12-10  Bruno Haible  <bruno@clisp.org>
73382         Change MODULES.html to refer to POSIX:2008 where possible.
73383         * MODULES.html.sh (POSIX2008_URL): New variable.
73384         (posix_headers): Remove sys/timeb, ucontext.
73385         (posix2001_headers): New variable.
73386         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
73387         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
73388         index, makecontext, mktemp, pthread_attr_getstackaddr,
73389         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
73390         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
73391         (posix2001_functions): New variable.
73392         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
73393         otherwise.
73395 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73397         add missing include to parse-duration.c
73398         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
73399         * modules/parse-duration (Depends-on): Add xalloc.
73401         fix sed script reading maint.mk
73402         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
73403         (syntax-check-rules): Use it.
73405 2008-12-09  Bruno Haible  <bruno@clisp.org>
73407         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
73408         MacOS X 10.4/PowerPC.
73409         Reported by Simon Josefsson.
73411 2008-12-08  Jim Meyering  <meyering@redhat.com>
73413         work around mingw's lack of some S_IF definitions
73414         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
73415         Reported by Simon Josefsson.
73417 2008-12-08  Bruno Haible  <bruno@clisp.org>
73419         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
73420         applied to variables. Needed on MacOS X 10.4/PowerPC.
73421         Reported by Simon Josefsson.
73423 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
73424         and Eric Blake  <ebb9@byu.net>
73426         assert: honor --enable-assert
73427         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
73428         order to honor --enable-assert, rather than treating it as a
73429         synonym for --disable-assert.
73431 2008-12-08  Jim Meyering  <meyering@redhat.com>
73433         * lib/posixtm.c: Remove now-useless declaration of mktime.
73435         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
73437 2008-12-07  Bruno Haible  <bruno@clisp.org>
73439         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
73440         test_once): Mark functions as static.
73441         * tests/test-tls.c (test_tls): Likewise.
73443 2008-12-07  Bruno Haible  <bruno@clisp.org>
73445         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
73446         iconv_register_autodetect.
73448 2008-12-07  Jim Meyering  <meyering@redhat.com>
73450         posixtm.c: avoid a warning
73451         * lib/posixtm.c (posixtime): Don't initialize tm0.
73452         It's no longer needed to placate gcc4's -Wuninitialized,
73453         and the attempt to placate would elicit a new warning.
73455         unicodeio.c: mark unused parameters
73456         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73457         (fallback_failure_callback): Likewise.
73459 2008-12-07  Bruno Haible  <bruno@clisp.org>
73461         * gnulib-tool (func_create_testdir): When building the tests
73462         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
73463         Reported by Simon Josefsson.
73465 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73467         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
73469 2008-12-06  Bruno Haible  <bruno@clisp.org>
73471         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
73472         Suggested by Eric Blake.
73474 2008-12-06  Bruno Haible  <bruno@clisp.org>
73476         Fix a c-stack test failure on MacOS X.
73477         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
73478         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
73479         handler for SIGBUS as well.
73480         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
73481         install a signal handler for SIGBUS as well.
73482         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
73484 2008-12-06  Bruno Haible  <bruno@clisp.org>
73486         Advocacy documentation.
73487         * doc/gnulib-intro.texi (Benefits): New section.
73488         * doc/gnulib.texi: Update.
73490 2008-12-06  Bruno Haible  <bruno@clisp.org>
73492         Document the 'manywarnings' module.
73493         * doc/manywarnings.texi: New file.
73494         * doc/gnulib.texi: Include it.
73496 2008-12-05  Eric Blake  <ebb9@byu.net>
73498         tests: silence some gcc warnings
73499         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
73500         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
73501         type mismatches.
73503 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73504             Bruno Haible  <bruno@clisp.org>
73506         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
73508 2008-11-29  Jim Meyering  <meyering@redhat.com>
73510         unicodeio.c: mark unused parameters
73511         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
73512         (fallback_failure_callback): Likewise.
73514         fts: fix a thinko
73515         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
73516         (set_stat_type): Return S_IF*-valued "type" directly.
73517         Prompted by James Youngman's spotting a related bug.
73518         Confirmed by further testing through find.
73520         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
73521         * lib/fts.c (D_TYPE): Define.
73522         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
73523         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
73524         (s_ifmt_shift_bits): New function.
73525         (set_stat_type): New function.
73526         (fts_build): When not calling fts_stat, call set_stat_type
73527         to propagate dirent.d_type info to fts_read caller.
73528         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
73529         fts_statp->st_mode type information may be valid.
73531 2008-11-28  Simon Josefsson  <simon@josefsson.org>
73533         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
73534         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
73535         <sds@gnu.org>.
73537 2008-11-20  Bruno Haible  <bruno@clisp.org>
73539         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
73540         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
73541         INCLUDE_NEXT.
73542         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
73543         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
73544         * modules/math (Makefile.am): Substitute
73545         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
73546         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
73548 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
73549             Bruno Haible  <bruno@clisp.org>
73551         * lib/stdint.in.h: Define all type macros so that their expansion is
73552         a single typedef'ed token. Fixes a compilation failure in Boost which
73553         does "using ::int8_t;".
73555 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73557         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
73558         gl_MANYWARN_ALL_GCC.
73559         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
73560         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
73561         * modules/manywarnings: New file.
73562         * MODULES.html.sh: Mention manywarnings module.
73564 2008-11-18  Bruno Haible  <bruno@clisp.org>
73566         * doc/gnulib-tool.texi (Unit tests): New section.
73568 2008-11-18  Simon Josefsson  <simon@josefsson.org>
73570         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
73571         paths like 'lib/po/foo.po'.
73573 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73575         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
73576         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
73578 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73580         * m4/warnings.m4: Use CPPFLAGS to really check whether the
73581         parameter works.
73583 2008-11-17  Simon Josefsson  <simon@josefsson.org>
73585         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
73587 2008-11-17  Bruce Korb  <bkorb@gnu.org>
73589         * modules/parse-duration-tests: New file.
73590         * tests/test-parse-duration.sh: New file.
73591         * tests/test-parse-duration.c: New file.
73593         New module 'parse-duration'.
73594         * lib/parse-duration.h: New file.
73595         * lib/parse-duration.c: New file.
73596         * modules/parse-duration: New file.
73598 2008-11-17  Bruno Haible  <bruno@clisp.org>
73600         * tests/test-select-out.sh: Comment out the first pipe test.
73601         Reported by Simon Josefsson.
73603 2008-11-17  Bruno Haible  <bruno@clisp.org>
73605         * modules/getaddrinfo (Depends-on): Add servent, hostent.
73606         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
73607         gl_HOSTENT.
73609 2008-11-17  Bruno Haible  <bruno@clisp.org>
73611         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
73612         -lnetwork and -lnet. Needed for Haiku and BeOS.
73614 2008-11-16  Bruno Haible  <bruno@clisp.org>
73616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
73618 2008-11-16  Bruno Haible  <bruno@clisp.org>
73620         Avoid test failure on Haiku.
73621         * tests/test-fsync.c: Include <errno.h>.
73622         (main): Don't require that fsync (0) fails.
73624 2008-11-15  Bruno Haible  <bruno@clisp.org>
73626         New module 'hostent'.
73627         * modules/hostent: New file.
73628         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
73630 2008-11-15  Bruno Haible  <bruno@clisp.org>
73632         New module 'servent'.
73633         * modules/servent: New file.
73634         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
73636 2008-11-15  Bruno Haible  <bruno@clisp.org>
73638         Avoid generating same test program with two different rules.
73639         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
73640         test-frexp to test-frexp-nolibm.
73641         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
73642         test-frexpl to test-frexpl-nolibm.
73644 2008-11-15  Bruno Haible  <bruno@clisp.org>
73646         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
73647         $(FREXPL_LIBM).
73649 2008-11-15  Bruno Haible  <bruno@clisp.org>
73651         * lib/netdb.in.h: Activate the definitions also when the system's
73652         <netdb.h> has 'struct addrinfo'.
73653         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
73654         EAI_OVERFLOW or AI_NUMERICSERV.
73655         * doc/posix-headers/netdb.texi: Document the problem.
73657 2008-11-15  Bruno Haible  <bruno@clisp.org>
73659         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
73661         Make the 'sched' module work on platforms where <sched.h> exists but
73662         is incomplete (such as Haiku).
73663         * lib/sched.in.h; Include the system's <sched.h> if it exists.
73664         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
73665         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
73666         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
73667         HAVE_STRUCT_SCHED_PARAM.
73668         * modules/sched (Depends-on): Add include_next.
73669         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
73670         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
73671         * doc/posix-headers/sched.texi: Document the issue.
73673 2008-11-13  Jim Meyering  <meyering@redhat.com>
73675         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
73676         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
73677         test would fail due to the difference in the Report bugs to ...
73678         line.  The expected address is empty, "<>", while the actual
73679         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
73681 2008-11-12  Bruno Haible  <bruno@clisp.org>
73683         lstat: don't compile lstat.c on systems lacking lstat
73684         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
73685         which don't have lstat; this is handled by lib/sys_stat.in.h already.
73686         Reported by Daniel P. Berrange via Jim Meyering.
73688 2008-11-12  Jim Meyering  <meyering@redhat.com>
73690         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
73692 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73694         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
73695         instead.
73697 2008-11-12  Bruno Haible  <bruno@clisp.org>
73699         * lib/unicodeio.c: Include unistr.h.
73700         (utf8_wctomb): Remove function.
73701         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
73703 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73705         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
73706         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
73707         <bruno@clisp.org>.
73708         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
73710 2008-11-12  Simon Josefsson  <simon@josefsson.org>
73712         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
73713         * doc/gnulib.texi: Add section for warnings.
73715 2008-11-11  Bruno Haible  <bruno@clisp.org>
73717         * lib/sockets.h: Add a comment.
73719 2008-11-11  Karl Berry  <karl@gnu.org>
73721         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
73723 2008-11-11  Eric Blake  <ebb9@byu.net>
73725         fdl.texi: avoid git symlinks
73726         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
73728 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73730         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
73732 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73734         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
73735         (gl_WARN_ADD): Substitute $2 if literal.
73737 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73739         * m4/warning.m4: Remove.
73741 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
73743         * m4/warnings.m4: Almost complete rewrite. :-)
73745 2008-11-10  Simon Josefsson  <simon@josefsson.org>
73747         * modules/warnings: New module.
73748         * m4/warnings.m4: New file.
73749         * MODULES.html.sh: Mention warnings module.
73750         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
73751         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73753 2008-11-10  Eric Blake  <ebb9@byu.net>
73755         fdl.texi: make a symlink to the latest version
73756         * doc/standards.texi: Revert today's earlier change.
73757         * doc/fdl-1.2.texi: Rename from old fdl.texi...
73758         * doc/fdl.texi: ...and replace this with a symlink to the newer
73759         fdl-1.3.texi.
73761 2008-11-10  Bruno Haible  <bruno@clisp.org>
73763         * tests/test-select-fd.c (main): Accept the result file name as fourth
73764         argument.
73765         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
73766         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
73768 2008-11-10  Bruno Haible  <bruno@clisp.org>
73770         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
73771         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
73772         as autoconf-substituted macros.
73773         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
73774         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
73775         gl_NETDB_H_DEFAULTS. Set these variables.
73776         * modules/netdb (Makefile.am): Substitute these variables.
73778 2008-11-10  Eric Blake  <ebb9@byu.net>
73780         standards.texi: include correct file for FDL 1.3
73781         * doc/standards.texi (GNU Free Documentation License): Change
73782         include file to pull in FDL 1.3, not 1.2.
73784         fdl.texi: revert accidental change to license
73785         * doc/fdl.texi: This is FDL 1.2, not 1.3.
73787 2008-11-10  Bruno Haible  <bruno@clisp.org>
73789         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
73790         cross-compiling guesses also when the native compile gives no result.
73792 2008-11-10  Bruno Haible  <bruno@clisp.org>
73794         * lib/spawni.c (__spawni): Force variable into the stack.
73796 2008-11-10  Bruno Haible  <bruno@clisp.org>
73798         Add support for Haiku.
73799         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
73800         glibc and BeOS, but also on Haiku.
73801         * lib/fpurge.c (fpurge): Likewise.
73802         * lib/freadable.c (freadable): Likewise.
73803         * lib/freadahead.c (freadahead): Likewise.
73804         * lib/freading.c (freading): Likewise.
73805         * lib/freadptr.c (freadptr): Likewise.
73806         * lib/freadseek.c (freadptrinc): Likewise.
73807         * lib/fseeko.c (rpl_fseeko): Likewise.
73808         * lib/fseterr.c (fseterr): Likewise.
73809         * lib/fwritable.c (fwritable): Likewise.
73810         * lib/fwriting.c (fwriting): Likewise.
73811         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
73813 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73815         * lib/config.charset: Treat Haiku like BeOS.
73817 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
73819         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
73820         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
73822 2008-11-08  Bruno Haible  <bruno@clisp.org>
73824         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
73825         AC_CACHE_CHECK.
73827 2008-11-08  Bruno Haible  <bruno@clisp.org>
73829         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
73831 2008-11-08  Bruno Haible  <bruno@clisp.org>
73833         * tests/test-select-fd.c: New file.
73834         * tests/test-select-in.sh: New file.
73835         * tests/test-select-out.sh: New file.
73836         * tests/test-select-stdin.c: New file.
73837         * modules/select-tests (Files): Add the new files.
73838         (Depends-on): Add gettimeofday.
73839         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
73840         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
73841         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
73843 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
73844             Bruno Haible  <bruno@clisp.org>
73846         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
73848 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
73850         * build-aux/pmccabe2html: Added support for C++ source files.
73852 2008-11-05  Ben Pfaff  <blp@gnu.org>
73854         Fix lib/close.c build on Windows.
73855         * modules/close (Files): Add lib/w32sock.h.
73857 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
73859         Accept Bison's NEWS format.
73860         * build-aux/announce-gen (print_news_deltas): Tweak
73861         $re_prefix.
73863 2008-11-04  Bruno Haible  <bruno@clisp.org>
73865         * modules/random_r (Maintainer): Add glibc.
73867 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73869         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
73870         by karl@freefriends.org (Karl Berry).
73871         * doc/alloca.texi: Likewise.
73872         * doc/c-ctype.texi: Likewise.
73873         * doc/c-strcase.texi: Likewise.
73874         * doc/c-strcaseeq.texi: Likewise.
73875         * doc/c-strcasestr.texi: Likewise.
73876         * doc/c-strstr.texi: Likewise.
73877         * doc/c-strtod.texi: Likewise.
73878         * doc/c-strtold.texi: Likewise.
73879         * doc/ctime.texi: Likewise.
73880         * doc/error.texi: Likewise.
73881         * doc/fdl.texi: Likewise.
73882         * doc/gcd.texi: Likewise.
73883         * doc/getdate.texi: Likewise.
73884         * doc/gnulib-intro.texi: Likewise.
73885         * doc/gnulib-tool.texi: Likewise.
73886         * doc/gnulib.texi: Likewise.
73887         * doc/inet_ntoa.texi: Likewise.
73888         * doc/maintain.texi: Likewise.
73889         * doc/make-stds.texi: Likewise.
73890         * doc/quote.texi: Likewise.
73891         * doc/regexprops-generic.texi: Likewise.
73892         * doc/standards.texi: Likewise.
73893         * doc/verify.texi: Likewise.
73894         * doc/visibility.texi: Likewise.
73895         * doc/gnulib.texi (GNU Free Documentation License): Include
73896         fdl-1.3.texi instead of fdl.texi.
73898 2008-11-04  Simon Josefsson  <simon@josefsson.org>
73900         * doc/fdl-1.3.texi: New file, from
73901         <http://www.gnu.org/licenses/fdl-1.3.texi>.
73902         * modules/fdl-1.3: Add.
73903         * MODULES.html.sh: Add fdl-1.3.
73905 2008-11-03  Bruno Haible  <bruno@clisp.org>
73907         Make determination of absolute name of header file work with AIX xlc.
73908         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
73909         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
73910         preprocessing.
73911         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
73912         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
73914 2008-11-03  Simon Josefsson  <simon@josefsson.org>
73916         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
73917         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
73918         <ludo@gnu.org>.
73920 2008-11-02  Bruno Haible  <bruno@clisp.org>
73922         Mark 'strpbrk' obsolete.
73923         * modules/strpbrk (Status, Notice): New sections.
73924         * modules/strtok_r (Depends-on): Add strpbrk.
73926 2008-11-02  Bruno Haible  <bruno@clisp.org>
73928         Mark 'strdup' obsolete.
73929         * modules/strdup (Status, Notice): New sections.
73930         * modules/findprog (Depends-on): Add strdup.
73931         * modules/getaddrinfo (Depends-on): Likewise.
73932         * modules/localename (Depends-on): Likewise.
73933         * modules/relocatable-lib (Depends-on): Likewise.
73934         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
73935         * modules/relocatable-prog (Depends-on): Likewise.
73936         * modules/trim (Depends-on): Likewise.
73937         * modules/unictype/gen-ctype (Depends-on): Likewise.
73938         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
73940 2008-11-02  Bruno Haible  <bruno@clisp.org>
73942         Mark 'strcspn' obsolete.
73943         * modules/strcspn (Status, Notice): New sections.
73945 2008-11-02  Bruno Haible  <bruno@clisp.org>
73947         Mark 'rmdir' obsolete.
73948         * modules/rmdir (Status, Notice): New sections.
73949         * modules/clean-temp (Depends-on): Add rmdir.
73950         * modules/openat (Depends-on): Likewise.
73952 2008-11-02  Bruno Haible  <bruno@clisp.org>
73954         Mark 'raise' obsolete.
73955         * modules/raise (Status, Notice): New sections.
73956         (Include): Specify <signal.h>.
73957         * modules/stdio (Depends-on): Add raise.
73958         * modules/write (Depends-on): Likewise.
73960 2008-11-02  Bruno Haible  <bruno@clisp.org>
73962         Mark 'memset' obsolete.
73963         * modules/memset (Status, Notice): New sections.
73965 2008-11-02  Bruno Haible  <bruno@clisp.org>
73967         Mark 'memmove' obsolete.
73968         * modules/memmove (Status, Notice): New sections.
73969         * modules/argp (Depends-on): Add memmove.
73970         * modules/argz (Depends-on): Likewise.
73971         * modules/canonicalize (Depends-on): Likewise.
73972         * modules/canonicalize-lgpl (Depends-on): Likewise.
73973         * modules/fts (Depends-on): Likewise.
73974         * modules/getcwd (Depends-on): Likewise.
73975         * modules/human (Depends-on): Likewise.
73976         * modules/regex (Depends-on): Likewise.
73977         * modules/striconveh (Depends-on): Likewise.
73978         * modules/trim (Depends-on): Likewise.
73979         * modules/unistr/u8-move (Depends-on): Likewise.
73980         * modules/unistr/u16-move (Depends-on): Likewise.
73981         * modules/unistr/u32-move (Depends-on): Likewise.
73983 2008-11-02  Bruno Haible  <bruno@clisp.org>
73985         Mark 'memcpy' obsolete.
73986         * modules/memcpy (Status, Notice): New sections.
73988 2008-11-02  Bruno Haible  <bruno@clisp.org>
73990         Mark 'memcmp' obsolete.
73991         * modules/memcmp (Status, Notice): New sections.
73992         * modules/argmatch (Depends-on): Add memchr.
73993         * modules/backupfile (Depends-on): Likewise.
73994         * modules/c-strcasestr (Depends-on): Likewise.
73995         * modules/crypto/des (Depends-on): Likewise.
73996         * modules/csharpcomp (Depends-on): Likewise.
73997         * modules/fnmatch (Depends-on): Likewise.
73998         * modules/git-merge-changelog (Depends-on): Likewise.
73999         * modules/isnand (Depends-on): Likewise.
74000         * modules/isnand-nolibm (Depends-on): Likewise.
74001         * modules/isnanf (Depends-on): Likewise.
74002         * modules/isnanf-nolibm (Depends-on): Likewise.
74003         * modules/isnanl (Depends-on): Likewise.
74004         * modules/isnanl-nolibm (Depends-on): Likewise.
74005         * modules/mbchar (Depends-on): Likewise.
74006         * modules/memcoll (Depends-on): Likewise.
74007         * modules/quotearg (Depends-on): Likewise.
74008         * modules/regex (Depends-on): Likewise.
74009         * modules/relocatable-prog (Depends-on): Likewise.
74010         * modules/same (Depends-on): Likewise.
74011         * modules/signbit (Depends-on): Likewise.
74012         * modules/strcasestr-simple (Depends-on): Likewise.
74013         * modules/unictype/gen-ctype (Depends-on): Likewise.
74014         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
74015         * modules/uniname/uniname (Depends-on): Likewise.
74016         * modules/unistr/u8-cmp (Depends-on): Likewise.
74018 2008-11-02  Bruno Haible  <bruno@clisp.org>
74020         Mark 'memchr' obsolete.
74021         * modules/memchr (Status, Notice): New sections.
74022         * modules/argp (Depends-on): Add memchr.
74023         * modules/base64 (Depends-on): Likewise.
74024         * modules/c-strcasestr (Depends-on): Likewise.
74025         * modules/chdir-long (Depends-on): Likewise.
74026         * modules/fnmatch (Depends-on): Likewise.
74027         * modules/getsubopt (Depends-on): Likewise.
74028         * modules/git-merge-changelog (Depends-on): Likewise.
74029         * modules/glob (Depends-on): Likewise.
74030         * modules/strcasestr-simple (Depends-on): Likewise.
74031         * modules/strnlen (Depends-on): Likewise.
74033 2008-11-02  Bruno Haible  <bruno@clisp.org>
74035         Mark 'atexit' obsolete.
74036         * modules/atexit (Status, Notice): New sections.
74037         * modules/chdir-long (Depends-on): Add atexit.
74038         * modules/wait-process (Depends-on): Likewise.
74040 2008-11-02  Bruno Haible  <bruno@clisp.org>
74042         * gnulib-tool: New option --with-obsolete.
74043         (func_usage): Document it.
74044         (func_modules_transitive_closure): Drop obsolete dependencies if
74045         incobsolete is not true.
74046         (func_import): Read and save the incobsolete variable to the cache.
74048 2008-11-02  Bruno Haible  <bruno@clisp.org>
74050         * modules/TEMPLATE-EXTENDED: New field 'Status'.
74051         * gnulib-tool: New option --extract-status.
74052         (func_usage): Document it.
74053         (sed_extract_prog): Recognize it.
74054         (func_get_status): New function.
74056 2008-10-30  Simon Josefsson  <simon@josefsson.org>
74058         * modules/sockets (License): Change from LGPL to LGPLv2+.
74060 2008-10-28  Simon Josefsson  <simon@josefsson.org>
74062         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
74064 2008-10-28  Simon Josefsson  <simon@josefsson.org>
74066         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74067         Mention times and sys_times.
74068         * modules/sys_times, modules/sys_times-tests: New modules.
74069         * modules/times, modules/times-tests: Likewise
74070         * m4/sys_times_h.m4: New file.
74071         * lib/sys_times.in.h: Likewise
74072         * lib/times.c: Likewise.
74073         * tests/test-sys_times.c: Likewise.
74074         * tests/test-times.c: Likewise.
74075         * doc/posix-headers/sys_times.texi: Update.
74076         * doc/posix-functions/times.texi: Update.
74078 2008-10-28  Jim Meyering  <meyering@redhat.com>
74080         * modules/tempname (Depends-on): Add lstat.
74082         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
74084 2008-10-28  Simon Josefsson  <simon@josefsson.org>
74086         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
74087         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
74088         using idiom used elsewhere in gnulib.
74090 2008-10-27  Jim Meyering  <meyering@redhat.com>
74092         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
74094 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74096         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
74097         TESTS_ENVIRONMENT, for shell scripts that needs to call built
74098         programs.
74099         * tests/test-argp-2.sh: Use $EXEEXT when needed.
74101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74103         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
74105 2008-10-27  Bruno Haible  <bruno@clisp.org>
74107         * tests/test-lstat.c: Include <stdio.h>.
74109 2008-10-27  Simon Josefsson  <simon@josefsson.org>
74111         * modules/lstat-tests: New module.
74112         * tests/test-lstat.c: New file.
74114 2008-10-26  Jim Meyering  <meyering@redhat.com>
74116         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
74118 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74119             Bruno Haible  <bruno@clisp.org>
74121         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
74122         * modules/configmake (Include): Add a note that the include must come
74123         after all system headers.
74124         * lib/javaversion.c: Include configmake.h after all other includes.
74126 2008-10-26  Bruno Haible  <bruno@clisp.org>
74128         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
74129         HAVE_STRUCT_RANDOM_DATA to 1.
74130         (gl_STDLIB_H): Simplify.
74132 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74134         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
74135         substitute HAVE_STRUCT_RANDOM_DATA.
74136         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
74137         random_data.
74138         * modules/stdlib (Makefile.am): Substitute
74139         HAVE_STRUCT_RANDOM_DATA.
74141 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74143         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
74144         * doc/gnulib-intro.texi (Copyright): Likewise.
74146 2008-10-26  Simon Josefsson  <simon@josefsson.org>
74148         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
74149         findings.
74151 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
74152             Bruno Haible  <bruno@clisp.org>
74154         * lib/unistd.in.h: Include <winsock2.h>.
74155         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
74156         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
74157         Provide dummy declarations.
74158         (gethostname): Override.
74159         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
74160         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
74161         gl_PREREQ_SYS_H_WINSOCK2.
74162         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
74163         * doc/posix-functions/gethostname.texi: More details.
74165 2008-10-25  Bruno Haible  <bruno@clisp.org>
74167         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
74168         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
74169         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
74171         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
74172         here ...
74173         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
74174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
74175         gl_UNISTD_H_DEFAULTS.
74177 2008-10-25  Eric Blake  <ebb9@byu.net>
74179         signbit: avoid spurious compiler failure
74180         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
74181         declarations inside function.
74183 2008-10-24  Simon Josefsson  <simon@josefsson.org>
74184             Bruno Haible  <bruno@clisp.org>
74186         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
74187         * modules/random_r (Depends-on): Add stdint.
74189 2008-10-24  Bruno Haible  <bruno@clisp.org>
74191         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
74192         Eggert.
74193         * modules/strerror (License): Likewise.
74195 2008-10-24  Jim Meyering  <meyering@redhat.com>
74197         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
74198         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
74200 2008-10-24  Eric Blake  <ebb9@byu.net>
74202         getgroups: fix compilation when getgroups is available
74203         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
74204         but with <config.h> override of getgroups disabled.
74206 2008-10-24  Simon Josefsson  <simon@josefsson.org>
74208         * doc/gnulib.texi (Header files): Add note about C++ problems.
74209         Explained by Bruno Haible <bruno@clisp.org>.
74211 2008-10-23  Bruno Haible  <bruno@clisp.org>
74213         Define a dummy SA_NODEFER macro on Interix.
74214         * lib/signal.in.h (SA_NODEFER): Define fallback.
74215         Reported by Aleksey Cheusov <cheusov@tut.by> via
74216         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
74218 2008-10-23  Bruno Haible  <bruno@clisp.org>
74220         * modules/freadahead (License): Change to LGPLv2+.
74221         Suggested by Simon Josefsson.
74223 2008-10-23  Jim Meyering  <meyering@redhat.com>
74225         random_r: new module
74226         * modules/random_r: New file.
74227         * m4/random_r.m4: New file.
74228         * lib/random_r.c: New file, from glibc.
74229         * modules/random_r-tests: New file.
74230         * tests/test-random_r.c: New file.
74231         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
74232          Declare.
74233         (RAND_MAX): Define.
74234         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
74235         * modules/stdlib: Substitute them, too.
74236         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
74237         * doc/glibc-functions/initstate_r.texi: Mention the new module.
74238         * doc/glibc-functions/random_r.texi: Likewise.
74239         * doc/glibc-functions/setstate_r.texi: Likewise.
74240         * doc/glibc-functions/srandom_r.texi: Likewise.
74241         * config/srclist.txt: Mention it.
74243 2008-10-23  David Lutterkort  <lutter@redhat.com>
74245         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
74246         link requirement
74248 2008-10-23  Jim Meyering  <meyering@redhat.com>
74250         selinux-h: mark parameters of stub functions as intentionally unused
74251         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
74252         * lib/se-context.in.h: Likewise.
74254 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74256         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
74258 2008-10-22  Simon Josefsson  <simon@josefsson.org>
74260         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
74262 2008-10-22  Eric Blake  <ebb9@byu.net>
74264         glthread/thread: avoid compiler warning
74265         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
74266         Add unreachable abort to silence compiler.
74268 2008-10-22  Eric Blake  <ebb9@byu.net>
74270         netdb: also supply struct addrinfo for cygwin 1.5.x
74271         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
74272         older cygwin.
74273         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
74274         cygwin.
74275         * doc/posix-headers/netdb.texi (netdb.h): Document this.
74277 2008-10-22  Bruno Haible  <bruno@clisp.org>
74279         * users.txt: Update entry about pspp.
74281 2008-10-21  Bruno Haible  <bruno@clisp.org>
74283         Simplification.
74284         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
74285         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
74287         Simplification.
74288         * lib/ioctl.c (ioctl): Don't undefine.
74289         * lib/socket.c (socket): Don't undefine.
74291         Remove unused module indicator macros.
74292         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
74293         GNULIB_$1 as a C macro.
74295         * doc/posix-functions/close.texi: Undo last change.
74296         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
74297         Windows platforms.
74299 2008-10-21  Bruno Haible  <bruno@clisp.org>
74301         Add gethostname() declaration to <unistd.h>.
74302         * lib/unistd.in.h (gethostname): New declaration.
74303         * lib/gethostname.c: Include <unistd.h>.
74304         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
74305         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
74306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
74307         and HAVE_GETHOSTNAME.
74308         * modules/gethostname (Depends-on): Add unistd.
74309         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74310         (Include): Specify <unistd.h>.
74311         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
74312         HAVE_GETHOSTNAME.
74313         * tests/test-gethostname.c: Include <unistd.h> first.
74315 2008-10-21  Bruno Haible  <bruno@clisp.org>
74317         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
74318         * modules/select-tests (Depends-on): Likewise.
74319         Reported by Simon Josefsson.
74321 2008-10-21  Simon Josefsson  <simon@josefsson.org>
74323         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
74324         * lib/accept.c: New file, based on winsock.c.
74325         * lib/bind.c: New file, based on winsock.c.
74326         * lib/connect.c: New file, based on winsock.c.
74327         * lib/getpeername.c: New file, based on winsock.c.
74328         * lib/getsockname.c: New file, based on winsock.c.
74329         * lib/getsockopt.c: New file, based on winsock.c.
74330         * lib/ioctl.c: New file, based on winsock.c.
74331         * lib/listen.c: New file, based on winsock.c.
74332         * lib/recv.c: New file, based on winsock.c.
74333         * lib/recvfrom.c: New file, based on winsock.c.
74334         * lib/send.c: New file, based on winsock.c.
74335         * lib/sendto.c: New file, based on winsock.c.
74336         * lib/setsockopt.c: New file, based on winsock.c.
74337         * lib/shutdown.c: New file, based on winsock.c.
74338         * lib/socket.c: New file, based on winsock.c.
74339         * lib/w32sock.h: New file, based on winsock.c.
74340         * lib/winsock.c: Remove file.
74341         * modules/accept: Likewise.
74342         * modules/bind: Likewise.
74343         * modules/connect: Likewise.
74344         * modules/getpeername: Likewise.
74345         * modules/getsockname: Likewise.
74346         * modules/getsockopt: Likewise.
74347         * modules/ioctl: Likewise.
74348         * modules/listen: Likewise.
74349         * modules/recv: Likewise.
74350         * modules/recvfrom: Likewise.
74351         * modules/send: Likewise.
74352         * modules/sendto: Likewise.
74353         * modules/setsockopt: Likewise.
74354         * modules/shutdown: Likewise.
74355         * modules/socket: Use socket.c instead of winsock.c.
74356         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
74357         * doc/posix-functions/accept.texi: Doc fix.
74358         * doc/posix-functions/bind.texi: Doc fix.
74359         * doc/posix-functions/close.texi: Doc fix.
74360         * doc/posix-functions/connect.texi: Doc fix.
74361         * doc/posix-functions/getpeername.texi: Doc fix.
74362         * doc/posix-functions/getsockname.texi: Doc fix.
74363         * doc/posix-functions/getsockopt.texi: Doc fix.
74364         * doc/posix-functions/ioctl.texi: Doc fix.
74365         * doc/posix-functions/listen.texi: Doc fix.
74366         * doc/posix-functions/recv.texi: Doc fix.
74367         * doc/posix-functions/recvfrom.texi: Doc fix.
74368         * doc/posix-functions/send.texi: Doc fix.
74369         * doc/posix-functions/sendto.texi: Doc fix.
74370         * doc/posix-functions/setsockopt.texi: Doc fix.
74371         * doc/posix-functions/shutdown.texi: Doc fix.
74372         * doc/posix-functions/socket.texi: Doc fix.
74374 2008-10-20  Bruno Haible  <bruno@clisp.org>
74376         Take into account the role of SIGABRT_COMPAT on Windows 2008.
74377         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
74378         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
74379         as an alias for SIGABRT.
74380         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
74381         (sigaction): Map it to SIGABRT.
74382         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
74384 2008-10-20  Bruno Haible  <bruno@clisp.org>
74386         * lib/fts.c: Don't include lstat.h.
74387         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
74389         Move the lstat() declaration to <sys/stat.h>.
74390         * lib/lstat.h: Remove file.
74391         * lib/sys_stat.in.h: Add special invocation convention.
74392         (lstat): New declaration.
74393         * lib/lstat.c (orig_lstat): New function.
74394         (rpl_lstat): Use orig_lstat instead of lstat.
74395         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
74396         AC_C_INLINE. Set REPLACE_LSTAT.
74397         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
74398         and REPLACE_LSTAT.
74399         * modules/lstat (Files): Remove lib/lstat.h.
74400         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74401         (Include): Specify <sys/stat.h> instead of lstat.h.
74402         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
74403         REPLACE_LSTAT.
74404         * NEWS: Mention the change.
74406 2008-10-20  Bruno Haible  <bruno@clisp.org>
74408         * modules/posix_spawn-tests: New file.
74409         * tests/test-posix_spawn3.c: New file.
74411 2008-10-20  Bruno Haible  <bruno@clisp.org>
74413         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
74414         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74415         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
74416         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
74417         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
74419 2008-10-20  Bruno Haible  <bruno@clisp.org>
74421         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
74422         of posix_spawn on AIX 5.3.
74424 2008-10-20  Bruno Haible  <bruno@clisp.org>
74426         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
74428 2008-10-20  Bruno Haible  <bruno@clisp.org>
74430         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
74431         of AC_LANG_PROGRAM.
74433 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74435         * lib/netdb.in.h: Don't define GNU specific constants until they
74436         are supported or needed.  Reported by Bruno Haible
74437         <bruno@clisp.org>.
74439 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74441         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
74443 2008-10-20  Simon Josefsson  <simon@josefsson.org>
74445         * lib/getaddrinfo.h: Remove file.
74446         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
74447         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
74448         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
74449         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
74450         * modules/netdb: Substitute GNULIB_GETADDRINFO.
74451         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
74452         * tests/test-getaddrinfo.c: Likewise.
74453         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
74454         * NEWS: Mention change.
74456 2008-10-19  Bruno Haible  <bruno@clisp.org>
74458         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
74460 2008-10-19  Bruno Haible  <bruno@clisp.org>
74462         * lib/wait-process.c: Include simply <sys/wait.h>.
74463         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
74464         WIFSTOPPED): Remove fallback definitions.
74465         * modules/wait-process (Depends-on): Add sys_wait.
74467         New module 'sys_wait'.
74468         * modules/sys_wait: New file.
74469         * lib/sys_wait.in.h: New file, partially copied from
74470         lib/wait-process.c.
74471         * m4/sys_wait_h.m4: New file.
74472         * doc/posix-headers/sys_wait.texi: Mention the new module.
74474 2008-10-19  Bruno Haible  <bruno@clisp.org>
74476         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
74478 2008-10-19  Bruno Haible  <bruno@clisp.org>
74480         Assume that waitpid() fills an 'int' status, not a 'union wait'.
74481         * lib/wait-process.c (WAIT_T): Remove type.
74482         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
74483         (wait_subprocess): Update.
74485 2008-10-19  Bruno Haible  <bruno@clisp.org>
74487         New module 'atoll'.
74488         * modules/atoll: New file.
74489         * lib/stdlib.in.h (atoll): New declaration.
74490         * lib/atoll.c: New file, from glibc with modifications.
74491         * m4/atoll.m4: New file.
74492         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
74493         HAVE_ATOLL.
74494         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
74495         * doc/posix-functions/atoll.texi: Mention the new module.
74497 2008-10-19  Bruno Haible  <bruno@clisp.org>
74499         Add strtoull() declaration to <stdlib.h>.
74500         * lib/stdlib.in.h (strtoull): New declaration.
74501         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74502         Set HAVE_STRTOULL.
74503         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
74504         HAVE_STRTOULL.
74505         * modules/strtoull (Depends-on): Add stdlib.
74506         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74507         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
74508         HAVE_STRTOULL.
74510 2008-10-19  Bruno Haible  <bruno@clisp.org>
74512         Add strtoll() declaration to <stdlib.h>.
74513         * lib/stdlib.in.h (strtoll): New declaration.
74514         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
74515         Set HAVE_STRTOLL.
74516         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
74517         HAVE_STRTOLL.
74518         * modules/strtoll (Depends-on): Add stdlib.
74519         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74520         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
74522 2008-10-19  Bruno Haible  <bruno@clisp.org>
74524         * modules/bcopy (Depends-on): Add strings.
74525         (Include): Specify <strings.h>.
74527 2008-10-19  Bruno Haible  <bruno@clisp.org>
74529         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
74531 2008-10-19  Bruno Haible  <bruno@clisp.org>
74533         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
74534         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
74535         mingw.
74537 2008-10-19  Bruno Haible  <bruno@clisp.org>
74539         * lib/atanl.c: Don't include isnanl.h.
74540         * lib/cosl.c: Likewise.
74541         * lib/ldexpl.c: Likewise.
74542         * lib/logl.c: Likewise.
74543         * lib/sinl.c: Likewise.
74544         * lib/sqrtl.c: Likewise.
74545         * lib/tanl.c: Likewise.
74547         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
74548         * lib/isnanf.h: Remove file.
74549         * lib/isnand.h: Remove file.
74550         * lib/isnanl.h: Remove file.
74551         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
74552         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
74553         macros.
74554         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
74555         HAVE_ISNANF, don't define it as a C macro.
74556         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
74557         HAVE_ISNAND, don't define it as a C macro.
74558         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
74559         HAVE_ISNANL, don't define it as a C macro.
74560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
74561         HAVE_ISNAN[FDL].
74562         * modules/isnanf (Files): Remove lib/isnanf.h.
74563         (Depends-on): Add math.
74564         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74565         (Include): Specify <math.h> instead of isnanf.h.
74566         * modules/isnand (Files): Remove lib/isnand.h.
74567         (Depends-on): Add math.
74568         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74569         (Include): Specify <math.h> instead of isnand.h.
74570         * modules/isnanl (Files): Remove lib/isnanl.h.
74571         (Depends-on): Add math.
74572         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
74573         (Include): Specify <math.h> instead of isnanl.h.
74574         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
74575         HAVE_ISNAN[FDL].
74576         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
74577         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
74578         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
74579         * NEWS: Mention the change.
74581 2008-10-18  Bruno Haible  <bruno@clisp.org>
74583         Add getusershell(), setusershell(), endusershell() declarations to
74584         <unistd.h>.
74585         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
74586         declarations.
74587         * lib/getusershell.c: Include unistd.h.
74588         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
74589         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74590         HAVE_GETUSERSHELL.
74591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
74592         and HAVE_GETUSERSHELL.
74593         * modules/getusershell (Depends-on): Add unistd, extensions.
74594         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74595         (Include): Specify <unistd.h>.
74596         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
74597         HAVE_GETUSERSHELL.
74599 2008-10-18  Bruno Haible  <bruno@clisp.org>
74601         Add a getloadavg() declaration to <stdlib.h>.
74602         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
74603         getloadavg declaration.
74604         (getloadavg): New declaration.
74605         * lib/getloadavg.c: Include <stdlib.h> first.
74606         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
74607         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
74608         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
74609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
74610         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74611         * modules/getloadavg (Depends-on): Add stdlib, extensions.
74612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
74613         (Include): Specify <stdlib.h>.
74614         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
74615         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
74617 2008-10-18  Bruno Haible  <bruno@clisp.org>
74619         * lib/dirchownmod.c: Don't include lchmod.h.
74621         Move the lchmod() declaration to <sys/stat.h>.
74622         * lib/lchmod.h: Remove file.
74623         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
74624         (lchmod): New declaration, moved here from lib/lchown.h.
74625         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
74626         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
74627         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
74628         and HAVE_LCHMOD.
74629         * modules/lchmod (Files): Remove lib/lchmod.h.
74630         (Depends-on): Add sys_stat, extensions.
74631         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
74632         (Include): Specify <sys/stat.h> instead of lchmod.h.
74633         * modules/sys_stat (Depends-on): Add link-warning.
74634         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
74635         definition of GL_LINK_WARNING.
74636         * NEWS: Mention the change.
74638 2008-10-18  Bruno Haible  <bruno@clisp.org>
74640         * lib/fchdir.c: Don't include dirfd.h.
74641         * lib/fts.c: Likewise.
74642         * lib/getcwd.c: Likewise.
74643         * lib/glob.c: Likewise.
74645         Move the dirfd() declaration to <dirent.h>.
74646         * lib/dirfd.h: Remove file.
74647         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
74648         (dirfd): New declaration.
74649         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
74650         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
74651         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
74652         HAVE_DECL_DIRFD.
74653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
74654         HAVE_DECL_DIRFD.
74655         * modules/dirfd (Files): Remove lib/dirfd.h.
74656         (Depends-on): Add dirent, extensions.
74657         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
74658         (Include): Specify <dirent.h> instead of dirfd.h.
74659         * modules/dirent (Depends-on): Add link-warning.
74660         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
74661         definition of GL_LINK_WARNING.
74662         * NEWS: Mention the change.
74664 2008-10-18  Bruno Haible  <bruno@clisp.org>
74666         Move the euidaccess() declaration to <unistd.h>.
74667         * lib/euidaccess.h: Remove file.
74668         * lib/unistd.in.h (euidaccess): New declaration.
74669         * lib/euidaccess.c: Don't include euidaccess.h.
74670         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
74671         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
74672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
74673         and HAVE_EUIDACCESS.
74674         * modules/euidaccess (Files): Remove lib/euidaccess.h.
74675         (Depends-on): Add unistd.
74676         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74677         (Include): Specify <unistd.h> instead of euidaccess.h.
74678         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
74679         HAVE_EUIDACCESS.
74680         * NEWS: Mention the change.
74682 2008-10-18  Bruno Haible  <bruno@clisp.org>
74684         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
74686         Move the getdomainname() declaration to <unistd.h>.
74687         * lib/getdomainname.h: Remove file.
74688         * lib/unistd.in.h (getdomainname): New declaration.
74689         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
74690         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
74691         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
74692         HAVE_GETDOMAINNAME.
74693         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
74694         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
74695         * modules/getdomainname (Files): Remove lib/getdomainname.h.
74696         (Depends-on): Add unistd, extensions.
74697         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
74698         (Includes): Specify <unistd.h> instead of getdomainname.h.
74699         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
74700         HAVE_GETDOMAINNAME.
74701         * NEWS: Mention the change.
74703 2008-10-18  Bruno Haible  <bruno@clisp.org>
74705         * modules/dirent: New file.
74706         * m4/dirent_h.m4: New file.
74707         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
74708         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
74709         * modules/fchdir (Files): Remove lib/dirent.in.h.
74710         (Depends-on): Add dirent.
74711         (Makefile.am): Move rules to modules/dirent.
74712         * doc/posix-headers/dirent.texi: Mention the new module.
74714 2008-10-18  Bruno Haible  <bruno@clisp.org>
74716         Avoid -Wunused-parameter warnings in public gnulib header files.
74717         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
74718         macro.
74719         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
74721 2008-10-18  Bruno Haible  <bruno@clisp.org>
74723         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
74724         * doc/glibc-functions/error.texi: Mention the module 'error'.
74725         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
74726         * doc/glibc-functions/getdomainname.texi: Mention the module
74727         'getdomainname'.
74728         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
74729         * doc/glibc-functions/getpagesize.texi: Mention the module
74730         'getpagesize'.
74731         * doc/glibc-functions/getusershell.texi: Mention the module
74732         'getusershell'.
74733         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
74734         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
74735         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
74736         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
74737         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
74738         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
74739         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
74740         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
74741         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
74742         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
74743         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
74744         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
74745         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
74746         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
74748 2008-10-17  Bruno Haible  <bruno@clisp.org>
74750         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
74751         HP-UX and IRIX, use -0.0L.
74752         * tests/test-ceill.c (minus_zero): Likewise.
74753         * tests/test-floorl.c (minus_zero): Likewise.
74754         * tests/test-frexpl.c (minus_zero): Likewise.
74755         * tests/test-isnan.c (minus_zerol): Likewise.
74756         * tests/test-isnanl.h (minus_zero): Likewise.
74757         * tests/test-ldexpl.c (minus_zero): Likewise.
74758         * tests/test-roundl.c (minus_zero): Likewise.
74759         * tests/test-signbit.c (minus_zerol): Likewise.
74760         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
74761         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
74762         * tests/test-truncl.c (minus_zero): Likewise.
74763         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
74764         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
74765         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
74766         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
74768 2008-10-17  Bruno Haible  <bruno@clisp.org>
74770         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
74771         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
74772         that it gets activated only for gcc >= 3.0.
74773         * lib/dirent.in.h: Likewise.
74774         * lib/errno.in.h: Likewise.
74775         * lib/fcntl.in.h: Likewise.
74776         * lib/float.in.h: Likewise.
74777         * lib/iconv.in.h: Likewise.
74778         * lib/inttypes.in.h: Likewise.
74779         * lib/locale.in.h: Likewise.
74780         * lib/math.in.h: Likewise.
74781         * lib/netdb.in.h: Likewise.
74782         * lib/netinet_in.in.h: Likewise.
74783         * lib/search.in.h: Likewise.
74784         * lib/signal.in.h: Likewise.
74785         * lib/spawn.in.h: Likewise.
74786         * lib/stdarg.in.h: Likewise.
74787         * lib/stdint.in.h: Likewise.
74788         * lib/stdio.in.h: Likewise.
74789         * lib/stdlib.in.h: Likewise.
74790         * lib/string.in.h: Likewise.
74791         * lib/strings.in.h: Likewise.
74792         * lib/sys_file.in.h: Likewise.
74793         * lib/sys_ioctl.in.h: Likewise.
74794         * lib/sys_select.in.h: Likewise.
74795         * lib/sys_socket.in.h: Likewise.
74796         * lib/sys_stat.in.h: Likewise.
74797         * lib/sys_time.in.h: Likewise.
74798         * lib/sysexits.in.h: Likewise.
74799         * lib/time.in.h: Likewise.
74800         * lib/unistd.in.h: Likewise.
74801         * lib/wchar.in.h: Likewise.
74802         * lib/wctype.in.h: Likewise.
74803         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74805 2008-10-17  Jim Meyering  <meyering@redhat.com>
74807         ignore-value: don't depend on inline module
74808         * modules/ignore-value (Depends-on): Remove 'inline'.
74809         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
74810         Suggestion from Bruno Haible.
74812 2008-10-17  Bruno Haible  <bruno@clisp.org>
74814         New implementation of condition variables for Win32.
74815         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
74816         (gl_linked_waitqueue_t): New type.
74817         (gl_cond_t): Use it.
74818         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
74819         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
74820         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
74821         (glthread_cond_init_func, glthread_cond_wait_func,
74822         glthread_cond_timedwait_func, glthread_cond_signal_func,
74823         glthread_cond_broadcast_func, glthread_cond_destroy_func):
74824         Reimplemented on the basis of gl_linked_waitqueue_t.
74825         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
74826         gl_waitqueue_t.
74827         (gl_rwlock_t): Update.
74828         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
74830 2008-10-17  Simon Josefsson  <simon@josefsson.org>
74832         * modules/recvfrom (Depends-on): Add dependency on getpeername.
74833         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74835 2008-10-17  Jim Meyering  <meyering@redhat.com>
74837         ignore-value: new module
74838         * modules/ignore-value: New file.
74839         * lib/ignore-value.h: New file.
74840         * MODULES.html.sh (Compiler warning management): New section,
74841         just for this module.  More to come.
74843 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74845         open-safer.c: avoid 'signed and unsigned in conditional...' warning
74846         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
74847         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
74849 2008-10-16  Jim Meyering  <meyering@redhat.com>
74851         openat-die.c: avoid 'no previous prototype' warning
74852         * lib/openat-die.c: Include "openat.h".
74853         Reported by Reuben Thomas <rrt@sc3d.org>.
74855 2008-10-16  Simon Josefsson  <simon@josefsson.org>
74857         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
74858         * lib/netdb.in.h: Fix typo.
74859         Reported by Bruno Haible  <bruno@clisp.org>
74861         * lib/netdb.in.h: Include sys/socket.h for platforms without
74862         netdb.h, to get structures like hostent on MinGW.
74863         * modules/netdb (Depends-on): Add sys_socket.
74865 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74867         * modules/netdb, modules/netdb-tests: New file.
74868         * m4/netdb_h.m4: New file.
74869         * lib/netdb.in.h: Add, currently just an empty file pending
74870         definitions.
74871         * tests/test-netdb.c: New file.
74872         * doc/posix-headers/netdb.texi: Mention that we replace it if
74873         needed.
74874         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74875         netdb.
74877 2008-10-15  Simon Josefsson  <simon@josefsson.org>
74879         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
74880         with code.
74882 2008-10-13  Bruno Haible  <bruno@clisp.org>
74884         * lib/glthread/cond.c (glthread_cond_wait_func,
74885         glthread_cond_timedwait_func): Add a comment.
74887 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74889         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
74890         * tests/test-select.c: Likewise,
74892 2008-10-13  Bruno Haible  <bruno@clisp.org>
74894         * lib/glthread/cond.c (glthread_cond_wait_func,
74895         glthread_cond_timedwait_func): Fix variable name.
74896         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74898 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
74900         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
74901         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
74902         struct sockaddr.sa_len.
74903         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
74905 2008-10-13  Simon Josefsson  <simon@josefsson.org>
74907         * build-aux/pmccabe2html: Add css and css_url parameters.
74909 2008-10-12  Bruno Haible  <bruno@clisp.org>
74911         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
74912         calling aclx_get.
74913         Reported by Rainer Tammer <tammer@tammer.net>.
74915 2008-10-12  Bruno Haible  <bruno@clisp.org>
74917         Use msvcrt aware primitives for creation/termination of Win32 threads.
74918         * lib/glthread/thread.c: Include <process.h>.
74919         (glthread_create_func): Use _beginthreadex instead of CreateThread.
74920         (wrapper_func): Update signature.
74921         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
74923 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
74924             Bruno Haible  <bruno@clisp.org>
74926         Provide a Win32 implementation of the 'cond' module.
74927         * lib/glthread/cond.h [USE_WIN32]: New implementation.
74928         * lib/glthread/cond.c (glthread_cond_init_func,
74929         glthread_cond_wait_func, glthread_cond_timedwait_func,
74930         glthread_cond_signal_func, glthread_cond_broadcast_func,
74931         glthread_cond_destroy_func) [USE_WIN32]: New functions.
74932         * modules/cond (Dependencies): Add gettimeofday.
74934 2008-10-11  Bruno Haible  <bruno@clisp.org>
74936         Make sleep work on older versions of mingw.
74937         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
74938         only whether it exists.
74939         * doc/posix-functions/sleep.texi: Mention the problem with older
74940         versions of mingw.
74942 2008-10-11  Bruno Haible  <bruno@clisp.org>
74944         New module 'shutdown'.
74945         * modules/shutdown: New file.
74946         * lib/sys_socket.in.h (shutdown): New declaration.
74947         * lib/winsock.c (shutdown): New function.
74948         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
74949         GNULIB_SHUTDOWN.
74950         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
74951         * doc/posix-functions/shutdown.texi: Document the new module.
74953 2008-10-11  Jim Meyering  <meyering@redhat.com>
74955         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
74957 2008-10-11  Bruno Haible  <bruno@clisp.org>
74959         New module 'fclose'.
74960         * modules/fclose: New file.
74961         * lib/stdio.in.h (fclose): New declaration.
74962         * lib/fclose.c: New file.
74963         * m4/fclose.m4: New file.
74964         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
74965         REPLACE_FCLOSE.
74966         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
74967         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
74968         REPLACE_FCLOSE.
74969         * modules/close (Depends-on): fclose.
74970         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
74972 2008-10-11  Bruno Haible  <bruno@clisp.org>
74974         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
74975         set errno and don't call _close.
74977 2008-10-10  Bruno Haible  <bruno@clisp.org>
74979         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
74980         ACL, not afterwards. Fixes test failure on Cygwin.
74982 2008-10-09  Ben Pfaff  <blp@gnu.org>
74984         * build-aux/announce-gen: Fix gnulib version related part of usage
74985         message.  Die with a useful error message if no tarballs are
74986         found.
74988 2008-10-10  Jim Meyering  <meyering@redhat.com>
74990         bootstrap: use git's --depth=N option only if it's supported
74991         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
74992         recognize the --depth option.  Reported by Pádraig Brady.
74994 2008-10-09  Bruno Haible  <bruno@clisp.org>
74996         New module 'ioctl'.
74997         * modules/ioctl: New file.
74998         * lib/sys_socket.in.h (ioctl): Remove declaration.
74999         * lib/winsock.c: Include <sys/ioctl.h>.
75000         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
75001         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
75002         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
75003         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
75004         * doc/posix-functions/ioctl.texi: Mention the new module.
75006 2008-10-09  Bruno Haible  <bruno@clisp.org>
75008         New module 'sys_ioctl'.
75009         * lib/sys_ioctl.in.h: New file.
75010         * m4/sys_ioctl_h.m4: New file.
75011         * modules/sys_ioctl: New file.
75012         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
75014 2008-10-09  Bruno Haible  <bruno@clisp.org>
75016         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
75017         * lib/winsock.c: Include <stdarg.h>.
75018         (rpl_ioctl): Change to second argument 'int' and then varargs.
75020 2008-10-09  Bruno Haible  <bruno@clisp.org>
75022         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
75023         when the sys_socket module is present and the system has <winsock2.h>.
75025 2008-10-09  Bruno Haible  <bruno@clisp.org>
75027         * doc/posix-functions/close.texi: Mention module 'close' instead of
75028         module 'sys_socket'.
75030 2008-10-09  Bruno Haible  <bruno@clisp.org>
75032         * doc/glibc-headers/sys_ioctl.texi: New file.
75033         * doc/gnulib.texi: Include it.
75035 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75036             Bruno Haible  <bruno@clisp.org>
75038         Combine the two replacements of 'close'.
75039         * lib/sys_socket.in.h (close): Define to a reminder to include
75040         <unistd.h>.
75041         (_gl_close_fd_maybe_socket): New declaration.
75042         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
75043         * lib/winsock.c (close): Remove undefinition.
75044         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
75045         needed for the gnulib module 'close'.
75046         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
75047         define to an error symbol or to a warning, if suitable.
75048         * lib/close.c: Include <sys/socket.h>.
75049         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
75050         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
75051         UNISTD_H_HAVE_WINSOCK2_H.
75052         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
75053         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75054         UNISTD_H_HAVE_WINSOCK2_H.
75055         * modules/sys_socket (Files): Add m4/unistd_h.m4.
75056         (configure.ac): Set a module indicator.
75057         (Makefile.am): Substitute GNULIB_CLOSE.
75058         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
75059         * modules/poll-tests (Depends-on): Add close.
75060         * modules/select-tests (Depends-on): Likewise.
75062 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75063             Bruno Haible  <bruno@clisp.org>
75065         New module 'close'.
75066         * modules/close: New file.
75067         * lib/unistd.in.h (close): Move declaration out of the
75068         FCHDIR_REPLACEMENT scope.
75069         (_gl_unregister_fd): New declaration.
75070         * lib/close.c: New file.
75071         * lib/fchdir.c (rpl_close): Remove function.
75072         * m4/close.m4: New file.
75073         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
75074         close.
75075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
75076         REPLACE_CLOSE.
75077         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
75078         REPLACE_CLOSE.
75079         * modules/fchdir (Depends-on): Add close.
75081 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75082             Bruno Haible  <bruno@clisp.org>
75084         * lib/fcntl.in.h (open): Simplify conditionals.
75085         (_gl_register_fd): New declaration.
75086         * lib/fchdir.c (rpl_open): Remove function.
75087         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
75088         also.
75089         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
75090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
75091         open.
75093 2008-10-09  Jim Meyering  <meyering@redhat.com>
75095         GNUmakefile: use the more name-space-friendly "_version"
75096         * top/GNUmakefile (_dummy): Update.
75097         (_version): Rename from "version".
75099 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75100             Bruno Haible  <bruno@clisp.org>
75102         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
75103         rpl_close.
75104         (_gl_register_fd): New function, extracted from rpl_open.
75105         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
75106         (rpl_open, rpl_opendir): Use _gl_register_fd.
75108 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
75110         Fix organization of 'open' replacement.
75111         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
75112         (gl_FUNC_OPEN): Use it.
75113         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
75115 2008-10-08  Bruno Haible  <bruno@clisp.org>
75117         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
75119 2008-10-08  Simon Josefsson  <simon@josefsson.org>
75121         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
75122         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
75123         listen).
75125 2008-10-08  Eric Blake  <ebb9@byu.net>
75127         GNUmakefile: add 'make version' target
75128         * top/GNUmakefile (_curr-ver): Split version update rules...
75129         (version): ...into a target.
75131 2008-10-07  Bruno Haible  <bruno@clisp.org>
75133         Use a more portable replacement expression for -0.0L.
75134         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
75135         instead of -0.0L. Fix m4 quotation.
75137         * tests/test-signbit.c: Include <float.h>.
75138         (minus_zero): New variable.
75139         (test_signbitl): Use minus_zero instead of -zero.
75140         * modules/signbit-tests (Depends-on): Add float.
75142         * tests/test-ceill.c: Include <float.h>.
75143         (zero): Remove variable.
75144         (minus_zero): New variable.
75145         (main): Use minus_zero instead of -zero.
75146         * modules/ceill-tests (Depends-on): Add float.
75148         * tests/test-floorl.c: Include <float.h>.
75149         (zero): Remove variable.
75150         (minus_zero): New variable.
75151         (main): Use minus_zero instead of -zero.
75152         * modules/floorl-tests (Depends-on): Add float.
75154         * tests/test-roundl.c: Include <float.h>.
75155         (zero): Remove variable.
75156         (minus_zero): New variable.
75157         (main): Use minus_zero instead of -zero.
75158         * modules/roundl-tests (Depends-on): Add float.
75160         * tests/test-truncl.c: Include <float.h>.
75161         (zero): Remove variable.
75162         (minus_zero): New variable.
75163         (main): Use minus_zero instead of -zero.
75164         * modules/truncl-tests (Depends-on): Add float.
75166         * tests/test-frexpl.c (zero): Remove variable.
75167         (minus_zero): New variable.
75168         (main): Use minus_zero instead of -zero.
75169         * modules/frexpl-tests (Depends-on): Add float.
75171         * tests/test-isnan.c (zerol): Remove variable.
75172         (minus_zerol): New variable.
75173         (test_long_double): Use minus_zerol instead of -zerol.
75174         * modules/isnan-tests (Depends-on): Add float.
75176         * tests/test-isnanl.h (zero): Remove variable.
75177         (minus_zero): New variable.
75178         (main): Use minus_zero instead of -zero.
75179         * modules/isnanl-nolibm-tests (Depends-on): Add float.
75180         * modules/isnanl-tests (Depends-on): Add float.
75182         * tests/test-ldexpl.c (zero): Remove variable.
75183         (minus_zero): New variable.
75184         (main): Use minus_zero instead of -zero.
75185         * modules/ldexpl-tests (Depends-on): Add float.
75187         * tests/test-snprintf-posix.h (zerol): Remove variable.
75188         (minus_zerol): New variable.
75189         (test_function): Use minus_zerol instead of -zerol.
75190         * modules/snprintf-posix-tests (Depends-on): Add float.
75191         * modules/vsnprintf-posix-tests (Depends-on): Add float.
75193         * tests/test-sprintf-posix.h (zerol): Remove variable.
75194         (minus_zerol): New variable.
75195         (test_function): Use minus_zerol instead of -zerol.
75196         * modules/sprintf-posix-tests (Depends-on): Add float.
75197         * modules/vsprintf-posix-tests (Depends-on): Add float.
75199         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
75200         (minus_zerol): New variable.
75201         (test_function): Use minus_zerol instead of -zerol.
75202         * modules/vasnprintf-posix-tests (Depends-on): Add float.
75204         * tests/test-vasprintf-posix.c (zerol): Remove variable.
75205         (minus_zerol): New variable.
75206         (test_function): Use minus_zerol instead of -zerol.
75207         * modules/vasprintf-posix-tests (Depends-on): Add float.
75209 2008-10-07  Simon Josefsson  <simon@josefsson.org>
75211         * MODULES.html.sh (Support for building documentation): Mention
75212         pmccabe2html.  Sort entries.
75214         Add pmccabe2html module, from gnupdf.
75215         * build-aux/pmccabe.css: New file.
75216         * build-aux/pmccabe2html: New file.
75217         * m4/pmccabe2html.m4: New file.
75218         * modules/pmccabe2html: New file.
75220 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
75222         flock: new module
75223         * MODULES.html.sh: Add to list of modules.
75224         * lib/flock.c: flock implementation for Windows and Unix systems
75225         which have fcntl.
75226         * doc/glibc-functions/flock.texi: Update documentation.
75227         * lib/sys_file.in.h: <sys/file.h> header file.
75228         * m4/flock.m4: M4 macros.
75229         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
75230         * modules/flock: flock module.
75231         * modules/flock-tests: flock tests module.
75232         * modules/sys_file: sys/file.h module.
75233         * tests/test-flock.c: test suite for flock.
75235 2008-10-06  Jim Meyering  <meyering@redhat.com>
75237         bootstrap: check for LT_INIT more portably still ;-)
75238         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
75239         Spotted by Bruno Haible.
75241 2008-10-06  Eric Blake  <ebb9@byu.net>
75243         test-signbit: avoid tripping Irix cc bug on -0.0L
75244         * tests/test-signbit.c (minus_zerol): Delete, and replace with
75245         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
75246         entire testsuite consistent and avoids an Irix 6.2 bug.
75248 2008-10-05  Bruno Haible  <bruno@clisp.org>
75249             Jim Meyering  <jim@meyering.net>
75251         Add an option for ignoring EPIPE during close_stdout.
75252         * lib/closeout.h: Include <stdbool.h>.
75253         (close_stdout_set_ignore_EPIPE): New declaration.
75254         * lib/closeout.c: Include <stdbool.h>.
75255         (ignore_EPIPE): New variable.
75256         (close_stdout_set_ignore_EPIPE): New function.
75257         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
75258         * lib/close-stream.c (close_stream): Mention the possible EPIPE
75259         failure.
75260         * modules/closeout (Depends-on): Add stdbool.
75262 2008-10-05  Bruno Haible  <bruno@clisp.org>
75264         * modules/accept: New file.
75265         * modules/bind: New file.
75266         * modules/connect: New file.
75267         * modules/getpeername: New file.
75268         * modules/getsockname: New file.
75269         * modules/getsockopt: New file.
75270         * modules/listen: New file.
75271         * modules/recv: New file.
75272         * modules/recvfrom: New file.
75273         * modules/send: New file.
75274         * modules/sendto: New file.
75275         * modules/setsockopt: New file.
75276         * modules/socket: New file.
75277         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
75278         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
75279         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
75280         the particular module is requested. Add a link warning when the
75281         particular module is not requested.
75282         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
75283         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
75284         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
75285         the particular module is requested.
75286         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
75287         gl_SYS_SOCKET_H_DEFAULTS): New macros.
75288         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
75289         * modules/sys_socket (Depends-on): Add link-warning.
75290         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
75291         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
75292         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
75293         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
75294         GL_LINK_WARNING.
75295         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
75296         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
75297         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
75298         * doc/posix-functions/getpeername.texi: Mention the new module
75299         'getpeername'.
75300         * doc/posix-functions/getsockname.texi: Mention the new module
75301         'getsockname'.
75302         * doc/posix-functions/getsockopt.texi: Mention the new module
75303         'getsockopt'.
75304         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
75305         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
75306         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
75307         * doc/posix-functions/send.texi: Mention the new module 'send'.
75308         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
75309         * doc/posix-functions/setsockopt.texi: Mention the new module
75310         'setsockopt'.
75311         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
75312         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
75313         listen, connect, accept.
75314         * modules/select-tests (Depends-on): Likewise.
75316 2008-10-05  Bruno Haible  <bruno@clisp.org>
75318         * lib/winsock.c (strerror): Remove unused #undef.
75319         (rpl_close): Remove unused local variable.
75321         * modules/sys_socket (Depends-on); Add errno.
75323 2008-10-05  Bruno Haible  <bruno@clisp.org>
75325         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
75326         (select): Add a link warning when the 'select' module is not used.
75327         * modules/sys_select (Depends-on): Add link-warning.
75328         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
75329         Suggested by Paolo Bonzini.
75331 2008-10-05  Jim Meyering  <meyering@redhat.com>
75333         bootstrap: check for LT_INIT more portably
75334         * build-aux/bootstrap: Avoid using grep -E, since it's not
75335         portable enough.  Suggestion from Bruno Haible.
75337 2008-10-05  Bruno Haible  <bruno@clisp.org>
75339         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
75340         as being fixed by gnulib.
75342 2008-10-05  Bruno Haible  <bruno@clisp.org>
75344         * modules/select-tests: New file, mostly copied from
75345         modules/sys_select-tests.
75346         * tests/test-select.c: New file, mostly copied from
75347         tests/test-sys_select.c.
75348         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
75349         * modules/sys_select-tests (Depends-on): Remove all dependencies.
75350         (Makefile.am): Remove test_sys_select_LDADD.
75352         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
75353         to an undefined symbol, for an error message.
75354         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
75355         (gl_SYS_SELECT_H_DEFAULTS): New macro.
75356         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
75357         winsock-select.c here.
75358         * modules/sys_select (Files): Remove lib/winsock-select.c.
75359         (Depends-on): Remove alloca.
75360         (Makefile.am): Substitute GNULIB_SELECT.
75361         * modules/select: New file.
75362         * doc/posix-functions/select.texi: Update.
75364 2008-10-05  Bruno Haible  <bruno@clisp.org>
75366         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
75367         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
75368         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
75369         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
75370         getdtablesize.
75371         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
75372         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
75374 2008-10-05  Bruno Haible  <bruno@clisp.org>
75376         * modules/getdtablesize-tests: New file.
75377         * tests/test-getdtablesize.c: New file.
75379         New module 'getdtablesize'.
75380         * lib/unistd.in.h (getdtablesize): New declaration.
75381         * lib/getdtablesize.c: New file.
75382         * m4/getdtablesize.m4: New file.
75383         * modules/getdtablesize: New file.
75384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
75385         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
75386         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
75387         HAVE_GETDTABLESIZE.
75388         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
75390 2008-10-05  Bruno Haible  <bruno@clisp.org>
75392         * modules/sched (Makefile.am): Fix typo.
75393         Reported by Simon Josefsson.
75395 2008-10-05  Jim Meyering  <meyering@redhat.com>
75397         bootstrap: check for LT_INIT, too
75398         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
75399         are deprecated.  Suggestion from Ralf Wildenhues.
75401 2008-10-05  Bruno Haible  <bruno@clisp.org>
75403         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
75404         overriding them by ours.
75405         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
75407 2008-10-05  Jim Meyering  <meyering@redhat.com>
75409         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
75410         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
75411         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
75413 2008-10-04  Bruno Haible  <bruno@clisp.org>
75415         * modules/dup2 (License): Change to LGPLv2+.
75416         * modules/sleep (License): Likewise.
75417         * modules/perror (License): Likewise.
75418         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
75419         Blake.
75420         * modules/signal (License): Likewise.
75421         * modules/sigprocmask (License): Likewise.
75422         * modules/raise (License): Change to LGPLv2+, with approval by Jim
75423         Meyering.
75425 2008-10-04  Bruno Haible  <bruno@clisp.org>
75427         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
75428         Reported by Rainer Tammer <tammer@tammer.net>.
75430 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
75431             Bruno Haible  <bruno@clisp.org>
75433         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
75434         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
75435         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
75437 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
75439         filevercmp: new module
75440         * lib/filevercmp.h: New function filevercmp comparing version strings.
75441         * lib/filevercmp.c: Implementation of filevercmp function.
75442         * modules/filevercmp: Module metadata.
75443         * tests/test-filevercmp.c: Unit test for new module.
75444         * modules/filevercmp-tests: Unit test metadata.
75445         * MODULES.html.sh: Add filevercmp module.
75447 2008-10-03  Bruno Haible  <bruno@clisp.org>
75449         * lib/c-ctype.h: Add comment.
75450         Reported by Jim Meyering.
75452 2008-10-02  Bruno Haible  <bruno@clisp.org>
75454         * modules/posix_spawn-internal (Depends-on): Add 'open'.
75456 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75458         * build-aux/bootstrap: Allow renaming bootstrap, and change the
75459         name of bootstrap.conf accordingly.
75461 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75463         * build-aux/bootstrap: Install git-merge-changelog configuration
75464         items into .gitconfig if needed.
75466 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
75468         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
75469         git repository, and initialize/update it accordingly.
75471 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
75473         * modules/fsync-tests: New file.
75474         * tests/test-fsync.c: New file.
75476         New module 'fsync'.
75477         * lib/fsync.c: New file.
75478         * m4/fsync.m4: New file.
75479         * modules/fsync: New file.
75480         * lib/unistd.in.h (fsync): New declaration.
75481         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
75482         GNULIB_FSYNC and HAVE_FSYNC.
75483         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
75484         * MODULES.html.sh (posix_functions): Add fsync.
75485         * doc/posix-functions/fsync.texi: Mention the new module.
75487 2008-10-02  Jim Meyering  <meyering@redhat.com>
75489         fts.c: sync with similar code from coreutils' remove.c
75490         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
75491         Guard also with "#if defined __linux__", since for now at least,
75492         this code is Linux-kernel-specific.
75494 2008-10-02  Jim Meyering  <meyering@redhat.com>
75496         fts: bug fixes
75497         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
75498         Include <sys/vfs.h>, not <sys/statfs.h>.
75500         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
75501         Include <sys/vfs.h>, not <sys/statfs.h>.
75503 2008-10-01  Bruno Haible  <bruno@clisp.org>
75505         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
75506         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
75507         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
75508         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
75509         * doc/posix-functions/posix_spawnp.texi: Likewise.
75510         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
75511         whether posix_spawn actually works.
75512         * m4/pipe.m4 (gl_PIPE): Likewise.
75513         * modules/execute (Files): Add m4/posix_spawn.m4.
75514         * modules/pipe (Files): Add m4/posix_spawn.m4.
75515         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
75517 2008-10-01  Jim Meyering  <meyering@redhat.com>
75519         remove trailing spaces
75520         * NEWS: Likewise.
75521         * lib/poll.c (poll): Likewise.
75522         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
75523         * lib/winsock.c (rpl_close): Likewise.
75524         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
75525         * modules/yield: Likewise.
75526         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
75527         * tests/test-sys_select.c (connect_to_socket): Likewise.
75529         fts.c: adjust a new interface to be more generally useful
75530         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
75531         (fts_build): Adjust caller.
75533 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75535         * modules/cond-tests: New file.
75536         * tests/test-cond.c: New file.
75538 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75539             Bruno Haible  <bruno@clisp.org>
75541         * modules/cond (Dependencies): Add errno, time.
75542         * lib/glthread/cond.h: Include <time.h>.
75543         (gl_cond_define, gl_cond_define_initialized): Use the same definition
75544         across platforms.
75546 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75547             Bruno Haible  <bruno@clisp.org>
75549         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
75551 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75552             Bruno Haible  <bruno@clisp.org>
75554         * modules/tls-tests (Depends-on): Add thread, yield.
75555         (configure.ac): Remove all checks.
75556         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
75557         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75558         gl_thread_self): Remove definitions. Include glthread/thread.h and
75559         glthread/yield.h instead.
75560         (test_tls): Pass an additional NULL argument to gl_thread_join.
75562 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75563             Bruno Haible  <bruno@clisp.org>
75565         * modules/lock-tests (Depends-on): Add thread, yield.
75566         (configure.ac): Remove all checks.
75567         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
75568         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
75569         gl_thread_self): Remove definitions. Include glthread/thread.h and
75570         glthread/yield.h instead.
75571         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
75572         additional NULL argument to gl_thread_join.
75574 2008-09-30  Bruno Haible  <bruno@clisp.org>
75576         Fix the Win32 implementation of the 'thread' module.
75577         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
75578         pointer type.
75579         (gl_thread_self): Invoke gl_thread_self_func.
75580         (gl_thread_self_func): New declaration.
75581         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
75582         (do_init_self_key, init_self_key): New functions.
75583         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
75584         Remove some fields.
75585         (running_threads, running_lock): Remove variables.
75586         (get_current_thread_handle): New function.
75587         (gl_thread_self_func, wrapper_func, glthread_create_func,
75588         glthread_join_func, gl_thread_exit_func): Largely rewritten and
75589         simplified.
75591 2008-09-30  Bruno Haible  <bruno@clisp.org>
75593         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
75594         files.
75596 2008-09-30  Jim Meyering  <meyering@redhat.com>
75598         fts.m4: correct the test for statfs.f_type
75599         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
75600         when checking for statfs.f_type.
75602 2008-09-15  Simon Josefsson  <simon@josefsson.org>
75604         tests: avoid some compiler warnings
75605         * tests/test-memchr.c (main): Pass NULL indirectly.
75606         * tests/test-getdate.c (main): Remove unused variable 'ret'.
75608 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
75610         getdate.y: disallow countable dayshifts like "4 yesterday ago"
75611         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
75612         exactly specified dayshifts.
75613         (dayshift): New rule.
75614         (rel): Add dayshift.
75615         (relative_time_table) [tomorrow, yesterday, today, now]:
75616         Use tDAY_SHIFT in place of tDAY_UNIT.
75617         * tests/test-getdate.c: Add tests for now-disallowed countable
75618         dayshifts, e.g., "4 yesterday ago".
75620 2008-09-29  Bruno Haible  <bruno@clisp.org>
75622         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
75623         * tests/test-posix_spawn1.in.sh: Renamed from
75624         tests/test-posix_spawn.in.sh.
75625         * tests/test-posix_spawn2.c: New file.
75626         * tests/test-posix_spawn2.in.sh: New file.
75627         * modules/posix_spawnp-tests (Files): Update.
75628         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
75630 2008-09-29  Bruno Haible  <bruno@clisp.org>
75632         Propagate effects of putenv/setenv/unsetenv to child processes.
75633         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
75634         * lib/pipe.c (create_pipe): Likewise.
75636 2008-09-29  Bruno Haible  <bruno@clisp.org>
75638         Enable use of shell scripts as executables in mingw.
75639         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
75640         run the program as a shell script.
75641         * lib/pipe.c (create_pipe): Likewise.
75642         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
75643         resulting array.
75645 2008-09-29  Eric Blake  <ebb9@byu.net>
75647         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
75649 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
75651         * doc/posix-functions/accept.texi: Update mingw problems.
75652         * doc/posix-functions/bind.texi: Update mingw problems.
75653         * doc/posix-functions/close.texi: Update mingw problems.
75654         * doc/posix-functions/connect.texi: Update mingw problems.
75655         * doc/posix-functions/getpeername.texi: Update mingw problems.
75656         * doc/posix-functions/getsockname.texi: Update mingw problems.
75657         * doc/posix-functions/getsockopt.texi: Update mingw problems.
75658         * doc/posix-functions/ioctl.texi: Update mingw problems.
75659         * doc/posix-functions/listen.texi: Update mingw problems.
75660         * doc/posix-functions/recv.texi: Update mingw problems.
75661         * doc/posix-functions/recvfrom.texi: Update mingw problems.
75662         * doc/posix-functions/select.texi: Update mingw problems.
75663         * doc/posix-functions/send.texi: Update mingw problems.
75664         * doc/posix-functions/sendto.texi: Update mingw problems.
75665         * doc/posix-functions/setsockopt.texi: Update mingw problems.
75666         * doc/posix-functions/socket.texi: Update mingw problems.
75668 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
75669             Bruno Haible  <bruno@clisp.org>
75671         * lib/sys_select.in.h: Include sys/time.h.
75672         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
75673         * modules/sys_select: Depend on sys_time.
75674         * tests/test-sys_select.c: Test that sys/select.h defines struct
75675         timeval fully.
75677 2008-09-29  Bruno Haible  <bruno@clisp.org>
75679         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
75680         * lib/sys_select.in.h: Likewise.
75682 2008-09-29  Bruno Haible  <bruno@clisp.org>
75684         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
75686 2008-09-29  Bruno Haible  <bruno@clisp.org>
75688         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
75689         Set LIBSOCKET instead of augmenting LIBS.
75690         * modules/sockets (Link): New section.
75691         * modules/sockets-tests (test_sockets_LDADD): New variable.
75692         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
75693         * modules/poll-tests (test_poll_LDADD): New variable.
75694         * NEWS: Document the change.
75696 2008-09-29  Bruno Haible  <bruno@clisp.org>
75698         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
75699         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
75700         ARPA_INET_H directly.
75701         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
75703 2008-09-28  Bruno Haible  <bruno@clisp.org>
75705         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
75706         from gl_HEADER_SYS_SOCKET.
75707         (gl_HEADER_SYS_SOCKET): Invoke it.
75708         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
75710 2008-09-28  Bruno Haible  <bruno@clisp.org>
75712         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
75713         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
75714         Needed on OSF/1 4.0.
75716 2008-09-28  Bruno Haible  <bruno@clisp.org>
75718         Override open more carefully.
75719         * lib/open.c (orig_open): New function.
75720         (rpl_open): Use orig_open instead of open.
75721         * lib/fcntl.in.h: Add special invocation convention.
75722         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
75723         (gl_FUNC_OPEN): Invoke it.
75725         Override freopen more carefully.
75726         * lib/freopen.c (orig_freopen): New function.
75727         (rpl_freopen): Use orig_freopen instead of freopen.
75728         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
75729         (gl_FUNC_FREOPEN): Invoke it.
75731         Override fopen more carefully.
75732         * lib/fopen.c (orig_fopen): New function.
75733         (rpl_fopen): Use orig_fopen instead of fopen.
75734         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
75735         (gl_FUNC_FOPEN): Invoke it.
75736         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
75738 2008-09-28  Bruno Haible  <bruno@clisp.org>
75740         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
75741         SIGPIPE.
75743 2008-09-28  Bruno Haible  <bruno@clisp.org>
75745         * tests/test-sigaction.c (handler, main): Disable the check whether
75746         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
75747         glibc systems with LinuxThreads.
75749 2008-09-28  Bruno Haible  <bruno@clisp.org>
75751         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
75753         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
75754         with AIX xlc.
75755         * lib/fcntl.in.h (open): Likewise.
75756         Reported by Rainer Tammer <tammer@tammer.net>.
75758 2008-09-28  Bruno Haible  <bruno@clisp.org>
75760         * modules/posix_spawnp-tests: New file.
75761         * tests/test-posix_spawn.c: New file.
75762         * tests/test-posix_spawn.in.sh: New file.
75764         New module 'posix_spawnp'.
75765         * modules/posix_spawnp: New file.
75766         * lib/spawnp.c: New file, from GNU libc with modifications.
75767         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
75769         New module 'posix_spawn'.
75770         * modules/posix_spawn: New file.
75771         * lib/spawn.c: New file, from GNU libc with modifications.
75772         * doc/posix-functions/posix_spawn.texi: Mention the new module.
75774         New module 'posix_spawnattr_destroy'.
75775         * modules/posix_spawnattr_destroy: New file.
75776         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
75777         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
75778         module.
75780         New module 'posix_spawnattr_setsigmask'.
75781         * modules/posix_spawnattr_setsigmask: New file.
75782         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
75783         modifications.
75784         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
75785         new module.
75787         New module 'posix_spawnattr_getsigmask'.
75788         * modules/posix_spawnattr_getsigmask: New file.
75789         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
75790         modifications.
75791         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
75792         new module.
75794         New module 'posix_spawnattr_setsigdefault'.
75795         * modules/posix_spawnattr_setsigdefault: New file.
75796         * lib/spawnattr_setdefault.c: New file, from GNU libc with
75797         modifications.
75798         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
75799         new module.
75801         New module 'posix_spawnattr_getsigdefault'.
75802         * modules/posix_spawnattr_getsigdefault: New file.
75803         * lib/spawnattr_getdefault.c: New file, from GNU libc with
75804         modifications.
75805         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
75806         new module.
75808         New module 'posix_spawnattr_setschedpolicy'.
75809         * modules/posix_spawnattr_setschedpolicy: New file.
75810         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
75811         modifications.
75812         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
75813         new module.
75815         New module 'posix_spawnattr_getschedpolicy'.
75816         * modules/posix_spawnattr_getschedpolicy: New file.
75817         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
75818         modifications.
75819         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
75820         new module.
75822         New module 'posix_spawnattr_setschedparam'.
75823         * modules/posix_spawnattr_setschedparam: New file.
75824         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
75825         modifications.
75826         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
75827         new module.
75829         New module 'posix_spawnattr_getschedparam'.
75830         * modules/posix_spawnattr_getschedparam: New file.
75831         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
75832         modifications.
75833         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
75834         new module.
75836         New module 'posix_spawnattr_setpgroup'.
75837         * modules/posix_spawnattr_setpgroup: New file.
75838         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
75839         modifications.
75840         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
75841         module.
75843         New module 'posix_spawnattr_getpgroup'.
75844         * modules/posix_spawnattr_getpgroup: New file.
75845         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
75846         modifications.
75847         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
75848         module.
75850         New module 'posix_spawnattr_setflags'.
75851         * modules/posix_spawnattr_setflags: New file.
75852         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
75853         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
75854         module.
75856         New module 'posix_spawnattr_getflags'.
75857         * modules/posix_spawnattr_getflags: New file.
75858         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
75859         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
75860         module.
75862         New module 'posix_spawnattr_init'.
75863         * modules/posix_spawnattr_init: New file.
75864         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
75865         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
75866         module.
75868         New module 'posix_spawn_file_actions_destroy'.
75869         * modules/posix_spawn_file_actions_destroy: New file.
75870         * lib/spawn_faction_destroy.c: New file, from GNU libc with
75871         modifications.
75872         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
75873         the new module.
75875         New module 'posix_spawn_file_actions_addopen'.
75876         * modules/posix_spawn_file_actions_addopen: New file.
75877         * lib/spawn_faction_addopen.c: New file, from GNU libc with
75878         modifications.
75879         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
75880         the new module.
75882         New module 'posix_spawn_file_actions_adddup2'.
75883         * modules/posix_spawn_file_actions_adddup2: New file.
75884         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
75885         modifications.
75886         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
75887         the new module.
75889         New module 'posix_spawn_file_actions_addclose'.
75890         * modules/posix_spawn_file_actions_addclose: New file.
75891         * lib/spawn_faction_addclose.c: New file, from GNU libc with
75892         modifications.
75893         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
75894         the new module.
75896         New module 'posix_spawn_file_actions_init'.
75897         * modules/posix_spawn_file_actions_init: New file.
75898         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
75899         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
75900         new module.
75902         New module 'posix_spawn-internal'.
75903         * modules/posix_spawn-internal: New file.
75904         * lib/spawn_int.h: New file, from GNU libc with modifications.
75905         * lib/spawni.c: New file, from GNU libc with modifications.
75906         * m4/posix_spawn.m4: New file.
75908         New module 'spawn'.
75909         * modules/spawn: New file.
75910         * lib/spawn.in.h: New file, from GNU libc with modifications.
75911         * m4/spawn_h.m4: New file.
75912         * doc/posix-headers/spawn.texi: Mention the new module.
75914 2008-09-28  Bruno Haible  <bruno@clisp.org>
75916         * modules/sched-tests: New file.
75917         * tests/test-sched.c: New file.
75919         New module 'sched'.
75920         * modules/sched: New file.
75921         * lib/sched.in.h: New file.
75922         * m4/sched_h.m4: New file.
75923         * doc/posix-headers/sched.texi: Mention the new module.
75925 2008-09-27  Eric Blake  <ebb9@byu.net>
75927         Fix previous patch, and tweak references to $0.
75928         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
75929         (func_version, func_gnulib_dir): Don't call this program
75930         gnulib-tool.
75931         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
75932         with using $0 in function.
75933         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
75934         (func_fatal_error): Reuse the name the user invoked us with.
75936 2008-09-27  Bruno Haible  <bruno@clisp.org>
75938         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
75939         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
75940         (gl_ICONV_H): Not here.
75941         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
75942         instead of assigning ICONV_H directly.
75944         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
75945         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
75946         WCHAR_H directly.
75948 2008-09-27  Bruno Haible  <bruno@clisp.org>
75950         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
75951         * modules/arpa_inet (Depends-on): Add link-warning.
75952         (Makefile.am): Insert the definition of GL_LINK-WARNING.
75953         * modules/unistd (Makefile.am): Likewise.
75955 2008-09-26  Bruno Haible  <bruno@clisp.org>
75957         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
75958         variables.
75959         (func_version): Essentially copied from gnulib-tool.
75960         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
75961         func_readlink): Copied from gnulib-tool.
75963 2008-09-26  Bruno Haible  <bruno@clisp.org>
75965         * gnulib-tool (func_version): Change directory to $gnulib_dir before
75966         invoking git-version-gen.
75968 2008-09-26  Bruno Haible  <bruno@clisp.org>
75970         * posix-modules: Update to directory names changed on 2008-01-19.
75971         Remove commas in output before splitting into words. No more need to
75972         avoid 'ftruncate' since 2007-02-19.
75974 2008-09-26  Bruno Haible  <bruno@clisp.org>
75976         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
75978 2008-09-26  Bruno Haible  <bruno@clisp.org>
75980         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
75981         * modules/fwriteerror (Depends-on): Add errno.
75983 2008-09-26  Bruno Haible  <bruno@clisp.org>
75985         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
75986         * tests/test-vc-list-files-cvs.sh: Likewise.
75988 2008-09-26  Bruno Haible  <bruno@clisp.org>
75990         * doc/posix-headers/sys_resource.texi: Reorder items.
75992 2008-09-26  Jim Meyering  <meyering@redhat.com>
75994         fts: tweak inode comparison function
75995         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
75996         inode numbers, as documented.
75998         fts: sort dirent entries on inode number before traversing
75999         This avoids a quadratic, seek-related performance penalty when
76000         operating on a directory containing many entries (measurable at 10k;
76001         3.5 hours at 2 million entries with a cold cache) on certain types
76002         of file systems, including ext3 and ext4, but not tmpfs.
76003         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
76004         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
76005         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
76006         (fs_handles_readdir_ordered_dirents_efficiently): New function.
76007         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
76008         (fts_build): Set the stat.st_ino member from D_INO.
76009         If it is likely to be useful, sort dirent entries on inode number.
76011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
76012         and the struct statfs.f_type member.
76013         * modules/fts (Depends-on): Add d-ino.
76015 2008-09-26  Bruno Haible  <bruno@clisp.org>
76017         * modules/sigpipe-die (Depends-on): Add sigpipe.
76019         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
76020         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
76021         and GNULIB_STDIO_H_SIGPIPE are set.
76022         * lib/stdio-write.c: New file.
76023         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
76024         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
76025         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
76026         REPLACE_STDIO_WRITE_FUNCS.
76027         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
76028         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
76029         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
76030         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
76031         * modules/stdio (Files): Add lib/stdio-write.c.
76032         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
76033         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
76034         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
76035         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
76036         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
76037         REPLACE_FPRINTF_POSIX.
76038         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
76039         REPLACE_PRINTF_POSIX.
76040         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
76041         REPLACE_VFPRINTF_POSIX.
76042         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
76043         REPLACE_VPRINTF_POSIX.
76044         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
76045         SIGPIPE issue.
76046         * doc/posix-functions/fputc.texi: Likewise.
76047         * doc/posix-functions/fputs.texi: Likewise.
76048         * doc/posix-functions/fwrite.texi: Likewise.
76049         * doc/posix-functions/printf.texi: Likewise.
76050         * doc/posix-functions/putc.texi: Likewise.
76051         * doc/posix-functions/putchar.texi: Likewise.
76052         * doc/posix-functions/puts.texi: Likewise.
76053         * doc/posix-functions/vfprintf.texi: Likewise.
76054         * doc/posix-functions/vprintf.texi: Likewise.
76056         * modules/safe-write (Depends-on): Add write.
76058         * modules/sigpipe-tests: New file.
76059         * tests/test-sigpipe.c: New file.
76060         * tests/test-sigpipe.sh: New file.
76062         * modules/write: New file.
76063         * lib/unistd.in.h: Include <sys/types.h>.
76064         (write): New declaration.
76065         * lib/write.c: New file.
76066         * m4/write.m4: New file.
76067         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
76068         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
76069         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
76070         GNULIB_WRITE, REPLACE_WRITE.
76071         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
76072         and the SIGPIPE issue.
76074         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
76075         (raise): New declaration.
76076         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
76077         (ext_signal): New function.
76078         (rpl_raise): New function.
76079         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
76080         GNULIB_SIGNAL_H_SIGPIPE.
76081         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
76082         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
76084         * modules/sigpipe: New file.
76085         * m4/sigpipe.m4: New file.
76087 2008-09-25  Derek Price  <derek@ximbiot.com>
76088             Bruno Haible  <bruno@clisp.org>
76090         * gnulib-tool (func_import): Report all license incompatibilities, not
76091         just the first one.
76093 2008-09-25  Bruno Haible  <bruno@clisp.org>
76095         * gnulib-tool (func_import): When computing the edits, consider not
76096         only the Makefile.ams that exist but also those that will be generated.
76098 2008-09-25  Simon Josefsson  <simon@josefsson.org>
76100         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
76101         fixes gnulib-tool --test warning about duplicate dependency.
76103 2008-09-25  Bruno Haible  <bruno@clisp.org>
76105         * gnulib-tool: Don't ask the user to perform edits in the generated
76106         Makefile.ams.
76107         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
76108         apply to the Makefile.am being generated.
76109         (func_emit_tests_Makefile_am): Execute edits that apply to the
76110         Makefile.am being generated.
76111         (func_import): Setup list of Makefile.am edits before emitting the
76112         Makefile.ams, not at the end.
76113         (func_create_testdir): Update.
76114         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76116 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76118         * gnulib-tool (func_import): Store the --tests-base option in the
76119         comment in gnulib-cache.m4.
76121 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
76123         * NEWS: Document increased portability that sys_select now provides.
76125         * lib/sys_select.in.h: Install select wrapper.
76126         * lib/sys_socket.in.h: Use more descriptive name when there is no
76127         select wrapper.
76128         * lib/winsock-select.c: New.
76129         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
76130         Require gl_HEADER_SYS_SOCKET.
76131         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
76132         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
76133         * tests/test-sys_select.c: Add functional tests.
76135 2008-09-24  Eric Blake  <ebb9@byu.net>
76137         open, fopen: close fd leak in last patch
76138         * lib/open.c (rpl_open): Close fd before returning error.
76139         * lib/fopen.c (rpl_fopen): Close fd before returning error.
76140         * doc/posix-functions/open.texi (open): Document that Irix also
76141         has the bug.
76142         * doc/posix-functions/fopen.texi (fopen): Likewise.
76143         Reported by Paolo Bonzini.
76145 2008-09-24  Bruno Haible  <bruno@clisp.org>
76147         Ensure that a filename ending in a slash cannot be used to access a
76148         non-directory.
76149         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
76150         to check whether it's really a directory.
76151         * lib/fopen.c: Include fcntl.h, unistd.h.
76152         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
76153         and fdopen().
76154         * modules/fopen (Depends-on): Add unistd.
76155         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
76156         * tests/test-fopen.c (main): Likewise.
76157         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
76158         * doc/posix-functions/fopen.texi: Likewise.
76159         Reported by Eric Blake.
76161 2008-09-23  Eric Blake  <ebb9@byu.net>
76163         c-stack: avoid compiler optimizations when provoking overflow
76164         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
76165         recursion harder to optimize, to ensure a stack overflow occurs.
76166         * tests/test-c-stack.c (recurse): Likewise.
76167         Borrowed from libsigsegv.
76169         c-stack: work around Irix sigaltstack bug
76170         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
76171         whether sigaltstack uses wrong end of stack_t (copied in part from
76172         libsigsegv).
76173         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
76174         Irix bug, without requiring an over-allocation.
76175         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
76176         bug.
76178         fopen: document mingw bug on directories
76179         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
76180         not allowing a stream visiting a directory, even though reading
76181         from such a stream is not portable.
76183 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76185         * lib/poll.c: Rewrite.
76186         * modules/poll: Depend on alloca.
76188 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76190         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
76191         instead define prototypes for a full set of wrappers.  Ensure
76192         that Cygwin does not use the compatibility code, which is only
76193         for MinGW.
76194         * lib/winsock.c: New.
76195         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
76196         * modules/sys_socket: Add lib/winsock.c.
76198         * modules/poll-tests: Add errno and perror.
76199         * tests/test-poll.c: Use ioctl, not ioctlsocket.
76201 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
76203         * tests/test-poll.c: Downgrade minimum needed Winsock version.
76205 2008-09-23  Bruno Haible  <bruno@clisp.org>
76207         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
76208         * doc/glibc-functions/*: Likewise.
76210 2008-09-23  Simon Josefsson  <simon@josefsson.org>
76212         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
76213         success.
76215 2008-09-22  Eric Blake  <ebb9@byu.net>
76216             Bruno Haible  <bruno@clisp.org>
76218         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
76219         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
76220         supply %A but mishandle pseudo-NaN.
76221         Reported by Simon Josefsson.
76223 2008-09-21  Bruno Haible  <bruno@clisp.org>
76225         * tests/test-lock.c (main): Tweak skip message.
76226         * tests/test-tls.c (main): Likewise.
76228 2008-09-21  Bruno Haible  <bruno@clisp.org>
76230         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
76231         whether 'struct sigaction' has sa_sigaction here...
76232         (gl_PREREQ_SIG_HANDLER_H): ... not here.
76233         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
76235 2008-09-21  Bruno Haible  <bruno@clisp.org>
76237         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
76238         section.
76239         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
76240         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
76241         the new section.
76242         (Support for obsolete systems lacking POSIX:2001): New section.
76243         (String handling <string.h>): Move strdup to the new section.
76244         Suggested by Simon Josefsson and Paolo Bonzini.
76246 2008-09-21  Bruno Haible  <bruno@clisp.org>
76248         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
76249         exponents in %e and %g results on 'long double'. Needed for mingw's
76250         improved *printf functions.
76251         * tests/test-vasprintf-posix.c (test_function): Likewise.
76252         * tests/test-snprintf-posix.h (test_function): Likewise.
76253         * tests/test-sprintf-posix.h (test_function): Likewise.
76254         Reported by Eric Blake.
76256 2008-09-21  Bruno Haible  <bruno@clisp.org>
76258         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
76259         * tests/test-sprintf-posix.h (test_function): Likewise.
76261 2008-09-21  Bruno Haible  <bruno@clisp.org>
76263         * modules/getpass (Depends-on): Add strdup-posix.
76265         New module 'strdup-posix'.
76266         * modules/strdup-posix: New file.
76267         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
76268         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
76269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
76270         REPLACE_STRDUP.
76271         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
76272         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
76273         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76274         strdup-posix.
76276         * modules/strdup (Depends-on): Remove malloc-posix.
76278 2008-09-20  Bruno Haible  <bruno@clisp.org>
76280         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
76281         Wildenhues.
76283 2008-09-20  Bruno Haible  <bruno@clisp.org>
76285         Ensure that wint_t gets defined on IRIX 5.3.
76286         * lib/wchar.in.h (wint_t): Define if not defined by the system.
76287         * lib/wctype.in.h (wint_t): Likewise.
76288         (__wctype_wint_t): Remove type.
76289         (isw*): Use wint_t instead of __wctype_wint_t.
76290         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
76291         * modules/wchar (Files): Add m4/wint_t.m4.
76292         (Makefile.am): Substitute HAVE_WINT_T.
76293         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
76294         * tests/test-wctype.c: Check that wint_t is defined.
76295         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
76296         * doc/posix-headers/wctype.texi: Likewise.
76297         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
76299 2008-09-18  Bruno Haible  <bruno@clisp.org>
76301         * gnulib-tool (func_exit): Update comment.
76303 2008-09-18  Simon Josefsson  <simon@josefsson.org>
76305         * modules/getaddrinfo (Depends-on): Remove strdup, this module
76306         assumes strdup exists and does not depend on strdup to return
76307         ENOMEM on out of memory conditions.
76309 2008-09-18  Bruno Haible  <bruno@clisp.org>
76311         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
76312         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
76313         digits for the exponent.
76315 2008-09-18  Jim Meyering  <meyering@redhat.com>
76316             Bruno Haible  <bruno@clisp.org>
76318         * lib/vasnprintf.c (decimal_point_char): Define also if
76319         NEED_PRINTF_INFINITE_LONG_DOUBLE.
76321 2008-09-16  Bruno Haible  <bruno@clisp.org>
76322         and Eric Blake  <ebb9@byu.net>
76324         vasnprintf: support Irix 5.3
76325         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
76326         that mishandle long double infinity.
76327         Reported by Tom G. Christensen.
76329 2008-09-16  Bruno Haible  <bruno@clisp.org>
76331         * doc/glibc-functions/scandir.texi: Mention the function is missing on
76332         Solaris 9.
76333         * doc/glibc-functions/alphasort.texi: Likewise.
76334         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
76336 2008-09-16  Jim Meyering  <meyering@redhat.com>
76338         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
76339         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
76340         a umask modification leak out of a subshell.  Otherwise, the
76341         opensolaris /bin/sh would be accepted and thus cause unwarranted
76342         failures in the coreutils test suite.
76344 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
76346         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
76347         to succeed.
76349 2008-09-16  Jim Meyering  <meyering@redhat.com>
76351         avoid spurious test failure when library is built without ACL support
76352         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
76353         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
76354         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
76355         * tests/test-copy-acl.sh: Likewise.
76357 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76359         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
76360         based on character occurrence counts.
76362 2008-09-15  Eric Blake  <ebb9@byu.net>
76364         tests: avoid some compiler warnings
76365         * tests/test-memchr.c (main): Pass NULL indirectly.
76366         * tests/test-closein.c (main): Avoid unused variable.
76368 2008-09-15  Bruno Haible  <bruno@clisp.org>
76370         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
76371         are missing on OpenBSD 4.0 individually.
76372         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
76374 2008-09-15  Bruno Haible  <bruno@clisp.org>
76376         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
76377         * doc/posix-functions/strerror.texi: Mention also Cygwin.
76378         * doc/posix-functions/perror.texi: Likewise.
76379         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
76380         is missing.
76381         Reported by Eric Blake.
76383         * lib/errno.in.h: Use replacement values >= 2000.
76384         Reported by Eric Blake.
76386 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76388         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
76389         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
76390         limit.
76391         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
76392         compareseq was aborted.
76394 2008-09-14  Bruno Haible  <bruno@clisp.org>
76396         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
76397         yvec_edit_count.
76398         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
76399         (fstrcmp_bounded): Simplify result computation accordingly.
76401 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76403         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
76404         (fstrcmp): Define in terms of fstrcmp_bounded.
76405         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
76406         lower_bound argument.
76407         Return quickly if the result is certainly < lower_bound.
76408         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
76410 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76412         * lib/diffseq.h (EARLY_ABORT): New macro.
76413         (compareseq): Change return type to bool. Return true when EARLY_ABORT
76414         evaluates to true.
76416 2008-09-14  Bruno Haible  <bruno@clisp.org>
76418         * modules/perror-tests: New file.
76419         * tests/test-perror.sh: New file.
76420         * tests/test-perror.c: New file.
76422         New module 'perror'.
76423         * lib/stdio.in.h (perror): New declaration.
76424         * lib/perror.c: New file.
76425         * m4/perror.m4: New file.
76426         * modules/perror: New file.
76427         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
76428         * doc/posix-functions/perror.texi: Mention the perror module.
76429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
76430         REPLACE_PERROR.
76431         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
76432         REPLACE_PERROR.
76434 2008-09-14  Bruno Haible  <bruno@clisp.org>
76436         * modules/stdio (Makefile.am): Reorder to match the order in
76437         lib/stdio.in.h.
76438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
76440 2008-09-13  Bruno Haible  <bruno@clisp.org>
76442         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
76444 2008-09-13  Bruno Haible  <bruno@clisp.org>
76446         Extend strerror to cover the added errno values.
76447         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
76448         (rpl_strerror): Provide error messages for the added errno values and
76449         for the WSA* values.
76450         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
76451         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
76452         strerror.
76453         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
76454         * modules/strerror (Depends-on): Add errno.
76455         * doc/posix-functions/strerror.texi: Document the change.
76456         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
76457         and EOVERFLOW.
76459 2008-09-13  Bruno Haible  <bruno@clisp.org>
76461         * modules/EOVERFLOW: Remove file.
76462         * m4/eoverflow.m4: Remove file.
76463         * modules/EOVERFLOW-tests: Remove file.
76464         * tests/test-EOVERFLOW.c: Remove file.
76465         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
76466         * modules/ftell (Depends-on): Likewise.
76467         * modules/getdelim (Depends-on): Likewise.
76468         * modules/getugroups (Depends-on): Likewise.
76469         * modules/poll (Depends-on): Likewise.
76470         * modules/snprintf (Depends-on): Likewise.
76471         * modules/sprintf-posix (Depends-on): Likewise.
76472         * modules/vasnprintf (Depends-on): Likewise.
76473         * modules/vasprintf (Depends-on): Likewise.
76474         * modules/vfprintf-posix (Depends-on): Likewise.
76475         * modules/vsnprintf (Depends-on): Likewise.
76476         * modules/vsprintf-posix (Depends-on): Likewise.
76477         * modules/xvasprintf (Depends-on): Likewise.
76478         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
76479         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
76480         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
76481         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
76482         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
76483         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
76484         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
76485         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
76486         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
76487         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
76488         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
76489         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
76490         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
76491         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
76492         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
76493         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
76494         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
76495         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
76496         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
76497         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
76498         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
76499         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
76500         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
76501         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
76502         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
76503         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
76504         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
76505         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
76506         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
76507         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
76508         * MODULES.html.sh: Remove EOVERFLOW.
76509         * NEWS: Mention the change.
76511 2008-09-13  Bruno Haible  <bruno@clisp.org>
76513         * modules/errno-tests: New file.
76514         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
76516         * lib/errno.in.h: New file.
76517         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
76518         * modules/errno: New file.
76519         * doc/posix-headers/errno.texi: Update documentation.
76520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
76522 2008-09-13  Bruno Haible  <bruno@clisp.org>
76524         * tests/test-poll.c: Use #if for native Windows, rather than testing
76525         __MSVCRT__.
76527 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76528             Bruno Haible  <bruno@clisp.org>
76530         * lib/glob.c: Don't include <pwd.h> on native Windows.
76531         (WINDOWS32): New macro.
76532         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
76534 2008-09-13  Bruno Haible  <bruno@clisp.org>
76536         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
76537         (ETIMEDOUT): Remove macro.
76538         (glthread_cond_timedwait_multithreaded): New declaration.
76539         (glthread_cond_timedwait): Use it.
76540         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
76541         (glthread_cond_timedwait_multithreaded): New function.
76543 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76545         * modules/poll-tests: Do not check for io.h.
76546         * tests/test-poll.c: Check for __MSVCRT__ instead.
76548 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76550         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
76551         * modules/poll-tests: Add inet_pton, stdbool, sockets.
76552         * tests/test-poll.c: Use them.  Use _pipe on Windows.
76554 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
76556         * modules/poll-tests: New.
76557         * tests/test-poll.c: New.
76559 2008-09-12  Eric Blake  <ebb9@byu.net>
76561         frexp: test for NetBSD failure on -0.0
76562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
76563         not all, bugs from NetBSD 3.0 have been fixed.
76564         * doc/posix-functions/frexp.texi (frexp): Document bug.
76565         Reported by Thomas Klausner.
76567         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
76568         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
76569         literal -0.0.
76570         Reported by Jonathan C. Patschke <jp@centtech.com>.
76572 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76574         * lib/glthread/cond.h: Use dummy implementation also if
76575         USE_WIN32_THREADS.
76577 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76579         * modules/fnmatch-posix (License): Change to LGPLv2+.
76580         * modules/fnmatch-gnu (License): Likewise.
76582 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76584         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
76586 2008-09-11  Jim Meyering  <meyering@redhat.com>
76588         * users.txt: Add gtk-vnc.
76590 2008-09-08  Simon Josefsson  <simon@josefsson.org>
76592         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
76593         rotate amounts.
76595         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
76596         required for 16-bit and 8-bit rotates.
76597         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
76598         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
76599         UINT8_MAX instead of hard-coded constants.
76600         Suggested by Paul Eggert.
76602 2008-09-07  Bruno Haible  <bruno@clisp.org>
76604         * tests/test-striconveh.c (main): Check behaviour when converting from
76605         UTF-7.
76607         Make striconveh work better with stateful encodings.
76608         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
76609         that iconv does not increment the inptr when returning -1/EINVAL.
76611 2008-09-07  Bruno Haible  <bruno@clisp.org>
76613         * build-aux/config.rpath: Update according to libtool-2.2.6.
76614         * build-aux/config.libpath: Likewise.
76616 2008-09-06  Bruno Haible  <bruno@clisp.org>
76618         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
76619         * lib/freadptr.c (freadptr): Likewise.
76620         * lib/freadseek.c (freadptrinc): Likewise.
76621         Reported by Simon Josefsson.
76623 2008-09-06  Bruno Haible  <bruno@clisp.org>
76625         * modules/freadptr (License): Change to LGPLv2+.
76626         * modules/freadseek (License): Likewise.
76627         Suggested by Eric Blake.
76629         * modules/memchr2 (License): Change to LGPLv2+.
76630         Approved by Eric Blake.
76632 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76633             Bruno Haible  <bruno@clisp.org>
76635         Make gnulib-tool work with native 'sed' on AIX.
76636         * gnulib-tool (sed_noop): New variable.
76637         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
76638         func_add_or_update, func_create_testdir): Use it to initialize sed
76639         script variables.
76640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
76642 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
76643             Bruno Haible  <bruno@clisp.org>
76645         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
76646         also works after #include directives.
76648 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
76650         getdate.y: reject an out-of-range timezone value
76651         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
76652         the range [-24...+24].  When specified with only one or two digits,
76653         * tests/test-getdate.c: Tests for the fix.
76654         * doc/getdate.texi: Document this change.
76656 2008-09-03  Bruno Haible  <bruno@clisp.org>
76658         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
76660 2008-09-02  Simon Josefsson  <simon@josefsson.org>
76662         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
76663         <bruce.korb@gmail.com> with ideas from Ben Pfaff
76664         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
76665         Blake <ebb9@byu.net>.
76667         * tests/test-bitrotate.c: Add more test vectors.
76669 2008-09-02  Eric Blake  <ebb9@byu.net>
76671         vasnprintf-posix: handle large precision via %.*d
76672         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
76673         when handling it ourselves.
76674         * tests/test-vasnprintf-posix.c (test_function): Add test.
76675         * tests/test-snprintf-posix.h (test_function): Likewise.
76676         * tests/test-sprintf-posix.h (test_function): Likewise.
76677         * tests/test-vasprintf-posix.c (test_function): Likewise.
76678         Reported by Alain Guibert.
76680 2008-09-01  Eric Blake  <ebb9@byu.net>
76682         c-stack: make configure-time check more robust
76683         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
76684         successful sigaction call.
76685         Reported by Tom G. Christensen.
76687 2008-09-01  Bruno Haible  <bruno@clisp.org>
76689         New module 'findprog-lgpl'.
76690         * modules/findprog-lgpl: New file.
76691         * lib/findprog-lgpl.c: New file.
76692         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
76693         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
76694         to decide whether to use strdup or xstrdup, concatenated_filename or
76695         xconcatenated_filename.
76697 2008-09-01  Bruno Haible  <bruno@clisp.org>
76699         Split module 'concat-filename' into 'concat-filename' (LGPL) and
76700         'xconcat-filename' (GPL).
76701         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
76702         (License): Change to LGPLv2+.
76703         * modules/xconcat-filename: New file.
76704         * lib/concat-filename.h (concatenated_filename): Change specification.
76705         (xconcatenated_filename): New declaration.
76706         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
76707         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
76708         memory situations.
76709         * lib/xconcat-filename.c: New file.
76710         * NEWS: Mention the change.
76711         * lib/findprog.c: Include concat-filename.h, not filename.h.
76712         (find_in_path): Use xconcatenated_filename instead of
76713         concatenated_filename.
76714         * lib/javacomp.c: Include concat-filename.h, not filename.h.
76715         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
76716         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
76717         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
76718         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
76719         instead of concatenated_filename.
76720         * lib/javaexec.c: Include concat-filename.h, not filename.h.
76721         (execute_java_class): Use xconcatenated_filename instead of
76722         concatenated_filename.
76723         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
76724         * modules/javacomp (Depends-on): Likewise.
76725         * modules/javaexec (Depends-on): Likewise.
76727 2008-09-01  Bruno Haible  <bruno@clisp.org>
76729         Split module 'filename' into 'filename' and 'concat-filename'.
76730         * modules/filename: Keep only lib/filename.h.
76731         (License): Change to LGPLv2+.
76732         * modules/concat-filename: New file, extracted from modules/filename.
76733         * lib/filename.h (concatenated_filename): Remove declaration.
76734         * lib/concat-filename.h: New file, extracted from lib/filename.h.
76735         * lib/concat-filename.c: Include concat-filename.h.
76736         * NEWS: Mention the change.
76738 2008-09-01  Simon Josefsson  <simon@josefsson.org>
76740         * lib/bitrotate.h (rotl8, rotr8): Add.
76742         * modules/bitrotate (configure.ac): Need
76743         AC_REQUIRE([AC_C_INLINE]).
76744         (Description): Mention stdint.h.  Reported by Bruno Haible
76745         <bruno@clisp.org>.
76747         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
76748         Paolo Bonzini <bonzini@gnu.org>.
76750 2008-08-31  Bruno Haible  <bruno@clisp.org>
76752         Assume Solaris specific bi-arch conventions on Solaris systems.
76753         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
76754         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
76755         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
76756         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
76757         like acl_libdirstem.
76758         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
76759         acl_libdirstem.
76760         * NEWS: Mention the change.
76761         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
76763 2008-08-31  Jim Meyering  <meyering@redhat.com>
76765         * lib/strftime.h: Add comments describing the two added arguments.
76767         remove duplicate #include directives
76768         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
76769         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
76771 2008-08-31  Bruno Haible  <bruno@clisp.org>
76773         New module 'sigpipe-die'.
76774         * modules/sigpipe-die: New file.
76775         * lib/sigpipe-die.h: New file.
76776         * lib/sigpipe-die.c: New file.
76777         * MODULES.html.sh (Signal handling): Add sigpipe-die.
76779 2008-08-31  Bruno Haible  <bruno@clisp.org>
76781         Don't override previously installed signal handlers.
76782         * lib/fatal-signal.c (saved_sigactions): New variable.
76783         (uninstall_handlers): Reset the signal to the saved handler, not
76784         to SIG_DFL (except when ignored).
76785         (install_handlers): Save the previous handlers.
76787 2008-08-30  Bruno Haible  <bruno@clisp.org>
76789         * gnulib-tool (func_reset_sigpipe): New function.
76790         (func_get_automake_snippet, func_modules_transitive_closure,
76791         func_import): Invoke it before a join command that reads from stdin,
76792         to avoid "echo: write error: Broken pipe" error messages on stderr.
76793         Reported by Sam Steingold <sds@gnu.org>.
76795 2008-08-30  Bruno Haible  <bruno@clisp.org>
76797         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
76798         Code copied from m4/open.m4.
76799         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
76800         access and the filename ends in a slash. Code copied from lib/open.c.
76801         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
76802         * tests/test-fopen.c (main): Check against bug with trailing slash.
76804 2008-08-29  Bruno Haible  <bruno@clisp.org>
76806         Avoid some "gcc -pedantic" warnings.
76807         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
76808         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
76809         * lib/dirent.in.h: Likewise.
76810         * lib/fcntl.in.h: Likewise.
76811         * lib/float.in.h: Likewise.
76812         * lib/iconv.in.h: Likewise.
76813         * lib/inttypes.in.h: Likewise.
76814         * lib/locale.in.h: Likewise.
76815         * lib/math.in.h: Likewise.
76816         * lib/netinet_in.in.h: Likewise.
76817         * lib/search.in.h: Likewise.
76818         * lib/signal.in.h: Likewise.
76819         * lib/stdarg.in.h: Likewise.
76820         * lib/stdint.in.h: Likewise.
76821         * lib/stdio.in.h: Likewise.
76822         * lib/stdlib.in.h: Likewise.
76823         * lib/string.in.h: Likewise.
76824         * lib/strings.in.h: Likewise.
76825         * lib/sys_select.in.h: Likewise.
76826         * lib/sys_socket.in.h: Likewise.
76827         * lib/sys_stat.in.h: Likewise.
76828         * lib/sys_time.in.h: Likewise.
76829         * lib/sysexits.in.h: Likewise.
76830         * lib/time.in.h: Likewise.
76831         * lib/unistd.in.h: Likewise.
76832         * lib/wchar.in.h: Likewise.
76833         * lib/wctype.in.h: Likewise.
76834         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
76835         * modules/fchdir (Makefile.am): Likewise.
76836         * modules/fcntl (Makefile.am): Likewise.
76837         * modules/float (Makefile.am): Likewise.
76838         * modules/iconv_open (Makefile.am): Likewise.
76839         * modules/inttypes (Makefile.am): Likewise.
76840         * modules/locale (Makefile.am): Likewise.
76841         * modules/math (Makefile.am): Likewise.
76842         * modules/netinet_in (Makefile.am): Likewise.
76843         * modules/search (Makefile.am): Likewise.
76844         * modules/signal (Makefile.am): Likewise.
76845         * modules/stdarg (Makefile.am): Likewise.
76846         * modules/stdint (Makefile.am): Likewise.
76847         * modules/stdio (Makefile.am): Likewise.
76848         * modules/stdlib (Makefile.am): Likewise.
76849         * modules/string (Makefile.am): Likewise.
76850         * modules/strings (Makefile.am): Likewise.
76851         * modules/sys_select (Makefile.am): Likewise.
76852         * modules/sys_socket (Makefile.am): Likewise.
76853         * modules/sys_stat (Makefile.am): Likewise.
76854         * modules/sys_time (Makefile.am): Likewise.
76855         * modules/sysexits (Makefile.am): Likewise.
76856         * modules/time (Makefile.am): Likewise.
76857         * modules/unistd (Makefile.am): Likewise.
76858         * modules/wchar (Makefile.am): Likewise.
76859         * modules/wctype (Makefile.am): Likewise.
76860         Reported by Reuben Thomas <rrt@sc3d.org>.
76862 2008-08-29  Bruno Haible  <bruno@clisp.org>
76864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
76865         any more.
76867 2008-08-29  Simon Josefsson  <simon@josefsson.org>
76869         * MODULES.html.sh (Misc): Add bitrotate.
76871         * modules/bitrotate: New file.
76873         * lib/bitrotate.h: New file.
76875         * modules/bitrotate-tests: New file.
76877         * tests/test-bitrotate.c: New file.
76879         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
76880         on the bitrotate module.
76882         * lib/arctwo.c: Use new bitrotate module.
76884 2008-08-29  Jim Meyering  <meyering@redhat.com>
76886         bootstrap: merge changes from coreutils
76887         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
76888         of copied files.  Remove a kludge, now that this is fixed.
76889         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
76890         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
76891         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
76893 2008-08-29  Bruno Haible  <bruno@clisp.org>
76895         * MODULES.html.sh: Remove --cvs-urls option.
76897 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
76899         maint.mk: adjust to file name change
76900         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
76902 2008-08-28  Jim Meyering  <meyering@redhat.com>
76904         * modules/getndelim2 (License): Relicense to LGPLv2+.
76905         Approved by Richard Stallman for the version of 1995, and by
76906         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
76908 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
76910         * lib/getdelim.c (flockfile, funlockfile): Make all of them
76911         dummy if one is not available.  Do not touch them if
76912         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
76913         (getc_maybe_unlocked): New.
76914         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
76916 2008-08-26  Eric Blake  <ebb9@byu.net>
76918         doc/INSTALL: resync from autoconf
76919         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
76920         (INSTALL_PRELUDE): Delete; this is done more efficiently by
76921         moving...
76922         * install.texi [!autoconf]: ...here.  Resync from autoconf.
76923         * INSTALL: Regenerate.
76924         * INSTALL.ISO: New file.
76925         * INSTALL.UTF-8: Likewise.
76927 2008-08-26  Jim Meyering  <meyering@redhat.com>
76929         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
76930         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
76931         these definitions conditional, so that they may be overridden, too.
76933 2008-08-26  Bruno Haible  <bruno@clisp.org>
76935         Generate INSTALL file variants with prettier quotes.
76936         * doc/Makefile (INSTALL_PRELUDE): New macro.
76937         (INSTALL): Use it.
76938         (INSTALL.ISO, INSTALL.UTF-8): New rules.
76940 2008-08-26  Bruno Haible  <bruno@clisp.org>
76942         Run makeinfo in an English locale.
76943         * doc/Makefile (MAKEINFO): New variable.
76945 2008-08-26  Bruno Haible  <bruno@clisp.org>
76947         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
76948         Suggested by Eric Blake.
76950 2008-08-25  Bruno Haible  <bruno@clisp.org>
76952         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
76954 2008-08-25  Eric Blake  <ebb9@byu.net>
76956         c-stack: test that stack overflow can be caught
76957         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
76958         that platform allows handling stack overflow; at least OS/2 EMX
76959         has sigaltstack, but crashes before transferring control to
76960         handler on stack overflow.
76961         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
76962         check for HAVE_STACK_OVERFLOW_HANDLING.
76963         Reported by Elbert Pol.
76965 2008-08-25  Bruno Haible  <bruno@clisp.org>
76967         * doc/posix-functions/strftime.texi: Fix description of strftime
76968         module.
76970 2008-08-24  Bruno Haible  <bruno@clisp.org>
76972         * tests/uniwidth/test-uc_width2.c: New file.
76973         * tests/uniwidth/test-uc_width2.sh: New file.
76974         * modules/uniwidth/width-tests (Files): Add the new files.
76975         (TESTS): Add uniwidth/test-uc_width2.sh.
76976         (TESTS_ENVIRONMENT): New variable.
76977         (check_PROGRAMS): Add test-uc_width2.
76978         (test_uc_width2_SOURCES): New variable.
76980         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
76981         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
76982         not 0x00AB.
76983         Reported by Alexander V. Lukyanov <lav@netis.ru>.
76985 2008-08-22  Eric Blake  <ebb9@byu.net>
76987         test-lock, test-tls: mention why a test is skipped
76988         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
76989         skipped.
76990         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
76992         count-one-bits: relax license
76993         * modules/count-one-bits (License): Relicense to LGPLv2+.
76994         Suggested by Ludovic Courtès, approved by Ben Pfaff.
76996 2008-08-22  Andreas Schwab  <schwab@suse.de>
76998         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
76999         Remove spurious space in assignment.
77001 2008-08-21  Simon Josefsson  <simon@josefsson.org>
77003         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
77004         Paul Eggert <eggert@CS.UCLA.EDU>.
77006 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
77008         * modules/gettext: Add m4/threadlib.m4.
77010 2008-08-19  Eric Blake  <ebb9@byu.net>
77012         test-c-stack: fix compilation failure on FreeBSD 5.0
77013         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
77014         headers before <sys/resource.h>.
77015         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
77016         the bug.
77017         Reported by Nelson H. F. Beebe.
77019         strverscmp: migrate from "strverscmp.h" to <string.h>
77020         * modules/string (Makefile.am): Add new hooks.
77021         * modules/strverscmp (Files): Remove strverscmp.h.
77022         (Depends-on): Add string.
77023         (configure.ac): Add indicator.
77024         (Include): Mention new header.
77025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
77026         defaults.
77027         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
77028         results.
77029         * lib/strverscmp.h: Delete.
77030         * lib/string.in.h (strverscmp): Provide declaration, when needed.
77031         * tests/test-strverscmp.c (includes): Adjust client.
77032         * lib/check-version.c (includes): Likewise.
77033         * NEWS: Document the change.
77035         strverscmp: add unit test
77036         * modules/strverscmp-tests: New file.
77037         * tests/test-strverscmp.c: Likewise.
77039 2008-08-19  Simon Josefsson  <simon@josefsson.org>
77041         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
77042         regarding Windows crypto stuff, from Mono.
77044 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
77046         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
77047         if present, for intel RND.  Return error on failures.
77049 2008-08-18  Ben Pfaff  <blp@gnu.org>
77051         gitlog-to-changelog: give better diagnostic for failed pipe-open
77052         * build-aux/gitlog-to-changelog: Improve error message: suggest
77053         that the version of Git may be too old.
77055 2008-08-18  Simon Josefsson  <simon@josefsson.org>
77057         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
77058         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
77060 2008-08-18  Bruno Haible  <bruno@clisp.org>
77062         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
77063         pthread_in_use().
77065 2008-08-18  Bruno Haible  <bruno@clisp.org>
77067         * lib/glthread/threadlib.c: Include <pthread.h>.
77069 2008-08-18  Bruno Haible  <bruno@clisp.org>
77071         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
77072         glthread_recursive_lock_* macros.
77073         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
77074         Fix syntax error.
77076 2008-08-18  Bruno Haible  <bruno@clisp.org>
77078         * lib/glthread/thread.c: Avoid forcing a context switch right after
77079         thread creation.
77081 2008-08-17  Bruno Haible  <bruno@clisp.org>
77083         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
77084         * lib/glthread/thread.h: Provide Win32 specific implementation.
77085         * modules/thread (Files): Add lib/glthread/thread.c.
77086         (Depends-on): Add lock.
77087         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
77089 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77091         New module 'yield'.
77092         * modules/yield: New file.
77093         * lib/glthread/yield.h: New file.
77094         * m4/yield.m4: New file.
77095         * MODULES.html.sh (Multithreading): Add yield.
77097 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77099         New module 'thread'.
77100         * modules/thread: New file.
77101         * lib/glthread/thread.h: New file.
77102         * m4/thread.m4: New file.
77103         * MODULES.html.sh (Multithreading): Add thread.
77105 2008-08-17  Bruno Haible  <bruno@clisp.org>
77107         * lib/glthread/lock.h: Include <stdlib.h> always.
77108         * lib/glthread/tls.h: Likewise.
77109         * lib/glthread/cond.h: Likewise.
77111 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77113         New module 'cond'.
77114         * modules/cond: New file.
77115         * lib/glthread/cond.h: New file.
77116         * lib/glthread/cond.c: New file.
77117         * m4/cond.m4: New file.
77118         * MODULES.html.sh (Multithreading): Add cond.
77120 2008-08-16  Eric Blake  <ebb9@byu.net>
77122         c-stack: fix regression on Irix 5.3 from 2008-06-21
77123         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
77124         sa_sigaction...
77125         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
77126         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
77127         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
77128         * modules/signal (Makefile.am): Use the value.
77129         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
77130         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
77131         * doc/posix-headers/signal.texi (signal.h): Document this
77132         portability issue.
77133         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
77134         Reported by Tom G. Christensen.
77136 2008-08-17  Bruno Haible  <bruno@clisp.org>
77138         New module 'threadlib'.
77139         * modules/threadlib: New file.
77140         * lib/glthread/threadlib.c: New file, extracted from
77141         lib/glthread/lock.c.
77142         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
77143         functions.
77144         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
77145         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
77146         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
77147         macros.
77148         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
77149         (gl_DISABLE_THREADS): Remove macro.
77150         * modules/lock (Files): Remove build-aux/config.rpath.
77151         (Depends-on): Remove havelib. Add threadlib.
77152         (configure.ac-early): Remove section.
77153         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
77154         * modules/tls (Depends-on): Remove lock. Add threadlib.
77155         (Link): New section, copied from threadlib.
77156         * MODULES.html.sh (Multithreading): Add threadlib.
77158 2008-08-14  Bruno Haible  <bruno@clisp.org>
77160         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
77161         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
77162         glthread_rwlock_unlock, glthread_rwlock_destroy,
77163         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
77164         glthread_recursive_lock_destroy): Define as macros always.
77165         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
77166         glthread_lock_lock.
77167         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
77168         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
77169         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
77170         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
77171         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
77172         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
77173         (glthread_recursive_lock_lock_func): Renamed from
77174         glthread_recursive_lock_lock.
77175         (glthread_recursive_lock_unlock_func): Renamed from
77176         glthread_recursive_lock_unlock.
77177         (glthread_recursive_lock_destroy_func): Renamed from
77178         glthread_recursive_lock_destroy.
77180 2008-08-14  Bruno Haible  <bruno@clisp.org>
77182         * lib/glthread/lock.h: Renamed from lib/lock.h.
77183         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
77184         * lib/glthread/tls.h: Renamed from lib/tls.h.
77185         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
77186         * lib/fstrcmp.c: Update includes.
77187         * lib/strsignal.c: Update includes.
77188         * modules/lock (Files, Makefile.am): Update.
77189         (Include): Change to "glthread/lock.h".
77190         * modules/tls (Files, Makefile.am): Update.
77191         (Include): Change to "glthread/tls.h".
77192         * tests/test-lock.c: Update includes.
77193         * tests/test-tls.c: Update includes.
77194         * NEWS: Mention the renamed header files.
77196 2008-08-11  Jim Meyering  <meyering@redhat.com>
77198         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
77200 2008-08-11  Eric Blake  <ebb9@byu.net>
77202         test-c-stack: avoid C99-ism
77203         * tests/test-c-stack.c (main): Fix whitespace, move declaration
77204         before statement.
77205         Reported by Alain Guibert.
77207 2008-08-10  Jim Meyering  <meyering@redhat.com>
77209         ensure that return value of uinttostr et al are not ignored
77210         * lib/inttostr.h (__GNUC_PREREQ): Define.
77211         (__attribute_warn_unused_result__): Define.
77212         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
77214 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
77216         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
77217         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
77219 2008-08-07  Jim Meyering  <meyering@redhat.com>
77221         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
77223         * modules/mkstemp (License): Relicense under LGPLv2+.
77224         * modules/tempname (License): Likewise.
77226 2008-08-06  Bruno Haible  <bruno@clisp.org>
77228         * lib/poll.c (poll): Further micro-optimization.
77230 2008-08-06  Jim Meyering  <meyering@redhat.com>
77232         inet_pton.c: use locale-independent tolower
77233         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
77234         (inet_pton6): Use c_tolower rather than tolower.
77235         * modules/inet_pton (Depends-on): Add c-ctype.
77237 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
77239         * lib/poll.c (poll): Avoid division when timeout is 0, cache
77240         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
77242 2008-08-06  Jim Meyering  <meyering@redhat.com>
77244         * modules/inet_pton (License): Relicense under LGPLv2+.
77246 2008-08-03  Bruno Haible  <bruno@clisp.org>
77248         Additional non-aborting API for lock and tls.
77249         * lib/lock.h: Include <errno.h>.
77250         (glthread_lock_init): New macro/function.
77251         (gl_lock_init): Define as wrapper around glthread_lock_init.
77252         (glthread_lock_lock): New macro/function.
77253         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
77254         (glthread_lock_unlock): New macro/function.
77255         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
77256         (glthread_lock_destroy): New macro/function.
77257         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
77258         (glthread_rwlock_init): New macro/function.
77259         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
77260         (glthread_rwlock_rdlock): New macro/function.
77261         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
77262         (glthread_rwlock_wrlock): New macro/function.
77263         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
77264         (glthread_rwlock_unlock): New macro/function.
77265         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
77266         (glthread_rwlock_destroy): New macro/function.
77267         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
77268         (glthread_recursive_lock_init): New macro/function.
77269         (gl_recursive_lock_init): Define as wrapper around
77270         glthread_recursive_lock_init.
77271         (glthread_recursive_lock_lock): New macro/function.
77272         (gl_recursive_lock_lock): Define as wrapper around
77273         glthread_recursive_lock_lock.
77274         (glthread_recursive_lock_unlock): New macro/function.
77275         (gl_recursive_lock_unlock): Define as wrapper around
77276         glthread_recursive_lock_unlock.
77277         (glthread_recursive_lock_destroy): New macro/function.
77278         (gl_recursive_lock_destroy): Define as wrapper around
77279         glthread_recursive_lock_destroy.
77280         (glthread_once): New macro/function.
77281         (gl_once): Define as wrapper around glthread_once.
77282         Update function declarations.
77283         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
77284         glthread_rwlock_init. Return error code.
77285         (glthread_rwlock_rdlock_multithreaded): Renamed from
77286         glthread_rwlock_rdlock. Return error code.
77287         (glthread_rwlock_wrlock_multithreaded): Renamed from
77288         glthread_rwlock_wrlock. Return error code.
77289         (glthread_rwlock_unlock_multithreaded): Renamed from
77290         glthread_rwlock_unlock. Return error code.
77291         (glthread_rwlock_destroy_multithreaded): Renamed from
77292         glthread_rwlock_destroy. Return error code.
77293         (glthread_recursive_lock_init_multithreaded): Renamed from
77294         glthread_recursive_lock_init. Return error code.
77295         (glthread_recursive_lock_lock_multithreaded): Renamed from
77296         glthread_recursive_lock_lock. Return error code.
77297         (glthread_recursive_lock_unlock_multithreaded): Renamed from
77298         glthread_recursive_lock_unlock. Return error code.
77299         (glthread_recursive_lock_destroy_multithreaded): Renamed from
77300         glthread_recursive_lock_destroy. Return error code.
77301         (glthread_once_call): Make static.
77302         (glthread_once_multithreaded): Renamed from glthread_once.
77303         * lib/tls.h: Include <errno.h>.
77304         (glthread_tls_key_init): New macro/function.
77305         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
77306         (glthread_tls_set): New macro/function.
77307         (gl_tls_set): Define as wrapper around glthread_tls_set.
77308         (glthread_tls_key_destroy): New macro/function.
77309         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
77310         Update function declarations.
77311         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
77312         glthread_tls_get.
77313         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
77315 2008-08-04  Eric Blake  <ebb9@byu.net>
77317         gnumakefile: use space, not TAB, outside of targets
77318         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
77320 2008-08-02  Jim Meyering  <meyering@redhat.com>
77322         getdate.y: avoid locale-dependent date parsing failure
77323         In Turkish locales, getdate would fail to recognize keywords
77324         containing a lowercase "i".  The solution is not to rely on
77325         locale-sensitive case-conversion.
77326         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
77327         (lookup_word): Use c_toupper in place of toupper.
77328         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
77329         Reported by Vefa Bicakci <bicave@superonline.com> in
77330         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
77331         * modules/getdate (Depends-on): Add c-ctype.
77333 2008-08-02  Bruno Haible  <bruno@clisp.org>
77335         * gnulib-tool (func_import): When updating or creating a .gitignore
77336         file, prepend each added line with a slash, and ignore leading slashes
77337         from the existing lines.
77338         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
77340 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77342         Portability fix for GNU make 3.79.1.
77343         * top/GNUmakefile: Avoid 'else COND', which older GNU make
77344         versions do not understand.
77346 2008-08-01  Bruno Haible  <bruno@clisp.org>
77348         Work around bug of HP-UX 10.20 cc with -0.0 literal.
77349         * tests/test-isnanf.h (zero): New variable.
77350         (main): Avoid literal -0.0f.
77351         * tests/test-isnand.h (zero): New variable.
77352         (main): Avoid literal -0.0.
77353         * tests/test-isnanl.h (zero): New variable.
77354         (main): Avoid literal -0.0L.
77355         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
77356         (test_float, test_double, test_long_double): Avoid literals -0.0f,
77357         -0.0, -0.0L.
77358         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
77359         (test_signbitd): Avoid literal -0.0.
77360         (test_signbitl): Avoid literal -0.0L.
77361         * tests/test-ceilf1.c (zero): New variable.
77362         (main): Avoid literal -0.0f.
77363         * tests/test-ceill.c (zero): New variable.
77364         (main): Avoid literal -0.0L.
77365         * tests/test-floorf1.c (zero): New variable.
77366         (main): Avoid literal -0.0f.
77367         * tests/test-floorl.c (zero): New variable.
77368         (main): Avoid literal -0.0L.
77369         * tests/test-roundf1.c (zero): New variable.
77370         (main): Avoid literal -0.0f.
77371         * tests/test-round1.c (zero): New variable.
77372         (main): Avoid literal -0.0.
77373         * tests/test-roundl.c (zero): New variable.
77374         (main): Avoid literal -0.0L.
77375         * tests/test-truncf1.c (zero): New variable.
77376         (main): Avoid literal -0.0f.
77377         * tests/test-trunc1.c (zero): New variable.
77378         (main): Avoid literal -0.0.
77379         * tests/test-truncl.c (zero): New variable.
77380         (main): Avoid literal -0.0L.
77381         * tests/test-frexp.c (zero): New variable.
77382         (main): Avoid literal -0.0.
77383         * tests/test-frexpl.c (zero): New variable.
77384         (main): Avoid literal -0.0L.
77385         * tests/test-ldexpl.c (zero): New variable.
77386         (main): Avoid literal -0.0L.
77387         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77388         (zerod, zerol): New variables.
77389         (test_function): Avoid literals -0.0, -0.0L.
77390         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
77391         (zerod, zerol): New variables.
77392         (test_function): Avoid literals -0.0, -0.0L.
77393         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77394         (zerod, zerol): New variables.
77395         (test_function): Avoid literals -0.0, -0.0L.
77396         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
77397         (zerod, zerol): New variables.
77398         (test_function): Avoid literals -0.0, -0.0L.
77399         * tests/test-strtod.c (zero): New variable.
77400         (main): Avoid literal -0.0.
77401         Reported by Jonathan C. Patschke <jp@centtech.com>.
77403 2008-07-31  Jim Meyering  <meyering@redhat.com>
77405         sha256.h: correct definition of SHA224_DIGEST_SIZE
77406         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
77407         Reported by Paulie Pena IV <paulie4@gmail.com>.
77408         Define as 224 / 8, rather than as a literal.
77409         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
77410         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
77411         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
77413 2008-07-31  Bruno Haible  <bruno@clisp.org>
77415         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
77416         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
77417         Reported by Jonathan Patschke <jp@centtech.com>.
77419 2008-07-31  Bruno Haible  <bruno@clisp.org>
77421         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
77422         Reported by Paolo Bonzini <bonzini@gnu.org>.
77424 2008-07-30  Eric Blake  <ebb9@byu.net>
77426         test-strtod: allow compilation without -lm
77427         * tests/test-strtod.c (main): Avoid link dependence on fabs.
77428         Reported by Dennis Clarke <blastwave@gmail.com>.
77430 2008-07-28  Jim Meyering  <meyering@redhat.com>
77432         bootstrap: work also when there are no .po files in po/
77433         * build-aux/bootstrap (update_po_files): Complete the change
77434         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
77436 2008-07-27  Jim Meyering  <meyering@redhat.com>
77438         * users.txt: Add zile.
77440 2008-07-26  Ben Pfaff  <blp@gnu.org>
77442         Add missing dependencies on new m4/exponent[fdl].m4 files.
77443         * modules/isnanf-nolibm: Add m4/exponentf.m4.
77444         * modules/isnand-nolibm: Add m4/exponentd.m4.
77445         * modules/isnanl-nolibm: Add m4/exponentl.m4.
77446         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
77447         m4/isnan[fdl].m4, because the macros actually used moved.
77448         Reported by Jim Meyering.
77450 2008-07-14  Ben Pfaff  <blp@gnu.org>
77452         Add isinf module.
77453         * lib/isinf.c: New file.
77454         * lib/math.in.h: Define isinf macro if we have decided to replace
77455         it.
77456         * m4/isinf.m4: New file.
77457         * m4/math_h.m4: Initialize and substitute variables for isinf
77458         module.
77459         * modules/isinf: New file.
77460         * modules/isinf-tests: New file.
77461         * modules/math: Add substitutions for new module.
77462         * tests/test-isinf.c: New file.
77463         * doc/posix-functions/isinf.texi: Mention new module.
77464         * MODULES.html.sh: Mention new module.
77466 2008-07-14  Ben Pfaff  <blp@gnu.org>
77468         Factor out some macros for use by additional modules.
77469         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
77470         exponentf.m4.
77471         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
77472         exponentd.m4.
77473         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
77474         file exponentl.m4.
77475         * m4/exponentf.m4: New file.
77476         * m4/exponentd.m4: New file.
77477         * m4/exponentl.m4: New file.
77478         * modules/isnanf: Use new file m4/exponentf.m4.
77479         * modules/isnand: Use new file m4/exponentd.m4.
77480         * modules/isnanl: Use new file m4/exponentl.m4.
77482 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
77484         mktime.c: normalize tp->tm_isdst value to -1/0/1.
77485         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
77486         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
77487         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
77489         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
77490         readlink on platforms without PATH_MAX.
77492 2008-07-21  Eric Blake  <ebb9@byu.net>
77494         Warn, not fail, on stale version.
77495         * top/GNUmakefile (_curr-ver): Tone down previous patch.
77497         Don't allow installation with stale devel version number.
77498         * top/GNUmakefile (_is-install-target): New macro.
77499         (_curr-ver): Forbid installation with stale version number.
77501 2008-07-20  Bruno Haible  <bruno@clisp.org>
77503         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
77504         TESTS_ENVIRONMENT.
77505         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
77507 2008-07-20  Bruno Haible  <bruno@clisp.org>
77509         * lib/c-stack.h (c_stack_action): Add documentation.
77510         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
77512 2008-07-20  Bruno Haible  <bruno@clisp.org>
77514         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
77515         * modules/readlink (License): Likewise.
77517 2008-07-17  Eric Blake  <ebb9@byu.net>
77519         * modules/c-stack (Link): Fix typo.
77521         Make c-stack use libsigsegv, when available.
77522         * modules/c-stack (Depends-on): Add libsigsegv.
77523         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
77524         needed.
77525         * lib/c-stack.c (SIGSTKSZ): Define fallback.
77526         (segv_handler, overflow_handler, c_stack_action)
77527         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
77528         implementation when libsigsegv is available, but only when using
77529         the library is necessary.
77530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
77531         comment, explaining why XSI check fails on Linux.
77532         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
77533         * tests/test-c-stack2.sh: Tweak skip message.
77534         * NEWS: Document new link-time requirements.
77536 2008-07-16  Eric Blake  <ebb9@byu.net>
77538         c-stack: Expose false positives when not using libsigsegv.
77539         * modules/c-stack-tests (Files): Expand test.
77540         * tests/test-c-stack.c (main): Add means to conditionally trigger
77541         non-overflow SIGSEGV.
77542         * tests/test-c-stack2.sh: New file.
77544 2008-07-14  Bruno Haible  <bruno@clisp.org>
77546         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
77547         Reported by Eric Blake.
77549 2008-07-14  Sam Steingold  <sds@gnu.org>
77550             Bruno Haible  <bruno@clisp.org>
77552         New module libsigsegv.
77553         * modules/libsigsegv: New file.
77554         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
77555         modifications.
77556         * MODULES.html.sh (Signal handling): New section.
77558 2008-07-14  Bruno Haible  <bruno@clisp.org>
77560         * modules/unictype/ctype-* (Description): Add the word "function".
77561         Improves the resulting doc in MODULES.html.
77563 2008-07-12  Ben Pfaff  <blp@gnu.org>
77565         Add longlong module.
77566         * modules/longlong: New file.
77568 2008-07-12  Bruno Haible  <bruno@clisp.org>
77570         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
77571         to empty.
77573 2008-07-10  Ben Pfaff  <blp@gnu.org>
77575         Add isnan module.
77576         * doc/posix-functions/isnan.texi: Mention new module.
77577         * lib/math.in.h: Define isnan macro if we have decided to replace
77578         it.
77579         * m4/isnan.m4: New file.
77580         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
77581         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
77582         also.
77583         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
77584         redundancy.
77585         * m4/math_h.m4: Initialize and substitute variables for isnan
77586         module.
77587         * modules/isnan: New file.
77588         * modules/isnan-tests: New file.
77589         * modules/math: Add substitutions for new module.
77590         * tests/test-isnan.c: New file.
77591         * MODULES.html.sh: Mention new module.
77593 2008-07-10  Ben Pfaff  <blp@gnu.org>
77595         Add isnanf module.
77596         * lib/isnanf.m4: New file.
77597         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
77598         (gl_HAVE_ISNANF_IN_LIBM): New macro.
77599         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
77600         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
77601         * modules/isnanf: New file.
77602         * modules/isnanf-tests: New file.
77603         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
77604         files.
77605         * tests/test-isnanf-nolibm.c: factored most of its contents into
77606         new file tests/test-isnanf.h.
77607         * tests/test-isnanf.h: New file.
77608         * tests/test-isnanf.c: New file.
77609         * MODULES.html.sh: Mention new module.
77610         * doc/glibc-functions/isnanf.texi: Mention new module.
77612 2008-07-10  Ben Pfaff  <blp@gnu.org>
77614         Add isnand module.
77615         * lib/isnand.h: New file.
77616         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
77617         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
77618         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
77619         functionality also.
77620         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
77621         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
77622         (gl_HAVE_ISNAND_IN_LIBM): New macro.
77623         * modules/isnand: New file.
77624         * modules/isnand-tests: New file.
77625         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
77626         files.
77627         * tests/test-isnand-nolibm.c: factored most of its contents into
77628         new file tests/test-isnand.h.
77629         * tests/test-isnand.h: New file.
77630         * tests/test-isnand.c: New file.
77631         * MODULES.html.sh: Mention new module.
77633 2008-07-10  Ben Pfaff  <blp@gnu.org>
77635         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
77636         * lib/isnand.h: Rename lib/isnand-nolibm.h.
77637         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
77638         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
77639         * modules/isnanf-nolibm: Update references to renamed files.
77640         * modules/isnand-nolibm: Likewise.
77641         * modules/isnanf-nolibm-tests: Likewise.
77642         * modules/isnand-nolibm-tests: Likewise.
77643         * lib/frexp.c: Likewise.
77644         * lib/isfinite.c: Likewise.
77645         * lib/signbitd.c: Likewise.
77646         * lib/signbitf.c: Likewise.
77647         * lib/vasnprintf.c: Likewise.
77648         * tests/test-ceilf1.c: Likewise.
77649         * tests/test-ceilf2.c: Likewise.
77650         * tests/test-floorf1.c: Likewise.
77651         * tests/test-floorf2.c: Likewise.
77652         * tests/test-frexp.c: Likewise.
77653         * tests/test-round1.c: Likewise.
77654         * tests/test-round2.c: Likewise.
77655         * tests/test-roundf1.c: Likewise.
77656         * tests/test-strtod.c: Likewise.
77657         * tests/test-trunc1.c: Likewise.
77658         * tests/test-trunc2.c: Likewise.
77659         * tests/test-truncf1.c: Likewise.
77660         * tests/test-truncf2.c: Likewise.
77661         * NEWS: Mention the renamed header files.
77663 2008-07-11  Jim Meyering  <meyering@redhat.com>
77665         vc-list-files: make the last-resort awk code more portable
77666         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
77667         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
77668         does not support it.
77670 2008-07-10  Eric Blake  <ebb9@byu.net>
77672         Work with tar's bootstrap.
77673         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
77674         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
77675         an m4 comment.
77677 2008-07-09  Jim Meyering  <meyering@redhat.com>
77679         posix-shell.m4: fix typo that made this test malfunction
77680         * m4/posix-shell.m4: Remove capitalization in variable name.
77682 2008-07-08  Bruno Haible  <bruno@clisp.org>
77684         * m4/onceonly.m4: Update comments.
77685         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77687 2008-07-04  Jim Meyering  <meyering@redhat.com>
77689         * users.txt: Add vc-dwim.
77690         (bison, coreutils): Use the gitweb URL.
77692 2008-07-03  Jim Meyering  <meyering@redhat.com>
77694         * users.txt: Add libffcall.  From Sam Steingold.
77696 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
77698         getdate.y: do not ignore TZ with relative day, month or year offset
77699         * lib/getdate.y (get_date): Move the tz-handling block to follow the
77700         relative-date-handling, since otherwise, the latter would clobber the
77701         sole output (an updated Start value) of the tz-handling block.
77702         * tests/test-getdate.c: Tests for the fix
77704 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77706         Recognize 'foo_LIBRARIES += libgnu.a'.
77707         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
77708         makefile snippet has already specified an installation location,
77709         also using '+='.
77711 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
77713         getdate.y: factor out common actions
77714         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
77715         Use them in place of open-coded actions.
77717 2008-07-01  Simon Josefsson  <simon@josefsson.org>
77719         Add self-test for getdate module.
77720         * modules/getdate-tests: New file.
77721         * tests/test-getdate.c: New file.
77723 2008-06-29  Bruno Haible  <bruno@clisp.org>
77725         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
77726         .gitignore.
77727         Reported by Sylvain Beucler <beuc@beuc.net>.
77729 2008-06-29  Bruno Haible  <bruno@clisp.org>
77731         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
77732         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
77734 2008-06-29  Bruno Haible  <bruno@clisp.org>
77736         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
77737         EXTRA_DIST.
77738         Reported by Sylvain Beucler <beuc@beuc.net>.
77740 2008-06-26  Jim Meyering  <meyering@redhat.com>
77742         make several modules depend on the "open" module
77743         This provides slightly increased consistency when opening-for-write
77744         the name of a non-directory spelled with a trailing slash.
77745         * modules/chdir-safer: Likewise.
77746         * modules/chown: Likewise.
77747         * modules/clean-temp: Likewise.
77748         * modules/copy-file: Likewise.
77749         * modules/fchdir: Likewise.
77750         * modules/fcntl-safer: Likewise.
77751         * modules/pipe: Likewise.
77752         * modules/utime: Likewise.
77753         Prompted by Eric Blake and Bruno Haible.
77755 2008-06-24  Andreas Schwab  <schwab@suse.de>
77757         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
77758         literals can be used as initializers for global variables.
77760 2008-06-23  Eric Blake  <ebb9@byu.net>
77762         Make gnulib-cache.m4 easier to diff.
77763         * gnulib-tool (func_import): Allow newlines when reading cached
77764         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
77766 2008-06-23  Bruno Haible  <bruno@clisp.org>
77768         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
77769         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
77770         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
77771         m4/signalblocking.m4.
77772         (gl_PREREQ_SIGACTION): Don't invoke it.
77773         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
77774         gl_PREREQ_SIG_HANDLER_H.
77775         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77776         Don't check for sigaction here.
77778 2008-06-23  Bruno Haible  <bruno@clisp.org>
77780         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
77781         (install_handlers): Don't set the SA_RESETHAND flag.
77783 2008-06-23  Bruno Haible  <bruno@clisp.org>
77785         * m4/sigaction.m4: Comment fixes.
77786         * lib/signal.in.h: Likewise.
77788 2008-06-23  Eric Blake  <ebb9@byu.net>
77790         Fix typo.
77791         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
77793         Avoid SA_ namespace.
77794         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
77795         Reported by Ralf Wildenhues.
77797         Avoid test failure due to SA_RESTORER.
77798         * tests/test-sigaction.c (SA_MASK): New macro.
77799         (main): Avoid failing due to extension flags being set.
77800         Reported by Jim Meyering.
77802         Revert use of sig-handler.h in sigprocmask.c.
77803         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
77804         it requires the existence of struct sigaction.
77805         * lib/sigprocmask.c (handler_t): Restore typedef.
77806         (rpl_signal, old_handlers): Use local type.
77808 2008-06-22  Bruno Haible  <bruno@clisp.org>
77810         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
77811         conditionally.
77812         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
77814 2008-06-22  Bruno Haible  <bruno@clisp.org>
77816         * doc/posix-functions/siginterrupt.texi: Move note.
77818         * lib/signal.in.h (SA_RESTART): New macro.
77819         * lib/sigaction.c: Update comment.
77821         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
77823         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
77824         (gl_PREREQ_SIGPROCMASK): Invoke it.
77825         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
77827         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
77829         * lib/sigprocmask.c: Update a comment.
77831 2008-06-21  Eric Blake  <ebb9@byu.net>
77833         Use sigaction module rather than signal().
77834         * modules/c-stack (Depends-on): Add sigaction.
77835         * modules/fatal-signal (Depends-on): Likewise.
77836         * modules/nanosleep (Depends-on): Likewise.
77837         * modules/sigprocmask (Files): Add sig-handler.h.
77838         * modules/sigaction (Files): Likewise.
77839         * lib/sig-handler.h (get_handler): New file, suggested by Paul
77840         Eggert.
77841         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
77842         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
77843         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
77844         (init_fatal_signals): Likewise.
77845         * lib/nanosleep.c (rpl_nanosleep): Likewise.
77846         (siginterrupt): Delete fallback.
77847         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
77848         instead.
77849         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
77850         siginterrupt.
77852         New module sigaction, for mingw.
77853         * modules/sigaction: New module...
77854         * modules/sigaction-tests: ...and its test.
77855         * m4/sigaction.m4: New file.
77856         * lib/sigaction.c: Likewise.
77857         * tests/test-sigaction.c: Likewise.
77858         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
77859         * modules/signal (Makefile.am): Likewise.
77860         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
77861         needed.
77862         * doc/posix-headers/signal.texi (signal.h): Mention provided
77863         types.
77864         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
77865         that sigaction is preferable.
77866         * doc/posix-functions/sigaction.texi (sigaction): Mention new
77867         module.
77868         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
77869         sigaction.
77871         Improve robustness of sigprocmask by overriding signal.
77872         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
77873         is in use.
77874         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
77875         (SIGKILL, SIGSTOP): Provide fallbacks.
77876         (rpl_signal): Implement.
77877         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
77878         signal can be called inside handlers.
77880         Fix nanosleep module on mingw.
77881         * modules/nanosleep (Depends-on): Add sys_select.
77882         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
77884         Fix licensing of sigprocmask.
77885         * modules/raise (License): Relicense as LGPL.
77887 2008-06-21  Bruno Haible  <bruno@clisp.org>
77889         * lib/propername.c (proper_name_utf8): Don't use the transliterated
77890         result if it contains question marks.
77891         Reported by Michael Geng <linux@michaelgeng.de>.
77893 2008-06-19  Bruno Haible  <bruno@clisp.org>
77895         Fix CVS-ism.
77896         * doc/gnulib.texi: Include updated-stamp.texi.
77897         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
77898         (updated-stamp.texi): New rule.
77899         (gnulib.info): Depend on it.
77900         * doc/.gitignore: Add updated-stamp.texi.
77901         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
77903 2008-06-19  Bruno Haible  <bruno@clisp.org>
77905         * doc/Makefile (gnulib.info): Update and simplify dependencies.
77906         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
77908 2008-06-19  Eric Blake  <ebb9@byu.net>
77910         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
77911         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
77912         Reported by Stepan Kasal.
77914 2008-06-18  Bruno Haible  <bruno@clisp.org>
77916         * lib/fatal-signal.c (init_fatal_signals): Add comment.
77917         Reported by Eric Blake.
77919 2008-06-18  Eric Blake  <ebb9@byu.net>
77921         Work around cygwin 1.5.25 strsignal bug.
77922         * tests/test-strsignal.c: Allow for const char *.
77923         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
77925 2008-06-18  Simon Josefsson  <simon@josefsson.org>
77927         * users.txt: Update URL to article and add author/date
77928         information.
77930 2008-06-17  Bruno Haible  <bruno@clisp.org>
77932         New macro gl_DISABLE_THREADS.
77933         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
77934         if the user did not pass --enable-threads or --disable-threads option.
77935         (gl_DISABLE_THREADS): New macro.
77936         Reported by Eric Blake <ebb9@byu.net>.
77938 2008-06-17  Bruno Haible  <bruno@clisp.org>
77940         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
77941         when the macro ignores it.
77942         Based on a patch by Eric Blake <ebb9@byu.net>.
77944 2008-06-17  Bruno Haible  <bruno@clisp.org>
77946         * modules/tls (License): Change to LGPLv2+.
77947         Reported by Eric Blake.
77949 2008-06-17  Eric Blake  <ebb9@byu.net>
77951         Simplify c-stack prerequisites.
77952         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
77953         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
77954         no longer requires <ucontext.h> to exist.  Optimize setrlimit
77955         check.
77956         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
77957         <sys/resource.h>.
77959         Move c-stack test into testsuite.
77960         * modules/c-stack-tests: New file.
77961         * lib/c-stack.c [DEBUG]: Move test program...
77962         * tests/test-c-stack.c: ...into this new file.  Skip rather than
77963         fail test if sigaltstack is lacking.
77964         * tests/test-c-stack.sh: New driver file.
77966 2008-06-16  Eric Blake  <ebb9@byu.net>
77968         Use raise module consistently.
77969         * modules/fatal-signal (Depends-on): Add raise.
77970         * modules/sigprocmask (Depends-on): Likewise.
77971         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
77972         * lib/sigprocmask.c (sigprocmask): Likewise.
77973         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
77974         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
77976         Fix compliance bug in sigpending.
77977         * lib/sigprocmask.c (sigpending): Return pending array via
77978         parameter, not return value.
77980 2008-06-14  Eric Blake  <ebb9@byu.net>
77982         Improve obstack-printf test code.
77983         * tests/test-obstack-printf.c (test_function): Fix comment, and
77984         simplify usage of obstack_* in macros.  Add a test for coverage.
77985         Reported by Bruno Haible.
77987 2008-06-14  Bruno Haible  <bruno@clisp.org>
77989         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
77990         array size as a constant, not as a const variable.
77991         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
77992         AC_USE_SYSTEM_EXTENSIONS.
77993         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
77994         Test whether the obstack_printf function actually exists.
77995         * modules/obstack-printf (Depends-on): Add extensions.
77996         (Include): Remove obstack.h.
77997         * modules/obstack-printf-posix (Depends-on): Add extensions.
77998         (Include): Remove obstack.h.
78000 2008-06-13  Eric Blake  <ebb9@byu.net>
78002         Add obstack-printf and obstack-printf-posix modules.
78003         * modules/obstack-printf: New file.
78004         * modules/obstack-printf-posix: Likewise.
78005         * MODULES.html.sh (Misc): Mention them.
78006         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
78007         Likewise.
78008         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
78009         Likewise.
78010         * modules/stdio (Makefile.am): Accomodate new modules.
78011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
78012         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
78013         Declare.
78014         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
78015         functions.
78016         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
78017         (gl_REPLACE_OBSTACK_PRINTF): New macros
78018         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
78019         * tests/test-obstack-printf.c: New file.
78020         * modules/obstack-printf-tests: Likewise.
78021         * modules/obstack-printf-posix-tests: Likewise.
78023 2008-06-11  Bruno Haible  <bruno@clisp.org>
78025         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
78026         * lib/open.c: Include errno.h.
78027         (open): Fail when attempting to write to a file that has a trailing
78028         slash.
78029         * tests/test-open.c (main): Test against trailing slash bug.
78030         * doc/posix-functions/open.texi: Mention the trailing slash bug.
78032 2008-06-10  Bruno Haible  <bruno@clisp.org>
78034         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
78035         for $? to work inside the trap command, with various /bin/sh-s.
78036         * tests/test-vc-list-files-cvs.sh: Likewise.
78038 2008-06-10  Bruno Haible  <bruno@clisp.org>
78040         * lib/acl-internal.h: Don't include gettext.h here.
78041         * lib/set-mode-acl.c: Include gettext.h here.
78042         * lib/copy-acl.c: Likewise.
78044 2008-06-10  Bruno Haible  <bruno@clisp.org>
78046         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
78047         * lib/wait-process.c (wait_subprocess): Likewise.
78048         * lib/execute.h (execute): Add termsigp argument.
78049         * lib/execute.c (execute): Likewise.
78050         * lib/csharpcomp.c (compile_csharp_using_pnet,
78051         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
78052         * lib/csharpexec.c (execute_csharp_using_pnet,
78053         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
78054         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
78055         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
78056         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
78057         is_jikes_present): Update.
78058         * lib/javaexec.c (execute_java_class): Update.
78059         * lib/javaversion.c (execute_and_read_line): Update.
78060         * NEWS: Document the changes.
78061         Reported by Eric Blake.
78063 2008-06-10  Eric Blake  <ebb9@byu.net>
78065         Add missing include.
78066         * tests/test-strstr.c (includes): Add <signal.h>.
78067         * tests/test-strcasestr.c (includes): Likewise.
78068         * tests/test-memmem.c (includes): Likewise.
78070 2008-06-10  Bruno Haible  <bruno@clisp.org>
78072         * lib/wait-process.c (wait_subprocess): Add an assertion.
78074 2008-06-10  Bruno Haible  <bruno@clisp.org>
78076         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
78078 2008-06-10  Bruno Haible  <bruno@clisp.org>
78080         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
78081         using alarm().
78082         * tests/test-strcasestr.c (main): Likewise.
78083         * tests/test-strstr.c (main): Likewise.
78085 2008-06-09  Bruno Haible  <bruno@clisp.org>
78087         Work around the Solaris 10 ACE ACLs ABI change.
78088         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
78089         declare if ACL_NO_TRIVIAL is present.
78090         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
78091         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
78092         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
78093         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
78094         define if ACL_NO_TRIVIAL is present.
78095         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
78096         and use the current ABI.
78097         (file_has_acl): Use same #if condition as elsewhere.
78098         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
78099         in use, and use the current ABI.
78100         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
78101         Reported by Jim Meyering.
78103 2008-06-09  Eric Blake  <ebb9@byu.net>
78105         Work around environments that (stupidly) ignore SIGALRM.
78106         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
78107         before using alarm().
78108         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78109         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
78110         Reported by Ian Beckwith <ianb@erislabs.net>.
78112         Produce autobuild blurb earlier in log.
78113         * modules/autobuild (configure.ac-early): Move AB_INIT here.
78115 2008-06-09  Jim Meyering  <meyering@redhat.com>
78116         and Ondřej Vašík  <ovasik@redhat.com>
78118         utimens.c: correct kernel bug work-around
78119         Ondřej Vašík found that the invalid return value of 280 indicates
78120         failure, not success, and the kernel bug we're trying to work
78121         around affects not just the utimensat call, but also the fallback
78122         futimens call.
78123         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
78124         not success.
78125         [HAVE_FUTIMENS]: Use the same work-around, here.
78127 2008-06-09  Jim Meyering  <meyering@redhat.com>
78129         add more guards around definition of ACE_-related code
78130         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
78131         ALLOW and ACE_OWNER are also defined.
78133 2008-06-08  Bruno Haible  <bruno@clisp.org>
78135         * lib/acl-internal.h: Add me as co-author.
78136         * lib/file-has-acl.c: Likewise.
78137         * lib/set-mode-acl.c: Likewise.
78138         * lib/copy-acl.c: Likewise.
78140 2008-06-08  Bruno Haible  <bruno@clisp.org>
78142         Add support for AIX ACLs.
78143         * lib/acl-internal.h (acl_nontrivial): New declaration.
78144         * lib/file-has-acl.c (acl_nontrivial): New function.
78145         (file_has_acl): Add implementation using AIX 4 ACL API.
78146         * lib/set-mode-acl.c (qset_acl): Likewise.
78147         * lib/copy-acl.c (qcopy_acl): Likewise.
78149 2008-06-08  Bruno Haible  <bruno@clisp.org>
78151         Add support for HP-UX ACLs.
78152         * lib/acl-internal.h (acl_nontrivial): New declaration.
78153         * lib/file-has-acl.c (acl_nontrivial): New function.
78154         (file_has_acl): Add implementation using HP-UX 11 ACL API.
78155         * lib/set-mode-acl.c (qset_acl): Likewise.
78156         * lib/copy-acl.c (qcopy_acl): Likewise.
78158 2008-06-08  Bruno Haible  <bruno@clisp.org>
78160         Add support for Cygwin ACLs.
78161         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
78162         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
78163         the chmod_or_fchmod call.
78164         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
78166 2008-06-08  Bruno Haible  <bruno@clisp.org>
78168         Fix bug with setuid modes in Solaris 10+ code.
78169         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
78170         succeeded, when the mode contains some special bits.
78172 2008-06-08  Bruno Haible  <bruno@clisp.org>
78174         Add support for Solaris 7..10 ACLs.
78175         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
78176         declarations.
78177         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
78178         functions.
78179         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
78180         * lib/set-mode-acl.c (qset_acl): Likewise.
78181         * lib/copy-acl.c (qcopy_acl): Likewise.
78183 2008-06-08  Bruno Haible  <bruno@clisp.org>
78185         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
78186         declaration.
78187         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
78188         (acl_access_nontrivial): Remove MacOS X case.
78189         (file_has_acl): Use acl_extended_nontrivial.
78190         * lib/copy-acl.c (qcopy_acl): Likewise.
78192 2008-06-08  Bruno Haible  <bruno@clisp.org>
78194         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
78196 2008-06-08  Jim Meyering  <meyering@redhat.com>
78198         * modules/acl (Maintainer): Add Bruno Haible.
78200 2008-06-07  Bruno Haible  <bruno@clisp.org>
78202         Improve support for Tru64 ACLs.
78203         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
78204         ACL on OSF/1.
78206 2008-06-07  Bruno Haible  <bruno@clisp.org>
78208         Add support for MacOS X ACLs.
78209         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
78210         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
78211         * lib/set-mode-acl.c (qset_acl): Likewise.
78212         * lib/copy-acl.c (qcopy_acl): Likewise.
78214 2008-06-07  Bruno Haible  <bruno@clisp.org>
78216         Fix memory leak introduced on 2008-05-22.
78217         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
78218         use.
78220 2008-06-07  Bruno Haible  <bruno@clisp.org>
78222         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
78223         to construct an empty ACL.
78225 2008-06-07  Bruno Haible  <bruno@clisp.org>
78227         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
78228         precisely.
78229         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
78231 2008-06-07  Bruno Haible  <bruno@clisp.org>
78233         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
78234         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
78236 2008-06-07  Bruno Haible  <bruno@clisp.org>
78238         * doc/posix-functions/_setjmp.texi: Explain the use of this function
78239         regardless of POSIX.
78240         * doc/posix-functions/_longjmp.texi: Likewise.
78241         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
78242         SystemV platform in this case.
78244 2008-06-06  Eric Blake  <ebb9@byu.net>
78246         Document abort() bugs.
78247         * doc/posix-functions/abort.texi (abort): Mention anomalies.
78249         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
78250         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
78251         sigsetjmp.
78252         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
78253         siglongjmp, but only as a macro.
78254         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
78255         is obsolete.
78256         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
78258         Tweak documentation to cover cygwin argz bugs.
78259         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
78260         argz bug fix; no code change needed since no cygwin releases
78261         occurred between the last fix and the bug being tested.
78262         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
78263         module and recently fixed cygwin bugs.
78264         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
78265         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
78266         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
78267         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
78268         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
78269         Likewise.
78270         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
78271         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
78272         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
78273         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
78274         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
78275         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
78276         Likewise.
78278         Avoid gcc warning on cygwin.
78279         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
78280         !ACL_NO_TRIVIAL]: Avoid unused variable.
78282 2008-06-05  Eric Blake  <ebb9@byu.net>
78284         Be tolerant of UNKNOWN version in gnulib-tool test dir.
78285         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
78286         git-version-gen fails to come up with a version.
78287         Reported by Simon Josefsson.
78289 2008-06-05  Jim Meyering  <meyering@redhat.com>
78290             Paul Eggert  <eggert@cs.ucla.edu>
78292         utimens.c: work around a probable Linux kernel bug
78293         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
78294         appears to be a kernel bug that causes utimensat to return 280
78295         instead of 0, indicating success.
78297 2008-06-04  Bruno Haible  <bruno@clisp.org>
78299         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
78300         2008-06-01 commit.
78302 2008-06-04  Bruno Haible  <bruno@clisp.org>
78304         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
78305         * lib/file-has-acl.c (acl_access_nontrivial): New function.
78306         (file_has_acl): Use it. Save errno afterwards.
78307         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
78309 2008-06-03  Bruno Haible  <bruno@clisp.org>
78311         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
78312         draft code. Simplify #ifs.
78313         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
78314         Put Solaris code after POSIX-draft code. Fix comments regarding
78315         Solaris 10, HP-UX. Mention Cygwin.
78316         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
78318 2008-06-03  Eric Blake  <ebb9@byu.net>
78320         Provide fallback for older kernels.
78321         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
78322         Provide runtime fallback if kernel lacks support.
78323         Reported by Mike Frysinger.
78325 2008-06-02  Bruno Haible  <bruno@clisp.org>
78327         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
78328         it exists.
78330 2008-06-02  Bruno Haible  <bruno@clisp.org>
78332         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
78333         * lib/copy-acl.c (qcopy_acl): Update comment.
78335 2008-06-02  Bruno Haible  <bruno@clisp.org>
78337         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
78338         like ACL APIs.
78340 2008-06-02  Bruno Haible  <bruno@clisp.org>
78342         * tests/test-file-has-acl.sh: Use different code for Cygwin.
78343         * tests/test-set-mode-acl.sh: Likewise.
78344         * tests/test-copy-acl.sh: Likewise.
78345         * tests/test-copy-file.sh: Likewise.
78347 2008-06-02  Bruno Haible  <bruno@clisp.org>
78349         * tests/test-file-has-acl.sh: Remove unused code.
78351 2008-06-01  Bruno Haible  <bruno@clisp.org>
78353         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
78354         (copy_acl): Just a wrapper around qcopy_acl that emits the error
78355         messages.
78356         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
78358 2008-06-01  Bruno Haible  <bruno@clisp.org>
78360         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
78361         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
78362         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
78363         APIs.
78364         * modules/acl-tests (configure.ac): Remove tests now contained in
78365         m4/acl.m4.
78367 2008-06-02  Jim Meyering  <meyering@redhat.com>
78369         announce-gen: use a better key-server host name
78370         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
78371         it may be more consistently reliable.  Suggested by Werner Koch
78372         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
78374 2008-06-01  Bruno Haible  <bruno@clisp.org>
78376         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
78377         Reported by Voroskoi Andras <voroskoi@gmail.com>.
78379 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
78381         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
78383 2008-06-01  Bruno Haible  <bruno@clisp.org>
78385         New ACL tests.
78386         * tests/test-file-has-acl.sh: New file.
78387         * tests/test-file-has-acl.c: New file.
78388         * tests/test-set-mode-acl.sh: New file.
78389         * tests/test-set-mode-acl.c: New file.
78390         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
78391         * tests/test-copy-acl.c: New file.
78392         * modules/acl-tests: New file, based on modules/copy-file-tests.
78393         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
78394         (Depends-on): Add acl-tests.
78395         (configure.ac): Remove checks.
78396         (Makefile.am): Don't create test-sameacls program here any more.
78398 2008-06-01  Bruno Haible  <bruno@clisp.org>
78400         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
78401         * tests/test-sameacls.c: Include progname.h.
78402         (main): Invoke set_program_name. Portability fixes for MacOS X,
78403         Solaris, HP-UX.
78405 2008-06-01  Bruno Haible  <bruno@clisp.org>
78407         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
78408         function.
78409         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
78411 2008-06-01  Bruno Haible  <bruno@clisp.org>
78413         * modules/rpmatch (Depends-on): Add strdup.
78415 2008-06-01  Bruno Haible  <bruno@clisp.org>
78417         * lib/pipe.c: Include unistd-safer.h.
78418         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
78419         * modules/pipe (Depends-on): Add unistd-safer.
78421 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78423         * modules/autobuild (configure.ac): Call AB_INIT.
78425 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78427         * tests/test-getaddrinfo.c: Don't print debug messages by default.
78428         Suggested by Bruno Haible <bruno@clisp.org>.
78430 2008-05-30  Simon Josefsson  <simon@josefsson.org>
78432         * tests/test-base64.c: Cast size_t to unsigned long when invoking
78433         printf.  Use %lu instead of %d.  Reported by Bruno Haible
78434         <bruno@clisp.org>.
78436 2008-05-29  Eric Blake  <ebb9@byu.net>
78438         Prefer new POSIX 200x interfaces over futimesat.
78439         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
78440         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
78441         when available.
78442         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
78444 2008-05-28  Bruno Haible  <bruno@clisp.org>
78446         * modules/stpcpy (License): Change to LGPLv2+.
78447         Requested by David Lutterkort <dlutter@redhat.com>.
78449 2008-05-27  Bruno Haible  <bruno@clisp.org>
78451         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
78452         current mingw.
78453         Reported by Jose E. Marchesi <jemarch@gnu.org>.
78455 2008-05-27  Bruno Haible  <bruno@clisp.org>
78457         * modules/iconv_open (Link): New section, from module 'iconv'.
78458         * modules/striconv (Link): Likewise.
78459         * modules/striconveh (Link): Likewise.
78460         * modules/xstriconv (Link): Likewise.
78461         * modules/unicodeio (Link): Likewise.
78462         * modules/propername (Link): Likewise.
78463         Reported by Jim Meyering.
78465 2008-05-26  Jim Meyering  <meyering@redhat.com>
78467         sha256: do not artificially restrict buffer length to be < 2^32
78468         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
78469         uint32_t to size_t.
78470         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
78471         to match.
78473         avoid unaligned access errors, e.g., on sparc
78474         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
78475         direct access through a possibly-unaligned uint64* pointer.
78476         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
78477         direct access through a possibly-unaligned uint32* pointer.
78478         Prompted by this patch from Tom "spot" Callaway:
78479         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
78481         sha512.c: fix typo in comment
78482         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
78484 2008-05-25  Bruno Haible  <bruno@clisp.org>
78486         * lib/set-mode-acl.c: Renamed from lib/acl.c.
78487         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
78488         (Makefile.am): Update lib_SOURCES.
78490 2008-05-25  Bruno Haible  <bruno@clisp.org>
78492         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
78494 2008-05-25  Jim Meyering  <meyering@redhat.com>
78496         useless-if-before-free: freed expr may have white-space differences
78497         * build-aux/useless-if-before-free: Recognize cases in which the
78498         freed expression differs from the tested one in embedded white
78499         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
78500         $1 was used, so we can't make any regexp shy.  Improved tests now
78501         detect this.
78503         useless-if-before-free: accept white space in the expression.
78504         * build-aux/useless-if-before-free: For now, any white space
78505         in the expression must be identical in the free argument.
78507         useless-if-before-free: efficiency tweak
78508         * build-aux/useless-if-before-free: Make the expression-matching
78509         regexp "shy".
78510         Make the *outer* regexp shy, not the expr-matching one.
78512         update code-in-comment to accept cast of free arg
78513         * build-aux/useless-if-before-free: Update regexp.
78515 2008-05-25  Bruno Haible  <bruno@clisp.org>
78517         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
78518         * modules/copy-file-tests (Files, Makefile.am): Update.
78519         * tests/test-copy-file.c (func_test_copy): Update.
78521 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
78523         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
78525 2008-05-23  Bruno Haible  <bruno@clisp.org>
78527         Improve support for ACLs on OSF/1.
78528         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
78529         Remove fallback for unknown flavors of ACLs.
78531 2008-05-22  Bruno Haible  <bruno@clisp.org>
78533         Add support for ACLs on OSF/1.
78534         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
78535         replacements.
78536         (acl_free_text): New macro fallback.
78537         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
78538         acl_free.
78539         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
78540         acl_free_text function. Require AC_C_INLINE.
78542 2008-05-22  Bruno Haible  <bruno@clisp.org>
78544         Make copy_acl work on MacOS X 10.5.
78545         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
78546         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
78547         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
78548         If MODE_INSIDE_ACL, don't assume that every system has the same text
78549         representation for ACLs as FreeBSD.
78550         * lib/copy-acl.c (copy_acl): Add support for platforms with
78551         !MODE_INSIDE_ACL.
78552         * lib/file-has-acl.c (file_has_acl): Likewise.
78553         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
78554         FreeBSD, MacOS X, or IRIX, respectively.
78556 2008-05-22  Bruno Haible  <bruno@clisp.org>
78558         * lib/acl.h: Don't include <sys/acl.h>.
78559         (GETACLCNT): Move fallback to lib/acl-internal.h.
78560         * lib/acl-internal.h: Include <sys/acl.h> here.
78561         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
78563 2008-05-22  Bruno Haible  <bruno@clisp.org>
78565         Split off copy_acl function to separate file.
78566         * lib/copy-acl.c: New file, extracted from lib/acl.c.
78567         * lib/acl.c (copy_acl): Moved function to separate file.
78568         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
78569         * modules/acl (Files): Add lib/copy-acl.c.
78570         (Makefiles.am): Augment lib_SOURCES.
78572 2008-05-22  Bruno Haible  <bruno@clisp.org>
78574         * modules/copy-file-tests: New file.
78575         * tests/test-copy-file.sh: New file.
78576         * tests/test-copy-file.c: New file.
78577         * tests/test-copy-file-sameacls.c: New file.
78579 2008-05-22  Eric Blake  <ebb9@byu.net>
78581         Avoid gcc warning.
78582         * tests/test-memcmp.c (main): Pass NULL indirectly.
78584 2008-05-21  Bruno Haible  <bruno@clisp.org>
78586         Add reference doc about ACLs.
78587         * doc/acl-resources.txt: New file.
78588         * doc/acl-cygwin.txt: New file.
78590 2008-05-21  Bruno Haible  <bruno@clisp.org>
78592         Avoid one more warning from gcc.
78593         * lib/vasnprintf.c (IF_LINT): Update comments.
78594         (VASNPRINTF): Use it also for the 'prefix' array initializer.
78596 2008-05-21  Jim Meyering  <meyering@redhat.com>
78598         avoid a warning from gcc
78599         * lib/vasnprintf.c (IF_LINT): Define.
78600         (scale10_round_decimal_long_double):
78601         Use it to avoid a "may be used uninitialized" warning.
78602         (scale10_round_decimal_double): Likewise.
78604 2008-05-21  Simon Josefsson  <simon@josefsson.org>
78606         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
78607         declared.
78609 2008-05-20  Bruno Haible  <bruno@clisp.org>
78611         * tests/test-memcmp.c (main): Test also the sign of the result. Test
78612         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
78614 2008-05-20  Simon Josefsson  <simon@josefsson.org>
78616         * modules/memcmp-tests: New file.
78617         * tests/test-memcmp.c: New file.
78619 2008-05-19  Bruno Haible  <bruno@clisp.org>
78621         * modules/propername (Notice, configure.ac): Put quoted "..." into
78622         --keyword option.
78623         * lib/propername.h: Update comments accordingly.
78624         Reported by Eric Blake.
78626 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
78628         * modules/getpass-gnu (Depends-on): Add fseeko.
78630 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78632         * modules/base64-tests: New file.
78634 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
78636         * lib/base64.c (base64_decode_ctx): If a decode context structure
78637         was passed in use it to ignore newlines.  If a context structure
78638         was _not_ passed in, continue to treat newlines as garbage (this
78639         is the historical behavior).  Formerly base64_decode.
78640         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78641         takes a decode context structure.
78642         * lib/base64.h (base64_decode): Macro for four-argument calls.
78643         (base64_decode_alloc): Likewise.
78644         * lib/base64.c (base64_decode_ctx): If a decode context structure
78645         was passed in use it to ignore newlines.  If a context structure
78646         was _not_ passed in, continue to treat newlines as garbage (this
78647         is the historical behavior).  Formerly base64_decode.
78648         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
78649         takes a decode context structure.
78650         * lib/base64.h (base64_decode): Macro for four-argument calls.
78651         (base64_decode_alloc): Likewise.
78653 2008-05-19  Jim Meyering  <meyering@redhat.com>
78655         avoid a warning from gcc
78656         * lib/trim.c (IF_LINT): Define.
78657         (trim2): Use it to avoid a "may be used uninitialized" warning.
78659         Fix doc typo.
78660         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
78662 2008-05-19  Bruno Haible  <bruno@clisp.org>
78664         * doc/glibc-functions/getpass.texi: Document limits of other
78665         implementations.
78667 2008-05-19  Simon Josefsson  <simon@josefsson.org>
78668             Bruno Haible <bruno@clisp.org>
78670         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
78672 2008-05-18  Bruno Haible  <bruno@clisp.org>
78674         * modules/propername: New file, from GNU gettext.
78675         * lib/propername.h: New file, from GNU gettext.
78676         * lib/propername.c: New file, from GNU gettext.
78677         * MODULES.html.sh (Internationalization functions): Add propername.
78679 2008-05-16  Jim Meyering  <meyering@redhat.com>
78680             Bruno Haible  <bruno@clisp.org>
78682         Avoid some warnings from "gcc -Wshadow".
78683         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
78685 2008-05-15  Eric Blake  <ebb9@byu.net>
78687         Extend previous patch to cygwin 1.7.0.
78688         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
78689         fast implementation in cygwin >= 1.7.0.
78690         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78691         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78693 2008-05-15  Bruno Haible  <bruno@clisp.org>
78695         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
78696         implementation in glibc >= 2.9.
78697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
78698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
78700 2008-05-15  Bruno Haible  <bruno@clisp.org>
78702         * MODULES.html.sh (Internationalization functions): Remove linebreak.
78703         (Unicode string functions): Add unilbrk/*.
78704         Reported by Karl Berry.
78706 2008-05-15  Eric Blake  <ebb9@byu.net>
78708         Fix violation of <stdbool.h> replacement in regex.
78709         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
78710         * lib/regexec.c (re_search_internal): Likewise.
78711         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
78713 2008-05-15  Jim Meyering  <meyering@redhat.com>
78715         avoid distracting test output when git or cvs is not found
78716         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
78717         * tests/test-vc-list-files-git.sh: Likewise.
78719 2008-05-15  Eric Blake  <ebb9@byu.net>
78721         Glibc finally accepted the memmem speedup code, bugzilla #5514.
78722         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
78723         glibc version.
78724         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
78725         * doc/posix-functions/strstr.texi (strstr): Likewise.
78726         * lib/str-two-way.h (MAX): Sychronize with glibc.
78728 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
78730         * lib/regcomp.c (optimize_utf8): Add a note on why we test
78731         opr.ctx_type.
78732         (calc_first): Initialize constraint field.
78733         (duplicate_node_closure): Use it instead of special casing ANCHORS.
78734         Fix grammar.
78735         (duplicate_node): Merge constraint field for all node types.
78736         (calc_eclosure_iter): Look at constraint field for all node types.
78737         * lib/regex_internal.c (create_cd_newstate): Don't look at
78738         opr.ctx_type.
78740 2008-05-14  Bruno Haible  <bruno@clisp.org>
78742         Help GCC to do better code generation.
78743         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
78744         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
78745         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
78746         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
78747         Declare with attribute 'malloc' if supported.
78749 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
78751         use "echo STR|wc -c" rather than unportable "expr length STR"
78752         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
78753         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
78755 2008-05-14  Jim Meyering  <meyering@redhat.com>
78757         use dd ibs=$n count=1 ... rather than less-portable head -c$n
78758         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
78759         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
78760         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
78761         via Collin Lasse.
78763 2008-05-14  Eric Blake  <ebb9@byu.net>
78765         Avoid quadratic growth in gl_LIBSOURCES.
78766         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
78767         Suggested by Bruno Haible.
78769         Test xmemdup0.
78770         * modules/xmemdup0-tests: New file.
78771         * tests/test-xmemdup0.c: Likewise.
78773 2008-05-13  Eric Blake  <ebb9@byu.net>
78775         Split xmemdup0 into its own module.
78776         * modules/xmemdup0: New file.
78777         * lib/xmemdup0.h: Likewise.
78778         * lib/xmemdup0.c: Likewise.
78779         * MODULES.html.sh (Memory management functions): Add xmemdup0.
78780         * lib/xalloc.h (xmemdup0): Remove.
78781         * lib/xmalloc.c (xmemdup0): Likewise.
78783 2008-05-13  Eric Blake  <ebb9@byu.net>
78784             Bruno Haible  <bruno@clisp.org>
78786         Reduce number of forks required during autoconf.
78787         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
78788         and gl_LIBSOURCES_DIR.
78789         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
78790         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
78791         m4_syscmd per file.
78792         <m4_foreach_w>: Move...
78793         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
78795 2008-05-13  Eric Blake  <ebb9@byu.net>
78797         * gnulib-tool: Fix various comment typos.
78799 2008-05-12  Bruno Haible  <bruno@clisp.org>
78801         Tailor the linebreaking algorithm.
78802         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
78804 2008-05-12  Bruno Haible  <bruno@clisp.org>
78806         Update to Unicode 5.0.0.
78807         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78808         LBP_JV, LBP_JT. Redistribute values.
78809         (unilbrk_table): Change size.
78810         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
78811         Unicode TR#14 rev. 22.
78812         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
78813         LBP_JV, LBP_JT. Redistribute values.
78814         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
78815         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
78816         Update.
78817         * lib/unilbrk/lbrkprop1.h: Regenerated.
78818         * lib/unilbrk/lbrkprop2.h: Regenerated.
78819         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
78820         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
78821         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
78822         Likewise.
78823         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
78824         Likewise.
78825         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
78826         result.
78827         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
78828         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
78829         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
78830         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
78831         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
78832         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
78834 2008-05-11  Bruno Haible  <bruno@clisp.org>
78836         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
78838 2008-05-11  Bruno Haible  <bruno@clisp.org>
78840         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
78841         * modules/unilbrk/gen-lbrk: New file.
78843 2008-05-11  Bruno Haible  <bruno@clisp.org>
78845         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
78846         * m4/sha512.m4 (gl_SHA512): Likewise.
78848 2008-05-11  Jim Meyering  <meyering@redhat.com>
78850         New modules: crypto/sha256, crypto/sha512 (from coreutils)
78851         * modules/crypto/sha256: New file.
78852         * modules/crypto/sha512: Likewise.
78853         * lib/sha256.c: Likewise.
78854         * lib/sha256.h: Likewise.
78855         * lib/sha512.c: Likewise.
78856         * lib/sha512.h: Likewise.
78857         * lib/u64.h: Likewise.
78858         * m4/sha256.m4: Likewise.
78859         * m4/sha512.m4: Likewise.
78860         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
78862 2008-05-10  Bruno Haible  <bruno@clisp.org>
78864         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
78865         (Input/Output <stdio.h>): Add xprintf.
78866         (Signal handling <signal.h>): Add strsignal.
78867         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
78868         (Core language properties): Add func.
78869         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
78870         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
78871         strings.
78872         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
78873         (Input/output): New section.
78874         (File system functions): Add openat-die, stat-macros.
78875         (Networking functions): Add sockets.
78876         (Unicode string functions): Add unictype/*.
78877         (Support for building libraries and executables): Add gperf.
78878         (Support for building documentation): Add agpl-3.0.
78879         (Misc): Add nocrash.
78881 2008-05-10  Bruno Haible  <bruno@clisp.org>
78883         * modules/unictype/gen-ctype: New file.
78885 2008-05-10  Jim Meyering  <meyering@redhat.com>
78887         Make chdir-safer.c more efficient on a system with no symlinks.
78888         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
78889         also if ELOOP is zero.  Suggested by Bruno Haible.
78891         Make chdir-safer.c slightly safer.
78892         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
78893         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
78895         Avoid compile failure on systems without ELOOP (like mingw).
78896         * lib/chdir-safer.c (ELOOP): Define if not already defined.
78897         Reported by Bruno Haible.
78899 2008-05-10  Bruno Haible  <bruno@clisp.org>
78901         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
78902         (is_utf8_encoding): Use a case-insensitive comparison.
78903         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
78904         streq.
78906 2008-05-10  Bruno Haible  <bruno@clisp.org>
78908         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
78909         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
78910         * lib/unilbrk/ulc-common.h (iconv_string_length,
78911         iconv_string_keeping_offsets): Remove declarations.
78912         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
78913         Don't include <iconv.h>, streq.h, xsize.h.
78914         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
78915         conversion.
78916         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
78917         <iconv.h>, streq.h, xsize.h.
78918         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
78919         conversion.
78920         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
78921         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
78922         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
78923         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
78925 2008-05-10  Bruno Haible  <bruno@clisp.org>
78927         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
78928         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
78930         * modules/unilbrk/u32-width-linebreaks-tests: New file.
78931         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
78933         * modules/unilbrk/u16-width-linebreaks-tests: New file.
78934         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
78936         * modules/unilbrk/u8-width-linebreaks-tests: New file.
78937         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
78939         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
78940         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
78942         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
78943         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
78945         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
78946         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
78948         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
78949         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
78951 2008-05-10  Bruno Haible  <bruno@clisp.org>
78953         Split up 'linebreak' module.
78954         * lib/unilbrk.h: New file, based on lib/linebreak.h.
78955         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
78956         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
78957         modifications.
78958         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
78959         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
78960         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
78961         lib/linebreak.c.
78962         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
78963         lib/linebreak.c.
78964         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
78965         lib/linebreak.c.
78966         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
78967         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
78968         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
78969         lib/linebreak.c.
78970         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
78971         lib/linebreak.c.
78972         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
78973         lib/linebreak.c.
78974         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
78975         lib/linebreak.c.
78976         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
78977         lib/linebreak.c.
78978         * modules/unilbrk/base: New file.
78979         * modules/unilbrk/tables: New file.
78980         * modules/unilbrk/u8-possible-linebreaks: New file.
78981         * modules/unilbrk/u16-possible-linebreaks: New file.
78982         * modules/unilbrk/u32-possible-linebreaks: New file.
78983         * modules/unilbrk/ulc-common: New file.
78984         * modules/unilbrk/ulc-possible-linebreaks: New file.
78985         * modules/unilbrk/u8-width-linebreaks: New file.
78986         * modules/unilbrk/u16-width-linebreaks: New file.
78987         * modules/unilbrk/u32-width-linebreaks: New file.
78988         * modules/unilbrk/ulc-width-linebreaks: New file.
78989         * lib/linebreak.h: Remove file.
78990         * lib/linebreak.c: Remove file.
78991         * m4/linebreak.m4: Remove file.
78992         * modules/linebreak: Remove file.
78993         * NEWS: Mention the changes.
78995 2008-05-09  Eric Blake  <ebb9@byu.net>
78997         Add xmemdup0.
78998         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
78999         implementation.
79000         * lib/xmalloc.c (xmemdup0): New C implementation.
79002 2008-05-08  Bruno Haible  <bruno@clisp.org>
79004         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
79006 2008-05-07  Eric Blake  <ebb9@byu.net>
79008         Support cross-compilation of <wctype.h>.
79009         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
79010         AC_CACHE_CHECK.
79012 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
79014         * build-aux/vc-list-files: Add support for bzr.
79016 2008-05-03  Jim Meyering  <meyering@redhat.com>
79018         avoid failed assertion with tight malloc
79019         * tests/test-getndelim2.c: Correct an off-by-one assertion.
79021 2008-05-03  Simon Josefsson  <simon@josefsson.org>
79023         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
79024         are needed from arpa/inet.h.
79025         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
79026         Reported by Bruno Haible.
79028 2008-05-02  Jim Meyering  <meyering@redhat.com>
79030         avoid compilation error on FreeBSD 6
79031         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
79033 2008-05-01  Jim Meyering  <meyering@redhat.com>
79035         useless-if-before-free: correct --help's exit status description
79036         * build-aux/useless-if-before-free (usage): Like grep, exit 0
79037         for one or more matches, etc.  Reported by Bruno Haible.
79039         vc-list-files: make the stand-alone gnulib test work
79040         * modules/vc-list-files-tests (configure.ac):
79041         Define and AC_SUBST abs_aux_dir.
79042         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
79043         $(abs_top_srcdir) to each script and having each of them
79044         duplicate the work of setting PATH, set PATH here, using
79045         the new variable, abs_aux_dir instead.
79046         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
79047         * tests/test-vc-list-files-git.sh: Likewise.
79048         Reported by Bruno Haible.
79050 2008-05-01  Bruno Haible  <bruno@clisp.org>
79052         * lib/getndelim2.c (getndelim2): Fix newsize computation during
79053         reallocation. Rename 'done' to 'found_delimiter'.
79055 2008-05-01  Jim Meyering  <meyering@redhat.com>
79057         vc-list-files: accommodate /bin/sh like the one from Solaris 10
79058         * build-aux/vc-list-files: Use `...`, not $(...).
79060 2008-04-30  Jim Meyering  <meyering@redhat.com>
79062         add tests for vc-list-files
79063         * modules/vc-list-files-tests: New module.
79064         * tests/test-vc-list-files-cvs.sh: New file.
79065         * tests/test-vc-list-files-git.sh: New file.
79067         avoid a warning from gcc
79068         * lib/getndelim2.c (IF_LINT): Define.
79069         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
79071         vc-list-files: work properly with build-aux/cvsu, too
79072         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
79073         to all cvs-based clauses.
79075         vc-list-files: work properly in the CVS+awk case, too
79076         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
79078         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
79079         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
79080         take more than one file argument, so .  Add quotes, just in case $dir
79081         ever contains a shell meta-character.  Prompted by Soren Hansen in
79082         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
79084 2008-04-29  Eric Blake  <ebb9@byu.net>
79086         Optimize getndelim2 to use block operations when possible.
79087         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
79088         freadseek, and memchr2.
79089         * lib/getndelim2.c (getndelim2): Use them for block reads.
79091 2008-04-29  Bruno Haible  <bruno@clisp.org>
79093         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
79094         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79095         * modules/inet_ntop (Depends-on): Add extensions.
79096         * modules/inet_pton (Depends-on): Likewise.
79097         Reported by Simon Josefsson.
79099 2008-04-29  Jim Meyering  <meyering@redhat.com>
79101         When the is more than one match in a block, match all of them.
79102         * build-aux/useless-if-before-free: Iterate through each block
79103         until there are no more matches.
79105         Fix broken useless-if-before-free script.
79106         * build-aux/useless-if-before-free: Fix typo: missing "?" after
79107         the expression to match cast of argument to free-like function.
79109 2008-04-29  Eric Blake  <ebb9@byu.net>
79111         Use new header.
79112         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
79114 2008-04-29  Jim Meyering  <meyering@redhat.com>
79116         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
79117         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
79118         by gnulib to exist and to declare e.g., inet_ntop.
79119         Don't include "inet_ntop.h", now removed.
79121         * m4/arpa_inet_h.m4: Remove trailing blanks.
79123 2008-04-29  Eric Blake  <ebb9@byu.net>
79125         Silence valgrind on safe reads beyond potential array bounds.
79126         * lib/rawmemchr.valgrind: New file.
79127         * lib/strchrnul.valgrind: Likewise.
79128         * modules/rawmemchr (Files): Distribute new file.
79129         * modules/strchrnul (Files): Likewise.
79130         Suggested by Bruno Haible.
79132 2008-04-29  Bruno Haible  <bruno@clisp.org>
79134         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
79135         (inet_ntop, inet_pton): Change portability warning's wording.
79136         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
79137         Invoke gl_CHECK_NEXT_HEADERS.
79138         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
79139         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
79140         set ARPA_INET_H.
79141         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
79142         * modules/arpa_inet (Description): No longer only for systems that
79143         lack it.
79144         (Depends-on): Add include_next.
79145         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
79146         HAVE_ARPA_INET_H.
79148 2008-04-29  Jim Meyering  <meyering@redhat.com>
79150         * modules/mkdir (License): Re-license as LGPLv2+.
79152 2008-04-29  Bruno Haible  <bruno@clisp.org>
79154         * modules/rawmemchr (Maintainer): Set to Eric.
79155         * modules/strchrnul (Maintainer): Likewise.
79157 2008-04-29  Simon Josefsson  <simon@josefsson.org>
79159         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
79160         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
79162         * modules/arpa_inet (arpa/inet.h): Use them.
79164 2008-04-28  Eric Blake  <ebb9@byu.net>
79166         Test getndelim2.
79167         * modules/getndelim2-tests: New file.
79168         * tests/test-getndelim2.c: Likewise.
79169         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
79170         stream.
79171         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
79173         * MODULES.html.sh: Document new module.
79175 2008-04-20  Bruno Haible  <bruno@clisp.org>
79177         * lib/c-stack.c (die): Use raise.
79178         * modules/c-stack (Depends-on): Add raise.
79180 2008-04-28  Bruno Haible  <bruno@clisp.org>
79182         Expect rpmatch to be declared.
79183         * lib/yesno.c (rpmatch): Remove declaration.
79185         Declare rpmatch.
79186         * lib/stdlib.in.h (rpmatch): New declaration.
79187         * lib/rpmatch.c: Include <stdlib.h> first.
79188         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
79189         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
79190         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
79191         HAVE_RPMATCH.
79192         * modules/rpmatch (Depends-on): Add stdlib, extensions.
79193         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
79194         (Include): Set to <stdlib.h>.
79195         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
79196         HAVE_RPMATCH.
79197         * NEWS: Document the change.
79199 2008-04-28  Bruno Haible  <bruno@clisp.org>
79201         Change rpmatch to use nl_langinfo when appropriate.
79202         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
79203         (N_): New macro.
79204         (localized_pattern): New function/macro.
79205         (try): Remove match, nomatch arguments. Copy the pattern into safe
79206         memory before caching it.
79207         (rpmatch): Use localized_pattern. Add translator comments.
79208         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
79209         Suggested by Eric Blake.
79210         * modules/rpmatch (Depends-on): Add stdbool.
79212 2008-04-28  Eric Blake  <ebb9@byu.net>
79214         Add rawmemchr module, matching glibc.
79215         * modules/string (Makefile.am): New indicator.
79216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
79217         * lib/string.in.h (rawmemchr): Declare when appropriate.
79218         * modules/rawmemchr: New file.
79219         * m4/rawmemchr.m4: Likewise.
79220         * lib/rawmemchr.c: Likewise.
79221         * modules/rawmemchr-tests: Likewise.
79222         * tests/test-rawmemchr.c: Likewise.
79223         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
79224         module.
79225         * modules/strchrnul (Depends-on): Add rawmemchr.
79226         * lib/strchrnul.c (strchrnul): Optimize a corner case.
79228         Whitespace cleanup.
79229         * tests/test-strchrnul.c: Reindent.
79230         * lib/strchrnul.c: Likewise.
79232         Optimize and test strchrnul.
79233         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
79234         * modules/strchrnul-tests: New file.
79235         * tests/test-strchrnul.c: Likewise.
79237         Remove intprops dependency.
79238         * modules/memchr (Depends-on): Remove intprops.
79239         * modules/memrchr (Depends-on): Likewise.
79240         * modules/memchr2 (Depends-on): Likewise.
79241         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
79242         * lib/memrchr.c (__memrchr): Likewise.
79243         * lib/memrchr2.c (memchr2): Likewise.
79244         Reported by Simon Josefsson.
79246 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79248         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
79249         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79251 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79253         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
79255         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
79257         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
79259         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
79260         declarations.
79261         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
79263         * m4/inet_pton.m4: Don't check for header files.
79265         * m4/inet_ntop.m4: Don't check for header files.
79267 2008-04-28  Simon Josefsson  <simon@josefsson.org>
79269         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
79270         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
79271         trigger for cygwin).
79272         Reported by Bruno Haible  <bruno@clisp.org>.
79274 2008-04-28  Bruno Haible  <bruno@clisp.org>
79276         * doc/posix-functions/strdup.texi: Mention mingw problem.
79278 2008-04-27  Bruno Haible  <bruno@clisp.org>
79280         * modules/stat-time-tests (Depends-on): Add sleep.
79281         * tests/test-stat-time.c (force_unlink): New function.
79282         (cleanup): Use it.
79283         (test_mtime): Remove the ctime related tests.
79284         (test_ctime): New function, containing the ctime related tests.
79285         (main): Call test_ctime, except on native Windows platforms.
79287 2008-04-27  Bruno Haible  <bruno@clisp.org>
79289         * lib/rpmatch.c (rpmatch): Add some comments.
79290         Reported by James Youngman <jay@gnu.org>.
79292 2008-04-27  Bruno Haible  <bruno@clisp.org>
79294         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
79295         quiet NaNs.
79297 2008-04-27  Bruno Haible  <bruno@clisp.org>
79299         Make test-yesno.sh work on mingw.
79300         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
79301         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
79302         (main): Set stdin to binary mode.
79303         * modules/yesno-tests (Depends-on): Add binary-io.
79305 2008-04-27  Bruno Haible  <bruno@clisp.org>
79307         Fix 'isfinite' on x86, x86_64, ia64 platforms.
79308         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
79309         argument that lie outside the IEEE 854 domain.
79310         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
79311         (gl_ISFINITE): Use it.
79312         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
79314 2008-04-27  Bruno Haible  <bruno@clisp.org>
79316         Allow local renaming in config.h.
79317         * lib/memrchr.c (memrchr): Don't undefine outside libc.
79319 2008-04-27  Bruno Haible  <bruno@clisp.org>
79321         * lib/memchr.c (__memchr): Change type of 'i'.
79322         * lib/memchr2.c (memchr2): Likewise.
79324 2008-04-26  Eric Blake  <ebb9@byu.net>
79325         and Bruno Haible  <bruno@clisp.org>
79327         Optimize and test memrchr.
79328         * modules/memrchr (Depends-on): Add intprops.
79329         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
79330         * modules/memrchr-tests: New file.
79331         * tests/test-memrchr.c: New file.
79333 2008-04-26  Bruno Haible  <bruno@clisp.org>
79335         Add tentative support for DragonFly BSD.
79336         * lib/stdio-impl.h: Add macros for DragonFly BSD.
79337         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
79338         fp.
79339         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79340         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
79341         * lib/fpurge.c (fpurge): Likewise.
79342         * lib/freadable.c (freaadable): Likewise.
79343         * lib/freadahead.c (freadahead): Likewise.
79344         * lib/freading.c (freading): Likewise.
79345         * lib/freadptr.c (freadptr): Likewise.
79346         * lib/freadseek.c (freadptrinc): Likewise.
79347         * lib/fseeko.c (fseeko): Likewise.
79348         * lib/fseterr.c (fseterr): Likewise.
79349         * lib/fwritable.c (fwritable): Likewise.
79350         * lib/fwriting.c (fwriting): Likewise.
79352 2008-04-26  Bruno Haible  <bruno@clisp.org>
79354         * lib/stdio-impl.h: New file.
79355         * lib/fbufmode.c: Include stdio-impl.h.
79356         (fbufmode): Use fp_, remove redundant #defines.
79357         * lib/fflush.c: Include stdio-impl.h.
79358         (clear_ungetc_buffer): Remove redundant #defines.
79359         * lib/fpurge.c: Include stdio-impl.h.
79360         (fpurge): Remove redundant #defines.
79361         * lib/freadable.c: Include stdio-impl.h.
79362         (freadable): Remove redundant #defines.
79363         * lib/freadahead.c: Include stdio-impl.h.
79364         (freadahead): Remove redundant #defines.
79365         * lib/freading.c: Include stdio-impl.h.
79366         (freading): Remove redundant #defines.
79367         * lib/freadptr.c: Include stdio-impl.h.
79368         (freadptr): Remove redundant #defines.
79369         * lib/freadseek.c: Include stdio-impl.h.
79370         (freadptrinc): Remove redundant #defines.
79371         * lib/fseeko.c: Include stdio-impl.h.
79372         (rpl_fseeko): Remove redundant #defines.
79373         * lib/fseterr.c: Include stdio-impl.h.
79374         (fseterr): Remove redundant #defines.
79375         * lib/fwritable.c: Include stdio-impl.h.
79376         (fwritable: Remove redundant #defines.
79377         * lib/fwriting.c: Include stdio-impl.h.
79378         (fwriting): Remove redundant #defines.
79379         * modules/fbufmode (Files): Add lib/stdio-impl.h.
79380         * modules/fflush (Files): Likewise.
79381         * modules/fpurge (Files): Likewise.
79382         * modules/freadable (Files): Likewise.
79383         * modules/freadahead (Files): Likewise.
79384         * modules/freading (Files): Likewise.
79385         * modules/freadptr (Files): Likewise.
79386         * modules/freadseek (Files): Likewise.
79387         * modules/fseeko (Files): Likewise.
79388         * modules/fseterr (Files): Likewise.
79389         * modules/fwritable (Files): Likewise.
79390         * modules/fwriting (Files): Likewise.
79392 2008-04-26  Bruno Haible  <bruno@clisp.org>
79394         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
79395         restore_seek_optimization, update_fpos_cache): New functions, extracted
79396         from rpl_fflush.
79397         (rpl_fflush): Use them.
79398         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
79399         (gl_REPLACE_FFLUSH): Use it.
79401 2008-04-26  Bruno Haible  <bruno@clisp.org>
79403         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
79404         on Solaris.
79405         * tests/test-xstrtoimax.sh: Likewise.
79406         * tests/test-xstrtoumax.sh: Likewise.
79407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79409 2008-04-26  Bruno Haible  <bruno@clisp.org>
79411         * modules/memchr-tests: New file.
79412         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
79414 2008-04-26  Eric Blake  <ebb9@byu.net>
79415             Bruno Haible  <bruno@clisp.org>
79417         * lib/memchr.c: Include intprops.h.
79418         (__memchr): Optimize parallel detection of matching bytes. Rename local
79419         variables. Add explanatory comments.
79421 2008-04-26  Bruno Haible  <bruno@clisp.org>
79423         Fix module 'memchr', broken since 2000-10-28.
79424         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
79426 2008-04-26  Bruno Haible  <bruno@clisp.org>
79428         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
79429         comments.
79431 2008-04-25  Eric Blake  <ebb9@byu.net>
79433         Use native fstatat on cygwin 1.7.0.
79434         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
79435         first.
79437 2008-04-23  Eric Blake  <ebb9@byu.net>
79439         Improve memchr2 performance.
79440         * lib/memchr2.c (memchr2): Further optimize parallel detection of
79441         NUL bytes.
79442         * modules/memchr2 (Depends-on): Use intprops.h.
79444 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79446         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
79447         an inline function instead of a CPP macro.  Patch by Ben Pfaff
79448         <blp@cs.stanford.edu>.
79450 2008-04-23  Simon Josefsson  <simon@josefsson.org>
79452         * lib/arpa_inet.in.h: New file.
79454         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
79455         (Makefile.am): Sed in substitute header file.
79457         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
79458         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
79460         * modules/inet_ntop (configure.ac): Use
79461         gl_ARPA_INET_MODULE_INDICATOR.
79463         * modules/inet_pton (configure.ac): Use
79464         gl_ARPA_INET_MODULE_INDICATOR.
79466 2008-04-22  Jim Meyering  <meyering@redhat.com>
79468         * modules/verify (License): Re-license as LGPLv2+.
79470 2008-04-22  Simon Josefsson  <simon@josefsson.org>
79472         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
79473         parameter to void* as per POSIX standard (MinGW uses char*).
79475 2008-04-21  Bruno Haible  <bruno@clisp.org>
79477         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79478         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79479         Define to replacements if REPLACE_ISWCNTRL is 1.
79480         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
79481         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
79482         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
79483         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
79484         what it fixes.
79485         * doc/posix-functions/iswalpha.texi: Likewise.
79486         * doc/posix-functions/iswblank.texi: Likewise.
79487         * doc/posix-functions/iswcntrl.texi: Likewise.
79488         * doc/posix-functions/iswdigit.texi: Likewise.
79489         * doc/posix-functions/iswgraph.texi: Likewise.
79490         * doc/posix-functions/iswlower.texi: Likewise.
79491         * doc/posix-functions/iswprint.texi: Likewise.
79492         * doc/posix-functions/iswpunct.texi: Likewise.
79493         * doc/posix-functions/iswspace.texi: Likewise.
79494         * doc/posix-functions/iswupper.texi: Likewise.
79495         * doc/posix-functions/iswxdigit.texi: Likewise.
79496         Reported by Alain Guibert.
79498 2008-04-21  Bruno Haible  <bruno@clisp.org>
79500         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
79501         Patch by Alain Guibert.
79503 2008-04-21  Bruno Haible  <bruno@clisp.org>
79505         Fix test failures on mingw.
79506         * tests/test-xstrtol.c (print_no_progname): New function.
79507         (main): Install it in error_print_progname hook.
79508         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
79509         * tests/test-xstrtoimax.sh: Likewise.
79510         * tests/test-xstrtoumax.sh: Likewise.
79512 2008-04-21  Bruno Haible  <bruno@clisp.org>
79514         Fix test failure on mingw.
79515         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
79517 2008-04-21  Bruno Haible  <bruno@clisp.org>
79519         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
79520         Actually assign a value.
79522 2008-04-20  Bruno Haible  <bruno@clisp.org>
79524         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
79525         take 2.
79526         * lib/canonicalize.c (canonicalize_file_name): Elide if the
79527         'canonicalize-lgpl' module is also used.
79528         * lib/canonicalize-lgpl.c: Undo last change.
79529         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
79531 2008-04-20  Bruno Haible  <bruno@clisp.org>
79533         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
79534         config.h. Provide _mkdir based fallback for mingw.
79535         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
79536         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
79537         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
79538         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
79539         rather than defining mkdir in config.h.
79540         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
79541         (gl_SYS_STAT_H_DEFAULTS): New macro.
79542         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
79543         HAVE_IO_H any more.
79544         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
79545         HAVE_DECL_MKDIR and HAVE_IO_H.
79547 2008-04-20  Bruno Haible  <bruno@clisp.org>
79549         * lib/isapipe.c: Port to native Windows platforms.
79551 2008-04-20  Bruno Haible  <bruno@clisp.org>
79553         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
79555 2008-04-21  Eric Blake  <ebb9@byu.net>
79557         Work around preprocessors that don't handle UINTMAX_MAX.
79558         * lib/memchr2.c (memchr2): Avoid embedded #if.
79559         Reported by Alain Guibert, fix suggested by Bruno Haible.
79561 2008-04-21  Simon Josefsson  <simon@josefsson.org>
79563         * doc/posix-functions/strftime.texi (strftime): Explain better
79564         Windows incompatibility.  Suggested by Micah Cowan
79565         <micah@cowan.name>.
79567 2008-04-20  Bruno Haible  <bruno@clisp.org>
79569         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
79570         unistr/u8-mblen.
79572 2008-04-20  Bruno Haible  <bruno@clisp.org>
79574         Fix test failure on platforms with non-GNU iconv.
79575         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
79576         (U_TO_U8): Use it, rather than u16_to_u8.
79577         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
79578         units at the end of the input string.
79579         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
79581 2008-04-20  Bruno Haible  <bruno@clisp.org>
79583         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
79584         when the resulting length is 0.
79585         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
79587 2008-04-20  Bruno Haible  <bruno@clisp.org>
79589         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
79590         works.
79591         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
79593 2008-04-20  Bruno Haible  <bruno@clisp.org>
79595         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
79596         * modules/tsearch-tests (configure.ac): Test for initstate function.
79598 2008-04-20  Bruno Haible  <bruno@clisp.org>
79600         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
79601         for nlink_t if missing.
79602         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
79604 2008-04-19  Bruno Haible  <bruno@clisp.org>
79606         Work around snprintf bug on Linux libc5.
79607         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
79608         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
79609         gl_SNPRINTF_SIZE1.
79610         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
79611         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
79612         that test failed.
79613         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
79614         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
79615         * modules/snprintf (Files): Add m4/printf.m4.
79616         * modules/vsnprintf (Files): Likewise.
79617         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
79618         * doc/posix-functions/vsnprintf.texi: Likewise.
79620 2008-04-19  Bruno Haible  <bruno@clisp.org>
79622         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
79623         from 0.0058 to less than 10^-7.
79625 2008-04-19  Bruno Haible  <bruno@clisp.org>
79627         Fix rounding when a precision is given.
79628         * lib/vasnprintf.c (is_borderline): New function.
79629         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
79630         9...9x.
79631         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
79632         %e, %g.
79633         * tests/test-vasprintf-posix.c (test_function): Likewise.
79634         * tests/test-snprintf-posix.h (test_function): Likewise.
79635         * tests/test-sprintf-posix.h (test_function): Likewise.
79636         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
79637         * tests/test-printf-posix.h (test_function): Likewise.
79638         * tests/test-printf-posix.output: Update.
79639         Reported by John Darrington <john@darrington.wattle.id.au> via
79640         Ben Pfaff <blp@cs.stanford.edu>.
79642 2008-04-18  Simon Josefsson  <simon@josefsson.org>
79644         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
79645         Suggested by Bruno Haible <bruno@clisp.org>.
79647 2008-04-17  Bruno Haible  <bruno@clisp.org>
79649         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
79650         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
79651         implementation.
79652         Patch by Bruce Merry <bmerry@gmail.com>.
79654 2008-04-17  Simon Josefsson  <simon@josefsson.org>
79656         * doc/posix-functions/strftime.texi (strftime): Mention that %e
79657         doesn't work under Windows.
79659 2008-04-16  Bruno Haible  <bruno@clisp.org>
79661         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
79662         New macros.
79663         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
79664         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
79665         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
79666         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
79667         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
79668         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
79669         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
79670         macros.
79671         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
79672         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
79673         Northern Sotho, Uighur.
79675 2008-04-16  Bruno Haible  <bruno@clisp.org>
79677         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
79678         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
79679         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
79680         Reported by Daniel Bergström <daniel@octocode.com>.
79682 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
79683             Bruno Haible  <bruno@clisp.org>
79685         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
79686         function.
79687         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
79688         New functions, mostly extracted from gl_locale_name_default.
79689         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
79691 2008-04-16  Eric Blake  <ebb9@byu.net>
79693         Adjust strtod detection to catch glibc 2.7 bug.
79694         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
79695         Reported by John Gatewood Ham.
79697 2008-04-16  Bruno Haible  <bruno@clisp.org>
79699         Add tentative support for Linux libc5.
79700         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
79701         * lib/fpurge.c (fpurge): Likewise.
79702         * lib/freadable.c (freadable): Likewise.
79703         * lib/freadahead.c (freadahead): Likewise.
79704         * lib/freading.c (freading): Likewise.
79705         * lib/freadptr.c (freadptr): Likewise.
79706         * lib/freadseek.c (freadptrinc): Likewise.
79707         * lib/fseeko.c (rpl_fseeko): Likewise.
79708         * lib/fseterr.c (fseterr): Likewise.
79709         * lib/fwritable.c (fwritable): Likewise.
79710         * lib/fwriting.c (fwriting): Likewise.
79711         Reported by Alain Guibert <alguibert+bts@free.fr>.
79713 2008-04-15  Bruno Haible  <bruno@clisp.org>
79715         * modules/mathl (configure.ac): Define module indicator.
79717 2008-04-15  Bruno Haible  <bruno@clisp.org>
79719         * lib/logl.c (logl): Remove unused variables.
79721 2008-04-15  Bruno Haible  <bruno@clisp.org>
79723         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
79724         fails.
79726 2008-04-15  Bruno Haible  <bruno@clisp.org>
79728         * lib/trim.c (trim2): Fix argument of isspace() macro.
79730 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
79732         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
79733         to 0.
79734         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
79736 2008-04-14  Bruno Haible  <bruno@clisp.org>
79738         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
79739         AC_LANG_PROGRAM argument.
79740         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
79741         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
79742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
79743         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
79744         * m4/math_h.m4 (gl_MATH_H): Likewise.
79745         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
79746         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
79747         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
79748         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
79749         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79750         * m4/regex.m4 (gl_REGEX): Likewise.
79751         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
79752         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
79753         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
79754         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
79755         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
79756         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
79757         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
79758         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
79760 2008-04-14  Jim Meyering  <meyering@redhat.com>
79762         test-strtod: fix typos: s/abs/fabs/
79763         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
79765 2008-04-13  Bruno Haible  <bruno@clisp.org>
79767         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
79768         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
79769         module is also used and while not building the reloc-wrapper.
79771 2008-04-13  Bruno Haible  <bruno@clisp.org>
79773         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
79775 2008-04-13  Bruno Haible  <bruno@clisp.org>
79777         Fix AIX compilation failure introduced on 2008-04-02.
79778         * tests/test-frexp.c (exp): Undefine before redefining.
79779         * tests/test-frexpl.c (exp): Likewise.
79781 2008-04-13  Bruno Haible  <bruno@clisp.org>
79783         Work around a HP-UX stdio bug.
79784         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
79785         * tests/test-ftello.c (main): Likewise.
79786         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
79787         * doc/posix-functions/ftello.texi: Likewise.
79789 2008-04-13  Bruno Haible  <bruno@clisp.org>
79791         Make test-signbit pass on HP-UX/hppa.
79792         * tests/test-signbit.c (minus_zerol): New variable.
79793         (test_signbitl): Use it.
79795 2008-04-13  Bruno Haible  <bruno@clisp.org>
79797         Make truncl work on OSF/1 4.0.
79798         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
79799         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79800         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
79801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
79802         HAVE_DECL_TRUNCL.
79803         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
79804         HAVE_DECL_TRUNCL.
79805         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
79807 2008-04-13  Bruno Haible  <bruno@clisp.org>
79809         * lib/unictype.h: Remove trailing comma from enumeration definitions.
79811 2008-04-13  Bruno Haible  <bruno@clisp.org>
79813         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
79814         expression, so as to avoid HP-UX 11 cc compiler bug.
79816 2008-04-13  Bruno Haible  <bruno@clisp.org>
79818         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
79820 2008-04-13  Bruno Haible  <bruno@clisp.org>
79822         * lib/git-merge-changelog.c: Remove empty declaration outside of
79823         functions.
79825 2008-04-13  Bruno Haible  <bruno@clisp.org>
79827         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
79829 2008-04-13  Bruno Haible  <bruno@clisp.org>
79831         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
79832         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
79833         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
79834         also if it exists but lacks definitions of the SHUT_* macros.
79835         * modules/sys_socket (Description): Update.
79836         Reported by Elbert Pol <e.pol@chello.nl>.
79838 2008-04-13  Bruno Haible  <bruno@clisp.org>
79840         * lib/localcharset.c (OS2): Don't redefine if already defined.
79841         Reported by Elbert Pol <e.pol@chello.nl>.
79843 2008-04-13  Bruno Haible  <bruno@clisp.org>
79845         * lib/binary-io.h [__EMX__]: Include <io.h>.
79846         Reported by Elbert Pol <e.pol@chello.nl>.
79848 2008-04-12  Bruno Haible  <bruno@clisp.org>
79850         * lib/fpucw.h: Enable the definitions also for x86_64.
79851         Needed for NetBSD/x86_64.
79852         Reported by Thomas Klausner <tk@giga.or.at>.
79854 2008-04-12  Bruno Haible  <bruno@clisp.org>
79856         * tests/test-strtod.c: Include isnand.h.
79857         (main): Use isnand instead of isnan.
79858         Reported by Jim Meyering.
79860 2008-04-12  Bruno Haible  <bruno@clisp.org>
79862         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
79863         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
79865 2008-04-12  Jim Meyering  <meyering@redhat.com>
79867         * m4/math_h.m4 (gl_MATH_H): Fix typos.
79869 2008-04-12  Bruno Haible  <bruno@clisp.org>
79871         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
79872         Reported by Elbert Pol <e.pol@chello.nl>.
79874 2008-04-12  Eric Blake  <ebb9@byu.net>
79876         Work around Solaris 10 math.h bug.
79877         * m4/math_h.m4 (gl_MATH_H): Check for bug.
79878         (gl_MATH_H_DEFAULTS): Set up default.
79879         * modules/math (Makefile.am): Replace new indicators.
79880         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
79881         * tests/test-math.c (main): Test this.
79882         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
79883         * doc/posix-headers/math.texi (math.h): Mention bug.
79884         Reported by Nelson H. F. Beebe and Jim Meyering.
79886 2008-04-11  Bruno Haible  <bruno@clisp.org>
79888         Adapt to future versions of Apple GCC.
79889         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
79890         Reported by Peter O'Gorman <peter@pogma.com>.
79892 2008-04-11  Bruno Haible  <bruno@clisp.org>
79894         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
79896 2008-04-11  Bruno Haible  <bruno@clisp.org>
79898         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
79900         * modules/getaddrinfo-tests (Makefile.am): Define
79901         test_getaddrinfo_LDADD.
79903 2008-04-11  Bruno Haible  <bruno@clisp.org>
79905         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
79906         (init): Fix syntax error.
79907         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
79908         is declared.
79910 2008-04-11  Bruno Haible  <bruno@clisp.org>
79912         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
79913         * modules/glob (Depends-on): Add stdbool.
79915 2008-04-11  Bruno Haible  <bruno@clisp.org>
79917         * lib/trim.c: Include <string.h>.
79919 2008-04-11  Eric Blake  <ebb9@byu.net>
79921         Avoid compile failure on OS/2.
79922         * lib/regex_internal.h (internal_function): Disable optimization
79923         on OS/2 (__EMX__), where it caused compiler error.
79924         Reported by Elbert Pol.
79926 2008-04-11  Bruno Haible  <bruno@clisp.org>
79928         Flush the standard error stream before aborting. Needed on mingw.
79929         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
79930         * tests/test-array_list.c (ASSERT): Likewise.
79931         * tests/test-array_oset.c (ASSERT): Likewise.
79932         * tests/test-avltree_list.c (ASSERT): Likewise.
79933         * tests/test-avltree_oset.c (ASSERT): Likewise.
79934         * tests/test-avltreehash_list.c (ASSERT): Likewise.
79935         * tests/test-binary-io.c (ASSERT): Likewise.
79936         * tests/test-byteswap.c (ASSERT): Likewise.
79937         * tests/test-c-ctype.c (ASSERT): Likewise.
79938         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
79939         * tests/test-c-strcasestr.c (ASSERT): Likewise.
79940         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
79941         * tests/test-c-strstr.c (ASSERT): Likewise.
79942         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
79943         * tests/test-canonicalize.c (ASSERT): Likewise.
79944         * tests/test-carray_list.c (ASSERT): Likewise.
79945         * tests/test-ceilf1.c (ASSERT): Likewise.
79946         * tests/test-ceilf2.c (ASSERT): Likewise.
79947         * tests/test-ceill.c (ASSERT): Likewise.
79948         * tests/test-count-one-bits.c (ASSERT): Likewise.
79949         * tests/test-fbufmode.c (ASSERT): Likewise.
79950         * tests/test-fflush2.c (ASSERT): Likewise.
79951         * tests/test-floorf1.c (ASSERT): Likewise.
79952         * tests/test-floorf2.c (ASSERT): Likewise.
79953         * tests/test-floorl.c (ASSERT): Likewise.
79954         * tests/test-fopen.c (ASSERT): Likewise.
79955         * tests/test-fpending.c (ASSERT): Likewise.
79956         * tests/test-fprintf-posix.c (ASSERT): Likewise.
79957         * tests/test-fpurge.c (ASSERT): Likewise.
79958         * tests/test-freadable.c (ASSERT): Likewise.
79959         * tests/test-freadahead.c (ASSERT): Likewise.
79960         * tests/test-freading.c (ASSERT): Likewise.
79961         * tests/test-freadptr.c (ASSERT): Likewise.
79962         * tests/test-freadptr2.c (ASSERT): Likewise.
79963         * tests/test-freadseek.c (ASSERT): Likewise.
79964         * tests/test-freopen.c (ASSERT): Likewise.
79965         * tests/test-frexp.c (ASSERT): Likewise.
79966         * tests/test-frexpl.c (ASSERT): Likewise.
79967         * tests/test-fseek.c (ASSERT): Likewise.
79968         * tests/test-fseeko.c (ASSERT): Likewise.
79969         * tests/test-fstrcmp.c (ASSERT): Likewise.
79970         * tests/test-ftell.c (ASSERT): Likewise.
79971         * tests/test-ftello.c (ASSERT): Likewise.
79972         * tests/test-func.c (ASSERT): Likewise.
79973         * tests/test-fwritable.c (ASSERT): Likewise.
79974         * tests/test-fwriting.c (ASSERT): Likewise.
79975         * tests/test-getdelim.c (ASSERT): Likewise.
79976         * tests/test-getline.c (ASSERT): Likewise.
79977         * tests/test-i-ring.c (ASSERT): Likewise.
79978         * tests/test-iconv-utf.c (ASSERT): Likewise.
79979         * tests/test-iconv.c (ASSERT): Likewise.
79980         * tests/test-isfinite.c (ASSERT): Likewise.
79981         * tests/test-isnand.c (ASSERT): Likewise.
79982         * tests/test-isnanf.c (ASSERT): Likewise.
79983         * tests/test-isnanl.h (ASSERT): Likewise.
79984         * tests/test-ldexpl.c (ASSERT): Likewise.
79985         * tests/test-linked_list.c (ASSERT): Likewise.
79986         * tests/test-linkedhash_list.c (ASSERT): Likewise.
79987         * tests/test-localename.c (ASSERT): Likewise.
79988         * tests/test-lseek.c (ASSERT): Likewise.
79989         * tests/test-mbscasecmp.c (ASSERT): Likewise.
79990         * tests/test-mbscasestr1.c (ASSERT): Likewise.
79991         * tests/test-mbscasestr2.c (ASSERT): Likewise.
79992         * tests/test-mbscasestr3.c (ASSERT): Likewise.
79993         * tests/test-mbscasestr4.c (ASSERT): Likewise.
79994         * tests/test-mbschr.c (ASSERT): Likewise.
79995         * tests/test-mbscspn.c (ASSERT): Likewise.
79996         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
79997         * tests/test-mbspbrk.c (ASSERT): Likewise.
79998         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
79999         * tests/test-mbsrchr.c (ASSERT): Likewise.
80000         * tests/test-mbsspn.c (ASSERT): Likewise.
80001         * tests/test-mbsstr1.c (ASSERT): Likewise.
80002         * tests/test-mbsstr2.c (ASSERT): Likewise.
80003         * tests/test-mbsstr3.c (ASSERT): Likewise.
80004         * tests/test-memchr2.c (ASSERT): Likewise.
80005         * tests/test-memmem.c (ASSERT): Likewise.
80006         * tests/test-open.c (ASSERT): Likewise.
80007         * tests/test-printf-frexp.c (ASSERT): Likewise.
80008         * tests/test-printf-frexpl.c (ASSERT): Likewise.
80009         * tests/test-printf-posix.c (ASSERT): Likewise.
80010         * tests/test-quotearg.c (ASSERT): Likewise.
80011         * tests/test-rbtree_list.c (ASSERT): Likewise.
80012         * tests/test-rbtree_oset.c (ASSERT): Likewise.
80013         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
80014         * tests/test-round1.c (ASSERT): Likewise.
80015         * tests/test-roundf1.c (ASSERT): Likewise.
80016         * tests/test-roundl.c (ASSERT): Likewise.
80017         * tests/test-signbit.c (ASSERT): Likewise.
80018         * tests/test-sleep.c (ASSERT): Likewise.
80019         * tests/test-snprintf-posix.c (ASSERT): Likewise.
80020         * tests/test-snprintf.c (ASSERT): Likewise.
80021         * tests/test-sprintf-posix.c (ASSERT): Likewise.
80022         * tests/test-stat-time.c (ASSERT): Likewise.
80023         * tests/test-strcasestr.c (ASSERT): Likewise.
80024         * tests/test-strerror.c (ASSERT): Likewise.
80025         * tests/test-striconv.c (ASSERT): Likewise.
80026         * tests/test-striconveh.c (ASSERT): Likewise.
80027         * tests/test-striconveha.c (ASSERT): Likewise.
80028         * tests/test-strsignal.c (ASSERT): Likewise.
80029         * tests/test-strstr.c (ASSERT): Likewise.
80030         * tests/test-strtod.c (ASSERT): Likewise.
80031         * tests/test-trunc1.c (ASSERT): Likewise.
80032         * tests/test-trunc2.c (ASSERT): Likewise.
80033         * tests/test-truncf1.c (ASSERT): Likewise.
80034         * tests/test-truncf2.c (ASSERT): Likewise.
80035         * tests/test-truncl.c (ASSERT): Likewise.
80036         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
80037         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
80038         * tests/test-vasnprintf.c (ASSERT): Likewise.
80039         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
80040         * tests/test-vasprintf.c (ASSERT): Likewise.
80041         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
80042         * tests/test-vprintf-posix.c (ASSERT): Likewise.
80043         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
80044         * tests/test-vsnprintf.c (ASSERT): Likewise.
80045         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
80046         * tests/test-wcwidth.c (ASSERT): Likewise.
80047         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
80048         * tests/test-xprintf-posix.c (ASSERT): Likewise.
80049         * tests/test-xvasprintf.c (ASSERT): Likewise.
80050         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
80051         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
80052         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
80053         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
80054         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
80055         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
80056         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
80057         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
80058         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
80059         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
80060         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
80061         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
80062         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
80063         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
80064         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
80065         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
80066         * tests/unictype/test-block_list.c (ASSERT): Likewise.
80067         * tests/unictype/test-block_of.c (ASSERT): Likewise.
80068         * tests/unictype/test-block_test.c (ASSERT): Likewise.
80069         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
80070         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
80071         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
80072         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
80073         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
80074         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
80075         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
80076         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
80077         * tests/unictype/test-combining.c (ASSERT): Likewise.
80078         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
80079         * tests/unictype/test-digit.c (ASSERT): Likewise.
80080         * tests/unictype/test-mirror.c (ASSERT): Likewise.
80081         * tests/unictype/test-numeric.c (ASSERT): Likewise.
80082         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
80083         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
80084         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
80085         * tests/unictype/test-scripts.c (ASSERT): Likewise.
80086         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
80087         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
80088         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
80089         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
80090         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
80091         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
80092         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
80093         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
80094         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
80095         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
80096         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
80097         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
80098         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
80099         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
80100         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
80101         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
80102         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
80103         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
80104         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
80105         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
80106         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
80107         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
80108         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
80109         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
80110         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
80111         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
80112         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
80113         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
80114         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
80115         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
80116         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
80117         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
80118         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
80119         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
80120         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
80121         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
80122         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
80123         Reported by Eric Blake.
80125 2008-04-11  Bruno Haible  <bruno@clisp.org>
80127         * lib/wchar.in.h: Tweak comment.
80129 2008-04-11  Bruno Haible  <bruno@clisp.org>
80131         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
80132         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
80133         gl_COMMON.
80134         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
80136 2008-04-11  Bruno Haible  <bruno@clisp.org>
80138         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
80140 2008-04-11  Simon Josefsson  <simon@josefsson.org>
80142         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
80143         of attempting to use non-existing /dev/*random.  Based on patch
80144         from Adam Strzelecki <ono@java.pl> in
80145         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
80147 2008-04-08  Bruno Haible  <bruno@clisp.org>
80149         Add tentative support for emx+gcc.
80150         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
80151         * lib/fpurge.c (fpurge): Likewise.
80152         * lib/freadable.c (freadable): Likewise.
80153         * lib/freadahead.c (freadahead): Likewise.
80154         * lib/freading.c (freading): Likewise.
80155         * lib/freadptr.c (freadptr): Likewise.
80156         * lib/freadseek.c (freadptrinc): Likewise.
80157         * lib/fseeko.c (rpl_fseeko): Likewise.
80158         * lib/fseterr.c (fseterr): Likewise.
80159         * lib/fwritable.c (fwritable): Likewise.
80160         * lib/fwriting.c (fwriting): Likewise.
80161         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
80163 2008-04-09  Eric Blake  <ebb9@byu.net>
80165         Avoid some autoconf warnings.
80166         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
80167         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
80168         * m4/afs.m4 (gl_AFS): Likewise.
80169         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
80170         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
80171         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80172         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
80173         (gl_INTEGER_TYPE_SUFFIX): Likewise.
80174         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
80175         (AC_CHECK_DECLS_ONCE): Likewise.
80176         Rename file...
80177         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
80178         gnulib-tool requires autoconf 2.59 or better.
80179         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
80181 2008-04-08  Eric Blake  <ebb9@byu.net>
80183         Use 'git describe --match' if present (added in git 1.5.5).
80184         * build-aux/git-version-gen: Limit result to tags that match 'v*'
80185         if possible.
80187 2008-04-08  Bruno Haible  <bruno@clisp.org>
80189         Add tentative support for OpenServer.
80190         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
80191         _ptr, _cnt.
80192         * lib/fpurge.c (fpurge): Likewise.
80193         * lib/freadable.c (freadable): Likewise.
80194         * lib/freadahead.c (freadahead): Likewise.
80195         * lib/freading.c (freading): Likewise.
80196         * lib/freadptr.c (freadptr): Likewise.
80197         * lib/freadseek.c (freadptrinc): Likewise.
80198         * lib/fseeko.c (rpl_fseeko): Likewise.
80199         * lib/fseterr.c (fseterr): Likewise.
80200         * lib/fwritable.c (fwritable): Likewise.
80201         * lib/fwriting.c (fwriting): Likewise.
80202         Reported by Roger Cornelius <rac@tenzing.org> and
80203         Brian K. White <brian@aljex.com>.
80205 2008-04-06  Jim Meyering  <meyering@redhat.com>
80207         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
80209 2008-04-06  Bruno Haible  <bruno@clisp.org>
80211         Avoid possible error with non-ASCII bytes in UTF-8 locales.
80212         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
80213         * tests/test-printf-posix.sh: Likewise.
80214         * tests/test-vfprintf-posix.sh: Likewise.
80215         * tests/test-vprintf-posix.sh: Likewise.
80216         * tests/test-xprintf-posix.sh: Likewise.
80218 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80220         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
80221         hide error from 'ls', needed on OS/2.
80222         Report by Elbert Pol <elbert.pol@gmail.com>.
80224 2008-04-04  Eric Blake  <ebb9@byu.net>
80226         Make test-fseeko.c failures meaningful.
80227         * tests/test-fseeko.c: Print line number on failure.
80228         * tests/test-fseek.c: Likewise.
80229         Reported by Nelson H. F. Beebe.
80231         Improve strtod bug detection check.
80232         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
80233         required for Solaris 10.
80234         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
80236 2008-04-04  Bruno Haible  <bruno@clisp.org>
80238         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
80239         by m4/setenv.m4.
80241 2008-04-03  Eric Blake  <ebb9@byu.net>
80243         Ensure sane .version contents.
80244         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
80245         version string.
80246         * build-aux/git-version-gen: Improve documentation.
80248         Make GNU make output nicer.
80249         * top/GNUmakefile [!_have-Makefile]: Add dependency on
80250         MAKECMDGOALS to enforce message for all command line targets.  Set
80251         srcdir for use in maint.mk.
80253         Another maintainer tweak.
80254         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
80255         a target that regenerates version.
80257 2008-04-03  Jim Meyering  <meyering@redhat.com>
80259         vc-list-files: don't cause coreutils "make po-check" failure
80260         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
80262 2008-04-03  Eric Blake  <ebb9@byu.net>
80264         Allow VPATH usage of vc-list-files.
80265         * build-aux/vc-list-files (scriptversion): Add timestamp.
80266         (options): Add --help, --version, -C.
80267         (CVS): Support installed cvsu.
80269 2008-04-02  Bruno Haible  <bruno@clisp.org>
80271         Avoid some "statement with no effect" warnings from gcc.
80272         * tests/test-wctype.c (main): Explicitly ignore unused values.
80273         Reported by Jim Meyering.
80275 2008-04-02  Jim Meyering  <meyering@redhat.com>
80277         Avoid some warnings from "gcc -Wshadow".
80278         * tests/test-frexp.c (exp): Define to a different identifier.
80279         * tests/test-frexpl.c (exp): Likewise.
80281 2008-04-03  Jim Meyering  <meyering@redhat.com>
80283         bootstrap: remove dangling *.[ch] symlinks from lib
80284         * build-aux/bootstrap [dangling symlink removal]: Move find's
80285         -depth option to precede all others, to avoid a warning.
80286         Remove *.[ch] files too, and from "$source_base" (usually lib/).
80288 2008-04-02  Bruno Haible  <bruno@clisp.org>
80290         Avoid some warnings from "gcc -Wshadow".
80291         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
80292         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
80293         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
80294         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
80295         Reported by Jim Meyering.
80297 2008-04-01  Bruno Haible  <bruno@clisp.org>
80299         Fix test to work on IRIX 6.5 with cc.
80300         * tests/test-math.c (numeric_equal): New function.
80301         (main): Use it.
80303 2008-04-01  Bruno Haible  <bruno@clisp.org>
80305         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
80307 2008-04-01  Bruno Haible  <bruno@clisp.org>
80309         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
80310         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80311         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
80312         (Depends-on): Remove math.
80314         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
80315         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80316         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
80317         (Depends-on): Remove math.
80319         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
80320         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80321         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
80322         (Depends-on): Remove math.
80323         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
80324         (Depends-on): Remove math.
80326         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
80327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
80328         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
80329         (Depends-on): Remove math.
80330         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
80331         (Depends-on): Remove math.
80333         * tests/test-round1.c: Include nan.h.
80334         (main): Use NaNd instead of NAN.
80335         * modules/round-tests (Files): Add tests/nan.h.
80337         * tests/test-trunc1.c: Include nan.h.
80338         (main): Use NaNd instead of NAN.
80339         * modules/trunc-tests (Files): Add tests/nan.h.
80341         * tests/test-roundf1.c: Include nan.h.
80342         (main): Use NaNf instead of NAN.
80343         * modules/roundf-tests (Files): Add tests/nan.h.
80345         * tests/test-truncf1.c: Include nan.h.
80346         (main): Use NaNf instead of NAN.
80347         * modules/truncf-tests (Files): Add tests/nan.h.
80349         * tests/test-ceilf1.c: Include nan.h.
80350         (main): Use NaNf instead of NAN.
80351         * modules/ceilf-tests (Files): Add tests/nan.h.
80353         * tests/test-floorf1.c: Include nan.h.
80354         (main): Use NaNf instead of NAN.
80355         * modules/floorf-tests (Files): Add tests/nan.h.
80357         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
80358         (main): Use NaNf instead of NAN.
80359         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
80361         * tests/test-isnand.c: Include nan.h instead of <math.h>.
80362         (main): Use NaNd instead of NAN.
80363         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
80365         * tests/test-frexp.c: Include nan.h.
80366         (main): Use NaNd instead of NAN.
80367         * modules/frexp-tests (Files): Add tests/nan.h.
80369         * lib/isnan.c: Don't include <math.h>.
80370         (FUNC): Don't use NAN macro.
80371         * modules/isnand-nolibm (Depends-on): Remove math.
80372         * modules/isnanf-nolibm (Depends-on): Remove math.
80373         * modules/isnanl (Depends-on): Remove math.
80374         * modules/isnanl-nolibm (Depends-on): Remove math.
80376         * tests/nan.h: New file.
80378 2008-04-01  Eric Blake  <ebb9@byu.net>
80380         Fix typos.
80381         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
80382         values to be the right type.
80384         For now, cater to gnulib strtod inaccuracies.
80385         * tests/test-strtod.c (main): Allow 1-ulp error on expected
80386         fractional results.  While not as nice from a QoI perspective, it
80387         is a quicker patch than correctly implementing decimal to binary
80388         rounding.
80390 2008-03-31  Eric Blake  <ebb9@byu.net>
80392         Guarantee a definition of NAN.
80393         * lib/math.in.h (NAN): Define if missing.
80394         * tests/test-math.c (main): Test it.
80395         * doc/posix-headers/math.texi (math.h): Document this.
80396         * lib/isnan.c (rpl_isnand): Use it.
80397         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
80398         * tests/test-floorf1.c (NaN): Likewise.
80399         * tests/test-frexp.c (NaN): Likewise.
80400         * tests/test-isnand.c (NaN): Likewise.
80401         * tests/test-isnanf.c (NaN): Likewise.
80402         * tests/test-round1.c (NaN): Likewise.
80403         * tests/test-roundf1.c (NaN): Likewise.
80404         * tests/test-snprintf-posix.h (NaN): Likewise.
80405         * tests/test-sprintf-posix.h (NaN): Likewise.
80406         * tests/test-trunc1.c (NaN): Likewise.
80407         * tests/test-truncf1.c (NaN): Likewise.
80408         * tests/test-vasnprintf-posix.c (NaN): Likewise.
80409         * tests/test-vasprintf-posix.c (NaN): Likewise.
80410         * modules/isnand-nolibm (Depends-on): Add math.
80411         * modules/isnanf-nolibm (Depends-on): Likewise.
80412         * modules/isnanl (Depends-on): Likewise.
80413         * modules/isnanl-nolibm (Depends-on): Likewise.
80414         * modules/snprintf-posix-tests (Depends-on): Likewise.
80415         * modules/sprintf-posix-tests (Depends-on): Likewise.
80416         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
80417         * modules/vsprintf-posix-tests (Depends-on): Likewise.
80418         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
80419         * modules/vasprintf-posix-tests (Depends-on): Likewise.
80421 2008-03-31  Bruno Haible  <bruno@clisp.org>
80423         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
80424         * doc/posix-functions/strtod.texi: Likewise.
80426 2008-03-31  Bruno Haible  <bruno@clisp.org>
80428         * tests/test-strtod.c (main): Don't use C99 syntax.
80430 2008-03-31  Bruno Haible  <bruno@clisp.org>
80432         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
80433         Reported by Eric Blake.
80435 2008-03-31  Jim Meyering  <meyering@redhat.com>
80437         Don't compare actual signbit return values.
80438         * tests/test-strtod.c (main): Rather, compare only their
80439         zero/non-zero nature.
80441 2008-03-31  Eric Blake  <ebb9@byu.net>
80443         More strtod documentation.
80444         * doc/posix-functions/strtod.texi (strtod): Interpret more test
80445         failures as distinct bugs.
80447 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
80449         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
80450         Problem reported by Erik Benada in
80451         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
80453 2008-03-30  Bruno Haible  <bruno@clisp.org>
80455         * tests/test-strtod.c: Add comments about which assertion fails on which
80456         platform.
80457         * doc/posix-functions/strtod.texi: Add info about many more platforms.
80459 2008-03-30  Eric Blake  <ebb9@byu.net>
80461         Test signbit behavior on zeros.
80462         * tests/test-signbit.c (test_signbitf): Add tests for zero.
80463         (test_signbitd, test_signbitl): Likewise.
80465         More strtod touchups.
80466         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
80467         sign of negative underflow, for now.  Use .5, not .1.
80468         * doc/posix-functions/strtod.texi (strtod): Mention these
80469         limitations.
80470         Reported by Jim Meyering.
80472 2008-03-30  Bruno Haible  <bruno@clisp.org>
80474         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
80475         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
80477 2008-03-30  Bruno Haible  <bruno@clisp.org>
80479         Avoid failure when attempting to return empty iconv results on some
80480         platforms.
80481         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
80482         allocation, don't report ENOMEM when the resulting string is empty.
80484 2008-03-30  Bruno Haible  <bruno@clisp.org>
80486         Fix buffer overrun.
80487         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
80488         Don't consider the width for tmp_length. Check count against tmp_length
80489         before doing the padding. Ensure enough allocation during padding.
80491 2008-03-30  Eric Blake  <ebb9@byu.net>
80493         strtod touchups.
80494         * lib/strtod.c (strtod): Avoid compiler warnings.
80495         Reported by Jim Meyering.
80497 2008-03-30  Bruno Haible  <bruno@clisp.org>
80499         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
80500         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
80501         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
80502         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
80503         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
80504         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
80505         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
80506         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
80508         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
80509         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
80510         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
80511         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
80512         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
80513         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
80514         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
80515         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
80517         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
80518         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
80519         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
80520         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
80521         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
80522         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
80523         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
80524         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
80526         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
80527         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
80529         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
80530         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
80532         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
80533         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
80535         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
80536         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
80537         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
80539         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
80540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
80541         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
80543         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
80544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
80545         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
80547         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
80548         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
80549         * modules/vasprintf (Depends-on): Add EOVERFLOW.
80551         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
80552         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
80553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
80554         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
80555         (Depends-on): Add EOVERFLOW.
80556         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
80557         (Depends-on): Add EOVERFLOW.
80558         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80559         (Depends-on): Add EOVERFLOW.
80560         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
80561         (Depends-on): Add EOVERFLOW.
80562         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80563         (Depends-on): Add EOVERFLOW.
80564         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
80565         (Depends-on): Add EOVERFLOW.
80566         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80567         (Depends-on): Add EOVERFLOW.
80568         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
80569         (Depends-on): Add EOVERFLOW.
80571         * lib/sprintf.c (EOVERFLOW): Remove fallback.
80572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
80573         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
80575         * lib/snprintf.c (EOVERFLOW): Remove fallback.
80576         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
80577         * modules/snprintf (Depends-on): Add EOVERFLOW.
80579         * lib/poll.c (EOVERFLOW): Remove fallback.
80580         * modules/poll (Depends-on): Add EOVERFLOW.
80582         * lib/getugroups.c (EOVERFLOW): Remove fallback.
80583         * modules/getugroups (Depends-on): Add EOVERFLOW.
80585         * lib/getdelim.c (EOVERFLOW): Remove fallback.
80586         * modules/getdelim (Depends-on): Add EOVERFLOW.
80588         * lib/ftell.c (EOVERFLOW): Remove fallback.
80589         * modules/ftell (Depends-on): Add EOVERFLOW.
80591         * lib/fprintf.c (EOVERFLOW): Remove fallback.
80592         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
80593         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
80595         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
80597         * modules/EOVERFLOW-tests: New file.
80598         * tests/test-EOVERFLOW.c: New file.
80600         * modules/EOVERFLOW: New file.
80601         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
80603 2008-03-30  Bruno Haible  <bruno@clisp.org>
80605         Fix bug introduced on 2007-06-10.
80606         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
80607         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
80609 2008-03-30  Bruno Haible  <bruno@clisp.org>
80611         Improve freadseek's efficiency after ungetc.
80612         * lib/freadseek.c: Include freadahead.h.
80613         (freadptrinc): New function, extracted from freadseek.
80614         (freadseek): Use it in a loop. Use freadahead to determine the number
80615         of loop iterations.
80616         * modules/freadseek (Depends-on): Add freadahead.
80617         (configure.ac): Require AC_C_INLINE.
80619 2008-03-30  Bruno Haible  <bruno@clisp.org>
80621         * lib/freadseek.c (freadseek): Don't ignore the return value of
80622         freadptr.
80624 2008-03-29  Eric Blake  <ebb9@byu.net>
80626         Add hex float support.
80627         * modules/strtod (Depends-on): Add c-ctype.
80628         (Link): Mention POW_LIB.
80629         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
80630         whitespace between 'e' and exponent.
80631         * tests/test-strtod.c (main): Enable hex float tests.
80632         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
80633         now provides.
80635         Document various strtod bugs, with some fixes.
80636         * doc/posix-functions/strtod.texi (strtod): Document bugs with
80637         "-0x", "inf", "nan", and hex constants.
80638         * doc/posix-functions/atof.texi (atof): Likewise.
80639         * modules/stdlib (Makefile.am): Support strtod.
80640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80641         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
80642         detect additional strtod bugs.
80643         * lib/stdlib.in.h (rpl_strtod): Add declarations.
80644         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
80645         bool where appropriate.  Parse 'inf' and 'nan'.
80646         * tests/test-strtod.c: New file.
80647         * modules/strtod (Depends-on): Add stdbool, stdlib.
80648         (configure.ac): Turn on module indicator.
80649         * modules/strtod-tests: New module.
80651 2008-03-29  Eric Blake  <ebb9@byu.net>
80653         Fix ftell on mingw.
80654         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
80655         * modules/ftell-tests (Depends-on): Add binary-io.
80656         * modules/ftello-tests (Depends-on): Likewise.
80657         * tests/test-ftell.c (main): Enhance test to cover behavior after
80658         ungetc.  Enforce binary mode.
80659         * tests/test-ftello.c (main): Likewise.
80661         Pass test-freadseek on cygwin.
80662         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
80663         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
80664         ungetc buffer.
80666         * tests/test-fflush2.c (main): Fix typo.
80668 2008-03-29  Bruno Haible  <bruno@clisp.org>
80670         * tests/test-fflush2.c (main): Temporarily disable the contents of
80671         this test.
80672         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
80673         Reported by Eric Blake.
80675 2008-03-28  Simon Josefsson  <simon@josefsson.org>
80677         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
80678         (GC_SHA224_DIGEST_SIZE): Add.
80680         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
80681         (gc_hash_digest_length): Likewise.
80682         (gc_hash_buffer): Likewise.
80684 2008-03-25  Bruno Haible  <bruno@clisp.org>
80686         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
80687         detail which gettext release to use.
80688         Reported by Simon Josefsson.
80690 2008-03-26  Jim Meyering  <meyering@redhat.com>
80692         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
80693         * modules/gnumakefile (clean-GNUmakefile): Also, use
80694         test ... && ... || : syntax rather than if-then ... fi.
80696         gnumakefile: Don't double-quote-expand $(VPATH) value.
80697         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
80699 2008-03-24  Eric Blake  <ebb9@byu.net>
80701         Alter GNUmakefile to install into top directory.
80702         * modules/maintainer-makefile: Split, and add dependency...
80703         * modules/gnumakefile: to this new module.
80704         * build-aux/GNUmakefile: Move...
80705         * top/GNUmakefile: ...here.
80706         * build-aux/maint.mk: Move...
80707         * top/maint.mk: ...here.
80708         * MODULES.html.sh (Support for maintaining...): Document new
80709         module.
80711 2008-03-23  Bruno Haible  <bruno@clisp.org>
80713         * gnulib-tool: New options --vc-files, --no-vc-files.
80714         (func_usage): Document them.
80715         (vc_files): New variable.
80716         (func_import): Consider vc_files.
80717         (func_create_testdir): Set vc_files to empty.
80718         Suggested by Jim Meyering and Karl Berry.
80720 2008-03-23  Bruno Haible  <bruno@clisp.org>
80722         Fix regex compilation error on HP-UX 11.
80723         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
80724         * modules/regex (Files): Add m4/mbstate_t.m4.
80725         Reported by Ton Voon <ton.voon@altinity.com>.
80727 2008-03-23  Bruno Haible  <bruno@clisp.org>
80729         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
80731 2008-03-23  Eric Blake  <ebb9@byu.net>
80732             Bruno Haible  <bruno@clisp.org>
80734         Install files from top/ in the destination directory.
80735         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
80736         augmentation also for the files from top/.
80737         (func_import, func_create_testdir): Rewrite file names:
80738         top/filename -> filename.
80740 2008-03-23  Bruno Haible  <bruno@clisp.org>
80742         Tweak "gnulib --version" output.
80743         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
80745 2008-03-23  Bruno Haible  <bruno@clisp.org>
80747         Tweak "gnulib --version" output.
80748         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
80749         rather than contents of ChangeLog, when possible.
80751 2008-03-21  Eric Blake  <ebb9@byu.net>
80753         More --version tweaks.
80754         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
80755         date of last ChangeLog entry.
80757 2008-03-21  Jim Meyering  <meyering@redhat.com>
80759         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
80761 2008-03-20  Eric Blake  <ebb9@byu.net>
80763         VPATH fix.
80764         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
80766 2008-03-20  Simon Josefsson  <simon@josefsson.org>
80768         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
80769         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
80771 2008-03-20  Eric Blake  <ebb9@byu.net>
80773         Sync GNUmakefile with coreutils.
80774         * build-aux/GNUmakefile (have-Makefile): Rename...
80775         (_have-Makefile): ...to this, for namespace consideration.
80776         (GNUmakefile.cfg): Include, if present.
80777         (_autoreconf): Define a default.
80778         (_is-dist-target): New rule for rebuilds to pick up intra-release
80779         version.
80780         (maint-cfg.mk): Rename...
80781         (cfg.mk): ...to this.
80783 2008-03-18  Jim Meyering  <meyering@redhat.com>
80785         New script and module: mktempd
80786         * MODULES.html.sh (maint+release support): Add mktempd.
80787         * build-aux/mktempd: New file.
80788         * modules/mktempd: New file.
80790 2008-03-15  Jim Meyering  <meyering@redhat.com>
80792         Undo last change.
80793         * lib/sha1.c, lib/md5.c: 63 != ~63.
80794         Reported by Andreas Schwab.
80796         sha1.c, md5.c: Hoist a redundant expression.
80797         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
80798         "ctx->buflen" only once, before calling *_process_block.
80799         * lib/md5.c (md5_process_bytes): Likewise.
80801 2008-03-14  Eric Blake  <ebb9@byu.net>
80803         Bump copyright year in files generated by gnulib-tool.
80804         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
80805         gnulib-tool, rather than hard-coding it.
80807         Fix 'gnulib-tool --version' output to work with git.
80808         * gnulib-tool (func_gnulib_dir): New function, extracted from...
80809         (startup): ...here.
80810         (func_version): Use it to invoke git-version-gen, rather than
80811         relying on CVS keyword expansion.  Modernize wording.
80812         (cvsdatestamp, last_checkin_date, version): Kill unused
80813         variables.
80815 2008-03-12  Jim Meyering  <meyering@redhat.com>
80817         Recognize optional cast of the argument to free.
80818         * build-aux/useless-if-before-free: Update regexps.
80820         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
80822 2008-03-11  Bruno Haible  <bruno@clisp.org>
80824         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
80825         by a single package.
80826         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
80827         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
80828         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
80829         Reported by Sam Steingold <sds@gnu.org>.
80831 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
80833         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
80834         repositories.
80836 2008-03-11  Bruno Haible  <bruno@clisp.org>
80838         Avoid conflicts between local macro definitions.
80839         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
80840         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
80842 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
80843             Bruno Haible  <bruno@clisp.org>
80845         Make va_copy work with some version of xlc on AIX 5.1.
80846         * lib/stdarg.in.h: New file.
80847         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
80848         On AIX, use a <stdarg.h> file substitute.
80849         * modules/stdarg (Files): Add lib/stdarg.in.h.
80850         (Depends-on): Add include_next.
80851         (Makefile.am): Build a stdarg.h substitute if requested.
80852         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
80854 2008-03-10  Bruno Haible  <bruno@clisp.org>
80856         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
80857         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
80858         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
80860 2008-03-10  Bruno Haible  <bruno@clisp.org>
80862         * modules/stdlib (Depends-on): Add include_next, remove
80863         absolute-header.
80865 2008-03-09  Bruno Haible  <bruno@clisp.org>
80867         * lib/freadahead.h (freadahead): Document more precisely.
80868         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
80869         the sum of both buffer sizes.
80870         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
80871         * NEWS: Document the change.
80873 2008-03-09  Bruno Haible  <bruno@clisp.org>
80875         Extend freadptr to return also the buffer size.
80876         * lib/freadptr.h (freadptr): Add sizep argument.
80877         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
80878         (freadptr): Add sizep argument. Determine buffer size like freadahead
80879         does.
80880         * tests/test-freadptr.c: Don't include freadahead.h.
80881         (main): Adapt for new calling convention of freadptr.
80882         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
80883         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
80884         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
80885         tests/test-freadptr2.sh.
80886         (Depends): Remove freadahead.
80887         (TESTS): Add test-freadptr2.sh.
80888         (check_PROGRAMS): Add test-freadptr2.
80890 2008-03-09  Bruno Haible  <bruno@clisp.org>
80892         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
80893         Report and solution by Simon Josefsson.
80895 2008-03-06  Bruno Haible  <bruno@clisp.org>
80897         Make fflush after ungetc work on BSD platforms.
80898         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
80899         * tests/test-fflush2.c: New file.
80900         * tests/test-fflush2.sh: New file.
80901         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
80902         tests/test-fflush2.c.
80903         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
80904         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
80906 2008-03-06  Eric Blake  <ebb9@byu.net>
80908         Likewise for ftello.
80909         * modules/ftello (Dependencies): Add extensions.
80910         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
80912 2008-03-06  Bruno Haible  <bruno@clisp.org>
80914         * modules/fseeko (Dependencies): Add extensions.
80915         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
80916         Needed on glibc systems.
80918 2008-03-06  Bruno Haible  <bruno@clisp.org>
80920         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
80921         email address.
80922         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80924 2008-03-06  Bruno Haible  <bruno@clisp.org>
80926         * users.txt: Add libgnupdf.
80928 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
80930         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
80931         (Header File Substitutes, Function Substitutes,
80932         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
80933         (Build robot for gnulib): Fix typo.
80935 2008-03-06  Bruno Haible  <bruno@clisp.org>
80937         * doc/gnulib-tool.texi (VCS Issues): Small updates.
80938         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
80940 2008-03-06  Bruno Haible  <bruno@clisp.org>
80942         * doc/func.texi: New file, extracted from doc/gnulib.texi.
80943         * doc/gnulib.texi: Include it.
80945 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80947         * modules/func (License): Change license to unlimited; there was
80948         no LGPL parts in the module anyway.
80950 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80952         * modules/__func__: Renamed to modules/func.
80953         * modules/__func__-tests: Renamed to modules/func-tests.
80954         * tests/test-__func__.c: Renamed to tests/test-func.c.
80955         * m4/__func__.m4: Renamed to m4/func.m4.
80956         * doc/gnulib.texi (__func__): Section renamed to func.
80957         Suggested by Eric Blake <ebb9@byu.net>.
80959 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80961         * doc/gnulib.texi (__func__): Use C99 terminology when talking
80962         about __func__.  Make example self-contained.  Suggested by Eric
80963         Blake <ebb9@byu.net>.
80965         * tests/test-__func__.c (main): Avoid extraneous () around __func.
80966         Suggested by Eric Blake <ebb9@byu.net>.
80968 2008-03-06  Simon Josefsson  <simon@josefsson.org>
80970         * modules/__func__: New file.
80971         * modules/__func__-tests: New file.
80972         * tests/test-__func__.c: New file.
80973         * m4/__func__.m4: New file.
80974         * doc/gnulib.texi (__func__): Document __func__ module.
80976 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80978         * modules/byteswap (License): Re-license as LGPLv2+.
80980 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80982         * doc/Makefile: Add pdf target.
80984 2008-03-05  Simon Josefsson  <simon@josefsson.org>
80986         * modules/inline (License): Use 'unlimited', since there are only
80987         *.m4 files in this module.
80989 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80990             Bruno Haible  <bruno@clisp.org>
80992         Add support for HP C 7.1 on OpenVMS 8.3.
80993         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
80995 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
80997         Update VMS specifics.
80998         * lib/getopt.c [VMS]: Remove include of unixlib.h.
81000 2008-03-02  Jim Meyering  <meyering@redhat.com>
81002         Remove the last dependency on the "free" module.
81003         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
81004         Reported by Bob Proulx.
81006         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
81008         Remove useless "if" tests before free.  Deprecate "free" module.
81009         * doc/posix-functions/free.texi: Mention that this
81010         module is no longer useful.
81011         * modules/free (Notice): Say this module is obsolete.
81012         * modules/readutmp (Depends-on): Remove free.
81013         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
81014         * lib/putenv.c (putenv): Likewise.
81015         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
81016         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
81017         * tests/test-c-strcasestr.c (main): Likewise.
81018         * tests/test-c-strstr.c (main): Likewise.
81019         * tests/test-mbscasestr1.c (main): Likewise.
81020         * tests/test-mbscasestr2.c (main): Likewise.
81021         * tests/test-mbsstr1.c (main): Likewise.
81022         * tests/test-mbsstr2.c (main): Likewise.
81023         * tests/test-memmem.c (main): Likewise.
81024         * tests/test-strcasestr.c (main): Likewise.
81025         * tests/test-striconv.c (main): Likewise.
81026         * tests/test-striconveh.c (main): Likewise.
81027         * tests/test-striconveha.c (main): Likewise.
81028         * tests/test-strstr.c (main): Likewise.
81030         * build-aux/git-version-gen: Adjust a comment and the Usage string.
81032         bootstrap: sync from coreutils again
81033         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
81035 2008-03-01  Jim Meyering  <meyering@redhat.com>
81037         bootstrap: sync from coreutils
81038         * build-aux/bootstrap (update_po_files): Copy a .po file into place
81039         also when the target doesn't exist.
81041 2008-03-01  Eric Blake  <ebb9@byu.net>
81043         Fix bugs in last patch.
81044         * lib/memchr2.c (memchr2): Fix typo.
81045         * tests/test-memchr2.c: Test previous bug, and don't use GNU
81046         extension.
81047         Reported by Bruce Korb.
81049         New module 'memchr2'.
81050         * modules/memchr2: New file.
81051         * modules/memchr2-tests: Likewise.
81052         * lib/memchr2.h: Likewise.
81053         * lib/memchr2.c: Likewise, based on memchr.c.
81054         * tests/test-memchr2.c: New test.
81055         * MODULES.html.sh (String handling): Add memchr2.
81057 2008-02-29  Bruno Haible  <bruno@clisp.org>
81059         * modules/freadseek-tests: New file.
81060         * tests/test-freadseek.sh: New file.
81061         * tests/test-freadseek.c: New file.
81063         New module 'freadseek'.
81064         * modules/freadseek: New file.
81065         * lib/freadseek.h: New file.
81066         * lib/freadseek.c: New file.
81067         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
81069 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
81071         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
81072         wydawca.
81074         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
81075         program_invocation_name and program_invocation_short_name are
81076         present.
81078 2008-02-28  Bruno Haible  <bruno@clisp.org>
81080         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
81081         * tests/test-freadptr.sh: Also test non-seekable stdin.
81083 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
81085         * build-aux/bootstrap (source_base, m4_base)
81086         (doc_base, tests_base): New variables.
81087         (gnulib_tool_options): Do not hardcode base directories, use
81088         the above variables instead.
81090 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
81092         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
81094 2008-02-28  Bruno Haible  <bruno@clisp.org>
81096         * modules/freadptr-tests: New file.
81097         * tests/test-freadptr.sh: New file.
81098         * tests/test-freadptr.c: New file.
81100         New module 'freadptr'.
81101         * modules/freadptr: New file.
81102         * lib/freadptr.h: New file.
81103         * lib/freadptr.c: New file.
81104         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
81106 2008-02-26  Karl Berry  <karl@freefriends.org>
81108         Sync from Libtool:
81109         * libltdl/argz.c (argz_add, argz_count): New functions.
81110         * libltdl/argz.in.h: Declare them.
81111         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
81113 2008-02-22  Bruno Haible  <bruno@clisp.org>
81115         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
81116         is a pointer type.  Needed for HP-UX 10.
81117         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
81118         * doc/posix-functions/gmtime_r.texi: Likewise.
81119         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
81121 2008-02-24  Bruno Haible  <bruno@clisp.org>
81123         * modules/environ-tests: New file.
81124         * tests/test-environ.c: New file.
81126         New module 'environ'.
81127         * modules/environ: New file.
81128         * lib/unistd.in.h (environ): New declaration.
81129         * m4/environ.m4: New file.
81130         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
81131         after use.
81132         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
81133         HAVE_DECL_ENVIRON.
81134         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
81135         HAVE_DECL_ENVIRON.
81136         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
81137         wrong claim that 'environ' is missing on some systems.
81138         * modules/execute (Depends-on): Add environ.
81139         * lib/execute.c (environ): Remove fallback declaration.
81140         * modules/pipe (Depends-on): Add environ.
81141         * lib/pipe.c (environ): Remove fallback declaration.
81142         * modules/setenv (Depends-on): Add environ.
81143         * lib/setenv.c (environ): Remove fallback declaration.
81144         * modules/unsetenv (Depends-on): Add environ.
81145         * lib/unsetenv.c (environ): Remove fallback declaration.
81146         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
81147         m4/environ.m4.
81148         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
81149         (gl_PREREQ_UNSETENV): Likewise.
81151 2008-02-24  Bruno Haible  <bruno@clisp.org>
81153         * doc/posix-functions/environ.texi: Document the MacOS X problem.
81155 2008-02-20  Bob Proulx  <bob@proulx.com>
81157         Enable use of older two part flavor 'git describe'.
81158         * build-aux/git-version-gen: If using the older two part flavor of
81159         git version then recreate the third part now present in the
81160         newer three part flavor of git describe.
81162 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
81164         * lib/fts.c (fts_build): Typo correction to comment.
81166 2008-02-17  Bruno Haible  <bruno@clisp.org>
81168         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
81169         generating no-op conflicts.
81171 2008-02-17  Bruno Haible  <bruno@clisp.org>
81173         Speed up by 10%.
81174         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
81175         result_entries, rather than an index-based loop.
81177 2008-02-17  Bruno Haible  <bruno@clisp.org>
81179         Speed up by 25%.
81180         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
81181         'hashcode_cached'.
81182         (entry_create): New function.
81183         (entry_hashcode): Use the cached hashcode if possible.
81184         (read_changelog_file, try_split_merged_entry): Use entry_create.
81186 2008-02-17  Bruno Haible  <bruno@clisp.org>
81188         Speed up from O(n^2) to O(n) for long ChangeLog files.
81189         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
81190         (read_changelog_file): Change implementation of entries_reversed list
81191         to rbtreehash.
81192         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
81194 2008-02-17  Bruno Haible  <bruno@clisp.org>
81196         New option --split-merged-entry.
81197         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
81198         (find_paragraph_end, try_split_merged_entry): New functions.
81199         (long_options): Add option --split-merged-entry.
81200         (usage): Document option --split-merged-entry.
81201         (main): Implement option --split-merged-entry.
81202         Reported by Eric Blake.
81204 2008-02-17  Bruno Haible  <bruno@clisp.org>
81206         * lib/git-merge-changelog.c: Include c-strstr.h.
81207         (main): Support the "git pull --rebase" situation.
81208         * modules/git-merge-changelog (Depends-on): Add c-strstr.
81209         Reported by Eric Blake.
81211 2008-02-16  Eric Blake  <ebb9@byu.net>
81213         Avoid doubling \ in common case of "c-maybe" quoting style.
81214         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
81215         eliding outer quotes.
81216         * lib/quotearg.h: Document this.
81217         * tests/test-quotearg.c (result_strings, inputs, results_g)
81218         (flag_results, locale_results): Test it by adding a new string to
81219         each test group.
81220         (compare_strings): Test new string.
81222 2008-02-13  Eric Blake  <ebb9@byu.net>
81224         Avoid trigraph quoting in default output.
81225         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
81226         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
81227         unless explicitly requested.
81228         * tests/test-quotearg.c (flag_results, main): Add additional tests.
81230 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
81232         Don't rely on signed integer overflowing to negative value.
81233         * lib/getugroups.c (getugroups): Include <limits.h>.
81234         Instead, compare against INT_MAX, and increment only if the test passes.
81236 2008-02-13  Jim Meyering  <meyering@redhat.com>
81237         and Eric Blake  <ebb9@byu.net>
81239         Avoid shadowing warning and compile errors on Linux.
81240         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
81241         forwarding macros on Linux.
81242         (dcgettext): Define a stub, for Linux.
81243         (results_g, main): Avoid warnings.
81245 2008-02-12  Eric Blake  <ebb9@byu.net>
81247         Silence warning in last patch.
81248         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
81250         Quotearg part 4: add tests, fix c-maybe colon quoting.
81251         * lib/quotearg.h: Improve documentation.
81252         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
81253         escapes when adding outer quotes.  When quoting trigraphs, use
81254         valid C notation.  When quoting NUL, omit extra characters if next
81255         character is not digit.  Alter prototype.
81256         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
81257         callers.
81258         * modules/quotearg-tests: New module.
81259         * tests/test-quotearg.c: New test.
81261 2008-02-07  Eric Blake  <ebb9@byu.net>
81263         Quotearg part 3: add flag to control outer quote elision.
81264         * lib/quotearg.h (c_maybe_quoting_style): New style.
81265         (enum quoting_flags): Better documentation of flags.
81266         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
81267         c-maybe style.
81268         (quotearg_buffer_restyled): Handle new flag to elide outer
81269         quotes.
81271         Quotearg part 2: add flag that can control NUL elision.
81272         * lib/quotearg.h (set_quoting_flags): New prototype.
81273         * lib/quotearg.c (struct quoting_options): Add flag field.
81274         (set_quoting_flags): New function.
81275         (quotearg_buffer_restyled): Add flags parameter.
81276         (quotearg_alloc_mem): Set the flag if length cannot be returned.
81277         (quotearg_n_options): Set the flag, since length cannot be
81278         returned.
81279         (quoting_options_from_style): Default flags correctly.
81281         Quotearg part 1: more wrappers, restore quotearg_char state.
81282         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
81283         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
81284         (quotearg_colon_mem): New wrappers.
81285         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
81286         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
81287         functions.
81288         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
81289         (quotearg_colon_mem): New functions.
81291 2008-02-11  Bruno Haible  <bruno@clisp.org>
81293         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
81294         library in the current directory: it does not work with parallel make.
81295         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81297 2008-02-11  Bruno Haible  <bruno@clisp.org>
81299         * .gitattributes: New file.
81301 2008-02-11  Jim Meyering  <meyering@redhat.com>
81303         useless-if-before-free: Fix reversed exit values.
81304         * build-aux/useless-if-before-free: Use correct values
81305         for EXIT_MATCH and EXIT_NO_MATCH.
81307         * build-aux/useless-if-before-free: Close stdout carefully.
81309 2008-02-10  Bruno Haible  <bruno@clisp.org>
81311         New module 'git-merge-changelog'.
81312         * modules/git-merge-changelog: New file.
81313         * lib/git-merge-changelog.c: New file.
81315 2008-02-10  Jim Meyering  <meyering@redhat.com>
81317         useless-if-before-free: New option: --list (-l).
81319         useless-if-before-free: Don't exit immediately upon open failure.
81320         * build-aux/useless-if-before-free: Exit 2 for errors.
81321         Upon failure to open a file, don't exit immediately.
81322         Rather, just warn and continue with any remaining files.
81324 2008-02-10  Bruno Haible  <bruno@clisp.org>
81326         New abstract list operation 'node_set_value'.
81327         * lib/gl_list.h (gl_list_node_set_value): New function.
81328         (struct gl_list_implementation): New field node_set_value.
81329         * lib/gl_list.c (gl_list_node_set_value): New function.
81330         * lib/gl_array_list.c (gl_array_node_set_value): New function.
81331         (gl_array_list_implementation): Update.
81332         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
81333         (gl_carray_list_implementation): Update.
81334         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
81335         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
81336         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
81337         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
81338         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
81339         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
81340         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
81341         Update.
81342         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
81343         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
81344         (gl_sublist_list_implementation): Update.
81346 2008-02-10  Bruno Haible  <bruno@clisp.org>
81348         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
81349         Needed when ELEMENT is #defined to 'some_type *'.
81351 2008-02-10  Jim Meyering  <meyering@redhat.com>
81353         New script and module: useless-if-before-free
81354         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
81355         * build-aux/useless-if-before-free: New file.
81356         * modules/useless-if-before-free: New file.
81358         * build-aux/gitlog-to-changelog: Use committer date, not author date.
81360         xstrtol_error: Fix typo.
81361         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
81362         s/exit_failure/exit_status/.
81364 2008-02-09  Jim Meyering  <meyering@redhat.com>
81366         New script and module: gitlog-to-changelog
81367         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
81368         * modules/gitlog-to-changelog: New file.
81369         * build-aux/gitlog-to-changelog: New file.
81371 2008-02-08  Jim Meyering  <meyering@redhat.com>
81373         Avoid two "parameter unused" warnings.
81374         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
81375         Mark "st" as used.
81377         Use "git COMMAND", not "git-COMMAND".
81378         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
81379         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
81380         * build-aux/git-version-gen: Use "git status", not "git-status".
81382 2008-02-07  Bruno Haible  <bruno@clisp.org>
81384         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
81385         Avoids a crash on Windows Vista.
81386         Reported by Adam Strzelecki <ono@java.pl> via
81387         Simon Josefsson <simon@josefsson.org>.
81389 2008-02-06  Bruno Haible  <bruno@clisp.org>
81391         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
81392         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
81393         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
81394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
81395         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
81396         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
81397         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
81398         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
81399         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
81400         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
81401         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
81402         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
81403         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
81404         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
81405         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
81406         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
81407         left-adjust flag.
81408         * tests/test-snprintf-posix.h (test_function): Likewise.
81409         * tests/test-sprintf-posix.h (test_function): Likewise.
81410         * tests/test-vasprintf-posix.c (test_function): Likewise.
81411         * doc/posix-functions/fprintf.texi: Update.
81412         * doc/posix-functions/printf.texi: Update.
81413         * doc/posix-functions/snprintf.texi: Update.
81414         * doc/posix-functions/sprintf.texi: Update.
81415         * doc/posix-functions/vfprintf.texi: Update.
81416         * doc/posix-functions/vprintf.texi: Update.
81417         * doc/posix-functions/vsnprintf.texi: Update.
81418         * doc/posix-functions/vsprintf.texi: Update.
81419         Reported by Peter Fales <psfales@alcatel-lucent.com>.
81421 2008-02-06  Bruno Haible  <bruno@clisp.org>
81423         Fix bug introduced on 2008-01-26.
81424         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
81426 2008-02-06  Bruno Haible  <bruno@clisp.org>
81428         Fix bug introduced on 2007-06-10.
81429         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
81430         !NEED_PRINTF_FLAG_ZERO.
81432 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
81434         getloadavg: use libperfstat on AIX5
81435         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
81437 2008-02-03  Bruno Haible  <bruno@clisp.org>
81439         * lib/diffseq.h: Add comments about required #includes.
81440         Reported by Michael Biggs <gnulib@doubleplum.net>.
81442 2008-02-01  Bruno Haible  <bruno@clisp.org>
81444         * users.txt: Add gnuit.
81446 2008-01-31  Bruno Haible  <bruno@clisp.org>
81448         * lib/md4.c (set_uint32): Mark as inline.
81449         * lib/md5.c (set_uint32): Likewise.
81450         * lib/sha1.c (set_uint32): Likewise.
81451         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
81452         * m4/md5.m4 (gl_MD5): Likewise.
81453         * m4/sha1.m4 (gl_SHA1): Likewise.
81455 2008-01-31  Jim Meyering  <meyering@redhat.com>
81457         Use "sizeof VAR", rather than a literal "4".
81458         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
81459         * lib/md4.c (md4_read_ctx): Likewise.
81460         * lib/sha1.c (sha1_read_ctx): Likewise.
81462 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81464         * tests/test-sha1.c: New file, based on test-md5.c.
81466         * modules/crypto/sha1-tests: New file.
81468 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81470         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
81472 2008-01-31  Jim Meyering  <meyering@redhat.com>
81474         Prefer "sizeof v" over the equivalent "4".
81475         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
81476         * lib/md5.c (set_uint32): Likewise.
81477         * lib/sha1.c (set_uint32): Likewise.
81479 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81481         * lib/sha1.c (set_uint32): Mark function as static.
81483 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81485         md2: clarify comments to say that alignment is not required.
81486         * lib/md2.h: Remove warning about alignment in comment.
81487         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
81488         never been required.
81490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81492         md4: adapt alignment constraint fix from sha1.
81493         * lib/md4.c (set_uint32): New function, from sha1.c
81494         (md4_read_ctx): Use it.
81495         (md4_finish_ctx): Doc fix.
81496         * lib/md4.h: Doc fix.
81498 2008-01-31  Simon Josefsson  <simon@josefsson.org>
81500         md5: adapt alignment constraint fix from sha1.
81501         * lib/md5.c (set_uint32): New function, from sha1.c
81502         (md5_read_ctx): Use it.
81503         (md5_finish_ctx): Doc fix.
81504         * lib/md5.h: Doc fix.
81506 2008-01-30  Peter Palfrader  <weasel@debian.org>
81508         sha1: remove the result buffer alignment constraint
81509         * lib/sha1.c (set_uint32): New function.
81510         (sha1_read_ctx): Rewrite to remove the result buffer alignment
81511         constraint.
81512         (sha1_finish_ctx): Remove comment warning about alignment constraint.
81513         * lib/sha1.h: Likewise.
81515 2008-01-30  Andreas Schwab  <schwab@suse.de>
81516             Bruno Haible  <bruno@clisp.org>
81518         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
81519         correct definition of LDBL_MIN_EXP.
81521 2008-01-30  Karl Berry  <karl@gnu.org>
81523         * config/srclist-update: try to preserve x bit on updates.
81524         * config/srclistvars.sh: update for karl.
81526 2008-01-29  Jim Meyering  <meyering@redhat.com>
81528         vasnprintf.c: Avoid warning about unused label
81529         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
81530         "overflow" label definition and associated code with the
81531         same cpp condition that guards the sole use of that label.
81533 2008-01-26  Bruno Haible  <bruno@clisp.org>
81535         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
81536         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
81537         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
81538         * lib/isnanl-nolibm.h (isnanl): Likewise.
81539         Reported by Paul Eggert <eggert@cs.ucla.edu>.
81541 2008-01-26  Bruno Haible  <bruno@clisp.org>
81543         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
81544         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
81546 2008-01-26  Bruno Haible  <bruno@clisp.org>
81548         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
81549         GCC >= 4.0 built-in.
81550         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
81552 2008-01-26  Bruno Haible  <bruno@clisp.org>
81554         Rename isnan, applicable to 'double' only, to isnand.
81555         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
81556         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
81557         (configure.ac): Update.
81558         (Include): Replace "isnan.h" with "isnand.h".
81559         * m4/isnand.m4: Renamed from m4/isnan.m4.
81560         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
81561         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
81562         instead of isnan.c.
81563         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
81564         instead of HAVE_ISNAN_IN_LIBC.
81565         (isnand): Renamed from isnan.
81566         * lib/isnand.c: New file.
81567         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
81568         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
81569         (Makefile.am): Update.
81570         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
81571         Include isnand.h instead of isnan.h.
81572         (main): Test isnand instead of isnan.
81573         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
81574         isnan-nolibm.
81575         * modules/frexp (Depends-on): Likewise.
81576         * modules/frexp-tests (Depends-on): Likewise.
81577         * modules/frexp-nolibm (Depends-on): Likewise.
81578         * modules/frexp-nolibm-tests (Depends-on): Likewise.
81579         * modules/isfinite (Depends-on): Likewise.
81580         * modules/round-tests (Depends-on): Likewise.
81581         * modules/signbit (Depends-on): Likewise.
81582         * modules/signbit-tests (Depends-on): Likewise.
81583         * modules/snprintf-posix (Depends-on): Likewise.
81584         * modules/sprintf-posix (Depends-on): Likewise.
81585         * modules/trunc-tests (Depends-on): Likewise.
81586         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
81587         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
81588         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
81589         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
81590         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
81591         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
81592         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
81593         * modules/vasnprintf-posix (Depends-on): Likewise.
81594         * modules/vasprintf-posix (Depends-on): Likewise.
81595         * modules/vfprintf-posix (Depends-on): Likewise.
81596         * modules/vsnprintf-posix (Depends-on): Likewise.
81597         * modules/vsprintf-posix (Depends-on): Likewise.
81598         * lib/frexp.c: Include isnand.h instead of isnan.h.
81599         (ISNAN): Set to isnand instead of isnan.
81600         * lib/isfinite.c: Include isnand.h instead of isnan.h.
81601         (gl_isfinited): Use isnand instead of isnan.
81602         * lib/signbitd.c: Include isnand.h instead of isnan.h.
81603         (gl_signbitd): Use isnand instead of isnan.
81604         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
81605         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
81606         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
81607         (main): Use isnand instead of isnan.
81608         * tests/test-round1.c: Include isnand.h.
81609         (main): Use isnand instead of isnan.
81610         * tests/test-round2.c: Include isnand.h instead of isnan.h.
81611         (ISNAN): Set to isnand instead of isnan.
81612         * tests/test-trunc1.c: Include isnand.h.
81613         (main): Use isnand instead of isnan.
81614         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
81615         (equal): Use isnand instead of isnan.
81616         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
81617         isnand-nolibm.
81618         * NEWS: Mention the change.
81620 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81621             Bruno Haible  <bruno@clisp.org>
81623         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
81624         the GCC builtins for signbits are present and set
81625         REPLACE_SIGNBIT_USING_GCC if so.
81626         * lib/math.in.h (signbit): Define using GCC builtins if
81627         REPLACE_SIGNBIT_USING_GCC is set.
81628         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
81629         REPLACE_SIGNBIT_USING_GCC.
81630         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
81632 2008-01-25  Jim Meyering  <meyering@redhat.com>
81634         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
81635         * lib/poll.c: Include <config.h>, not "config.h".
81636         * tests/test-getaddrinfo.c: Likewise.
81638 2008-01-25  Simon Josefsson  <simon@josefsson.org>
81640         * modules/sockets-tests: New file.
81642 2008-01-24  Simon Josefsson  <simon@josefsson.org>
81644         * modules/sockets: New module, can be used to call WSA_Startup and
81645         WSA_Cleanup when needed.
81647         * lib/sockets.h, lib/sockets.c: New files.
81649         * m4/sockets.m4: New file.
81651         * tests/test-sockets.c: New file.
81653 2008-01-19  Bruno Haible  <bruno@clisp.org>
81655         * doc/posix-headers: Renamed from doc/headers.
81656         * doc/posix-functions: Renamed from doc/functions.
81657         * doc/gnulib.texi: Update.
81659 2008-01-19  Bruno Haible  <bruno@clisp.org>
81661         * doc/glibc-functions/strcasestr.texi: Include contents of
81662         doc/functions/strcasestr.texi, fixing the list of platforms.
81663         * doc/functions/strcasestr.texi: Remove file.
81665 2008-01-19  Bruno Haible  <bruno@clisp.org>
81667         * doc/glibc-functions/memmem.texi: Include contents of
81668         doc/functions/memmem.texi.
81669         * doc/functions/memmem.texi: Remove file.
81671 2008-01-18  Bruno Haible  <bruno@clisp.org>
81673         * doc/glibc-functions/*.texi: New files.
81674         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
81675         to use the new files.
81677 2008-01-17  Bruno Haible  <bruno@clisp.org>
81679         * tests/test-gethostname.c (main): Fix printf statement.
81681 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81683         * modules/gethostname-tests: New file.
81685         * tests/test-gethostname.c: New file.
81687 2008-01-17  Simon Josefsson  <simon@josefsson.org>
81689         * lib/gethostname.c: Include string.h unconditionally, strncpy is
81690         used by the UNAME case.  Reported by Bruno Haible
81691         <bruno@clisp.org>.
81693 2008-01-17  Eric Blake  <ebb9@byu.net>
81695         Convert c-strcasestr to be more efficient.
81696         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
81697         (Depends-on): Add c-strcase, remove malloca, strnlen.
81698         * tests/test-c-strcasestr.c (main): Enhance test.
81699         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
81701 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
81703         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
81704         Use it in creating po/Makevars.
81706 2008-01-15  Simon Josefsson  <simon@josefsson.org>
81708         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
81709         Applications that requires it should initialize libgcrypt
81710         manually.
81712 2008-01-16  Simon Josefsson  <simon@josefsson.org>
81714         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
81716 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
81718         Fix problem with getdate on mingw32 reported by Simon Josefsson
81719         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
81720         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
81721         tzname", when deciding whether to declare tzname.
81722         * lib/strftime.c (tzname): Likewise.
81724 2008-01-15  Bruno Haible  <bruno@clisp.org>
81726         Work around a MacOS X 10.5 bug in frexpl().
81727         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
81728         * doc/functions/frexpl.texi: Document the bug.
81729         Reported by Elias Pipping <pipping@gentoo.org>.
81731 2008-01-14  Eric Blake  <ebb9@byu.net>
81733         Touch up previous patch.
81734         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
81735         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
81737         Convert strcasestr module to use Two-Way algorithm.
81738         * modules/strcasestr-simple: New module, based on the old
81739         strcasestr, but with Two-Way rather than KMP.
81740         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
81741         * lib/string.in.h (rpl_strcasestr): Declare.
81742         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
81743         performance.
81744         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
81745         * modules/string (Makefile.am): Support strcasestr.
81746         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
81747         * modules/strcasestr-tests (Depends-on): Check for alarm.
81748         * tests/test-strcasestr.c: Augment test.
81749         * lib/str-two-way.h: Clean up stray macro.
81750         * NEWS: Document new module.
81751         * MODULES.html.sh (string handling): Likewise.
81752         * doc/functions/strcasestr.texi: New file.
81753         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
81754         here, since it is not a POSIX function.
81756 2008-01-14  Colin Watson  <cjwatson@debian.org>
81757             Bruno Haible  <bruno@clisp.org>
81759         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
81760         works fine; if not, set REPLACE_STRSIGNAL.
81761         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
81762         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81763         REPLACE_STRSIGNAL.
81764         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
81765         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
81766         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
81768 2008-01-14  Bruno Haible  <bruno@clisp.org>
81770         * modules/strsignal (Include): Change to <string.h>.
81772 2008-01-14  Colin Watson  <cjwatson@debian.org>
81774         * modules/argp (Notice): Add a notice recommending to change
81775         XGETTEXT_OPTIONS.
81776         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
81778 2008-01-13  Colin Watson  <cjwatson@debian.org>
81780         * modules/strsignal-tests: New file.
81781         * tests/test-strsignal.c: New file.
81783         * lib/strsignal.c: New file, from glibc with modifications.
81784         * lib/siglist.h: New file, from glibc with modifications.
81785         * lib/string.in.h (strsignal): New declaration.
81786         * m4/strsignal.m4: New file.
81787         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
81788         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
81789         * modules/strsignal: New file.
81790         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
81791         HAVE_DECL_STRSIGNAL.
81793 2008-01-13  Bruno Haible  <bruno@clisp.org>
81795         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
81796         locale encoding is not ASCII. Needed for OpenBSD 4.0.
81797         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
81798         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
81800 2008-01-13  Bruno Haible  <bruno@clisp.org>
81802         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
81803         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
81804         * lib/argp.h (__attribute__): Likewise.
81805         * lib/c-stack.c (__attribute__): Likewise.
81806         * lib/error.h (__attribute__): Likewise.
81807         * lib/fts.c (__attribute__): Likewise.
81808         * lib/openat.h (__attribute__): Likewise.
81809         * lib/stdio.in.h (__attribute__): Likewise.
81810         * lib/string.in.h (__attribute__): Likewise.
81811         * lib/utimens.c (__attribute__): Likewise.
81812         * lib/vasnprintf.h (__attribute__): Likewise.
81813         * lib/xalloc.h (__attribute__): Likewise.
81814         * lib/xprintf.h (__attribute__): Likewise.
81815         * lib/xstrtol.h (__attribute__): Likewise.
81816         * lib/xvasprintf.h (__attribute__): Likewise.
81818 2008-01-12  Bruno Haible  <bruno@clisp.org>
81820         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
81821         * doc/glibc-headers/a.out.texi: New file.
81822         * doc/glibc-headers/aliases.texi: New file.
81823         * doc/glibc-headers/alloca.texi: New file.
81824         * doc/glibc-headers/ar.texi: New file.
81825         * doc/glibc-headers/argp.texi: New file.
81826         * doc/glibc-headers/argz.texi: New file.
81827         * doc/glibc-headers/byteswap.texi: New file.
81828         * doc/glibc-headers/crypt.texi: New file.
81829         * doc/glibc-headers/endian.texi: New file.
81830         * doc/glibc-headers/envz.texi: New file.
81831         * doc/glibc-headers/err.texi: New file.
81832         * doc/glibc-headers/error.texi: New file.
81833         * doc/glibc-headers/execinfo.texi: New file.
81834         * doc/glibc-headers/fpu_control.texi: New file.
81835         * doc/glibc-headers/fstab.texi: New file.
81836         * doc/glibc-headers/fts.texi: New file.
81837         * doc/glibc-headers/getopt.texi: New file.
81838         * doc/glibc-headers/ieee754.texi: New file.
81839         * doc/glibc-headers/ifaddrs.texi: New file.
81840         * doc/glibc-headers/libintl.texi: New file.
81841         * doc/glibc-headers/mcheck.texi: New file.
81842         * doc/glibc-headers/mntent.texi: New file.
81843         * doc/glibc-headers/obstack.texi: New file.
81844         * doc/glibc-headers/paths.texi: New file.
81845         * doc/glibc-headers/printf.texi: New file.
81846         * doc/glibc-headers/pty.texi: New file.
81847         * doc/glibc-headers/resolv.texi: New file.
81848         * doc/glibc-headers/shadow.texi: New file.
81849         * doc/glibc-headers/sysexits.texi: New file.
81850         * doc/glibc-headers/ttyent.texi: New file.
81852 2008-01-12  Jim Meyering  <meyering@redhat.com>
81854         announce-gen: emit Gnulib's git-based version string.
81855         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
81856         New option --gnulib-version=V, where V is expected to be
81857         the output of running git describe in the gnulib directory.
81858         (get_tool_versions): Request feedback on xdelta.  I suspect it's
81859         not useful, and plan to stop publishing an xdelta file with each
81860         coreutils release.
81862         * build-aux/announce-gen: Also check for lzma-compressed files.
81864 2008-01-11  Bruno Haible  <bruno@clisp.org>
81866         * tests/test-memmem.c (main): Increase maximum allowed time.
81867         * tests/test-strstr.c (main): Likewise.
81869 2008-01-11  Bruno Haible  <bruno@clisp.org>
81871         * doc/functions/memmem.texi: Add more precisions about platforms.
81872         * doc/functions/strstr.texi: Likewise.
81874 2008-01-10  Eric Blake  <ebb9@byu.net>
81876         * m4/strstr.m4: Delete cruft from copy-n-paste.
81877         Reported by Bruno Haible.
81879 2008-01-10  Bruno Haible  <bruno@clisp.org>
81881         Make c-strstr rely on strstr.
81882         * lib/c-strstr.c: Don't include str-kmp.h.
81883         (c_strstr): Define in terms of strstr.
81884         * modules/c-strstr (Files): Remove lib/str-kmp.h.
81885         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
81887 2008-01-10  Bruno Haible  <bruno@clisp.org>
81889         * doc/gnulib.texi (String Functions in C Locale): New section.
81890         * doc/c-ctype.texi: New file.
81891         * doc/c-strcase.texi: New file.
81892         * doc/c-strcaseeq.texi: New file.
81893         * doc/c-strcasestr.texi: New file.
81894         * doc/c-strstr.texi: New file.
81895         * doc/c-strtod.texi: New file.
81896         * doc/c-strtold.texi: New file.
81898 2008-01-10  Eric Blake  <ebb9@byu.net>
81900         * lib/relocatable.h: Fix a comment.
81902 2008-01-10  Eric Blake  <ebb9@byu.net>
81904         Share two-way algorithm.
81905         * lib/str-two-way.h: New file, merged from...
81906         * lib/memmem.c: ...here...
81907         * lib/strstr.c: ...and here.
81908         * modules/memmem (Files): Use it.
81909         * modules/strstr (Files): Likewise.
81911         Avoid quadratic strstr implementations.
81912         * lib/strstr.c: New file.
81913         * m4/strstr.m4: Likewise.
81914         * modules/strstr: Likewise.
81915         * modules/strstr-tests: Likewise.
81916         * tests/test-strstr.c: Likewise.
81917         * lib/string.in.h (rpl_strstr): Declare.
81918         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
81919         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
81920         * modules/string (Makefile.am): Likewise.
81921         * MODULES.html.sh (string handling): Mention new module.
81922         * doc/functions/strstr.texi (strstr): Document the bug.
81924 2008-01-10  Bruno Haible  <bruno@clisp.org>
81926         * lib/relocatable.h (relocate): State whether result is freshly
81927         allocated or not.
81928         * lib/relocatable.c (relocate): Return a freshly allocated string
81929         instead of a pointer to a privately held string.
81930         Reported by Sylvain Beucler <beuc@gnu.org>.
81932 2008-01-10  Colin Watson  <cjwatson@debian.org>
81934         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
81935         s/S_ISNLK/S_ISLNK/.
81937 2008-01-09  Bruno Haible  <bruno@clisp.org>
81939         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
81940         and other files.
81941         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
81942         if it's only a guess.
81943         * modules/memmem: Simplify by depending on memmem-simple.
81945 2008-01-09  Bruno Haible  <bruno@clisp.org>
81947         Work around OpenBSD 4.0 tdelete() bug.
81948         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
81949         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
81950         macros and don't redefine the enum values.
81951         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
81952         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
81953         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
81955 2008-01-09  Bruno Haible  <bruno@clisp.org>
81957         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
81958         (main): Don't perform the tests if setlocale did not install a UTF-8
81959         locale. Needed on OpenBSD 4.0.
81960         * modules/wcwidth-tests (Depends-on): Add localcharset.
81962 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81964         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
81965         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
81966         * NEWS: announce this.
81967         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
81969 2008-01-09  Simon Josefsson  <simon@josefsson.org>
81970         and Eric Blake  <ebb9@byu.net>
81972         Add memmem-simple module.
81973         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
81974         (gl_FUNC_MEMMEM): Separate performance from presence checks.
81975         * modules/memmem-simple: New file.
81976         * modules/memmem (Description): Tweak.
81977         * MODULES.html.sh (string handling): Mention new module.
81978         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
81979         addressed by memmem-simple.
81980         * NEWS: Document the difference.
81982 2008-01-09  Eric Blake  <ebb9@byu.net>
81984         Give gcc some memmem optimization hints.
81985         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
81986         (strcasestr): Declare as pure.
81987         * modules/memmem (Maintainer): Claim my implementation.
81989 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81991         Support AIX 6.1 and higher.
81992         * build-aux/config.libpath: Likewise.
81993         * build-aux/config.rpath: Likewise.
81995 2008-01-08  Jim Meyering  <meyering@redhat.com>
81996             Bruno Haible  <bruno@clisp.org>
81998         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
81999         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
82000         Reported by Peter Fales in
82001         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
82003 2008-01-08  Bruno Haible  <bruno@clisp.org>
82005         * modules/unictype/category-of (Depends-on): Add
82006         unictype/category-none.
82007         * modules/unictype/category-and-tests (Depends-on): Add
82008         unictype/category-{L,N,Lu,Nd}.
82009         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
82010         * modules/unictype/category-or-tests (Depends-on): Add
82011         unictype/category-{L,N}.
82012         * modules/unictype/category-name-tests (Depends-on): Add
82013         unictype/category-{Z,Nl}.
82014         Reported by Simon Josefsson.
82016 2008-01-08  Bruno Haible  <bruno@clisp.org>
82018         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
82019         convention better.
82020         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
82021         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
82022         Reported by Peter Miller <millerp@canb.auug.org.au>.
82024 2008-01-08  Eric Blake  <ebb9@byu.net>
82026         Rewrite memmem to guarantee linear complexity without malloc.
82027         * lib/memmem.c (memmem): Use Two-Way rather than
82028         Knuth-Morris-Pratt, to allow O(1) space usage.
82029         (critical_factorization, two_way_short_needle)
82030         (two_way_long_needle): New functions.
82031         (knuth_morris_pratt): Delete.
82032         * modules/memmem (Depends-on): No longer need malloca or stdbool.
82033         Add stdint.
82034         * tests/test-memmem.c (main): Add tests for periodic needle and
82035         sublinear performance.
82036         * doc/functions/memmem.texi (memmem): Document other deficiencies
82037         in cygwin and older glibc.
82039 2008-01-08  Bruno Haible  <bruno@clisp.org>
82041         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
82042         augmentation.
82044 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
82046         Add a configure time option: --disable-acl.
82047         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
82048         AC_ARG_ENABLE(acl).
82050 2008-01-06  Simon Josefsson  <simon@josefsson.org>
82052         * tests/test-localename.c: Don't include obsolete "setenv.h".
82054         * modules/localename-tests (Depends-on): Need unsetenv.
82056 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82058         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
82060 2008-01-06  Colin Watson  <cjwatson@debian.org>
82062         * users.txt: Add man-db.
82064 2008-01-07  Bruno Haible  <bruno@clisp.org>
82066         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
82067         previous section name.
82069 2008-01-07  Bruno Haible  <bruno@clisp.org>
82071         * lib/progname.c (set_program_name): Don't strip off a leading
82072         "lt-" prefix outside a .libs directory.
82073         Suggested by Paul Eggert.
82075 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
82076             Bruno Haible  <bruno@clisp.org>
82078         Improve memory cleanup in 'relocatable' module.
82079         * lib/relocatable.h (compute_curr_prefix): Change return type to
82080         'char *'.
82081         * lib/relocatable.c (compute_curr_prefix): Change return type to
82082         'char *'. Free curr_installdir after use.
82083         (relocate): Free curr_prefix_better after use.
82084         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
82086 2008-01-01  Bruno Haible  <bruno@clisp.org>
82088         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
82089         failure on older glibc systems.
82090         Reported by Peter Fales <psfales@alcatel-lucent.com>.
82092 2008-01-05  Eric Blake  <ebb9@byu.net>
82094         Avoid quadratic system memmem.
82095         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
82096         Reported by Ralf Wildenhues.
82098         Fix memmem test for mingw.
82099         * modules/memmem-tests (configure.ac): Check for alarm.
82100         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
82101         it.
82102         * doc/functions/memmem.texi: New file.
82103         * doc/gnulib.texi (Function Substitutes): Add memmem.
82104         Reported by Bruno Haible.
82106 2008-01-04  Bruno Haible  <bruno@clisp.org>
82108         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
82109         Require gl_HEADER_STRINGS_H_DEFAULTS, not
82110         gl_HEADER_STRING_H_DEFAULTS.
82112 2008-01-04  Eric Blake  <ebb9@byu.net>
82114         Shorten duration of memmem test.
82115         * tests/test-memmem.c (main): Use alarm to declare failure if test
82116         is taking too long.
82117         Reported by Ralf Wildenhues.
82119 2007-12-21  Simon Josefsson  <simon@josefsson.org>
82121         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
82122         string, needed by strerror.
82124 2008-01-03  Colin Watson  <cjwatson@debian.org>
82125             Bruno Haible  <bruno@clisp.org>
82127         * doc/gnulib-tool.texi (Localization): New section.
82129 2008-01-02  Bruno Haible  <bruno@clisp.org>
82131         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
82132         variables to 'unsigned char *' type.
82133         Reported by Paul Eggert.
82135 2008-01-02  Jim Meyering  <jim@meyering.net>
82137         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
82139 2007-12-31  Jim Meyering  <jim@meyering.net>
82141         Avoid use of private FTS type name.
82142         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
82144 2007-12-30  Karl Berry  <karl@gnu.org>
82146         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
82147         work around defect in Texinfo and/or the standalone Info browser.
82149 2007-12-30  Bruno Haible  <bruno@clisp.org>
82151         Unify 5 copies of the KMP code.
82152         * lib/str-kmp.h: New file.
82153         * lib/c-strcasestr.c: Include str-kmp.h.
82154         (knuth_morris_pratt): Remove function.
82155         (c_strcasestr): Update.
82156         * lib/c-strstr.c: Include str-kmp.h.
82157         (knuth_morris_pratt): Remove function.
82158         (c_strcasestr): Update.
82159         * lib/mbscasestr.c: Include str-kmp.h.
82160         (knuth_morris_pratt_unibyte): Remove function.
82161         * lib/mbsstr.c: Include str-kmp.h.
82162         (knuth_morris_pratt_unibyte): Remove function.
82163         * lib/strcasestr.c: Include str-kmp.h.
82164         (knuth_morris_pratt): Remove function.
82165         (strcasestr): Update.
82166         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
82167         * modules/c-strstr (Files): Likewise.
82168         * modules/mbscasestr (Files): Likewise.
82169         * modules/mbsstr (Files): Likewise.
82170         * modules/strcasestr (Files): Likewise.
82171         Suggested by Paul Eggert.
82173 2007-12-30  Bruno Haible  <bruno@clisp.org>
82175         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
82176         defined.
82178 2007-12-30  Bruno Haible  <bruno@clisp.org>
82180         * lib/xmalloca.h: Include xalloc.h.
82181         (xnmalloca): New macro.
82183 2007-12-30  Bruno Haible  <bruno@clisp.org>
82185         * lib/malloca.h (nmalloca): New macro.
82186         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
82187         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
82188         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
82189         knuth_morris_pratt_multibyte): Likewise.
82190         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
82191         knuth_morris_pratt_multibyte): Likewise.
82192         * lib/memmem.c (knuth_morris_pratt): Likewise.
82193         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
82195 2007-12-25  Bruno Haible  <bruno@clisp.org>
82197         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
82198         * lib/glob.c: Don't include openat.h.
82199         (link_exists2_p): Add back the code that deals with the
82200         !GLOB_ALTDIRFUNC case.
82201         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
82202         let it do the filename concatenation.
82203         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
82204         * modules/glob (Depends-on): Remove openat.
82206 2007-12-31  Bruno Haible  <bruno@clisp.org>
82208         * modules/dirfd (License): Change to LGPLv2+.
82209         Approved by Jim Meyering.
82211 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
82213         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
82214         when multiplying M by sizeof (size_t).
82216 2007-12-10  Martin Lambers  <marlam@marlam.de>
82218         Override getpagesize on mingw.
82219         * lib/getpagesize.c: New file.
82220         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
82221         * modules/getpagesize (Files): Add lib/getpagesize.c.
82222         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
82223         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82224         REPLACE_GETPAGESIZE.
82225         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
82227 2007-12-25  Bruno Haible  <bruno@clisp.org>
82229         * modules/localcharset (Notice): New field.
82230         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
82231         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
82233 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
82234             Bruno Haible  <bruno@clisp.org>
82236         Avoid using the syntax symbol() in formatted documentation.
82237         * MODULES.html.sh (func_module): When replacing symbol() with a
82238         hyperlink, remove the parentheses. Show an error if some remain.
82239         Recognize and render the '...' syntax.
82240         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
82241         Rework. Add paragraph about GCC's inlining.
82242         * doc/alloca.texi: Likewise.
82243         * doc/error.texi: Remove parentheses from symbol reference.
82244         * doc/gnulib-intro.texi: Likewise.
82245         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
82246         * modules/fnmatch (Description): Reword to say "the ... function".
82247         * modules/full-read (Description): Likewise.
82248         * modules/full-write (Description): Likewise.
82249         * modules/safe-read (Description): Likewise.
82250         * modules/safe-write (Description): Likewise.
82251         * modules/strchrnul (Description): Likewise.
82252         * modules/trim (Description): Likewise.
82253         * modules/error (Description): Remove parentheses from symbol
82254         references.
82255         * modules/verror (Description): Likewise.
82256         Reported by Karl Berry.
82258 2007-12-25  Bruno Haible  <bruno@clisp.org>
82260         Fixup after 2007-10-16 commit.
82261         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
82263 2007-12-24  Bruno Haible  <bruno@clisp.org>
82265         Make --enable-relocatable work with DESTDIR.
82266         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
82267         to compute installdir from destprog.
82268         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
82269         also set the RELOC_DESTDIR variable.
82270         Reported by Левашев Иван <octagram@bluebottle.com>.
82272 2007-12-24  Bruno Haible  <bruno@clisp.org>
82274         Fix link error due to xalloc_die().
82275         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
82276         of xreadlink.
82277         * lib/relocwrapper.c: Update comments.
82278         * build-aux/install-reloc: Remove xreadlink.c from file list.
82279         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
82280         xreadlink.c.
82281         Reported by Левашев Иван <octagram@bluebottle.com>.
82283 2007-12-24  Bruno Haible  <bruno@clisp.org>
82285         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
82286         * lib/setenv.h: Remove file.
82287         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
82288         lib/setenv.h.
82289         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
82290         (Depends-on): Add stdlib.
82291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
82292         gl_FUNC_UNSETENV.
82293         (Include): Replace setenv.h with <stdlib.h>.
82294         * modules/unsetenv: New file.
82295         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
82296         * lib/unsetenv.c: Include <stdlib.h> first.
82297         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
82298         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
82299         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
82300         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
82301         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
82302         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82303         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
82304         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
82305         * doc/functions/unsetenv.texi: Update.
82306         * modules/xsetenv (Depends-on): Add unsetenv.
82307         * modules/getdate (Depends-on): Likewise.
82308         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
82309         * lib/xsetenv.c: Don't include setenv.h.
82310         * lib/getdate.y: Likewise.
82311         * lib/relocwrapper.c: Likewise.
82312         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
82313         (Depends-on): Add stdlib.
82314         * NEWS: Mention the changes.
82315         Reported by Левашев Иван <octagram@bluebottle.com>.
82317 2007-12-23  Bruno Haible  <bruno@clisp.org>
82319         * lib/memmem.c (memmem): Use lowercase variable names. Tab
82320         indentation.
82322 2007-12-23  Bruno Haible  <bruno@clisp.org>
82324         * lib/c-strcasestr.c: Add more comments.
82325         * lib/c-strstr.c: Likewise.
82326         * lib/mbscasestr.c: Likewise.
82327         * lib/mbsstr.c: Likewise.
82328         * lib/strcasestr.c: Likewise.
82329         * lib/memmem.c: Likewise.
82331 2007-12-23  Bruno Haible  <bruno@clisp.org>
82333         * tests/test-memmem.c: Include <string.h> first.
82335 2007-12-22  Bruno Haible  <bruno@clisp.org>
82337         * gnulib-tool (func_create_testdir): Change $auxdir while generating
82338         the contents of $testsbase.
82339         Reported by Ralf Wildenhues.
82341 2007-12-22  Bruno Haible  <bruno@clisp.org>
82343         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
82344         two variables local_ldadd_before, local_ldadd_last.
82346 2007-12-20  Eric Blake  <ebb9@byu.net>
82348         Work around circular library issue when cross-compiling.
82349         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
82350         that progname.o does not need to pull in rpl_memcmp.
82352 2007-12-19  Eric Blake  <ebb9@byu.net>
82354         Fix memmem to avoid O(n^2) worst-case complexity.
82355         * lib/memmem.c (knuth_morris_pratt): New function.
82356         (memmem): Use it if first few naive iterations fail.
82357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
82358         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
82359         * modules/memchr (License): Likewise.
82360         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
82361         malloca.
82362         * tests/test-memmem.c: Rewrite, borrowing ideas from
82363         test-mbsstr1.c; the old version wouldn't even compile!
82364         * modules/memmem-tests: New file.
82365         * lib/string.in.h (rpl_memmem): Add declaration.
82366         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
82367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
82368         REPLACE_MEMMEM.
82370 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
82372         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
82373         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
82374         before any system include files, and undef after them all.  This
82375         should fix a problem on VMS reported by John E. Malmberg in
82376         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
82378 2007-12-17  Eric Blake  <ebb9@byu.net>
82380         Revert addition of verify, for BSD/OS.
82381         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
82382         can't handle large files, for the sake of obsolete platforms.
82383         * modules/fseeko (Depends-on): Remove verify.
82384         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
82385         * doc/functions/ftello.texi (ftello): Likewise.
82386         * doc/functions/fgetpos.texi (fgetpos): Likewise.
82387         Reported by Larry Jones.
82389 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
82391         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
82392         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
82394 2007-12-17  Jim Meyering  <meyering@redhat.com>
82396         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
82397         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
82398         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
82399         * modules/getcwd (Depends-on): Add openat.
82400         Reported by Petr Salinger.
82402 2007-12-17  Bruno Haible  <bruno@clisp.org>
82404         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
82405         avoid a segmentation fault of the configure test on x86_64 systems.
82407 2007-12-15  Jim Meyering  <meyering@redhat.com>
82409         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
82411 2007-12-13  Eric Blake  <ebb9@byu.net>
82413         Another fseek test.
82414         * tests/test-fseek.c (main): Also test ungetc handling.
82415         * tests/test-fseeko.c (main): Likewise.
82416         * modules/fseeko (Depends-on): Add verify.
82417         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
82418         large.
82419         Reported by Larry Jones.
82421         Fix fseeko on mingw.
82422         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
82423         seek.
82425         Beef up fseek tests.
82426         * tests/test-fseek.c (main): Also test eof handling.
82427         * tests/test-fseeko.c (main): Likewise.
82428         Reported by Larry Jones.
82430 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
82432         Fix fseeko on BSD-based platforms.
82433         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
82434         successful seek.
82436 2007-12-12  Eric Blake  <ebb9@byu.net>
82438         Allow circular dependency of separate libtests.a
82439         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
82440         when use_libtests.
82442 2007-12-11  Eric Blake  <ebb9@byu.net>
82444         Fix bug with -0.0L in previous patch.
82445         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
82446         * tests/test-isnan.c (main): Also test on zeroes.
82447         * tests/test-isnanf.c (main): Likewise.
82448         * tests/test-isnanl.h (main): Likewise.
82450         Detect pseudo-denormals on x86 even when cross-compiling.
82451         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
82452         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
82453         invalid bit patterns that happen to satisfy ==.
82455         Avoid link failures with separate libtests.a.
82456         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
82457         last, to satisfy circular dependencies.
82459 2007-12-11  Eric Blake  <ebb9@byu.net>
82460         and Bruno Haible  <bruno@clisp.org>
82462         Fix OpenBSD 4.0 <float.h> handling of long double.
82463         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
82464         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
82465         * doc/headers/float.texi (float.h): Document OpenBSD bug.
82467 2007-12-11  Jim Meyering  <meyering@redhat.com>
82469         * users.txt: Add libvirt.
82471         Support versions of autoconf prior to 2.59c.
82472         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
82473         if it is not already defined.
82475 2007-12-09  Bruno Haible  <bruno@clisp.org>
82477         Let 'gnulib-tool --import' collect sources needed for the tests in
82478         tests/ rather than in lib/.
82479         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
82480         argument. If true, add rules to generate libtests.a, and put libtests.a
82481         into $(LDADD). Consider source files in subdirectories and set
82482         uses_subdirs.
82483         (func_emit_initmacro_start, func_emit_initmacro_end,
82484         func_emit_initmacro_done): Pass all arguments explicitly.
82485         (func_import): Determine two module lists main_modules,
82486         testsrelated_modules. Determine use_libtests. Determine two variables
82487         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
82488         instead of just sed_transform_lib_file. Determine two variables
82489         main_files and testsrelated_files. Compute 'files' as the union of
82490         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
82491         func_add_or_update. In the generated gnulib-comp.m4, collect the
82492         object files for tests/ in different variables than those for lib/.
82493         Substitute LIBTESTS_LIBDEPS.
82494         (func_create_testdir): Combine the uses_subdirs results from
82495         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
82497 2007-12-09  Bruno Haible  <bruno@clisp.org>
82499         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
82500         the build-aux directory.
82502 2007-12-09  Bruno Haible  <bruno@clisp.org>
82504         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
82505         introduced on 2006-09-09.
82507 2007-12-07  Jim Meyering  <meyering@redhat.com>
82509         Let these macros work also with autoconf-2.59.
82510         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
82511         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
82512         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
82514 2007-12-06  Jim Meyering  <meyering@redhat.com>
82516         Avoid a configure-time syntax error in gl_FUNC_ACL.
82517         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
82518         function in each branch, before testing the cache variable.
82520 2007-12-04  Eric Blake  <ebb9@byu.net>
82522         Make scripts executable.
82523         * build-aux/config.guess: Add execute permissions.
82524         * build-aux/config.sub: Likewise.
82525         * build-aux/gendocs.sh: Likewise.
82527         Fix frexp on mingw.
82528         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
82529         cross-compiling.
82530         * doc/functions/frexp.texi (frexp): Document the bug.
82532         Make cygwin fseeko check more reliable.
82533         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
82534         version numbers, rather than unrelated feature check.
82535         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
82536         * doc/functions/ftello.texi (ftello): Likewise.
82537         Reported by Bruno Haible.
82539         * m4/strerror.m4: Bump version number.
82541 2007-12-03  Bruno Haible  <bruno@clisp.org>
82543         * doc/functions/mprotect.texi: Mention the mingw problem.
82545 2007-12-03  Eric Blake  <ebb9@byu.net>
82547         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
82548         REPLACE_STRERROR is initialized before this macro.
82550 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
82552         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
82553         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
82554         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
82555         put -lsec in even for programs other than 'ls'.  This fixes a problem
82556         for gettext reported by Bruno Haible in
82557         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
82558         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
82559         Add support for Solaris 10.  This isn't efficient, but should get the
82560         job done for now.
82562 2007-12-03  James Youngman  <jay@gnu.org>
82564         * doc/regexprops-generic.texi: change "an close-group" to "a
82565         close-group" and "illegal" to "not allowed".
82567 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82569         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
82570         pr_byname.h. Needed for the rare case when the maintainer has done
82571         "make maintainer-clean" in the source directory and then attempts a
82572         build outside the source directory.
82573         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
82574         scripts_byname.h.
82576 2007-12-02  Martin Lambers  <marlam@marlam.de>
82577             Bruno Haible  <bruno@clisp.org>
82579         * lib/getpagesize.h: Remove file.
82580         * lib/unistd.in.h: Include declaration of getpagesize here.
82581         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
82582         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
82583         HAVE_SYS_PARAM_H.
82584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
82585         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82586         * modules/getpagesize (Files): Remove lib/getpagesize.h.
82587         (Depends-on): Add unistd.
82588         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
82589         (Include): Use <unistd.h> instead of getpagesize.h.
82590         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
82591         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
82592         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
82593         gl_GETPAGESIZE invocation, already handled by module dependency.
82594         * lib/pagealign_alloc.c: Don't include getpagesize.h.
82596 2007-12-02  Bruno Haible  <bruno@clisp.org>
82598         * modules/strings-tests: New file.
82599         * tests/test-strings.c: New file.
82601         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
82602         * lib/strings.in.h: New file.
82603         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
82604         * m4/strings_h.m4: New file.
82605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
82606         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
82607         * modules/strings: New file.
82608         * modules/string (Makefile.am): Update.
82609         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
82610         Reported by Karl Berry.
82612 2007-12-01  Eric Blake  <ebb9@byu.net>
82614         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
82615         accommodate fix in cygwin 1.5.25.
82617 2007-12-01  Jim Meyering  <meyering@redhat.com>
82619         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
82620         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
82621         that would inhibit utf8-optimization of a regexp containing line-
82622         or buffer-anchors, e.g., `^', `$'.
82624 2007-11-30  Bruno Haible  <bruno@clisp.org>
82626         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
82627         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
82628         glthread_recursive_lock_init.
82629         * lib/lock.c (glthread_recursive_lock_init)
82630         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
82631         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82633 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
82635         New function qset_acl, like set_acl but with syscall semantics.
82636         * lib/acl.h (qset_acl): New decl.
82637         * lib/acl.c (qset_acl): New function.
82638         (set_acl): Use new function.  Use more-consistent diagnostics.
82640 2007-11-28  Jim Meyering  <meyering@redhat.com>
82642         * modules/physmem (License): Change from GPL to LGPLv2+.
82644 2007-11-26  Bruno Haible  <bruno@clisp.org>
82646         * lib/vasnprintf.c (decode_long_double): Don't abort if the
82647         'long double' type has excess precision.
82648         Reported by Jim Meyering in
82649         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
82651 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82653         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
82654         Sync from <http://gnu.org/licenses>.
82655         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
82656         with license text from same location.
82657         * doc/maintain.texi, doc/standards.texi:  Sync from
82658         <http://savannah.gnu.org/projects/gnustandards>.
82660 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
82661         and Jim Meyering  <meyering@redhat.com>
82663         Adjust getdate' grammar to accept a slightly more regular language.
82664         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
82665         Before, the former was rejected.
82666         * lib/getdate.y (digits_to_date_time): New function, factored
82667         out of ...
82668         (number): ...here.  Just call digits_to_date_time.
82669         (hybrid): New non-terminal to handle an <unsigned number,
82670         signed relative offset> sequence consistently.
82672 2007-11-18  Jim Meyering  <meyering@redhat.com>
82674         Pull my changes from coreutils:
82675         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
82676         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
82677         use of $gnulib_tool_option_extras, so that it's separated from the
82678         preceding argument.
82680         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
82681         * build-aux/bootstrap (cp_mark_as_generated): Create any required
82682         parent destination directories before copying a file into place.
82684 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
82686         bootstrap: work also with 4-argument variant of AC_INIT
82687         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
82689 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
82691         Port test-getaddrinfo to Solaris.
82692         Problem reported by Bruno Haible in
82693         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
82694         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
82695         explanation of setting 'hints'.
82696         Don't reject an implementation merely because it returns EAI_SERVICE.
82697         (EAI_SERVICE): Define to 0 if not defined.
82699 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82701         The license of gnu-make and posix-shell is now "GPLed build tool".
82702         * modules/gnu-make (License): Likewise.
82703         * modules/posix-shell (License): Likewise.
82705         New module posix-shell, for determining a POSIX shell
82706         or perhaps something that is close enough to a POSIX shell.
82707         * m4/posix-shell.m4: New file.
82708         * modules/posix-shell: New file.
82710         * MODULES.html.sh: Mention new module.
82712         New module gnu-make, for determining whether we're using GNU Make.
82713         * m4/gnu-make.m4: New file.
82714         * modules/gnu-make: New file.
82715         * MODULES.html.sh: Mention new module.
82717 2007-11-14  Jim Meyering  <meyering@redhat.com>
82719         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
82720         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
82721         use this macro to create a function _definition_.
82722         Remove useless "#undef ARGMATCH_DIE".
82724 2007-11-14  Bruno Haible  <bruno@clisp.org>
82726         * lib/config.charset: Update for OpenBSD 4.1.
82727         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
82729 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
82731         Document 64-bit #if problems in stdint.texi.
82732         * doc/headers/stdint.texi (stdint.h): Mention problems with
82733         64-bit-#if, and how to work around them.
82735         Don't insist on 'long long int' support in the preprocessor.  It
82736         breaks too many things.  For example, PRIdMAX still uses a 'long
82737         long int' format with the latest Sun compiler, even though
82738         HAVE_LONG_LONG_INT isn't defined due to that compiler's
82739         preprocessor problem.  This causes the latest coreutils to dump
82740         core on Solaris 10 sparc with the Sun C compiler.
82741         Instead, fix the 2007-10-16 problem in a different way, by evaluating
82742         the troublesome expressions at configure-time, not at #if-time.
82743         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
82744         preprocessor.
82745         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
82746         compile-time C checks, done at 'configure'-time.
82747         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
82748         * modules/inttypes (Makefile): Substitute the new symbols that
82749         gl_INTTYPES_H now generates.
82750         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
82752 2007-11-12  Bruno Haible  <bruno@clisp.org>
82754         Tests for Unicode character classification functions.
82756         * modules/unictype/bidicategory-byname-tests: New file.
82757         * modules/unictype/bidicategory-name-tests: New file.
82758         * modules/unictype/bidicategory-of-tests: New file.
82759         * modules/unictype/bidicategory-test-tests: New file.
82760         * modules/unictype/block-list-tests: New file.
82761         * modules/unictype/block-of-tests: New file.
82762         * modules/unictype/block-test-tests: New file.
82763         * modules/unictype/category-C-tests: New file.
82764         * modules/unictype/category-Cc-tests: New file.
82765         * modules/unictype/category-Cf-tests: New file.
82766         * modules/unictype/category-Cn-tests: New file.
82767         * modules/unictype/category-Co-tests: New file.
82768         * modules/unictype/category-Cs-tests: New file.
82769         * modules/unictype/category-L-tests: New file.
82770         * modules/unictype/category-Ll-tests: New file.
82771         * modules/unictype/category-Lm-tests: New file.
82772         * modules/unictype/category-Lo-tests: New file.
82773         * modules/unictype/category-Lt-tests: New file.
82774         * modules/unictype/category-Lu-tests: New file.
82775         * modules/unictype/category-M-tests: New file.
82776         * modules/unictype/category-Mc-tests: New file.
82777         * modules/unictype/category-Me-tests: New file.
82778         * modules/unictype/category-Mn-tests: New file.
82779         * modules/unictype/category-N-tests: New file.
82780         * modules/unictype/category-Nd-tests: New file.
82781         * modules/unictype/category-Nl-tests: New file.
82782         * modules/unictype/category-No-tests: New file.
82783         * modules/unictype/category-P-tests: New file.
82784         * modules/unictype/category-Pc-tests: New file.
82785         * modules/unictype/category-Pd-tests: New file.
82786         * modules/unictype/category-Pe-tests: New file.
82787         * modules/unictype/category-Pf-tests: New file.
82788         * modules/unictype/category-Pi-tests: New file.
82789         * modules/unictype/category-Po-tests: New file.
82790         * modules/unictype/category-Ps-tests: New file.
82791         * modules/unictype/category-S-tests: New file.
82792         * modules/unictype/category-Sc-tests: New file.
82793         * modules/unictype/category-Sk-tests: New file.
82794         * modules/unictype/category-Sm-tests: New file.
82795         * modules/unictype/category-So-tests: New file.
82796         * modules/unictype/category-Z-tests: New file.
82797         * modules/unictype/category-Zl-tests: New file.
82798         * modules/unictype/category-Zp-tests: New file.
82799         * modules/unictype/category-Zs-tests: New file.
82800         * modules/unictype/category-and-not-tests: New file.
82801         * modules/unictype/category-and-tests: New file.
82802         * modules/unictype/category-byname-tests: New file.
82803         * modules/unictype/category-name-tests: New file.
82804         * modules/unictype/category-none-tests: New file.
82805         * modules/unictype/category-of-tests: New file.
82806         * modules/unictype/category-or-tests: New file.
82807         * modules/unictype/category-test-withtable-tests: New file.
82808         * modules/unictype/combining-class-tests: New file.
82809         * modules/unictype/ctype-alnum-tests: New file.
82810         * modules/unictype/ctype-alpha-tests: New file.
82811         * modules/unictype/ctype-blank-tests: New file.
82812         * modules/unictype/ctype-cntrl-tests: New file.
82813         * modules/unictype/ctype-digit-tests: New file.
82814         * modules/unictype/ctype-graph-tests: New file.
82815         * modules/unictype/ctype-lower-tests: New file.
82816         * modules/unictype/ctype-print-tests: New file.
82817         * modules/unictype/ctype-punct-tests: New file.
82818         * modules/unictype/ctype-space-tests: New file.
82819         * modules/unictype/ctype-upper-tests: New file.
82820         * modules/unictype/ctype-xdigit-tests: New file.
82821         * modules/unictype/decimal-digit-tests: New file.
82822         * modules/unictype/digit-tests: New file.
82823         * modules/unictype/mirror-tests: New file.
82824         * modules/unictype/numeric-tests: New file.
82825         * modules/unictype/property-alphabetic-tests: New file.
82826         * modules/unictype/property-ascii-hex-digit-tests: New file.
82827         * modules/unictype/property-bidi-arabic-digit-tests: New file.
82828         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
82829         * modules/unictype/property-bidi-block-separator-tests: New file.
82830         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
82831         * modules/unictype/property-bidi-common-separator-tests: New file.
82832         * modules/unictype/property-bidi-control-tests: New file.
82833         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
82834         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
82835         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
82836         * modules/unictype/property-bidi-european-digit-tests: New file.
82837         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
82838         * modules/unictype/property-bidi-left-to-right-tests: New file.
82839         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
82840         * modules/unictype/property-bidi-other-neutral-tests: New file.
82841         * modules/unictype/property-bidi-pdf-tests: New file.
82842         * modules/unictype/property-bidi-segment-separator-tests: New file.
82843         * modules/unictype/property-bidi-whitespace-tests: New file.
82844         * modules/unictype/property-byname-tests: New file.
82845         * modules/unictype/property-combining-tests: New file.
82846         * modules/unictype/property-composite-tests: New file.
82847         * modules/unictype/property-currency-symbol-tests: New file.
82848         * modules/unictype/property-dash-tests: New file.
82849         * modules/unictype/property-decimal-digit-tests: New file.
82850         * modules/unictype/property-default-ignorable-code-point-tests: New file.
82851         * modules/unictype/property-deprecated-tests: New file.
82852         * modules/unictype/property-diacritic-tests: New file.
82853         * modules/unictype/property-extender-tests: New file.
82854         * modules/unictype/property-format-control-tests: New file.
82855         * modules/unictype/property-grapheme-base-tests: New file.
82856         * modules/unictype/property-grapheme-extend-tests: New file.
82857         * modules/unictype/property-grapheme-link-tests: New file.
82858         * modules/unictype/property-hex-digit-tests: New file.
82859         * modules/unictype/property-hyphen-tests: New file.
82860         * modules/unictype/property-id-continue-tests: New file.
82861         * modules/unictype/property-id-start-tests: New file.
82862         * modules/unictype/property-ideographic-tests: New file.
82863         * modules/unictype/property-ids-binary-operator-tests: New file.
82864         * modules/unictype/property-ids-trinary-operator-tests: New file.
82865         * modules/unictype/property-ignorable-control-tests: New file.
82866         * modules/unictype/property-iso-control-tests: New file.
82867         * modules/unictype/property-join-control-tests: New file.
82868         * modules/unictype/property-left-of-pair-tests: New file.
82869         * modules/unictype/property-line-separator-tests: New file.
82870         * modules/unictype/property-logical-order-exception-tests: New file.
82871         * modules/unictype/property-lowercase-tests: New file.
82872         * modules/unictype/property-math-tests: New file.
82873         * modules/unictype/property-non-break-tests: New file.
82874         * modules/unictype/property-not-a-character-tests: New file.
82875         * modules/unictype/property-numeric-tests: New file.
82876         * modules/unictype/property-other-alphabetic-tests: New file.
82877         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
82878         * modules/unictype/property-other-grapheme-extend-tests: New file.
82879         * modules/unictype/property-other-id-continue-tests: New file.
82880         * modules/unictype/property-other-id-start-tests: New file.
82881         * modules/unictype/property-other-lowercase-tests: New file.
82882         * modules/unictype/property-other-math-tests: New file.
82883         * modules/unictype/property-other-uppercase-tests: New file.
82884         * modules/unictype/property-paired-punctuation-tests: New file.
82885         * modules/unictype/property-paragraph-separator-tests: New file.
82886         * modules/unictype/property-pattern-syntax-tests: New file.
82887         * modules/unictype/property-pattern-white-space-tests: New file.
82888         * modules/unictype/property-private-use-tests: New file.
82889         * modules/unictype/property-punctuation-tests: New file.
82890         * modules/unictype/property-quotation-mark-tests: New file.
82891         * modules/unictype/property-radical-tests: New file.
82892         * modules/unictype/property-sentence-terminal-tests: New file.
82893         * modules/unictype/property-soft-dotted-tests: New file.
82894         * modules/unictype/property-space-tests: New file.
82895         * modules/unictype/property-terminal-punctuation-tests: New file.
82896         * modules/unictype/property-test-tests: New file.
82897         * modules/unictype/property-titlecase-tests: New file.
82898         * modules/unictype/property-unassigned-code-value-tests: New file.
82899         * modules/unictype/property-unified-ideograph-tests: New file.
82900         * modules/unictype/property-uppercase-tests: New file.
82901         * modules/unictype/property-variation-selector-tests: New file.
82902         * modules/unictype/property-white-space-tests: New file.
82903         * modules/unictype/property-xid-continue-tests: New file.
82904         * modules/unictype/property-xid-start-tests: New file.
82905         * modules/unictype/property-zero-width-tests: New file.
82906         * modules/unictype/scripts-tests: New file.
82907         * modules/unictype/syntax-c-ident-tests: New file.
82908         * modules/unictype/syntax-c-whitespace-tests: New file.
82909         * modules/unictype/syntax-java-ident-tests: New file.
82910         * modules/unictype/syntax-java-whitespace-tests: New file.
82911         * tests/unictype/test-bidi_byname.c: New file.
82912         * tests/unictype/test-bidi_name.c: New file.
82913         * tests/unictype/test-bidi_of.c: New file.
82914         * tests/unictype/test-bidi_test.c: New file.
82915         * tests/unictype/test-block_list.c: New file.
82916         * tests/unictype/test-block_of.c: New file.
82917         * tests/unictype/test-block_test.c: New file.
82918         * tests/unictype/test-categ_and.c: New file.
82919         * tests/unictype/test-categ_and_not.c: New file.
82920         * tests/unictype/test-categ_byname.c: New file.
82921         * tests/unictype/test-categ_name.c: New file.
82922         * tests/unictype/test-categ_none.c: New file.
82923         * tests/unictype/test-categ_of.c: New file.
82924         * tests/unictype/test-categ_or.c: New file.
82925         * tests/unictype/test-categ_test_withtable.c: New file.
82926         * tests/unictype/test-combining.c: New file.
82927         * tests/unictype/test-decdigit.c: New file.
82928         * tests/unictype/test-digit.c: New file.
82929         * tests/unictype/test-mirror.c: New file.
82930         * tests/unictype/test-numeric.c: New file.
82931         * tests/unictype/test-pr_byname.c: New file.
82932         * tests/unictype/test-pr_test.c: New file.
82933         * tests/unictype/test-predicate-part1.h: New file.
82934         * tests/unictype/test-predicate-part2.h: New file.
82935         * tests/unictype/test-scripts.c: New file.
82936         * tests/unictype/test-sy_c_ident.c: New file.
82937         * tests/unictype/test-sy_java_ident.c: New file.
82939         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
82940         for Unicode 5.0.0.
82941         * tests/unictype/test-categ_Cc.c: Likewise.
82942         * tests/unictype/test-categ_Cf.c: Likewise.
82943         * tests/unictype/test-categ_Cn.c: Likewise.
82944         * tests/unictype/test-categ_Co.c: Likewise.
82945         * tests/unictype/test-categ_Cs.c: Likewise.
82946         * tests/unictype/test-categ_L.c: Likewise.
82947         * tests/unictype/test-categ_Ll.c: Likewise.
82948         * tests/unictype/test-categ_Lm.c: Likewise.
82949         * tests/unictype/test-categ_Lo.c: Likewise.
82950         * tests/unictype/test-categ_Lt.c: Likewise.
82951         * tests/unictype/test-categ_Lu.c: Likewise.
82952         * tests/unictype/test-categ_M.c: Likewise.
82953         * tests/unictype/test-categ_Mc.c: Likewise.
82954         * tests/unictype/test-categ_Me.c: Likewise.
82955         * tests/unictype/test-categ_Mn.c: Likewise.
82956         * tests/unictype/test-categ_N.c: Likewise.
82957         * tests/unictype/test-categ_Nd.c: Likewise.
82958         * tests/unictype/test-categ_Nl.c: Likewise.
82959         * tests/unictype/test-categ_No.c: Likewise.
82960         * tests/unictype/test-categ_P.c: Likewise.
82961         * tests/unictype/test-categ_Pc.c: Likewise.
82962         * tests/unictype/test-categ_Pd.c: Likewise.
82963         * tests/unictype/test-categ_Pe.c: Likewise.
82964         * tests/unictype/test-categ_Pf.c: Likewise.
82965         * tests/unictype/test-categ_Pi.c: Likewise.
82966         * tests/unictype/test-categ_Po.c: Likewise.
82967         * tests/unictype/test-categ_Ps.c: Likewise.
82968         * tests/unictype/test-categ_S.c: Likewise.
82969         * tests/unictype/test-categ_Sc.c: Likewise.
82970         * tests/unictype/test-categ_Sk.c: Likewise.
82971         * tests/unictype/test-categ_Sm.c: Likewise.
82972         * tests/unictype/test-categ_So.c: Likewise.
82973         * tests/unictype/test-categ_Z.c: Likewise.
82974         * tests/unictype/test-categ_Zl.c: Likewise.
82975         * tests/unictype/test-categ_Zp.c: Likewise.
82976         * tests/unictype/test-categ_Zs.c: Likewise.
82977         * tests/unictype/test-ctype_alnum.c: Likewise.
82978         * tests/unictype/test-ctype_alpha.c: Likewise.
82979         * tests/unictype/test-ctype_blank.c: Likewise.
82980         * tests/unictype/test-ctype_cntrl.c: Likewise.
82981         * tests/unictype/test-ctype_digit.c: Likewise.
82982         * tests/unictype/test-ctype_graph.c: Likewise.
82983         * tests/unictype/test-ctype_lower.c: Likewise.
82984         * tests/unictype/test-ctype_print.c: Likewise.
82985         * tests/unictype/test-ctype_punct.c: Likewise.
82986         * tests/unictype/test-ctype_space.c: Likewise.
82987         * tests/unictype/test-ctype_upper.c: Likewise.
82988         * tests/unictype/test-ctype_xdigit.c: Likewise.
82989         * tests/unictype/test-decdigit.h: Likewise.
82990         * tests/unictype/test-digit.h: Likewise.
82991         * tests/unictype/test-numeric.h: Likewise.
82992         * tests/unictype/test-pr_alphabetic.c: Likewise.
82993         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
82994         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
82995         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
82996         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
82997         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
82998         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
82999         * tests/unictype/test-pr_bidi_control.c: Likewise.
83000         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
83001         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
83002         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
83003         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
83004         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
83005         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
83006         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
83007         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
83008         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
83009         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
83010         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
83011         * tests/unictype/test-pr_combining.c: Likewise.
83012         * tests/unictype/test-pr_composite.c: Likewise.
83013         * tests/unictype/test-pr_currency_symbol.c: Likewise.
83014         * tests/unictype/test-pr_dash.c: Likewise.
83015         * tests/unictype/test-pr_decimal_digit.c: Likewise.
83016         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
83017         * tests/unictype/test-pr_deprecated.c: Likewise.
83018         * tests/unictype/test-pr_diacritic.c: Likewise.
83019         * tests/unictype/test-pr_extender.c: Likewise.
83020         * tests/unictype/test-pr_format_control.c: Likewise.
83021         * tests/unictype/test-pr_grapheme_base.c: Likewise.
83022         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
83023         * tests/unictype/test-pr_grapheme_link.c: Likewise.
83024         * tests/unictype/test-pr_hex_digit.c: Likewise.
83025         * tests/unictype/test-pr_hyphen.c: Likewise.
83026         * tests/unictype/test-pr_id_continue.c: Likewise.
83027         * tests/unictype/test-pr_id_start.c: Likewise.
83028         * tests/unictype/test-pr_ideographic.c: Likewise.
83029         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
83030         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
83031         * tests/unictype/test-pr_ignorable_control.c: Likewise.
83032         * tests/unictype/test-pr_iso_control.c: Likewise.
83033         * tests/unictype/test-pr_join_control.c: Likewise.
83034         * tests/unictype/test-pr_left_of_pair.c: Likewise.
83035         * tests/unictype/test-pr_line_separator.c: Likewise.
83036         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
83037         * tests/unictype/test-pr_lowercase.c: Likewise.
83038         * tests/unictype/test-pr_math.c: Likewise.
83039         * tests/unictype/test-pr_non_break.c: Likewise.
83040         * tests/unictype/test-pr_not_a_character.c: Likewise.
83041         * tests/unictype/test-pr_numeric.c: Likewise.
83042         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
83043         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
83044         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
83045         * tests/unictype/test-pr_other_id_continue.c: Likewise.
83046         * tests/unictype/test-pr_other_id_start.c: Likewise.
83047         * tests/unictype/test-pr_other_lowercase.c: Likewise.
83048         * tests/unictype/test-pr_other_math.c: Likewise.
83049         * tests/unictype/test-pr_other_uppercase.c: Likewise.
83050         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
83051         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
83052         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
83053         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
83054         * tests/unictype/test-pr_private_use.c: Likewise.
83055         * tests/unictype/test-pr_punctuation.c: Likewise.
83056         * tests/unictype/test-pr_quotation_mark.c: Likewise.
83057         * tests/unictype/test-pr_radical.c: Likewise.
83058         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
83059         * tests/unictype/test-pr_soft_dotted.c: Likewise.
83060         * tests/unictype/test-pr_space.c: Likewise.
83061         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
83062         * tests/unictype/test-pr_titlecase.c: Likewise.
83063         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
83064         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
83065         * tests/unictype/test-pr_uppercase.c: Likewise.
83066         * tests/unictype/test-pr_variation_selector.c: Likewise.
83067         * tests/unictype/test-pr_white_space.c: Likewise.
83068         * tests/unictype/test-pr_xid_continue.c: Likewise.
83069         * tests/unictype/test-pr_xid_start.c: Likewise.
83070         * tests/unictype/test-pr_zero_width.c: Likewise.
83071         * tests/unictype/test-sy_c_whitespace.c: Likewise.
83072         * tests/unictype/test-sy_java_whitespace.c: Likewise.
83074 2007-11-12  Bruno Haible  <bruno@clisp.org>
83076         Unicode character classification functions.
83077         * lib/unictype.h: New file.
83078         * modules/unictype/base: New file.
83079         * modules/unictype/category-L: New file.
83080         * modules/unictype/category-Lu: New file.
83081         * modules/unictype/category-Ll: New file.
83082         * modules/unictype/category-Lt: New file.
83083         * modules/unictype/category-Lm: New file.
83084         * modules/unictype/category-Lo: New file.
83085         * modules/unictype/category-M: New file.
83086         * modules/unictype/category-Mn: New file.
83087         * modules/unictype/category-Mc: New file.
83088         * modules/unictype/category-Me: New file.
83089         * modules/unictype/category-N: New file.
83090         * modules/unictype/category-Nd: New file.
83091         * modules/unictype/category-Nl: New file.
83092         * modules/unictype/category-No: New file.
83093         * modules/unictype/category-P: New file.
83094         * modules/unictype/category-Pc: New file.
83095         * modules/unictype/category-Pd: New file.
83096         * modules/unictype/category-Ps: New file.
83097         * modules/unictype/category-Pe: New file.
83098         * modules/unictype/category-Pi: New file.
83099         * modules/unictype/category-Pf: New file.
83100         * modules/unictype/category-Po: New file.
83101         * modules/unictype/category-S: New file.
83102         * modules/unictype/category-Sm: New file.
83103         * modules/unictype/category-Sc: New file.
83104         * modules/unictype/category-Sk: New file.
83105         * modules/unictype/category-So: New file.
83106         * modules/unictype/category-Z: New file.
83107         * modules/unictype/category-Zs: New file.
83108         * modules/unictype/category-Zl: New file.
83109         * modules/unictype/category-Zp: New file.
83110         * modules/unictype/category-C: New file.
83111         * modules/unictype/category-Cc: New file.
83112         * modules/unictype/category-Cf: New file.
83113         * modules/unictype/category-Cs: New file.
83114         * modules/unictype/category-Co: New file.
83115         * modules/unictype/category-Cn: New file.
83116         * modules/unictype/category-or: New file.
83117         * modules/unictype/category-of: New file.
83118         * modules/unictype/category-test: New file.
83119         * modules/unictype/category-test-withtable: New file.
83120         * modules/unictype/category-byname: New file.
83121         * modules/unictype/category-none: New file.
83122         * modules/unictype/category-and: New file.
83123         * modules/unictype/category-and-not: New file.
83124         * modules/unictype/category-name: New file.
83125         * modules/unictype/combining-class: New file.
83126         * modules/unictype/category-all: New file.
83127         * modules/unictype/bidicategory-all: New file.
83128         * modules/unictype/bidicategory-byname: New file.
83129         * modules/unictype/bidicategory-name: New file.
83130         * modules/unictype/bidicategory-of: New file.
83131         * modules/unictype/bidicategory-test: New file.
83132         * modules/unictype/decimal-digit: New file.
83133         * modules/unictype/digit: New file.
83134         * modules/unictype/numeric: New file.
83135         * modules/unictype/mirror: New file.
83136         * modules/unictype/property-white-space: New file.
83137         * modules/unictype/property-alphabetic: New file.
83138         * modules/unictype/property-other-alphabetic: New file.
83139         * modules/unictype/property-not-a-character: New file.
83140         * modules/unictype/property-default-ignorable-code-point: New file.
83141         * modules/unictype/property-other-default-ignorable-code-point: New
83142         file.
83143         * modules/unictype/property-deprecated: New file.
83144         * modules/unictype/property-logical-order-exception: New file.
83145         * modules/unictype/property-variation-selector: New file.
83146         * modules/unictype/property-private-use: New file.
83147         * modules/unictype/property-unassigned-code-value: New file.
83148         * modules/unictype/property-uppercase: New file.
83149         * modules/unictype/property-other-uppercase: New file.
83150         * modules/unictype/property-lowercase: New file.
83151         * modules/unictype/property-other-lowercase: New file.
83152         * modules/unictype/property-titlecase: New file.
83153         * modules/unictype/property-soft-dotted: New file.
83154         * modules/unictype/property-id-start: New file.
83155         * modules/unictype/property-other-id-start: New file.
83156         * modules/unictype/property-id-continue: New file.
83157         * modules/unictype/property-other-id-continue: New file.
83158         * modules/unictype/property-xid-start: New file.
83159         * modules/unictype/property-xid-continue: New file.
83160         * modules/unictype/property-pattern-white-space: New file.
83161         * modules/unictype/property-pattern-syntax: New file.
83162         * modules/unictype/property-join-control: New file.
83163         * modules/unictype/property-grapheme-base: New file.
83164         * modules/unictype/property-grapheme-extend: New file.
83165         * modules/unictype/property-other-grapheme-extend: New file.
83166         * modules/unictype/property-grapheme-link: New file.
83167         * modules/unictype/property-bidi-control: New file.
83168         * modules/unictype/property-bidi-left-to-right: New file.
83169         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
83170         * modules/unictype/property-bidi-arabic-right-to-left: New file.
83171         * modules/unictype/property-bidi-european-digit: New file.
83172         * modules/unictype/property-bidi-eur-num-separator: New file.
83173         * modules/unictype/property-bidi-eur-num-terminator: New file.
83174         * modules/unictype/property-bidi-arabic-digit: New file.
83175         * modules/unictype/property-bidi-common-separator: New file.
83176         * modules/unictype/property-bidi-block-separator: New file.
83177         * modules/unictype/property-bidi-segment-separator: New file.
83178         * modules/unictype/property-bidi-whitespace: New file.
83179         * modules/unictype/property-bidi-non-spacing-mark: New file.
83180         * modules/unictype/property-bidi-boundary-neutral: New file.
83181         * modules/unictype/property-bidi-pdf: New file.
83182         * modules/unictype/property-bidi-embedding-or-override: New file.
83183         * modules/unictype/property-bidi-other-neutral: New file.
83184         * modules/unictype/property-hex-digit: New file.
83185         * modules/unictype/property-ascii-hex-digit: New file.
83186         * modules/unictype/property-ideographic: New file.
83187         * modules/unictype/property-unified-ideograph: New file.
83188         * modules/unictype/property-radical: New file.
83189         * modules/unictype/property-ids-binary-operator: New file.
83190         * modules/unictype/property-ids-trinary-operator: New file.
83191         * modules/unictype/property-zero-width: New file.
83192         * modules/unictype/property-space: New file.
83193         * modules/unictype/property-non-break: New file.
83194         * modules/unictype/property-iso-control: New file.
83195         * modules/unictype/property-format-control: New file.
83196         * modules/unictype/property-dash: New file.
83197         * modules/unictype/property-hyphen: New file.
83198         * modules/unictype/property-punctuation: New file.
83199         * modules/unictype/property-line-separator: New file.
83200         * modules/unictype/property-paragraph-separator: New file.
83201         * modules/unictype/property-quotation-mark: New file.
83202         * modules/unictype/property-sentence-terminal: New file.
83203         * modules/unictype/property-terminal-punctuation: New file.
83204         * modules/unictype/property-currency-symbol: New file.
83205         * modules/unictype/property-math: New file.
83206         * modules/unictype/property-other-math: New file.
83207         * modules/unictype/property-paired-punctuation: New file.
83208         * modules/unictype/property-left-of-pair: New file.
83209         * modules/unictype/property-combining: New file.
83210         * modules/unictype/property-composite: New file.
83211         * modules/unictype/property-decimal-digit: New file.
83212         * modules/unictype/property-numeric: New file.
83213         * modules/unictype/property-diacritic: New file.
83214         * modules/unictype/property-extender: New file.
83215         * modules/unictype/property-ignorable-control: New file.
83216         * modules/unictype/property-test: New file.
83217         * modules/unictype/property-byname: New file.
83218         * modules/unictype/property-all: New file.
83219         * modules/unictype/scripts: New file.
83220         * modules/unictype/scripts-all: New file.
83221         * modules/unictype/block-of: New file.
83222         * modules/unictype/block-test: New file.
83223         * modules/unictype/block-list: New file.
83224         * modules/unictype/block-all: New file.
83225         * modules/unictype/syntax-c-whitespace: New file.
83226         * modules/unictype/syntax-java-whitespace: New file.
83227         * modules/unictype/syntax-c-ident: New file.
83228         * modules/unictype/syntax-java-ident: New file.
83229         * modules/unictype/ctype-alnum: New file.
83230         * modules/unictype/ctype-alpha: New file.
83231         * modules/unictype/ctype-cntrl: New file.
83232         * modules/unictype/ctype-digit: New file.
83233         * modules/unictype/ctype-graph: New file.
83234         * modules/unictype/ctype-lower: New file.
83235         * modules/unictype/ctype-print: New file.
83236         * modules/unictype/ctype-punct: New file.
83237         * modules/unictype/ctype-space: New file.
83238         * modules/unictype/ctype-upper: New file.
83239         * modules/unictype/ctype-xdigit: New file.
83240         * modules/unictype/ctype-blank: New file.
83241         * lib/unictype/bidi_byname.c: New file.
83242         * lib/unictype/bidi_name.c: New file.
83243         * lib/unictype/bidi_of.c: New file.
83244         * lib/unictype/bidi_test.c: New file.
83245         * lib/unictype/bitmap.h: New file.
83246         * lib/unictype/block_test.c: New file.
83247         * lib/unictype/blocks.c: New file.
83248         * lib/unictype/categ_C.c: New file.
83249         * lib/unictype/categ_Cc.c: New file.
83250         * lib/unictype/categ_Cf.c: New file.
83251         * lib/unictype/categ_Cn.c: New file.
83252         * lib/unictype/categ_Co.c: New file.
83253         * lib/unictype/categ_Cs.c: New file.
83254         * lib/unictype/categ_L.c: New file.
83255         * lib/unictype/categ_Ll.c: New file.
83256         * lib/unictype/categ_Lm.c: New file.
83257         * lib/unictype/categ_Lo.c: New file.
83258         * lib/unictype/categ_Lt.c: New file.
83259         * lib/unictype/categ_Lu.c: New file.
83260         * lib/unictype/categ_M.c: New file.
83261         * lib/unictype/categ_Mc.c: New file.
83262         * lib/unictype/categ_Me.c: New file.
83263         * lib/unictype/categ_Mn.c: New file.
83264         * lib/unictype/categ_N.c: New file.
83265         * lib/unictype/categ_Nd.c: New file.
83266         * lib/unictype/categ_Nl.c: New file.
83267         * lib/unictype/categ_No.c: New file.
83268         * lib/unictype/categ_P.c: New file.
83269         * lib/unictype/categ_Pc.c: New file.
83270         * lib/unictype/categ_Pd.c: New file.
83271         * lib/unictype/categ_Pe.c: New file.
83272         * lib/unictype/categ_Pf.c: New file.
83273         * lib/unictype/categ_Pi.c: New file.
83274         * lib/unictype/categ_Po.c: New file.
83275         * lib/unictype/categ_Ps.c: New file.
83276         * lib/unictype/categ_S.c: New file.
83277         * lib/unictype/categ_Sc.c: New file.
83278         * lib/unictype/categ_Sk.c: New file.
83279         * lib/unictype/categ_Sm.c: New file.
83280         * lib/unictype/categ_So.c: New file.
83281         * lib/unictype/categ_Z.c: New file.
83282         * lib/unictype/categ_Zl.c: New file.
83283         * lib/unictype/categ_Zp.c: New file.
83284         * lib/unictype/categ_Zs.c: New file.
83285         * lib/unictype/categ_and.c: New file.
83286         * lib/unictype/categ_and_not.c: New file.
83287         * lib/unictype/categ_byname.c: New file.
83288         * lib/unictype/categ_name.c: New file.
83289         * lib/unictype/categ_none.c: New file.
83290         * lib/unictype/categ_of.c: New file.
83291         * lib/unictype/categ_or.c: New file.
83292         * lib/unictype/categ_test.c: New file.
83293         * lib/unictype/combining.c: New file.
83294         * lib/unictype/ctype_alnum.c: New file.
83295         * lib/unictype/ctype_alpha.c: New file.
83296         * lib/unictype/ctype_blank.c: New file.
83297         * lib/unictype/ctype_cntrl.c: New file.
83298         * lib/unictype/ctype_digit.c: New file.
83299         * lib/unictype/ctype_graph.c: New file.
83300         * lib/unictype/ctype_lower.c: New file.
83301         * lib/unictype/ctype_print.c: New file.
83302         * lib/unictype/ctype_punct.c: New file.
83303         * lib/unictype/ctype_space.c: New file.
83304         * lib/unictype/ctype_upper.c: New file.
83305         * lib/unictype/ctype_xdigit.c: New file.
83306         * lib/unictype/decdigit.c: New file.
83307         * lib/unictype/digit.c: New file.
83308         * lib/unictype/identsyntaxmap.h: New file.
83309         * lib/unictype/mirror.c: New file.
83310         * lib/unictype/numeric.c: New file.
83311         * lib/unictype/pr_alphabetic.c: New file.
83312         * lib/unictype/pr_ascii_hex_digit.c: New file.
83313         * lib/unictype/pr_bidi_arabic_digit.c: New file.
83314         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
83315         * lib/unictype/pr_bidi_block_separator.c: New file.
83316         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
83317         * lib/unictype/pr_bidi_common_separator.c: New file.
83318         * lib/unictype/pr_bidi_control.c: New file.
83319         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
83320         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
83321         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
83322         * lib/unictype/pr_bidi_european_digit.c: New file.
83323         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
83324         * lib/unictype/pr_bidi_left_to_right.c: New file.
83325         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
83326         * lib/unictype/pr_bidi_other_neutral.c: New file.
83327         * lib/unictype/pr_bidi_pdf.c: New file.
83328         * lib/unictype/pr_bidi_segment_separator.c: New file.
83329         * lib/unictype/pr_bidi_whitespace.c: New file.
83330         * lib/unictype/pr_byname.c: New file.
83331         * lib/unictype/pr_byname.gperf: New file.
83332         * lib/unictype/pr_combining.c: New file.
83333         * lib/unictype/pr_composite.c: New file.
83334         * lib/unictype/pr_currency_symbol.c: New file.
83335         * lib/unictype/pr_dash.c: New file.
83336         * lib/unictype/pr_decimal_digit.c: New file.
83337         * lib/unictype/pr_default_ignorable_code_point.c: New file.
83338         * lib/unictype/pr_deprecated.c: New file.
83339         * lib/unictype/pr_diacritic.c: New file.
83340         * lib/unictype/pr_extender.c: New file.
83341         * lib/unictype/pr_format_control.c: New file.
83342         * lib/unictype/pr_grapheme_base.c: New file.
83343         * lib/unictype/pr_grapheme_extend.c: New file.
83344         * lib/unictype/pr_grapheme_link.c: New file.
83345         * lib/unictype/pr_hex_digit.c: New file.
83346         * lib/unictype/pr_hyphen.c: New file.
83347         * lib/unictype/pr_id_continue.c: New file.
83348         * lib/unictype/pr_id_start.c: New file.
83349         * lib/unictype/pr_ideographic.c: New file.
83350         * lib/unictype/pr_ids_binary_operator.c: New file.
83351         * lib/unictype/pr_ids_trinary_operator.c: New file.
83352         * lib/unictype/pr_ignorable_control.c: New file.
83353         * lib/unictype/pr_iso_control.c: New file.
83354         * lib/unictype/pr_join_control.c: New file.
83355         * lib/unictype/pr_left_of_pair.c: New file.
83356         * lib/unictype/pr_line_separator.c: New file.
83357         * lib/unictype/pr_logical_order_exception.c: New file.
83358         * lib/unictype/pr_lowercase.c: New file.
83359         * lib/unictype/pr_math.c: New file.
83360         * lib/unictype/pr_non_break.c: New file.
83361         * lib/unictype/pr_not_a_character.c: New file.
83362         * lib/unictype/pr_numeric.c: New file.
83363         * lib/unictype/pr_other_alphabetic.c: New file.
83364         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
83365         * lib/unictype/pr_other_grapheme_extend.c: New file.
83366         * lib/unictype/pr_other_id_continue.c: New file.
83367         * lib/unictype/pr_other_id_start.c: New file.
83368         * lib/unictype/pr_other_lowercase.c: New file.
83369         * lib/unictype/pr_other_math.c: New file.
83370         * lib/unictype/pr_other_uppercase.c: New file.
83371         * lib/unictype/pr_paired_punctuation.c: New file.
83372         * lib/unictype/pr_paragraph_separator.c: New file.
83373         * lib/unictype/pr_pattern_syntax.c: New file.
83374         * lib/unictype/pr_pattern_white_space.c: New file.
83375         * lib/unictype/pr_private_use.c: New file.
83376         * lib/unictype/pr_punctuation.c: New file.
83377         * lib/unictype/pr_quotation_mark.c: New file.
83378         * lib/unictype/pr_radical.c: New file.
83379         * lib/unictype/pr_sentence_terminal.c: New file.
83380         * lib/unictype/pr_soft_dotted.c: New file.
83381         * lib/unictype/pr_space.c: New file.
83382         * lib/unictype/pr_terminal_punctuation.c: New file.
83383         * lib/unictype/pr_test.c: New file.
83384         * lib/unictype/pr_titlecase.c: New file.
83385         * lib/unictype/pr_unassigned_code_value.c: New file.
83386         * lib/unictype/pr_unified_ideograph.c: New file.
83387         * lib/unictype/pr_uppercase.c: New file.
83388         * lib/unictype/pr_variation_selector.c: New file.
83389         * lib/unictype/pr_white_space.c: New file.
83390         * lib/unictype/pr_xid_continue.c: New file.
83391         * lib/unictype/pr_xid_start.c: New file.
83392         * lib/unictype/pr_zero_width.c: New file.
83393         * lib/unictype/scripts.c: New file.
83394         * lib/unictype/sy_c_ident.c: New file.
83395         * lib/unictype/sy_c_whitespace.c: New file.
83396         * lib/unictype/sy_java_ident.c: New file.
83397         * lib/unictype/sy_java_whitespace.c: New file.
83399         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
83400         Unicode 5.0.0.
83401         * lib/unictype/blocks.h: Likewise.
83402         * lib/unictype/categ_C.h: Likewise.
83403         * lib/unictype/categ_Cc.h: Likewise.
83404         * lib/unictype/categ_Cf.h: Likewise.
83405         * lib/unictype/categ_Cn.h: Likewise.
83406         * lib/unictype/categ_Co.h: Likewise.
83407         * lib/unictype/categ_Cs.h: Likewise.
83408         * lib/unictype/categ_L.h: Likewise.
83409         * lib/unictype/categ_Ll.h: Likewise.
83410         * lib/unictype/categ_Lm.h: Likewise.
83411         * lib/unictype/categ_Lo.h: Likewise.
83412         * lib/unictype/categ_Lt.h: Likewise.
83413         * lib/unictype/categ_Lu.h: Likewise.
83414         * lib/unictype/categ_M.h: Likewise.
83415         * lib/unictype/categ_Mc.h: Likewise.
83416         * lib/unictype/categ_Me.h: Likewise.
83417         * lib/unictype/categ_Mn.h: Likewise.
83418         * lib/unictype/categ_N.h: Likewise.
83419         * lib/unictype/categ_Nd.h: Likewise.
83420         * lib/unictype/categ_Nl.h: Likewise.
83421         * lib/unictype/categ_No.h: Likewise.
83422         * lib/unictype/categ_P.h: Likewise.
83423         * lib/unictype/categ_Pc.h: Likewise.
83424         * lib/unictype/categ_Pd.h: Likewise.
83425         * lib/unictype/categ_Pe.h: Likewise.
83426         * lib/unictype/categ_Pf.h: Likewise.
83427         * lib/unictype/categ_Pi.h: Likewise.
83428         * lib/unictype/categ_Po.h: Likewise.
83429         * lib/unictype/categ_Ps.h: Likewise.
83430         * lib/unictype/categ_S.h: Likewise.
83431         * lib/unictype/categ_Sc.h: Likewise.
83432         * lib/unictype/categ_Sk.h: Likewise.
83433         * lib/unictype/categ_Sm.h: Likewise.
83434         * lib/unictype/categ_So.h: Likewise.
83435         * lib/unictype/categ_Z.h: Likewise.
83436         * lib/unictype/categ_Zl.h: Likewise.
83437         * lib/unictype/categ_Zp.h: Likewise.
83438         * lib/unictype/categ_Zs.h: Likewise.
83439         * lib/unictype/categ_of.h: Likewise.
83440         * lib/unictype/combining.h: Likewise.
83441         * lib/unictype/ctype_alnum.h: Likewise.
83442         * lib/unictype/ctype_alpha.h: Likewise.
83443         * lib/unictype/ctype_blank.h: Likewise.
83444         * lib/unictype/ctype_cntrl.h: Likewise.
83445         * lib/unictype/ctype_digit.h: Likewise.
83446         * lib/unictype/ctype_graph.h: Likewise.
83447         * lib/unictype/ctype_lower.h: Likewise.
83448         * lib/unictype/ctype_print.h: Likewise.
83449         * lib/unictype/ctype_punct.h: Likewise.
83450         * lib/unictype/ctype_space.h: Likewise.
83451         * lib/unictype/ctype_upper.h: Likewise.
83452         * lib/unictype/ctype_xdigit.h: Likewise.
83453         * lib/unictype/decdigit.h: Likewise.
83454         * lib/unictype/digit.h: Likewise.
83455         * lib/unictype/mirror.h: Likewise.
83456         * lib/unictype/numeric.h: Likewise.
83457         * lib/unictype/pr_alphabetic.h: Likewise.
83458         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
83459         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
83460         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
83461         * lib/unictype/pr_bidi_block_separator.h: Likewise.
83462         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
83463         * lib/unictype/pr_bidi_common_separator.h: Likewise.
83464         * lib/unictype/pr_bidi_control.h: Likewise.
83465         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
83466         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
83467         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
83468         * lib/unictype/pr_bidi_european_digit.h: Likewise.
83469         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
83470         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
83471         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
83472         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
83473         * lib/unictype/pr_bidi_pdf.h: Likewise.
83474         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
83475         * lib/unictype/pr_bidi_whitespace.h: Likewise.
83476         * lib/unictype/pr_combining.h: Likewise.
83477         * lib/unictype/pr_composite.h: Likewise.
83478         * lib/unictype/pr_currency_symbol.h: Likewise.
83479         * lib/unictype/pr_dash.h: Likewise.
83480         * lib/unictype/pr_decimal_digit.h: Likewise.
83481         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
83482         * lib/unictype/pr_deprecated.h: Likewise.
83483         * lib/unictype/pr_diacritic.h: Likewise.
83484         * lib/unictype/pr_extender.h: Likewise.
83485         * lib/unictype/pr_format_control.h: Likewise.
83486         * lib/unictype/pr_grapheme_base.h: Likewise.
83487         * lib/unictype/pr_grapheme_extend.h: Likewise.
83488         * lib/unictype/pr_grapheme_link.h: Likewise.
83489         * lib/unictype/pr_hex_digit.h: Likewise.
83490         * lib/unictype/pr_hyphen.h: Likewise.
83491         * lib/unictype/pr_id_continue.h: Likewise.
83492         * lib/unictype/pr_id_start.h: Likewise.
83493         * lib/unictype/pr_ideographic.h: Likewise.
83494         * lib/unictype/pr_ids_binary_operator.h: Likewise.
83495         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
83496         * lib/unictype/pr_ignorable_control.h: Likewise.
83497         * lib/unictype/pr_iso_control.h: Likewise.
83498         * lib/unictype/pr_join_control.h: Likewise.
83499         * lib/unictype/pr_left_of_pair.h: Likewise.
83500         * lib/unictype/pr_line_separator.h: Likewise.
83501         * lib/unictype/pr_logical_order_exception.h: Likewise.
83502         * lib/unictype/pr_lowercase.h: Likewise.
83503         * lib/unictype/pr_math.h: Likewise.
83504         * lib/unictype/pr_non_break.h: Likewise.
83505         * lib/unictype/pr_not_a_character.h: Likewise.
83506         * lib/unictype/pr_numeric.h: Likewise.
83507         * lib/unictype/pr_other_alphabetic.h: Likewise.
83508         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
83509         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
83510         * lib/unictype/pr_other_id_continue.h: Likewise.
83511         * lib/unictype/pr_other_id_start.h: Likewise.
83512         * lib/unictype/pr_other_lowercase.h: Likewise.
83513         * lib/unictype/pr_other_math.h: Likewise.
83514         * lib/unictype/pr_other_uppercase.h: Likewise.
83515         * lib/unictype/pr_paired_punctuation.h: Likewise.
83516         * lib/unictype/pr_paragraph_separator.h: Likewise.
83517         * lib/unictype/pr_pattern_syntax.h: Likewise.
83518         * lib/unictype/pr_pattern_white_space.h: Likewise.
83519         * lib/unictype/pr_private_use.h: Likewise.
83520         * lib/unictype/pr_punctuation.h: Likewise.
83521         * lib/unictype/pr_quotation_mark.h: Likewise.
83522         * lib/unictype/pr_radical.h: Likewise.
83523         * lib/unictype/pr_sentence_terminal.h: Likewise.
83524         * lib/unictype/pr_soft_dotted.h: Likewise.
83525         * lib/unictype/pr_space.h: Likewise.
83526         * lib/unictype/pr_terminal_punctuation.h: Likewise.
83527         * lib/unictype/pr_titlecase.h: Likewise.
83528         * lib/unictype/pr_unassigned_code_value.h: Likewise.
83529         * lib/unictype/pr_unified_ideograph.h: Likewise.
83530         * lib/unictype/pr_uppercase.h: Likewise.
83531         * lib/unictype/pr_variation_selector.h: Likewise.
83532         * lib/unictype/pr_white_space.h: Likewise.
83533         * lib/unictype/pr_xid_continue.h: Likewise.
83534         * lib/unictype/pr_xid_start.h: Likewise.
83535         * lib/unictype/pr_zero_width.h: Likewise.
83536         * lib/unictype/scripts.h: Likewise.
83537         * lib/unictype/scripts_byname.gperf: Likewise.
83538         * lib/unictype/sy_c_ident.h: Likewise.
83539         * lib/unictype/sy_c_whitespace.h: Likewise.
83540         * lib/unictype/sy_java_ident.h: Likewise.
83541         * lib/unictype/sy_java_whitespace.h: Likewise.
83543         * lib/unictype/Makefile: New file.
83544         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
83545         glibc.
83546         * lib/unictype/3level.h: New file, copied from glibc.
83547         * lib/unictype/3levelbit.h: New file.
83549 2007-11-11  Bruno Haible  <bruno@clisp.org>
83551         * modules/gperf: New file.
83552         * modules/iconv_open (Depends-on): Add it.
83553         (Makefile.am): Remove the GPERF definition.
83555 2007-11-11  Bruno Haible  <bruno@clisp.org>
83557         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
83558         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
83560 2007-11-11  Bruno Haible  <bruno@clisp.org>
83562         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
83563         (usage): Remove function.
83565 2007-11-11  Bruno Haible  <bruno@clisp.org>
83567         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
83568         gl_FUNC_CEILF_LIBS.
83569         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
83570         gl_FUNC_CEIL_LIBS.
83571         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
83572         gl_FUNC_CEILL_LIBS.
83573         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
83574         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
83575         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
83577 2007-11-11  Bruno Haible  <bruno@clisp.org>
83579         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
83580         roundf were declared but do not exist on functions.
83581         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
83582         roundl were declared but do not exist on functions.
83583         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
83584         HAVE_FLOORL_AND_CEILL, respectively.
83585         Needed for Sun C on Solaris 10.
83587 2007-11-11  Bruno Haible  <bruno@clisp.org>
83589         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
83590         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
83591         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
83592         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
83593         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
83594         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
83595         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
83596         HAVE_DECL_ROUNDF.
83597         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
83598         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
83599         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
83600         of HAVE_DECL_ROUND*.
83601         * modules/math (Makefile.am): Update.
83603 2007-11-10  Bruno Haible  <bruno@clisp.org>
83605         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
83606         ptrdiff_t as m4/intl.m4.
83608 2007-11-10  Jim Meyering  <meyering@redhat.com>
83610         Avoid link failure for the argmatch test.
83611         * tests/test-argmatch.c (usage): Define function to avoid a link
83612         failure: argmatch_die requires a usage function.
83614 2007-11-09  Bruno Haible  <bruno@clisp.org>
83616         * doc/functions/snprintf.texi: Mention BeOS deficiency.
83617         * doc/functions/vsnprintf.texi: Likewise.
83618         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
83619         with a size argument < 2.
83621 2007-11-09  Bruno Haible  <bruno@clisp.org>
83623         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
83624         buffer. Fixes an inefficiency introduced on 2007-11-03.
83626 2007-11-09  Bruno Haible  <bruno@clisp.org>
83628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
83629         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
83631 2007-11-08  Jim Meyering  <meyering@redhat.com>
83633         Change cache variable name prefix "jm_" to "gl_" everywhere.
83634         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
83635         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
83636         * m4/uptime.m4: s/gl_/jm_/
83638 2007-11-07  Bruno Haible  <bruno@clisp.org>
83640         Update to GNU gettext 0.17.
83641         * m4/intl.m4: Update to GNU gettext 0.17.
83642         * m4/po.m4: Likewise.
83643         * modules/gettext (Files): Remove m4/ulonglong.m4.
83644         (configure.ac): Require gettext infrastructure from version 0.17.
83646 2007-11-06  Bruno Haible  <bruno@clisp.org>
83648         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
83649         symbolic values are not defined in a public header.
83650         * lib/freadable.c (freadable) [QNX]: Likewise.
83651         * lib/freadahead.c (freadahead) [QNX]: Likewise.
83652         * lib/freading.c (freading) [QNX]: Likewise.
83653         * lib/fseterr.c (fseterr) [QNX]: Likewise.
83654         * lib/fwritable.c (fwritable) [QNX]: Likewise.
83655         * lib/fwriting.c (fwriting) [QNX]: Likewise.
83656         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
83657         Reported by Alain Magloire.
83659         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
83661 2007-11-05  Bruno Haible  <bruno@clisp.org>
83663         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
83664         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
83665         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
83666         Reported by Eric Blake.
83668 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83669             Bruno Haible  <bruno@clisp.org>
83671         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
83672         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
83673         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
83674         (malloc): Undefine also before including <stdlib.h>.
83675         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
83676         Needed on OSF/1 4.0.
83678 2007-11-05  Jim Meyering  <meyering@redhat.com>
83680         git-version-gen: sync from coreutils.
83681         * build-aux/git-version-gen: Add comments.
83682         Change the first '-' to '.' in the snapshot version string,
83683         e.g., 6.9-377-08144 -> 6.9.377-08144
83684         Remove first parameter.
83685         Don't declare a version "-dirty" merely because a time
83686         stamp has changed.
83688 2007-11-04  Bruno Haible  <bruno@clisp.org>
83690         * lib/lock.h: Protect all macro definitions containing an 'if'
83691         statement through a "do { ... } while (0)".
83692         * lib/tls.h: Likewise.
83694 2007-11-04  Bruno Haible  <bruno@clisp.org>
83696         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
83698 2007-11-04  Bruno Haible  <bruno@clisp.org>
83700         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
83701         * modules/fprintf-posix (Depends-on): Add nocrash.
83702         * modules/snprintf-posix (Depends-on): Likewise.
83703         * modules/sprintf-posix (Depends-on): Likewise.
83704         * modules/vasnprintf-posix (Depends-on): Likewise.
83705         * modules/vasprintf-posix (Depends-on): Likewise.
83706         * modules/vfprintf-posix (Depends-on): Likewise.
83707         * modules/vsnprintf-posix (Depends-on): Likewise.
83708         * modules/vsprintf-posix (Depends-on): Likewise.
83709         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
83710         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83711         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83712         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83713         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83714         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83715         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83717 2007-11-04  Bruno Haible  <bruno@clisp.org>
83719         * modules/nocrash: New file.
83720         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
83721         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
83723 2007-11-04  Bruno Haible  <bruno@clisp.org>
83725         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
83726         precision handling.
83727         * tests/test-vasprintf-posix.c (test_function): Likewise.
83728         * tests/test-snprintf-posix.h (test_function): Likewise.
83729         * tests/test-sprintf-posix.h (test_function): Likewise.
83731         Fix *printf behaviour for large precisions on mingw and BeOS.
83732         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
83733         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
83734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
83735         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83737         gl_PRINTF_PRECISION and test its result. Invoke
83738         gl_PREREQ_VASNPRINTF_PRECISION.
83739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83746         * doc/functions/fprintf.texi: Update.
83747         * doc/functions/printf.texi: Update.
83748         * doc/functions/snprintf.texi: Update.
83749         * doc/functions/sprintf.texi: Update.
83750         * doc/functions/vfprintf.texi: Update.
83751         * doc/functions/vprintf.texi: Update.
83752         * doc/functions/vsnprintf.texi: Update.
83753         * doc/functions/vsprintf.texi: Update.
83755 2007-11-04  Bruno Haible  <bruno@clisp.org>
83757         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
83759 2007-11-04  Bruno Haible  <bruno@clisp.org>
83761         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
83762         Reported by Sylvain Beucler <beuc@gnu.org>.
83764 2007-11-03  Bruno Haible  <bruno@clisp.org>
83766         * tests/test-fprintf-posix2.sh: New file.
83767         * tests/test-fprintf-posix2.c: New file.
83768         * modules/fprintf-posix-tests (Files): Add them.
83769         (TESTS): Add test-fprintf-posix2.sh.
83770         (configure.ac): Check for getrlimit and setrlimit.
83771         (check_PROGRAMS): Add test-fprintf-posix2.
83773         * tests/test-printf-posix2.sh: New file.
83774         * tests/test-printf-posix2.c: New file.
83775         * modules/printf-posix-tests (Files): Add them.
83776         (TESTS): Add test-printf-posix2.sh.
83777         (configure.ac): Check for getrlimit and setrlimit.
83778         (check_PROGRAMS): Add test-printf-posix2.
83780         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
83781         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
83782         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
83783         (decode_double): New function, copied from decode_long_double.
83784         (scale10_round_decimal_decoded): New function, extracted from
83785         scale10_round_decimal_long_double.
83786         (scale10_round_decimal_long_double): Use it.
83787         (scale10_round_decimal_double): New function.
83788         (floorlog10): New function.
83789         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
83790         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
83791         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
83792         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
83793         gl_PRINTF_ENOMEM and test its result. Invoke
83794         gl_PREREQ_VASNPRINTF_ENOMEM.
83795         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
83796         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
83797         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
83798         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
83799         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
83800         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
83801         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
83802         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
83803         * modules/snprintf-posix (Depends-on): Likewise.
83804         * modules/sprintf-posix (Depends-on): Likewise.
83805         * modules/vasnprintf-posix (Depends-on): Likewise.
83806         * modules/vasprintf-posix (Depends-on): Likewise.
83807         * modules/vfprintf-posix (Depends-on): Likewise.
83808         * modules/vsnprintf-posix (Depends-on): Likewise.
83809         * modules/vsprintf-posix (Depends-on): Likewise.
83810         * doc/functions/fprintf.texi: Update.
83811         * doc/functions/printf.texi: Update.
83812         * doc/functions/snprintf.texi: Update.
83813         * doc/functions/sprintf.texi: Update.
83814         * doc/functions/vfprintf.texi: Update.
83815         * doc/functions/vprintf.texi: Update.
83816         * doc/functions/vsnprintf.texi: Update.
83817         * doc/functions/vsprintf.texi: Update.
83819 2007-11-03  Bruno Haible  <bruno@clisp.org>
83821         * modules/frexp-nolibm-tests: New file.
83823         * modules/frexp-nolibm: New file.
83824         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
83826 2007-11-03  Bruno Haible  <bruno@clisp.org>
83828         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
83829         value is C99 compliant.
83830         Needed for OSF/1 5.1.
83832 2007-11-03  Bruno Haible  <bruno@clisp.org>
83834         Fix out-of-memory handling of vasnprintf.
83835         * lib/printf-parse.c: Include <errno.h>.
83836         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
83837         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
83838         is already set.
83840 2007-11-02  Eric Blake  <ebb9@byu.net>
83842         Fix tests on cygwin.
83843         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
83845 2007-11-01  Bruno Haible  <bruno@clisp.org>
83847         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
83848         warning.
83849         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
83850         needed for POSIX compatibility.
83852 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83854         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
83855         for compatibility with GNU.
83857 2007-11-01  Bruno Haible  <bruno@clisp.org>
83859         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
83860         (putenv): Renamed from rpl_putenv. Change argument type from
83861         'const char *' to 'char *'.
83862         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
83863         of defining putenv in config.h, just set REPLACE_PUTENV.
83864         * modules/putenv (Depends-on): Add stdlib.
83865         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
83866         (Include): Use <stdlib.h>.
83867         * lib/stdlib.in.h (putenv): New declaration.
83868         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
83869         REPLACE_PUTENV.
83870         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
83871         REPLACE_PUTENV.
83872         Needed for MacOS X 10.5.0.
83873         Reported by Peter O'Gorman <peter@pogma.com>.
83875 2007-11-01  Jim Meyering  <meyering@redhat.com>
83877         Treat an empty date string exactly like "0".
83878         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
83879         if the remaining date string (to be parsed) is empty, use "0".
83880         Reported by Mischa Molhoek and discussed in this thread:
83881         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
83883 2007-10-31  Bruno Haible  <bruno@clisp.org>
83885         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
83886         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
83887         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
83888         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
83889         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
83890         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
83892 2007-10-31  Bruno Haible  <bruno@clisp.org>
83894         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
83895         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
83896         (AC_TYPE_LONG_LONG_INT): Use it.
83897         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
83898         it as well.
83899         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
83900         to m4/longlong.m4.
83901         * modules/stdint (Files): Remove m4/ulonglong.m4.
83902         * modules/strtoull (Files): Use m4/longlong.m4 instead of
83903         m4/ulonglong.m4.
83904         * modules/strtoumax (Files): Likewise.
83906 2007-10-30  Bruno Haible  <bruno@clisp.org>
83908         * modules/xvasprintf-posix: New file.
83909         Suggested by Eric Blake.
83911 2007-10-30  Bruno Haible  <bruno@clisp.org>
83913         * modules/xprintf-posix-tests: New file.
83914         * tests/test-xprintf-posix.sh: New file.
83915         * tests/test-xprintf-posix.c: New file.
83916         * tests/test-xfprintf-posix.c: New file.
83918         * modules/xprintf-posix: New file.
83920 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83922         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
83923         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
83924         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
83926 2007-10-29  Bruno Haible  <bruno@clisp.org>
83928         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
83929         contain the special marker '_cv_'.
83930         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
83931         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
83932         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
83933         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
83934         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
83935         Reported by Ralf Wildenhues.
83937 2007-10-29  Bruno Haible  <bruno@clisp.org>
83939         * gnulib-tool (func_import): When --lgpl is not specified, set
83940         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
83941         GPLv3.
83942         Reported by Simon Josefsson.
83944 2007-10-28  Bruno Haible  <bruno@clisp.org>
83946         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
83947         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
83948         HAVE_DECL_ISFINITE.
83949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83950         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
83951         HAVE_DECL_ISFINITE.
83953 2007-10-28  Bruno Haible  <bruno@clisp.org>
83955         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
83956         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
83958 2007-10-28  Bruno Haible  <bruno@clisp.org>
83960         Fix link errors with Sun C 5.0 on Solaris 10.
83961         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
83962         function is declared but not present in the compiler's libm.
83963         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
83964         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
83965         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
83966         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
83967         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
83968         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
83969         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
83970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
83971         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
83972         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
83973         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
83974         HAVE_DECL_FLOORL.
83976 2007-10-28  Bruno Haible  <bruno@clisp.org>
83978         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
83979         gl_FUNC_FLOORL. Cache the result.
83980         (gl_FUNC_FLOORL): Use it.
83981         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
83982         gl_FUNC_CEILL. Cache the result.
83983         (gl_FUNC_CEILL): Use it.
83985         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
83986         gl_FUNC_FLOOR. Cache the result.
83987         (gl_FUNC_FLOOR): Use it.
83988         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
83989         gl_FUNC_CEIL. Cache the result.
83990         (gl_FUNC_CEIL): Use it.
83992         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
83993         gl_FUNC_FLOORF. Cache the result.
83994         (gl_FUNC_FLOORF): Use it.
83995         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
83996         gl_FUNC_CEILF. Cache the result.
83997         (gl_FUNC_CEILF): Use it.
83999 2007-10-28  Bruno Haible  <bruno@clisp.org>
84001         * gnulib-tool: Allow specifying the LGPL version number through
84002         --lgpl=2 or --lgpl=3.
84003         (func_usage): Document --lgpl with argument.
84004         Handle --lgpl=... arguments.
84005         (func_import): Recognize also gl_LGPL calls with an argument. When
84006         --lgpl=2 is used and the module's license is just LGPL, report an
84007         error. Set sed_transform_lib_file according to the lgpl variable. In
84008         the generated files, use --lgpl or gl_LGPL invocations with argument,
84009         if necessary.
84010         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
84011         an LGPv2+ license.
84012         * doc/gnulib-tool.texi (Modified imports): Update explanation of
84013         gl_LGPL macro.
84015 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84016             Bruno Haible  <bruno@clisp.org>
84018         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
84019         (u16_uctomb_aux): Likewise.
84020         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
84021         !HAVE_INLINE.
84022         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
84024 2007-10-28  Bruno Haible  <bruno@clisp.org>
84026         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
84027         Invoke AM_GETTEXT_OPTION if it exists.
84028         * modules/vasprintf: Likewise.
84029         * modules/verror: Likewise.
84030         * modules/xprintf: Likewise.
84031         * modules/xvasprintf: Likewise.
84033 2007-10-27  Ben Pfaff  <blp@gnu.org>
84035         * lib/math.in.h: Define isfinite macro and prototypes for
84036         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
84037         implementations.
84038         * m4/math_h.m4: New substitutions for isfinite module.
84039         * lib/isfinite.c: New file.
84040         * m4/isfinite.m4: New file.
84041         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
84042         * modules/isfinite: New file.
84043         * modules/isfinite-tests: New file.
84044         * tests/tests-isfinite.c: New file.
84045         * doc/functions/isfinite.texi: Mention isfinite module.
84046         * MODULES.html.sh: Mention new module.
84048 2007-10-27  Ben Pfaff  <blp@gnu.org>
84050         Ralf Wildenhues reported that Tru64 4.0D declares the round
84051         functions but does not have definitions.
84052         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
84053         cannot be found in any library, set the output variable to
84054         "missing" instead of "".
84055         * m4/round.m4: Also use our substitute if we cannot find round in
84056         any library, even if it is declared.
84057         * m4/roundf.m4: Likewise for roundf.
84058         * m4/roundl.m4: Likewise for roundl.
84059         * lib/math.in.h: Undefine roundf, round, roundl before defining
84060         their replacements, to allow for hypothetical systems where these
84061         may be defined as macros but not available in libraries.
84063 2007-10-27  Bruno Haible  <bruno@clisp.org>
84065         * doc/gnulib.texi: Invoke @firstparagraphindent.
84066         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
84067         changes in gnulib.
84068         (Source changes): New section.
84070 2007-10-26  Bruno Haible  <bruno@clisp.org>
84072         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
84073         borrowed from autoconf.
84075 2007-10-26  Bruno Haible  <bruno@clisp.org>
84077         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
84078         strerror returned the empty string. Needed on HP-UX 11.00.
84080 2007-10-24  Micah Cowan  <micah@cowan.name>
84082         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
84083         * build-aux/bootstrap: Remove support for now-unnecessary option,
84084         --cvs-user, and envvars CVS_USER, CVS_RSH.
84086 2007-10-24  Jim Meyering  <meyering@redhat.com>
84088         Avoid diagnostics from sha1sum when there is no cached checksum.
84089         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
84090         if the po.s1 file hasn't been created yet.
84092         * build-aux/bootstrap: Sync from coreutils:
84093         2007-10-24  Jim Meyering  <meyering@redhat.com>
84094         Get gnulib from the git repository, not from an obsolete cvs one.
84095         * build-aux/bootstrap: Suggestion from Micah Cowan.
84096         2007-10-04  Jim Meyering  <jim@meyering.net>
84097         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
84098         (update_po_files): Work also when there are no .po files in po/.
84100 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84102         * README: Append ".git" to git and cg examples.
84103         Problem reported by Benoit Sigoure.
84105 2007-10-23  Micah Cowan  <micah@cowan.name>
84107         * users.txt: Add wget.
84109 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84111         Fix linking of some unistdio tests on FreeBSD.
84112         * modules/unistdio/u16-vsnprintf-tests
84113         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
84114         * modules/unistdio/u16-vsprintf-tests
84115         (test_u16_vsnprintf1_LDADD): Likewise.
84116         * modules/unistdio/u32-vsnprintf-tests
84117         (test_u32_vsnprintf1_LDADD): Likewise.
84118         * modules/unistdio/u32-vsprintf-tests
84119         (test_u32_vsprintf1_LDADD): Likewise.
84120         * modules/unistdio/u8-vsnprintf-tests
84121         (test_u8_vsnprintf1_LDADD): Likewise.
84122         * modules/unistdio/u8-vsprintf-tests
84123         (test_u8_vsprintf1_LDADD): Likewise.
84124         * modules/unistdio/ulc-vsnprintf-tests
84125         (test_ulc_vsnprintf1_LDADD): Likewise.
84126         * modules/unistdio/ulc-vsprintf-tests
84127         (test_ulc_vsprintf1_LDADD): Likewise.
84129         Fix linking of some uniconv tests on FreeBSD.
84130         * modules/uniconv/u16-conv-from-enc-tests
84131         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
84132         * modules/uniconv/u16-conv-to-enc-tests
84133         (test_u16_conv_to_enc_LDADD): Likewise.
84134         * modules/uniconv/u16-strconv-from-enc-tests
84135         (test_u16_strconv_from_enc_LDADD): Likewise.
84136         * modules/uniconv/u16-strconv-to-enc-tests
84137         (test_u16_strconv_to_enc_LDADD): Likewise.
84138         * modules/uniconv/u32-conv-from-enc-tests
84139         (test_u32_conv_from_enc_LDADD): Likewise.
84140         * modules/uniconv/u32-conv-to-enc-tests
84141         (test_u32_conv_to_enc_LDADD): Likewise.
84142         * modules/uniconv/u32-strconv-from-enc-tests
84143         (test_u32_strconv_from_enc_LDADD): Likewise.
84144         * modules/uniconv/u32-strconv-to-enc-tests
84145         (test_u32_strconv_to_enc_LDADD): Likewise.
84146         * modules/uniconv/u8-conv-from-enc-tests
84147         (test_u8_conv_from_enc_LDADD): Likewise.
84148         * modules/uniconv/u8-conv-to-enc-tests
84149         (test_u8_conv_to_enc_LDADD): Likewise.
84150         * modules/uniconv/u8-strconv-from-enc-tests
84151         (test_u8_strconv_from_enc_LDADD): Likewise.
84152         * modules/uniconv/u8-strconv-to-enc-tests
84153         (test_u8_strconv_to_enc_LDADD): Likewise.
84155 2007-10-22  Bruno Haible  <bruno@clisp.org>
84157         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
84158         size.
84160 2007-10-22  Eric Blake  <ebb9@byu.net>
84162         Tweak x*printf documentation.
84163         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
84164         variable name and comments.
84165         Suggested by Bruno Haible.
84167 2007-10-22  Bruno Haible  <bruno@clisp.org>
84169         * lib/acl.c (copy_acl): Fix file name in comment.
84171 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84173         Fix Tru64 problem with stdbool.h.
84174         * lib/stdbool.in.h (false, true):
84175         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
84176         Don't declare as an enum in this situation; it runs afoul of Tru64.
84177         Problem reported by Steven M. Schweda in
84178         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
84180 2007-10-22  Eric Blake  <ebb9@byu.net>
84182         Also wrap vf?printf.
84183         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
84184         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
84185         (xvprintf, xvfprintf): New functions.
84187 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84189         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
84190         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
84192         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
84193         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
84195 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84197         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
84198         by Bruno Haible.
84200 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84202         * lib/getloadavg.c
84203         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
84204         Undef `sys' after including sys/table.h, for Tru64 4.0D.
84206         * tests/test-i-ring.c: Work for C89.
84208 2007-10-22  Bruno Haible  <bruno@clisp.org>
84210         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
84211         -1u, in preprocessor expression, so that we don't test for the bug
84212         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
84213         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
84215 2007-10-22  Eric Blake  <ebb9@byu.net>
84217         * tests/test-yesno.sh: Silence stderr during test.
84219 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84221         * modules/crypto/gc-camellia: New file.
84223         * m4/gc-camellia.m4: New file.
84225         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
84227         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
84229 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84231         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
84232         --help to stdout.  Reported by sms@antinode.org (Steven
84233         M. Schweda).
84235 2007-10-22  Simon Josefsson  <simon@josefsson.org>
84237         * users.txt: Fix link to libksba.
84239 2007-10-21  Ben Pfaff  <blp@gnu.org>
84241         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
84242         round.c roundf implementation that depends on floorf and ceilf to
84243         be tested unconditionally.
84245 2007-10-21  Ben Pfaff  <blp@gnu.org>
84247         * m4/check-libm-func.m4: Removed.
84248         * m4/check-math-lib.m4: New file.
84249         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
84250         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
84251         definition and lack of AC_LIBOBJ([roundf]).
84252         * m4/roundl.m4: Ditto, and similarly for roundl.
84253         * modules/round: Reference new m4 file.
84254         * modules/roundf: Ditto.
84255         * modules/roundl: Ditto.
84256         * tests/test-round2.c (main): Use ROUND instead of round.
84257         Bug report from Bruno Haible.
84259 2007-10-21  Bruno Haible  <bruno@clisp.org>
84261         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
84262         context.
84264 2007-10-21  Bruno Haible  <bruno@clisp.org>
84266         * tests/test-wcwidth.c (main): Allow negative result for some control
84267         characters.
84269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
84270         Needed on OSF/1 5.1.
84272 2007-10-21  Bruno Haible  <bruno@clisp.org>
84274         * tests/test-floorf1.c: Include isnanf.h.
84275         (main): Use isnanf() instead of isnan().
84276         * tests/test-ceilf1.c: Include isnanf.h.
84277         (main): Use isnanf() instead of isnan().
84278         * tests/test-truncf1.c: Include isnanf.h.
84279         (main): Use isnanf() instead of isnan().
84280         * tests/test-roundf1.c: Include isnanf.h.
84281         (main): Use isnanf() instead of isnan().
84283 2007-10-21  Eric Blake  <ebb9@byu.net>
84285         * users.txt: Update URL for m4.
84287 2007-10-21  Bruno Haible  <bruno@clisp.org>
84289         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
84291 2007-10-21  Bruno Haible  <bruno@clisp.org>
84293         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
84294         Git's management files if the CVS files are not present.
84296 2007-10-20  Bruno Haible  <bruno@clisp.org>
84298         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
84299         gcc-3.4.x.
84301 2007-10-20  Ben Pfaff  <blp@gnu.org>
84303         * lib/math.in.h: Declare round, roundf, roundl if we are providing
84304         implementations.
84305         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
84306         * lib/round.c: New file.
84307         * lib/roundf.c: New file.
84308         * lib/roundl.c: New file.
84309         * m4/round.m4: New file.
84310         * m4/roundf.m4: New file.
84311         * m4/roundl.m4: New file.
84312         * m4/check-libm-func-m4: New file.
84313         * modules/math: Replace round, roundf, roundl related @VARS@ in
84314         math.in.h.
84315         * modules/round: New file.
84316         * modules/round-tests: New file.
84317         * modules/roundf: New file.
84318         * modules/roundf-tests: New file.
84319         * modules/roundl: New file.
84320         * modules/roundl-tests: New file.
84321         * tests/test-round1.c: New file.
84322         * tests/test-round2.c: New file.
84323         * tests/test-roundf1.c: New file.
84324         * tests/test-roundf2.c: New file.
84325         * tests/test-roundl.c: New file.
84326         * doc/functions/round.texi: Mention round module.
84327         * doc/functions/roundf.texi: Mention roundf module.
84328         * doc/functions/roundl.texi: Mention roundl module.
84329         * MODULES.html.sh: Mention new modules.
84330         Thanks to Bruno Haible for suggestions.
84332 2007-10-20  Jim Meyering  <meyering@redhat.com>
84334         * lib/xprintf.c: Include <config.h> unconditionally.
84336         Change xprintf's license to GPL.
84337         * modules/xprintf (License): s/LGPL/GPL/, since this module
84338         depends on modules (exit and exitfail) which are GPL.
84339         Suggestion from Bruno Haible.
84341         xprintf fixes.
84342         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
84343         Use a clearer diagnostic.
84344         Patch from Bruno Haible.
84346 2007-10-20  Bruno Haible  <bruno@clisp.org>
84348         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
84349         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
84350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84352 2007-10-20  Bruno Haible  <bruno@clisp.org>
84354         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
84355         precision in the comparison result > x - 1 or similar.
84356         * tests/test-ceilf2.c (correct_result_p): Likewise.
84357         * tests/test-truncf2.c (correct_result_p): Likewise.
84358         * tests/test-trunc2.c (correct_result_p): Likewise.
84359         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
84361 2007-10-20  Bruno Haible  <bruno@clisp.org>
84363         * modules/ceil: New file.
84364         * m4/ceil.m4: New file.
84365         * doc/functions/ceil.texi: Mention the 'ceil' module.
84367 2007-10-20  Bruno Haible  <bruno@clisp.org>
84369         * modules/floor: New file.
84370         * m4/floor.m4: New file.
84371         * doc/functions/floor.texi: Mention the 'floor' module.
84373 2007-10-20  Bruno Haible  <bruno@clisp.org>
84375         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
84376         of %a.
84377         * modules/floorf-tests (Depends-on): Likewise.
84378         * modules/truncf-tests (Depends-on): Likewise.
84379         * modules/trunc-tests (Depends-on): Likewise.
84380         Reported by Ben Pfaff.
84382 2007-10-19  Jim Meyering  <meyering@redhat.com>
84384         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
84385         Don't bother testing specific errno values.  Just test ferror.
84387         New module: xprintf
84388         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
84390 2007-10-19  Bruno Haible  <bruno@clisp.org>
84392         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
84393         syntax.
84394         * modules/javaexec (Makefile.am): Likewise.
84395         * modules/relocatable-prog (Makefile.am): Likewise.
84396         Suggested by Jim Meyering.
84398 2007-10-18  Bruno Haible  <bruno@clisp.org>
84400         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
84401         Reported by Jim Meyering.
84403 2007-10-18  Eric Blake  <ebb9@byu.net>
84405         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
84407 2007-10-18  Bruno Haible  <bruno@clisp.org>
84409         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
84410         the format string into writable memory. Needed in Fortify conditions.
84412 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
84413             Bruno Haible  <bruno@clisp.org>
84415         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
84416         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
84417         * modules/trim (Depends-on): Add mbchar.
84418         (configure.ac): Add gl_FUNC_MBRTOWC.
84419         (Makefile.am): Augment lib_SOURCES.
84421 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84423         Modify glob.c to use fstatat and dirfd, to simplify it.
84424         Suggested by Eric Blake.
84425         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
84426         Don't include <stdbool.h>; not used.
84427         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
84428         (link_exists_p): Simplify implementation, since we can now assume
84429         dirfd and fstatat.
84430         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
84432 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84434         * gnulib-tool (func_get_dependencies): Fix sed script to
84435         match only tests.
84437 2007-10-17  Bruno Haible  <bruno@clisp.org>
84439         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
84440         allow locale names without encoding suffix.
84441         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
84442         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
84444 2007-10-16  Bruno Haible  <bruno@clisp.org>
84446         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
84447         * lib/getgroups.c (getgroups): Likewise.
84448         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
84450 2007-10-16  Bruno Haible  <bruno@clisp.org>
84452         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
84453         * modules/malloc-posix (License): Likewise.
84454         * modules/realloc-posix (License): Likewise.
84455         * modules/calloc-posix (License): Likewise.
84456         * modules/intprops (License): Change from GPL to LGPL, with
84457         Paul Eggert's approval.
84459 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84461         Merge glibc changes into lib/glob.c.
84463         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
84464         2007-10-15 04:59:03 UTC.  Here are the changes:
84466         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
84468         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
84470         * lib/glob.c: Add some branch prediction throughout.
84472         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
84474         [BZ #5103]
84475         * lib/glob.c (glob): Recognize patterns starting \/.
84477         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
84479         [BZ #3996]
84480         * lib/glob.c (attribute_hidden): Define if not defined.
84481         (glob): Unescape dirname, filename or username when needed and not
84482         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
84483         is NULL.  Handle unescaped [ in pattern without closing ].
84484         Don't pass GLOB_CHECK down to recursive glob for directories.
84485         (__glob_pattern_type): New function.
84486         (__glob_pattern_p): Implement using __glob_pattern_type.
84487         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
84488         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
84489         Remove unreachable code.
84491         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
84493         * lib/glob.c (glob_in_dir): Add some comments and asserts to
84494         explain why there are no leaks.
84496         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
84498         [BZ #3253]
84499         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
84500         time, rather allocate increasingly bigger arrays of pointers, if
84501         possible with alloca, if too large with malloc.
84503 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
84505         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
84506         Problem reported by H.Merijn Brand in
84507         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
84508         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
84509         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
84511 2007-10-15  Bruno Haible  <bruno@clisp.org>
84513         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
84514         with explicit rpl_ prefix.
84515         * lib/fopen.c (fopen): Likewise.
84516         * lib/freopen.c (freopen): Likewise.
84517         * lib/iconv.c (iconv): Likewise.
84518         * lib/iconv_close.c (iconv_close): Likewise.
84520 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84522         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
84524 2007-10-15  Bruno Haible  <bruno@clisp.org>
84526         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
84527         <stddef.h> instead of <stdlib.h> since we only need NULL.
84528         Reported by Ben Pfaff <blp@cs.stanford.edu>.
84530 2007-10-15  Bruno Haible  <bruno@clisp.org>
84532         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
84533         Replace paragraph talking about LIBOBJS.
84534         Reported by Colin Watson <cjwatson@debian.org>.
84536 2007-10-15  Bruno Haible  <bruno@clisp.org>
84538         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
84539         <stdlib.h> before using NULL.
84541 2007-10-15  Simon Josefsson  <simon@josefsson.org>
84543         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
84544         Reported by Albert Chin <china@thewrittenword.com>.
84546 2007-10-14  Bruno Haible  <bruno@clisp.org>
84548         * modules/iconv_open-utf-tests: New file.
84549         * tests/test-iconv-utf.c: New file.
84551         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
84552         * modules/iconv_open-utf: New file.
84553         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
84554         (iconv, iconv_close): New declarations.
84555         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
84556         be defined.
84557         (iconv_open): Add special handling of conversion between UTF-8 and
84558         UTF-{16,32}{BE,LE}.
84559         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
84560         * lib/iconv_close.c: New file.
84561         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
84562         gl_FUNC_ICONV_OPEN.
84563         (gl_FUNC_ICONV_OPEN): Use it.
84564         (gl_FUNC_ICONV_OPEN_UTF): New macro.
84565         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
84566         and REPLACE_ICONV_UTF.
84567         * modules/iconv_open (Depends-on): Add c-strcase.
84568         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
84569         ICONV_CONST.
84570         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
84572 2007-10-13  Albert Chin  <china@thewrittenword.com>
84573             Bruno Haible  <bruno@clisp.org>
84575         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
84576         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
84578 2007-10-13  Bruno Haible  <bruno@clisp.org>
84580         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
84581         defined, use the ISO C99 inline semantics.
84582         * lib/argp.h (ARGP_EI): Likewise.
84584 2007-10-13  Bruno Haible  <bruno@clisp.org>
84586         Handle 'inline' change in gcc 4.3.0.
84587         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
84588         argp_fmtstream_write, argp_fmtstream_set_lmargin,
84589         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
84590         argp_fmtstream_point): Disable 'extern' declaration if the function
84591         definition is going to be provided inline.
84592         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
84593         semantics, not the ISO C99 inline semantics.
84594         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
84595         'extern' declaration if the function definition is going to be provided
84596         inline.
84597         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
84598         the GNU C inline semantics, not the ISO C99 inline semantics. With
84599         GCC 4.2, avoid a warning.
84601 2007-10-13  Bruno Haible  <bruno@clisp.org>
84603         * lib/freading.h (freading): Enable the use of __freading for
84604         glibc >= 2.7.
84605         * lib/freading.c (freading): Likewise.
84607 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
84609         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
84610         "warning: C99 inline functions are not supported; using GNU89".
84612 2007-10-12  Bruno Haible  <bruno@clisp.org>
84614         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
84615         of 2.
84616         * tests/test-ceilf2.c: New file.
84617         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
84619         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
84620         * modules/ceilf-tests: Update.
84622 2007-10-12  Bruno Haible  <bruno@clisp.org>
84624         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
84625         of 2.
84626         * tests/test-floorf2.c: New file.
84627         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
84629         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
84630         * modules/floorf-tests: Update.
84632 2007-10-12  Bruno Haible  <bruno@clisp.org>
84634         * tests/test-trunc2.c: New file.
84635         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
84637         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
84638         * modules/trunc-tests: Update.
84640 2007-10-12  Bruno Haible  <bruno@clisp.org>
84642         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
84643         of 2.
84644         * tests/test-truncf2.c: New file.
84645         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
84647         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
84648         * modules/truncf-tests: Update.
84650 2007-10-11  Eric Blake  <ebb9@byu.net>
84652         Don't claim strerror is broken on Interix.
84653         * doc/functions/strerror.texi (strerror): Known broken systems are
84654         now Solaris 8, and not Interix.
84655         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
84656         Interix on cross-compile.
84657         Reported by Martin Koeppe in
84658         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
84660 2007-10-11  Bruno Haible  <bruno@clisp.org>
84662         * modules/i-ring-tests: New file.
84663         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
84664         instead of assert.
84666 2007-10-11  Bruno Haible  <bruno@clisp.org>
84668         * modules/filenamecat-tests: New file.
84669         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
84670         * lib/filenamecat.c: Remove test code.
84672 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
84674         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
84676         * lib/strerror.c: Include <string.h> always, to test interface,
84677         and to remove the need for the dummy.
84678         Include intprops.h to compute width instead of doing it ourselves
84679         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
84680         (strerror): Define it to return NULL if there's no system strerror.
84681         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
84682         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
84683         ancient pre-strerror Unix systems well any more.  Saying "unknown
84684         system error" is enough.
84685         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
84686         simpler strerror.c implementation.
84687         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
84688         Simplify the tests to reflect the simpler strerror implementation.
84689         * modules/strerror (Depends-on): Add intprops.
84691 2007-10-09  Eric Blake  <ebb9@byu.net>
84693         Silence test-fpending.
84694         * modules/fpending-tests (Files): Add wrapper script.
84695         * tests/test-fpending.sh: New file.
84697 2007-10-09  Bruno Haible  <bruno@clisp.org>
84699         * MODULES.html.sh (func_module): Don't create a hyperlink for
84700         function names like 'printf_frexp'.
84701         (Misc): Add crc, memxor.
84702         (Characteristics of floating types): New section.
84703         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
84704         isnanf-nolibm, signbit, trunc, truncf, truncl.
84705         (Enhancements for ISO C 99 functions): New subsection Input/output.
84706         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
84707         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
84708         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
84709         (Compatibility checks for POSIX:2001 functions): Add clock-time.
84710         (Enhancements for POSIX:2001 functions): Add chdir-long.
84711         (File system functions): Add areadlink, chdir-safer, read-file.
84712         Remove cycle-check.
84713         (File system as inode set): New section.
84714         (Date and time): Add gethrxtime.
84715         (Multithreading): Add openmp.
84716         (Internationalization functions): Add localename.
84717         (Unicode string functions): Add unistr/u*-mbsnlen.
84718         (Support for maintaining and releasing projects): Add git-version-gen.
84719         (Lone files): Remove directories.
84721 2007-10-08  Ben Pfaff  <blp@gnu.org>
84723         * lib/xmalloca.h: Fix typo in comment.
84725 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
84727         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
84728         when avoiding problems with integer overflow.  Use a portable test
84729         instead.
84731 2007-10-08  Simon Josefsson  <simon@josefsson.org>
84733         * modules/dummy (License): Change to LGPLv2+.
84734         * modules/float (License): Likewise
84735         * modules/realloc (License): Likewise
84736         * modules/stdlib (License): Likewise
84738 2007-10-07  Bruno Haible  <bruno@clisp.org>
84740         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
84741         * floor.c (TWO_MANT_DIG): Likewise.
84742         * ceil.c (TWO_MANT_DIG): Likewise.
84743         Reported by Ben Pfaff.
84745 2007-10-07  Bruno Haible  <bruno@clisp.org>
84747         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
84748         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
84749         * lib/frexp.c (FUNC): Likewise.
84750         * lib/printf-frexp.h (printf_frexp): Likewise.
84751         * lib/printf-frexpl.h (printf_frexpl): Likewise.
84752         * lib/printf-frexp.c (FUNC): Likewise.
84753         Suggested by Jim Meyering.
84755 2007-10-07  Jim Meyering  <meyering@redhat.com>
84757         Make xnanosleep's integer overflow test more robust.
84758         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
84759         so that gcc-4.3.0 doesn't optimize away this test for overflow.
84761 2007-10-07  Bruno Haible  <bruno@clisp.org>
84763         * NEWS: Mention the license change.
84765         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
84766         abbreviations in the modules files.
84768         Change copyright notice from GPLv2+ to GPLv3+.
84769         * README: Change copyright notice.
84770         * MODULES.html.sh: Likewise.
84771         * build-aux/bootstrap.conf: Likewise.
84772         * build-aux/config.libpath: Likewise.
84773         * build-aux/csharpcomp.sh.in: Likewise.
84774         * build-aux/csharpexec.sh.in: Likewise.
84775         * build-aux/install-reloc: Likewise.
84776         * build-aux/javacomp.sh.in: Likewise.
84777         * build-aux/javaexec.sh.in: Likewise.
84778         * build-aux/ldd.sh.in: Likewise.
84779         * build-aux/reloc-ldflags: Likewise.
84780         * build-aux/relocatable.sh.in: Likewise.
84781         * build-aux/x-to-1.in: Likewise.
84782         * check-module: Likewise.
84783         * config/srclistvars.sh: Likewise.
84784         * gnulib-tool: Likewise.
84785         * lib/acl-internal.h: Likewise.
84786         * lib/acl.c: Likewise.
84787         * lib/acl.h: Likewise.
84788         * lib/acl_entries.c: Likewise.
84789         * lib/areadlink-with-size.c: Likewise.
84790         * lib/areadlink.c: Likewise.
84791         * lib/areadlink.h: Likewise.
84792         * lib/argmatch.c: Likewise.
84793         * lib/argmatch.h: Likewise.
84794         * lib/argp-ba.c: Likewise.
84795         * lib/argp-eexst.c: Likewise.
84796         * lib/argp-fmtstream.c: Likewise.
84797         * lib/argp-fmtstream.h: Likewise.
84798         * lib/argp-fs-xinl.c: Likewise.
84799         * lib/argp-help.c: Likewise.
84800         * lib/argp-namefrob.h: Likewise.
84801         * lib/argp-parse.c: Likewise.
84802         * lib/argp-pin.c: Likewise.
84803         * lib/argp-pv.c: Likewise.
84804         * lib/argp-pvh.c: Likewise.
84805         * lib/argp-xinl.c: Likewise.
84806         * lib/argp.h: Likewise.
84807         * lib/at-func.c: Likewise.
84808         * lib/atanl.c: Likewise.
84809         * lib/backupfile.c: Likewise.
84810         * lib/backupfile.h: Likewise.
84811         * lib/basename.c: Likewise.
84812         * lib/binary-io.h: Likewise.
84813         * lib/byteswap.in.h: Likewise.
84814         * lib/c-stack.c: Likewise.
84815         * lib/c-stack.h: Likewise.
84816         * lib/c-strcasestr.c: Likewise.
84817         * lib/c-strcasestr.h: Likewise.
84818         * lib/c-strstr.c: Likewise.
84819         * lib/c-strstr.h: Likewise.
84820         * lib/c-strtod.c: Likewise.
84821         * lib/calloc.c: Likewise.
84822         * lib/canon-host.c: Likewise.
84823         * lib/canon-host.h: Likewise.
84824         * lib/canonicalize-lgpl.c: Likewise.
84825         * lib/canonicalize.c: Likewise.
84826         * lib/canonicalize.h: Likewise.
84827         * lib/ceil.c: Likewise.
84828         * lib/ceilf.c: Likewise.
84829         * lib/ceill.c: Likewise.
84830         * lib/chdir-long.c: Likewise.
84831         * lib/chdir-long.h: Likewise.
84832         * lib/chdir-safer.c: Likewise.
84833         * lib/chdir-safer.h: Likewise.
84834         * lib/chown.c: Likewise.
84835         * lib/classpath.c: Likewise.
84836         * lib/classpath.h: Likewise.
84837         * lib/clean-temp.c: Likewise.
84838         * lib/clean-temp.h: Likewise.
84839         * lib/cloexec.c: Likewise.
84840         * lib/close-stream.c: Likewise.
84841         * lib/closein.c: Likewise.
84842         * lib/closein.h: Likewise.
84843         * lib/closeout.c: Likewise.
84844         * lib/closeout.h: Likewise.
84845         * lib/concat-filename.c: Likewise.
84846         * lib/copy-file.c: Likewise.
84847         * lib/copy-file.h: Likewise.
84848         * lib/count-one-bits.h: Likewise.
84849         * lib/crc.c: Likewise.
84850         * lib/crc.h: Likewise.
84851         * lib/creat-safer.c: Likewise.
84852         * lib/csharpcomp.c: Likewise.
84853         * lib/csharpcomp.h: Likewise.
84854         * lib/csharpexec.c: Likewise.
84855         * lib/csharpexec.h: Likewise.
84856         * lib/cycle-check.c: Likewise.
84857         * lib/cycle-check.h: Likewise.
84858         * lib/diacrit.c: Likewise.
84859         * lib/diacrit.h: Likewise.
84860         * lib/diffseq.h: Likewise.
84861         * lib/dirchownmod.c: Likewise.
84862         * lib/dirent.in.h: Likewise.
84863         * lib/dirfd.c: Likewise.
84864         * lib/dirfd.h: Likewise.
84865         * lib/dirname.c: Likewise.
84866         * lib/dirname.h: Likewise.
84867         * lib/dummy.c: Likewise.
84868         * lib/dup-safer.c: Likewise.
84869         * lib/dup2.c: Likewise.
84870         * lib/eealloc.h: Likewise.
84871         * lib/error.c: Likewise.
84872         * lib/error.h: Likewise.
84873         * lib/euidaccess.c: Likewise.
84874         * lib/exclude.c: Likewise.
84875         * lib/exclude.h: Likewise.
84876         * lib/execute.c: Likewise.
84877         * lib/execute.h: Likewise.
84878         * lib/exitfail.c: Likewise.
84879         * lib/exitfail.h: Likewise.
84880         * lib/expl.c: Likewise.
84881         * lib/fatal-signal.c: Likewise.
84882         * lib/fatal-signal.h: Likewise.
84883         * lib/fbufmode.c: Likewise.
84884         * lib/fbufmode.h: Likewise.
84885         * lib/fchdir.c: Likewise.
84886         * lib/fchmodat.c: Likewise.
84887         * lib/fchownat.c: Likewise.
84888         * lib/fcntl--.h: Likewise.
84889         * lib/fcntl-safer.h: Likewise.
84890         * lib/fcntl.in.h: Likewise.
84891         * lib/fd-safer.c: Likewise.
84892         * lib/fflush.c: Likewise.
84893         * lib/file-has-acl.c: Likewise.
84894         * lib/file-set.c: Likewise.
84895         * lib/file-type.c: Likewise.
84896         * lib/file-type.h: Likewise.
84897         * lib/fileblocks.c: Likewise.
84898         * lib/filemode.c: Likewise.
84899         * lib/filemode.h: Likewise.
84900         * lib/filename.h: Likewise.
84901         * lib/filenamecat.c: Likewise.
84902         * lib/filenamecat.h: Likewise.
84903         * lib/findprog.c: Likewise.
84904         * lib/findprog.h: Likewise.
84905         * lib/float.in.h: Likewise.
84906         * lib/floor.c: Likewise.
84907         * lib/floorf.c: Likewise.
84908         * lib/floorl.c: Likewise.
84909         * lib/fopen-safer.c: Likewise.
84910         * lib/fopen.c: Likewise.
84911         * lib/fpending.c: Likewise.
84912         * lib/fpending.h: Likewise.
84913         * lib/fprintf.c: Likewise.
84914         * lib/fprintftime.h: Likewise.
84915         * lib/fpucw.h: Likewise.
84916         * lib/fpurge.c: Likewise.
84917         * lib/fpurge.h: Likewise.
84918         * lib/freadable.c: Likewise.
84919         * lib/freadable.h: Likewise.
84920         * lib/freadahead.c: Likewise.
84921         * lib/freadahead.h: Likewise.
84922         * lib/freading.c: Likewise.
84923         * lib/freading.h: Likewise.
84924         * lib/free.c: Likewise.
84925         * lib/freopen.c: Likewise.
84926         * lib/frexp.c: Likewise.
84927         * lib/frexpl.c: Likewise.
84928         * lib/fseek.c: Likewise.
84929         * lib/fseterr.c: Likewise.
84930         * lib/fseterr.h: Likewise.
84931         * lib/fstatat.c: Likewise.
84932         * lib/fstrcmp.c: Likewise.
84933         * lib/fstrcmp.h: Likewise.
84934         * lib/fsusage.c: Likewise.
84935         * lib/fsusage.h: Likewise.
84936         * lib/ftell.c: Likewise.
84937         * lib/ftello.c: Likewise.
84938         * lib/fts-cycle.c: Likewise.
84939         * lib/fts.c: Likewise.
84940         * lib/fts_.h: Likewise.
84941         * lib/full-read.c: Likewise.
84942         * lib/full-read.h: Likewise.
84943         * lib/full-write.c: Likewise.
84944         * lib/full-write.h: Likewise.
84945         * lib/fwritable.c: Likewise.
84946         * lib/fwritable.h: Likewise.
84947         * lib/fwriteerror.c: Likewise.
84948         * lib/fwriteerror.h: Likewise.
84949         * lib/fwriting.c: Likewise.
84950         * lib/fwriting.h: Likewise.
84951         * lib/gcd.c: Likewise.
84952         * lib/gcd.h: Likewise.
84953         * lib/getcwd.c: Likewise.
84954         * lib/getdate.h: Likewise.
84955         * lib/getdate.y: Likewise.
84956         * lib/getdomainname.c: Likewise.
84957         * lib/getdomainname.h: Likewise.
84958         * lib/getgroups.c: Likewise.
84959         * lib/gethostname.c: Likewise.
84960         * lib/gethrxtime.c: Likewise.
84961         * lib/gethrxtime.h: Likewise.
84962         * lib/getloadavg.c: Likewise.
84963         * lib/getndelim2.c: Likewise.
84964         * lib/getndelim2.h: Likewise.
84965         * lib/getnline.c: Likewise.
84966         * lib/getnline.h: Likewise.
84967         * lib/getopt.c: Likewise.
84968         * lib/getopt.in.h: Likewise.
84969         * lib/getopt1.c: Likewise.
84970         * lib/getopt_int.h: Likewise.
84971         * lib/getpagesize.h: Likewise.
84972         * lib/getsubopt.c: Likewise.
84973         * lib/gettime.c: Likewise.
84974         * lib/getugroups.c: Likewise.
84975         * lib/getugroups.h: Likewise.
84976         * lib/getusershell.c: Likewise.
84977         * lib/gl_anyavltree_list1.h: Likewise.
84978         * lib/gl_anyavltree_list2.h: Likewise.
84979         * lib/gl_anyhash_list1.h: Likewise.
84980         * lib/gl_anyhash_list2.h: Likewise.
84981         * lib/gl_anylinked_list1.h: Likewise.
84982         * lib/gl_anylinked_list2.h: Likewise.
84983         * lib/gl_anyrbtree_list1.h: Likewise.
84984         * lib/gl_anyrbtree_list2.h: Likewise.
84985         * lib/gl_anytree_list1.h: Likewise.
84986         * lib/gl_anytree_list2.h: Likewise.
84987         * lib/gl_anytree_oset.h: Likewise.
84988         * lib/gl_anytreehash_list1.h: Likewise.
84989         * lib/gl_anytreehash_list2.h: Likewise.
84990         * lib/gl_array_list.c: Likewise.
84991         * lib/gl_array_list.h: Likewise.
84992         * lib/gl_array_oset.c: Likewise.
84993         * lib/gl_array_oset.h: Likewise.
84994         * lib/gl_avltree_list.c: Likewise.
84995         * lib/gl_avltree_list.h: Likewise.
84996         * lib/gl_avltree_oset.c: Likewise.
84997         * lib/gl_avltree_oset.h: Likewise.
84998         * lib/gl_avltreehash_list.c: Likewise.
84999         * lib/gl_avltreehash_list.h: Likewise.
85000         * lib/gl_carray_list.c: Likewise.
85001         * lib/gl_carray_list.h: Likewise.
85002         * lib/gl_linked_list.c: Likewise.
85003         * lib/gl_linked_list.h: Likewise.
85004         * lib/gl_linkedhash_list.c: Likewise.
85005         * lib/gl_linkedhash_list.h: Likewise.
85006         * lib/gl_list.c: Likewise.
85007         * lib/gl_list.h: Likewise.
85008         * lib/gl_oset.c: Likewise.
85009         * lib/gl_oset.h: Likewise.
85010         * lib/gl_rbtree_list.c: Likewise.
85011         * lib/gl_rbtree_list.h: Likewise.
85012         * lib/gl_rbtree_oset.c: Likewise.
85013         * lib/gl_rbtree_oset.h: Likewise.
85014         * lib/gl_rbtreehash_list.c: Likewise.
85015         * lib/gl_rbtreehash_list.h: Likewise.
85016         * lib/gl_sublist.c: Likewise.
85017         * lib/gl_sublist.h: Likewise.
85018         * lib/group-member.c: Likewise.
85019         * lib/group-member.h: Likewise.
85020         * lib/hard-locale.c: Likewise.
85021         * lib/hard-locale.h: Likewise.
85022         * lib/hash-pjw.c: Likewise.
85023         * lib/hash-pjw.h: Likewise.
85024         * lib/hash-triple.c: Likewise.
85025         * lib/hash.c: Likewise.
85026         * lib/hash.h: Likewise.
85027         * lib/human.c: Likewise.
85028         * lib/human.h: Likewise.
85029         * lib/i-ring.c: Likewise.
85030         * lib/i-ring.h: Likewise.
85031         * lib/idcache.c: Likewise.
85032         * lib/imaxabs.c: Likewise.
85033         * lib/imaxdiv.c: Likewise.
85034         * lib/inet_pton.c: Likewise.
85035         * lib/inet_pton.h: Likewise.
85036         * lib/intprops.h: Likewise.
85037         * lib/inttostr.c: Likewise.
85038         * lib/inttostr.h: Likewise.
85039         * lib/inttypes.in.h: Likewise.
85040         * lib/isapipe.c: Likewise.
85041         * lib/isdir.c: Likewise.
85042         * lib/isnan.c: Likewise.
85043         * lib/isnan.h: Likewise.
85044         * lib/isnanf.c: Likewise.
85045         * lib/isnanf.h: Likewise.
85046         * lib/isnanl-nolibm.h: Likewise.
85047         * lib/isnanl.c: Likewise.
85048         * lib/isnanl.h: Likewise.
85049         * lib/javacomp.c: Likewise.
85050         * lib/javacomp.h: Likewise.
85051         * lib/javaexec.c: Likewise.
85052         * lib/javaexec.h: Likewise.
85053         * lib/javaversion.c: Likewise.
85054         * lib/javaversion.h: Likewise.
85055         * lib/javaversion.java: Likewise.
85056         * lib/lbrkprop.h: Likewise.
85057         * lib/lchmod.h: Likewise.
85058         * lib/lchown.c: Likewise.
85059         * lib/ldexpl.c: Likewise.
85060         * lib/linebreak.c: Likewise.
85061         * lib/linebreak.h: Likewise.
85062         * lib/linebuffer.c: Likewise.
85063         * lib/linebuffer.h: Likewise.
85064         * lib/locale.in.h: Likewise.
85065         * lib/logl.c: Likewise.
85066         * lib/long-options.c: Likewise.
85067         * lib/long-options.h: Likewise.
85068         * lib/lstat.c: Likewise.
85069         * lib/lstat.h: Likewise.
85070         * lib/math.in.h: Likewise.
85071         * lib/mbchar.c: Likewise.
85072         * lib/mbchar.h: Likewise.
85073         * lib/mbfile.h: Likewise.
85074         * lib/mbiter.h: Likewise.
85075         * lib/mbscasecmp.c: Likewise.
85076         * lib/mbscasestr.c: Likewise.
85077         * lib/mbschr.c: Likewise.
85078         * lib/mbscspn.c: Likewise.
85079         * lib/mbslen.c: Likewise.
85080         * lib/mbsncasecmp.c: Likewise.
85081         * lib/mbsnlen.c: Likewise.
85082         * lib/mbspbrk.c: Likewise.
85083         * lib/mbspcasecmp.c: Likewise.
85084         * lib/mbsrchr.c: Likewise.
85085         * lib/mbssep.c: Likewise.
85086         * lib/mbsspn.c: Likewise.
85087         * lib/mbsstr.c: Likewise.
85088         * lib/mbstok_r.c: Likewise.
85089         * lib/mbswidth.c: Likewise.
85090         * lib/mbswidth.h: Likewise.
85091         * lib/mbuiter.h: Likewise.
85092         * lib/memcasecmp.c: Likewise.
85093         * lib/memcasecmp.h: Likewise.
85094         * lib/memchr.c: Likewise.
85095         * lib/memcmp.c: Likewise.
85096         * lib/memcoll.c: Likewise.
85097         * lib/memcoll.h: Likewise.
85098         * lib/memcpy.c: Likewise.
85099         * lib/memrchr.c: Likewise.
85100         * lib/mkancesdirs.c: Likewise.
85101         * lib/mkdir-p.c: Likewise.
85102         * lib/mkdir-p.h: Likewise.
85103         * lib/mkdir.c: Likewise.
85104         * lib/mkdirat.c: Likewise.
85105         * lib/mkdtemp.c: Likewise.
85106         * lib/mkstemp-safer.c: Likewise.
85107         * lib/mkstemp.c: Likewise.
85108         * lib/modechange.c: Likewise.
85109         * lib/modechange.h: Likewise.
85110         * lib/mountlist.c: Likewise.
85111         * lib/mountlist.h: Likewise.
85112         * lib/mpsort.c: Likewise.
85113         * lib/nanosleep.c: Likewise.
85114         * lib/obstack.c: Likewise.
85115         * lib/obstack.h: Likewise.
85116         * lib/open-safer.c: Likewise.
85117         * lib/open.c: Likewise.
85118         * lib/openat-die.c: Likewise.
85119         * lib/openat-priv.h: Likewise.
85120         * lib/openat-proc.c: Likewise.
85121         * lib/openat.c: Likewise.
85122         * lib/openat.h: Likewise.
85123         * lib/pagealign_alloc.c: Likewise.
85124         * lib/pagealign_alloc.h: Likewise.
85125         * lib/physmem.c: Likewise.
85126         * lib/physmem.h: Likewise.
85127         * lib/pipe-safer.c: Likewise.
85128         * lib/pipe.c: Likewise.
85129         * lib/pipe.h: Likewise.
85130         * lib/posixtm.c: Likewise.
85131         * lib/posixtm.h: Likewise.
85132         * lib/posixver.c: Likewise.
85133         * lib/printf-frexp.c: Likewise.
85134         * lib/printf-frexp.h: Likewise.
85135         * lib/printf-frexpl.c: Likewise.
85136         * lib/printf-frexpl.h: Likewise.
85137         * lib/printf.c: Likewise.
85138         * lib/progname.c: Likewise.
85139         * lib/progname.h: Likewise.
85140         * lib/progreloc.c: Likewise.
85141         * lib/putenv.c: Likewise.
85142         * lib/quote.c: Likewise.
85143         * lib/quote.h: Likewise.
85144         * lib/quotearg.c: Likewise.
85145         * lib/quotearg.h: Likewise.
85146         * lib/raise.c: Likewise.
85147         * lib/readline.c: Likewise.
85148         * lib/readline.h: Likewise.
85149         * lib/readlink.c: Likewise.
85150         * lib/readtokens.c: Likewise.
85151         * lib/readtokens.h: Likewise.
85152         * lib/readtokens0.c: Likewise.
85153         * lib/readtokens0.h: Likewise.
85154         * lib/readutmp.c: Likewise.
85155         * lib/readutmp.h: Likewise.
85156         * lib/realloc.c: Likewise.
85157         * lib/relocwrapper.c: Likewise.
85158         * lib/rename-dest-slash.c: Likewise.
85159         * lib/rename.c: Likewise.
85160         * lib/rmdir.c: Likewise.
85161         * lib/rpmatch.c: Likewise.
85162         * lib/safe-read.c: Likewise.
85163         * lib/safe-read.h: Likewise.
85164         * lib/safe-write.c: Likewise.
85165         * lib/safe-write.h: Likewise.
85166         * lib/same-inode.h: Likewise.
85167         * lib/same.c: Likewise.
85168         * lib/same.h: Likewise.
85169         * lib/save-cwd.c: Likewise.
85170         * lib/save-cwd.h: Likewise.
85171         * lib/savedir.c: Likewise.
85172         * lib/savedir.h: Likewise.
85173         * lib/savewd.c: Likewise.
85174         * lib/savewd.h: Likewise.
85175         * lib/search.in.h: Likewise.
85176         * lib/setenv.c: Likewise.
85177         * lib/setenv.h: Likewise.
85178         * lib/settime.c: Likewise.
85179         * lib/sh-quote.c: Likewise.
85180         * lib/sh-quote.h: Likewise.
85181         * lib/sig2str.c: Likewise.
85182         * lib/sig2str.h: Likewise.
85183         * lib/signal.in.h: Likewise.
85184         * lib/signbitd.c: Likewise.
85185         * lib/signbitf.c: Likewise.
85186         * lib/signbitl.c: Likewise.
85187         * lib/sigprocmask.c: Likewise.
85188         * lib/sincosl.c: Likewise.
85189         * lib/sleep.c: Likewise.
85190         * lib/sprintf.c: Likewise.
85191         * lib/sqrtl.c: Likewise.
85192         * lib/stat-time.h: Likewise.
85193         * lib/stdio--.h: Likewise.
85194         * lib/stdio-safer.h: Likewise.
85195         * lib/stdlib--.h: Likewise.
85196         * lib/stdlib-safer.h: Likewise.
85197         * lib/stdlib.in.h: Likewise.
85198         * lib/stpcpy.c: Likewise.
85199         * lib/stpncpy.c: Likewise.
85200         * lib/strchrnul.c: Likewise.
85201         * lib/strcspn.c: Likewise.
85202         * lib/strerror.c: Likewise.
85203         * lib/strftime.c: Likewise.
85204         * lib/strftime.h: Likewise.
85205         * lib/striconveh.c: Likewise.
85206         * lib/striconveh.h: Likewise.
85207         * lib/striconveha.c: Likewise.
85208         * lib/striconveha.h: Likewise.
85209         * lib/stripslash.c: Likewise.
85210         * lib/strnlen1.c: Likewise.
85211         * lib/strnlen1.h: Likewise.
85212         * lib/strtod.c: Likewise.
85213         * lib/strtoimax.c: Likewise.
85214         * lib/strtok_r.c: Likewise.
85215         * lib/strtol.c: Likewise.
85216         * lib/strtoll.c: Likewise.
85217         * lib/strtoul.c: Likewise.
85218         * lib/strtoull.c: Likewise.
85219         * lib/sysexits.in.h: Likewise.
85220         * lib/tempname.c: Likewise.
85221         * lib/tempname.h: Likewise.
85222         * lib/timespec.h: Likewise.
85223         * lib/tls.c: Likewise.
85224         * lib/tls.h: Likewise.
85225         * lib/tmpdir.c: Likewise.
85226         * lib/tmpdir.h: Likewise.
85227         * lib/tmpfile-safer.c: Likewise.
85228         * lib/tmpfile.c: Likewise.
85229         * lib/trigl.c: Likewise.
85230         * lib/trigl.h: Likewise.
85231         * lib/trim.c: Likewise.
85232         * lib/trim.h: Likewise.
85233         * lib/trunc.c: Likewise.
85234         * lib/truncf.c: Likewise.
85235         * lib/truncl.c: Likewise.
85236         * lib/tsearch.c: Likewise.
85237         * lib/unicodeio.c: Likewise.
85238         * lib/unicodeio.h: Likewise.
85239         * lib/unistd--.h: Likewise.
85240         * lib/unistd-safer.h: Likewise.
85241         * lib/unistdio/ulc-fprintf.c: Likewise.
85242         * lib/unistdio/ulc-vfprintf.c: Likewise.
85243         * lib/unlinkdir.c: Likewise.
85244         * lib/unlinkdir.h: Likewise.
85245         * lib/unlocked-io.h: Likewise.
85246         * lib/unsetenv.c: Likewise.
85247         * lib/userspec.c: Likewise.
85248         * lib/utime.c: Likewise.
85249         * lib/utimecmp.c: Likewise.
85250         * lib/utimecmp.h: Likewise.
85251         * lib/utimens.c: Likewise.
85252         * lib/verify.h: Likewise.
85253         * lib/verror.c: Likewise.
85254         * lib/verror.h: Likewise.
85255         * lib/version-etc-fsf.c: Likewise.
85256         * lib/version-etc.c: Likewise.
85257         * lib/version-etc.h: Likewise.
85258         * lib/vfprintf.c: Likewise.
85259         * lib/vprintf.c: Likewise.
85260         * lib/vsprintf.c: Likewise.
85261         * lib/w32spawn.h: Likewise.
85262         * lib/wait-process.c: Likewise.
85263         * lib/wait-process.h: Likewise.
85264         * lib/wcwidth.c: Likewise.
85265         * lib/write-any-file.c: Likewise.
85266         * lib/xalloc-die.c: Likewise.
85267         * lib/xalloc.h: Likewise.
85268         * lib/xasprintf.c: Likewise.
85269         * lib/xgetcwd.c: Likewise.
85270         * lib/xgetcwd.h: Likewise.
85271         * lib/xgetdomainname.c: Likewise.
85272         * lib/xgetdomainname.h: Likewise.
85273         * lib/xgethostname.c: Likewise.
85274         * lib/xmalloc.c: Likewise.
85275         * lib/xmalloca.c: Likewise.
85276         * lib/xmalloca.h: Likewise.
85277         * lib/xmemcoll.c: Likewise.
85278         * lib/xnanosleep.c: Likewise.
85279         * lib/xreadlink.c: Likewise.
85280         * lib/xreadlink.h: Likewise.
85281         * lib/xsetenv.c: Likewise.
85282         * lib/xsetenv.h: Likewise.
85283         * lib/xstriconv.c: Likewise.
85284         * lib/xstriconv.h: Likewise.
85285         * lib/xstrndup.c: Likewise.
85286         * lib/xstrndup.h: Likewise.
85287         * lib/xstrtod.c: Likewise.
85288         * lib/xstrtod.h: Likewise.
85289         * lib/xstrtol-error.c: Likewise.
85290         * lib/xstrtol.c: Likewise.
85291         * lib/xstrtol.h: Likewise.
85292         * lib/xtime.h: Likewise.
85293         * lib/xvasprintf.c: Likewise.
85294         * lib/xvasprintf.h: Likewise.
85295         * lib/yesno.c: Likewise.
85296         * lib/yesno.h: Likewise.
85297         * posix-modules: Likewise.
85298         * tests/test-alloca-opt.c: Likewise.
85299         * tests/test-arcfour.c: Likewise.
85300         * tests/test-arctwo.c: Likewise.
85301         * tests/test-argmatch.c: Likewise.
85302         * tests/test-argp-2.sh: Likewise.
85303         * tests/test-argp.c: Likewise.
85304         * tests/test-arpa_inet.c: Likewise.
85305         * tests/test-array_list.c: Likewise.
85306         * tests/test-array_oset.c: Likewise.
85307         * tests/test-atexit.c: Likewise.
85308         * tests/test-avltree_list.c: Likewise.
85309         * tests/test-avltree_oset.c: Likewise.
85310         * tests/test-avltreehash_list.c: Likewise.
85311         * tests/test-base64.c: Likewise.
85312         * tests/test-binary-io.c: Likewise.
85313         * tests/test-byteswap.c: Likewise.
85314         * tests/test-c-ctype.c: Likewise.
85315         * tests/test-c-strcasecmp.c: Likewise.
85316         * tests/test-c-strcasestr.c: Likewise.
85317         * tests/test-c-strncasecmp.c: Likewise.
85318         * tests/test-c-strstr.c: Likewise.
85319         * tests/test-canonicalize-lgpl.c: Likewise.
85320         * tests/test-canonicalize.c: Likewise.
85321         * tests/test-carray_list.c: Likewise.
85322         * tests/test-ceilf.c: Likewise.
85323         * tests/test-ceill.c: Likewise.
85324         * tests/test-count-one-bits.c: Likewise.
85325         * tests/test-crc.c: Likewise.
85326         * tests/test-dirname.c: Likewise.
85327         * tests/test-fbufmode.c: Likewise.
85328         * tests/test-fcntl.c: Likewise.
85329         * tests/test-fflush.c: Likewise.
85330         * tests/test-floorf.c: Likewise.
85331         * tests/test-floorl.c: Likewise.
85332         * tests/test-fopen.c: Likewise.
85333         * tests/test-fprintf-posix.c: Likewise.
85334         * tests/test-fprintf-posix.h: Likewise.
85335         * tests/test-fpurge.c: Likewise.
85336         * tests/test-freadable.c: Likewise.
85337         * tests/test-freadahead.c: Likewise.
85338         * tests/test-freading.c: Likewise.
85339         * tests/test-freopen.c: Likewise.
85340         * tests/test-frexp.c: Likewise.
85341         * tests/test-frexpl.c: Likewise.
85342         * tests/test-fseek.c: Likewise.
85343         * tests/test-fseeko.c: Likewise.
85344         * tests/test-fseterr.c: Likewise.
85345         * tests/test-fstrcmp.c: Likewise.
85346         * tests/test-ftell.c: Likewise.
85347         * tests/test-ftello.c: Likewise.
85348         * tests/test-fwritable.c: Likewise.
85349         * tests/test-fwriting.c: Likewise.
85350         * tests/test-getaddrinfo.c: Likewise.
85351         * tests/test-getpass.c: Likewise.
85352         * tests/test-gettimeofday.c: Likewise.
85353         * tests/test-hmac-md5.c: Likewise.
85354         * tests/test-hmac-sha1.c: Likewise.
85355         * tests/test-iconv.c: Likewise.
85356         * tests/test-iconvme.c: Likewise.
85357         * tests/test-inttypes.c: Likewise.
85358         * tests/test-isnan.c: Likewise.
85359         * tests/test-isnanf.c: Likewise.
85360         * tests/test-isnanl-nolibm.c: Likewise.
85361         * tests/test-isnanl.c: Likewise.
85362         * tests/test-isnanl.h: Likewise.
85363         * tests/test-ldexpl.c: Likewise.
85364         * tests/test-linked_list.c: Likewise.
85365         * tests/test-linkedhash_list.c: Likewise.
85366         * tests/test-locale.c: Likewise.
85367         * tests/test-localename.c: Likewise.
85368         * tests/test-lock.c: Likewise.
85369         * tests/test-lseek.c: Likewise.
85370         * tests/test-malloca.c: Likewise.
85371         * tests/test-math.c: Likewise.
85372         * tests/test-mbscasecmp.c: Likewise.
85373         * tests/test-mbscasestr1.c: Likewise.
85374         * tests/test-mbscasestr2.c: Likewise.
85375         * tests/test-mbscasestr3.c: Likewise.
85376         * tests/test-mbscasestr4.c: Likewise.
85377         * tests/test-mbschr.c: Likewise.
85378         * tests/test-mbscspn.c: Likewise.
85379         * tests/test-mbsncasecmp.c: Likewise.
85380         * tests/test-mbspbrk.c: Likewise.
85381         * tests/test-mbspcasecmp.c: Likewise.
85382         * tests/test-mbsrchr.c: Likewise.
85383         * tests/test-mbsspn.c: Likewise.
85384         * tests/test-mbsstr1.c: Likewise.
85385         * tests/test-mbsstr2.c: Likewise.
85386         * tests/test-mbsstr3.c: Likewise.
85387         * tests/test-md5.c: Likewise.
85388         * tests/test-memmem.c: Likewise.
85389         * tests/test-netinet_in.c: Likewise.
85390         * tests/test-open.c: Likewise.
85391         * tests/test-printf-frexp.c: Likewise.
85392         * tests/test-printf-frexpl.c: Likewise.
85393         * tests/test-printf-posix.c: Likewise.
85394         * tests/test-printf-posix.h: Likewise.
85395         * tests/test-rbtree_list.c: Likewise.
85396         * tests/test-rbtree_oset.c: Likewise.
85397         * tests/test-rbtreehash_list.c: Likewise.
85398         * tests/test-read-file.c: Likewise.
85399         * tests/test-rijndael.c: Likewise.
85400         * tests/test-search.c: Likewise.
85401         * tests/test-signbit.c: Likewise.
85402         * tests/test-sleep.c: Likewise.
85403         * tests/test-snprintf-posix.c: Likewise.
85404         * tests/test-snprintf-posix.h: Likewise.
85405         * tests/test-snprintf.c: Likewise.
85406         * tests/test-sprintf-posix.c: Likewise.
85407         * tests/test-sprintf-posix.h: Likewise.
85408         * tests/test-stat-time.c: Likewise.
85409         * tests/test-stdbool.c: Likewise.
85410         * tests/test-stdint.c: Likewise.
85411         * tests/test-stdio.c: Likewise.
85412         * tests/test-stdlib.c: Likewise.
85413         * tests/test-stpncpy.c: Likewise.
85414         * tests/test-strcasestr.c: Likewise.
85415         * tests/test-striconv.c: Likewise.
85416         * tests/test-striconveh.c: Likewise.
85417         * tests/test-striconveha.c: Likewise.
85418         * tests/test-string.c: Likewise.
85419         * tests/test-sys_select.c: Likewise.
85420         * tests/test-sys_socket.c: Likewise.
85421         * tests/test-sys_stat.c: Likewise.
85422         * tests/test-sys_time.c: Likewise.
85423         * tests/test-sysexits.c: Likewise.
85424         * tests/test-time.c: Likewise.
85425         * tests/test-tls.c: Likewise.
85426         * tests/test-trunc.c: Likewise.
85427         * tests/test-truncf.c: Likewise.
85428         * tests/test-truncl.c: Likewise.
85429         * tests/test-unistd.c: Likewise.
85430         * tests/test-vasnprintf-posix.c: Likewise.
85431         * tests/test-vasnprintf-posix2.c: Likewise.
85432         * tests/test-vasnprintf.c: Likewise.
85433         * tests/test-vasprintf-posix.c: Likewise.
85434         * tests/test-vasprintf.c: Likewise.
85435         * tests/test-verify.c: Likewise.
85436         * tests/test-vfprintf-posix.c: Likewise.
85437         * tests/test-vprintf-posix.c: Likewise.
85438         * tests/test-vsnprintf-posix.c: Likewise.
85439         * tests/test-vsnprintf.c: Likewise.
85440         * tests/test-vsprintf-posix.c: Likewise.
85441         * tests/test-wchar.c: Likewise.
85442         * tests/test-wctype.c: Likewise.
85443         * tests/test-wcwidth.c: Likewise.
85444         * tests/test-xstrtol.c: Likewise.
85445         * tests/test-xvasprintf.c: Likewise.
85446         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
85447         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
85448         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
85449         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
85450         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
85451         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
85452         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
85453         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
85454         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
85455         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
85456         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
85457         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
85458         * tests/uniname/test-uninames.c: Likewise.
85459         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
85460         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
85461         * tests/unistdio/test-u16-printf1.h: Likewise.
85462         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
85463         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
85464         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
85465         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
85466         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
85467         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
85468         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
85469         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
85470         * tests/unistdio/test-u32-printf1.h: Likewise.
85471         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
85472         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
85473         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
85474         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
85475         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
85476         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
85477         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
85478         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
85479         * tests/unistdio/test-u8-printf1.h: Likewise.
85480         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
85481         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
85482         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
85483         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
85484         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
85485         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
85486         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
85487         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
85488         * tests/unistdio/test-ulc-printf1.h: Likewise.
85489         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
85490         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
85491         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
85492         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
85493         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
85494         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
85495         * tests/uniwidth/test-u16-strwidth.c: Likewise.
85496         * tests/uniwidth/test-u16-width.c: Likewise.
85497         * tests/uniwidth/test-u32-strwidth.c: Likewise.
85498         * tests/uniwidth/test-u32-width.c: Likewise.
85499         * tests/uniwidth/test-u8-strwidth.c: Likewise.
85500         * tests/uniwidth/test-u8-width.c: Likewise.
85501         * tests/uniwidth/test-uc_width.c: Likewise.
85502         * config/srclist-update: Likewise.
85503         (fixlicense): Update to GPLv3+.
85505         Change copyright notice from LGPLv2.1+ to LGPLv3+.
85506         * tests/test-tsearch.c: Change copyright notice.
85508         Change copyright notice from LGPLv2.0+ to LGPLv3+.
85509         * lib/c-strcaseeq.h: Change copyright notice.
85510         * lib/streq.h: Likewise.
85511         * lib/uniconv.h: Likewise.
85512         * lib/uniconv/u-conv-from-enc.h: Likewise.
85513         * lib/uniconv/u-conv-to-enc.h: Likewise.
85514         * lib/uniconv/u-strconv-from-enc.h: Likewise.
85515         * lib/uniconv/u-strconv-to-enc.h: Likewise.
85516         * lib/uniconv/u16-conv-from-enc.c: Likewise.
85517         * lib/uniconv/u16-conv-to-enc.c: Likewise.
85518         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
85519         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
85520         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
85521         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
85522         * lib/uniconv/u32-conv-from-enc.c: Likewise.
85523         * lib/uniconv/u32-conv-to-enc.c: Likewise.
85524         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
85525         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
85526         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
85527         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
85528         * lib/uniconv/u8-conv-from-enc.c: Likewise.
85529         * lib/uniconv/u8-conv-to-enc.c: Likewise.
85530         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
85531         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
85532         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
85533         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
85534         * lib/uniname.h: Likewise.
85535         * lib/uniname/uniname.c: Likewise.
85536         * lib/unistdio.h: Likewise.
85537         * lib/unistdio/u-asnprintf.h: Likewise.
85538         * lib/unistdio/u-asprintf.h: Likewise.
85539         * lib/unistdio/u-printf-args.c: Likewise.
85540         * lib/unistdio/u-printf-args.h: Likewise.
85541         * lib/unistdio/u-printf-parse.h: Likewise.
85542         * lib/unistdio/u-snprintf.h: Likewise.
85543         * lib/unistdio/u-sprintf.h: Likewise.
85544         * lib/unistdio/u-vasprintf.h: Likewise.
85545         * lib/unistdio/u-vsnprintf.h: Likewise.
85546         * lib/unistdio/u-vsprintf.h: Likewise.
85547         * lib/unistdio/u16-asnprintf.c: Likewise.
85548         * lib/unistdio/u16-asprintf.c: Likewise.
85549         * lib/unistdio/u16-printf-parse.c: Likewise.
85550         * lib/unistdio/u16-snprintf.c: Likewise.
85551         * lib/unistdio/u16-sprintf.c: Likewise.
85552         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
85553         * lib/unistdio/u16-u16-asprintf.c: Likewise.
85554         * lib/unistdio/u16-u16-snprintf.c: Likewise.
85555         * lib/unistdio/u16-u16-sprintf.c: Likewise.
85556         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
85557         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
85558         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
85559         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
85560         * lib/unistdio/u16-vasnprintf.c: Likewise.
85561         * lib/unistdio/u16-vasprintf.c: Likewise.
85562         * lib/unistdio/u16-vsnprintf.c: Likewise.
85563         * lib/unistdio/u16-vsprintf.c: Likewise.
85564         * lib/unistdio/u32-asnprintf.c: Likewise.
85565         * lib/unistdio/u32-asprintf.c: Likewise.
85566         * lib/unistdio/u32-printf-parse.c: Likewise.
85567         * lib/unistdio/u32-snprintf.c: Likewise.
85568         * lib/unistdio/u32-sprintf.c: Likewise.
85569         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
85570         * lib/unistdio/u32-u32-asprintf.c: Likewise.
85571         * lib/unistdio/u32-u32-snprintf.c: Likewise.
85572         * lib/unistdio/u32-u32-sprintf.c: Likewise.
85573         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
85574         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
85575         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
85576         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
85577         * lib/unistdio/u32-vasnprintf.c: Likewise.
85578         * lib/unistdio/u32-vasprintf.c: Likewise.
85579         * lib/unistdio/u32-vsnprintf.c: Likewise.
85580         * lib/unistdio/u32-vsprintf.c: Likewise.
85581         * lib/unistdio/u8-asnprintf.c: Likewise.
85582         * lib/unistdio/u8-asprintf.c: Likewise.
85583         * lib/unistdio/u8-printf-parse.c: Likewise.
85584         * lib/unistdio/u8-snprintf.c: Likewise.
85585         * lib/unistdio/u8-sprintf.c: Likewise.
85586         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
85587         * lib/unistdio/u8-u8-asprintf.c: Likewise.
85588         * lib/unistdio/u8-u8-snprintf.c: Likewise.
85589         * lib/unistdio/u8-u8-sprintf.c: Likewise.
85590         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
85591         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
85592         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
85593         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
85594         * lib/unistdio/u8-vasnprintf.c: Likewise.
85595         * lib/unistdio/u8-vasprintf.c: Likewise.
85596         * lib/unistdio/u8-vsnprintf.c: Likewise.
85597         * lib/unistdio/u8-vsprintf.c: Likewise.
85598         * lib/unistdio/ulc-asnprintf.c: Likewise.
85599         * lib/unistdio/ulc-asprintf.c: Likewise.
85600         * lib/unistdio/ulc-printf-parse.c: Likewise.
85601         * lib/unistdio/ulc-snprintf.c: Likewise.
85602         * lib/unistdio/ulc-sprintf.c: Likewise.
85603         * lib/unistdio/ulc-vasnprintf.c: Likewise.
85604         * lib/unistdio/ulc-vasprintf.c: Likewise.
85605         * lib/unistdio/ulc-vsnprintf.c: Likewise.
85606         * lib/unistdio/ulc-vsprintf.c: Likewise.
85607         * lib/unistr.h: Likewise.
85608         * lib/unistr/u-cpy-alloc.h: Likewise.
85609         * lib/unistr/u-cpy.h: Likewise.
85610         * lib/unistr/u-endswith.h: Likewise.
85611         * lib/unistr/u-move.h: Likewise.
85612         * lib/unistr/u-set.h: Likewise.
85613         * lib/unistr/u-startswith.h: Likewise.
85614         * lib/unistr/u-stpcpy.h: Likewise.
85615         * lib/unistr/u-stpncpy.h: Likewise.
85616         * lib/unistr/u-strcat.h: Likewise.
85617         * lib/unistr/u-strcpy.h: Likewise.
85618         * lib/unistr/u-strcspn.h: Likewise.
85619         * lib/unistr/u-strdup.h: Likewise.
85620         * lib/unistr/u-strlen.h: Likewise.
85621         * lib/unistr/u-strncat.h: Likewise.
85622         * lib/unistr/u-strncpy.h: Likewise.
85623         * lib/unistr/u-strnlen.h: Likewise.
85624         * lib/unistr/u-strpbrk.h: Likewise.
85625         * lib/unistr/u-strspn.h: Likewise.
85626         * lib/unistr/u-strstr.h: Likewise.
85627         * lib/unistr/u-strtok.h: Likewise.
85628         * lib/unistr/u16-check.c: Likewise.
85629         * lib/unistr/u16-chr.c: Likewise.
85630         * lib/unistr/u16-cmp.c: Likewise.
85631         * lib/unistr/u16-cpy-alloc.c: Likewise.
85632         * lib/unistr/u16-cpy.c: Likewise.
85633         * lib/unistr/u16-endswith.c: Likewise.
85634         * lib/unistr/u16-mblen.c: Likewise.
85635         * lib/unistr/u16-mbsnlen.c: Likewise.
85636         * lib/unistr/u16-mbtouc-aux.c: Likewise.
85637         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
85638         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
85639         * lib/unistr/u16-mbtouc.c: Likewise.
85640         * lib/unistr/u16-mbtoucr.c: Likewise.
85641         * lib/unistr/u16-move.c: Likewise.
85642         * lib/unistr/u16-next.c: Likewise.
85643         * lib/unistr/u16-prev.c: Likewise.
85644         * lib/unistr/u16-set.c: Likewise.
85645         * lib/unistr/u16-startswith.c: Likewise.
85646         * lib/unistr/u16-stpcpy.c: Likewise.
85647         * lib/unistr/u16-stpncpy.c: Likewise.
85648         * lib/unistr/u16-strcat.c: Likewise.
85649         * lib/unistr/u16-strchr.c: Likewise.
85650         * lib/unistr/u16-strcmp.c: Likewise.
85651         * lib/unistr/u16-strcpy.c: Likewise.
85652         * lib/unistr/u16-strcspn.c: Likewise.
85653         * lib/unistr/u16-strdup.c: Likewise.
85654         * lib/unistr/u16-strlen.c: Likewise.
85655         * lib/unistr/u16-strmblen.c: Likewise.
85656         * lib/unistr/u16-strmbtouc.c: Likewise.
85657         * lib/unistr/u16-strncat.c: Likewise.
85658         * lib/unistr/u16-strncmp.c: Likewise.
85659         * lib/unistr/u16-strncpy.c: Likewise.
85660         * lib/unistr/u16-strnlen.c: Likewise.
85661         * lib/unistr/u16-strpbrk.c: Likewise.
85662         * lib/unistr/u16-strrchr.c: Likewise.
85663         * lib/unistr/u16-strspn.c: Likewise.
85664         * lib/unistr/u16-strstr.c: Likewise.
85665         * lib/unistr/u16-strtok.c: Likewise.
85666         * lib/unistr/u16-to-u32.c: Likewise.
85667         * lib/unistr/u16-to-u8.c: Likewise.
85668         * lib/unistr/u16-uctomb-aux.c: Likewise.
85669         * lib/unistr/u16-uctomb.c: Likewise.
85670         * lib/unistr/u32-check.c: Likewise.
85671         * lib/unistr/u32-chr.c: Likewise.
85672         * lib/unistr/u32-cmp.c: Likewise.
85673         * lib/unistr/u32-cpy-alloc.c: Likewise.
85674         * lib/unistr/u32-cpy.c: Likewise.
85675         * lib/unistr/u32-endswith.c: Likewise.
85676         * lib/unistr/u32-mblen.c: Likewise.
85677         * lib/unistr/u32-mbsnlen.c: Likewise.
85678         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
85679         * lib/unistr/u32-mbtouc.c: Likewise.
85680         * lib/unistr/u32-mbtoucr.c: Likewise.
85681         * lib/unistr/u32-move.c: Likewise.
85682         * lib/unistr/u32-next.c: Likewise.
85683         * lib/unistr/u32-prev.c: Likewise.
85684         * lib/unistr/u32-set.c: Likewise.
85685         * lib/unistr/u32-startswith.c: Likewise.
85686         * lib/unistr/u32-stpcpy.c: Likewise.
85687         * lib/unistr/u32-stpncpy.c: Likewise.
85688         * lib/unistr/u32-strcat.c: Likewise.
85689         * lib/unistr/u32-strchr.c: Likewise.
85690         * lib/unistr/u32-strcmp.c: Likewise.
85691         * lib/unistr/u32-strcpy.c: Likewise.
85692         * lib/unistr/u32-strcspn.c: Likewise.
85693         * lib/unistr/u32-strdup.c: Likewise.
85694         * lib/unistr/u32-strlen.c: Likewise.
85695         * lib/unistr/u32-strmblen.c: Likewise.
85696         * lib/unistr/u32-strmbtouc.c: Likewise.
85697         * lib/unistr/u32-strncat.c: Likewise.
85698         * lib/unistr/u32-strncmp.c: Likewise.
85699         * lib/unistr/u32-strncpy.c: Likewise.
85700         * lib/unistr/u32-strnlen.c: Likewise.
85701         * lib/unistr/u32-strpbrk.c: Likewise.
85702         * lib/unistr/u32-strrchr.c: Likewise.
85703         * lib/unistr/u32-strspn.c: Likewise.
85704         * lib/unistr/u32-strstr.c: Likewise.
85705         * lib/unistr/u32-strtok.c: Likewise.
85706         * lib/unistr/u32-to-u16.c: Likewise.
85707         * lib/unistr/u32-to-u8.c: Likewise.
85708         * lib/unistr/u32-uctomb.c: Likewise.
85709         * lib/unistr/u8-check.c: Likewise.
85710         * lib/unistr/u8-chr.c: Likewise.
85711         * lib/unistr/u8-cmp.c: Likewise.
85712         * lib/unistr/u8-cpy-alloc.c: Likewise.
85713         * lib/unistr/u8-cpy.c: Likewise.
85714         * lib/unistr/u8-endswith.c: Likewise.
85715         * lib/unistr/u8-mblen.c: Likewise.
85716         * lib/unistr/u8-mbsnlen.c: Likewise.
85717         * lib/unistr/u8-mbtouc-aux.c: Likewise.
85718         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
85719         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
85720         * lib/unistr/u8-mbtouc.c: Likewise.
85721         * lib/unistr/u8-mbtoucr.c: Likewise.
85722         * lib/unistr/u8-move.c: Likewise.
85723         * lib/unistr/u8-next.c: Likewise.
85724         * lib/unistr/u8-prev.c: Likewise.
85725         * lib/unistr/u8-set.c: Likewise.
85726         * lib/unistr/u8-startswith.c: Likewise.
85727         * lib/unistr/u8-stpcpy.c: Likewise.
85728         * lib/unistr/u8-stpncpy.c: Likewise.
85729         * lib/unistr/u8-strcat.c: Likewise.
85730         * lib/unistr/u8-strchr.c: Likewise.
85731         * lib/unistr/u8-strcmp.c: Likewise.
85732         * lib/unistr/u8-strcpy.c: Likewise.
85733         * lib/unistr/u8-strcspn.c: Likewise.
85734         * lib/unistr/u8-strdup.c: Likewise.
85735         * lib/unistr/u8-strlen.c: Likewise.
85736         * lib/unistr/u8-strmblen.c: Likewise.
85737         * lib/unistr/u8-strmbtouc.c: Likewise.
85738         * lib/unistr/u8-strncat.c: Likewise.
85739         * lib/unistr/u8-strncmp.c: Likewise.
85740         * lib/unistr/u8-strncpy.c: Likewise.
85741         * lib/unistr/u8-strnlen.c: Likewise.
85742         * lib/unistr/u8-strpbrk.c: Likewise.
85743         * lib/unistr/u8-strrchr.c: Likewise.
85744         * lib/unistr/u8-strspn.c: Likewise.
85745         * lib/unistr/u8-strstr.c: Likewise.
85746         * lib/unistr/u8-strtok.c: Likewise.
85747         * lib/unistr/u8-to-u16.c: Likewise.
85748         * lib/unistr/u8-to-u32.c: Likewise.
85749         * lib/unistr/u8-uctomb-aux.c: Likewise.
85750         * lib/unistr/u8-uctomb.c: Likewise.
85751         * lib/unitypes.h: Likewise.
85752         * lib/uniwidth.h: Likewise.
85753         * lib/uniwidth/cjk.h: Likewise.
85754         * lib/uniwidth/u16-strwidth.c: Likewise.
85755         * lib/uniwidth/u16-width.c: Likewise.
85756         * lib/uniwidth/u32-strwidth.c: Likewise.
85757         * lib/uniwidth/u32-width.c: Likewise.
85758         * lib/uniwidth/u8-strwidth.c: Likewise.
85759         * lib/uniwidth/u8-width.c: Likewise.
85760         * lib/uniwidth/width.c: Likewise.
85762 2007-10-07  Bruno Haible  <bruno@clisp.org>
85764         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
85765         The file is still under LGPL (see modules/inttypes).
85767 2007-10-06  Bruno Haible  <bruno@clisp.org>
85769         * modules/trunc (Dependencies): Add 'extensions'.
85770         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
85771         Reported by Ben Pfaff <blp@gnu.org>.
85773 2007-10-06  Bruno Haible  <bruno@clisp.org>
85775         * modules/freopen-tests: New file.
85776         * tests/test-freopen.c: New file.
85778         * modules/fopen-tests: New file.
85779         * tests/test-fopen.c: New file.
85781         * modules/fopen: New file.
85782         * lib/fopen.c: New file.
85783         * m4/fopen.m4: New file.
85784         * modules/freopen: New file.
85785         * lib/freopen.c: New file.
85786         * m4/freopen.m4: New file.
85787         * lib/stdio.in.h (fopen, freopen): New declarations.
85788         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
85789         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85790         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
85791         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
85792         * doc/functions/fopen.texi: Mention the 'fopen' module.
85793         * doc/functions/freopen.texi: Mention the 'freopen' module.
85795 2007-10-06  Bruno Haible  <bruno@clisp.org>
85797         * modules/open-tests: New file.
85798         * tests/test-open.c: New file.
85800         * modules/open: New file.
85801         * lib/open.c: New file.
85802         * m4/open.m4: New file.
85803         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
85804         lib/open.c does.
85805         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
85806         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
85807         macros.
85808         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
85809         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
85810         REPLACE_OPEN.
85811         * doc/functions/open.texi: Mention the 'open' module.
85813 2007-10-04  Bruno Haible  <bruno@clisp.org>
85815         * modules/ceill-tests: New file.
85816         * tests/test-ceill.c: New file.
85818         * modules/ceill: New file.
85819         * lib/ceill.c: Replace entire file.
85820         * m4/ceill.m4: New file.
85821         * lib/math.in.h (ceill): Replace declaration.
85822         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
85823         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
85824         * doc/functions/ceill.texi: Mention the 'ceill' module.
85825         * modules/mathl (Files): Remove lib/ceill.c.
85826         (Depends-on): Add ceill.
85828 2007-10-04  Bruno Haible  <bruno@clisp.org>
85830         * modules/ceilf-tests: New file.
85831         * tests/test-ceilf.c: New file.
85833         * modules/ceilf: New file.
85834         * lib/ceil.c: New file.
85835         * lib/ceilf.c: New file.
85836         * m4/ceilf.m4: New file.
85837         * lib/math.in.h (ceilf): New declaration.
85838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
85839         HAVE_DECL_CEILF.
85840         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
85841         HAVE_DECL_CEILF.
85842         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
85844 2007-10-04  Bruno Haible  <bruno@clisp.org>
85846         * modules/floorl-tests: New file.
85847         * tests/test-floorl.c: New file.
85849         * modules/floorl: New file.
85850         * lib/floorl.c: Replace entire file.
85851         * m4/floorl.m4: New file.
85852         * lib/math.in.h (floorl): Replace declaration.
85853         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
85854         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
85855         * doc/functions/floorl.texi: Mention the 'floorl' module.
85856         * modules/mathl (Files): Remove lib/floorl.c.
85857         (Depends-on): Add floorl.
85859 2007-10-04  Bruno Haible  <bruno@clisp.org>
85861         * modules/floorf-tests: New file.
85862         * tests/test-floorf.c: New file.
85864         * modules/floorf: New file.
85865         * lib/floor.c: New file.
85866         * lib/floorf.c: New file.
85867         * m4/floorf.m4: New file.
85868         * lib/math.in.h (floorf): New declaration.
85869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
85870         HAVE_DECL_FLOORF.
85871         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
85872         HAVE_DECL_FLOORF.
85873         * doc/functions/floorf.texi: Mention the 'floorf' module.
85875 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
85876             Bruno Haible  <bruno@clisp.org>
85878         Advertise for the Git server instead of the CVS server.
85879         * doc/gnulib-intro.texi (Steady Development): Mention the Git
85880         repository instead of the CVS one.
85881         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
85882         about all VCS systems generically.
85883         * doc/gnulib.texi (Introduction): Capitalize `Git'.
85885 2007-10-04  Bruno Haible  <bruno@clisp.org>
85887         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
85888         means.
85889         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
85891 2007-10-04  Bruno Haible  <bruno@clisp.org>
85893         * modules/truncl-tests: New file.
85894         * tests/test-truncl.c: New file.
85896         * modules/truncl: New file.
85897         * lib/truncl.c: New file.
85898         * m4/truncl.m4: New file.
85899         * lib/math.in.h (truncl): New declaration.
85900         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
85901         HAVE_DECL_TRUNCL.
85902         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
85903         HAVE_DECL_TRUNCL.
85904         * doc/functions/truncl.texi: Mention the 'truncl' module.
85906 2007-10-04  Bruno Haible  <bruno@clisp.org>
85908         * modules/truncf-tests: New file.
85909         * tests/test-truncf.c: New file.
85911         * modules/truncf: New file.
85912         * lib/trunc.c: Make paramerizable through USE_* macros.
85913         * lib/truncf.c: New file.
85914         * m4/truncf.m4: New file.
85915         * lib/math.in.h (truncf): New declaration.
85916         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
85917         HAVE_DECL_TRUNCF.
85918         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
85919         HAVE_DECL_TRUNCF.
85920         * doc/functions/truncf.texi: Mention the 'truncf' module.
85922 2007-10-03  Bruno Haible  <bruno@clisp.org>
85924         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
85925         augmentation also for tests modules.
85926         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
85927         * modules/atexit-tests (Makefile.am): Likewise.
85928         * modules/binary-io-tests (Makefile.am): Likewise.
85929         * modules/c-strcase-tests (Makefile.am): Likewise.
85930         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
85931         * modules/canonicalize-tests (Makefile.am): Likewise.
85932         * modules/closein-tests (Makefile.am): Likewise.
85933         * modules/fprintf-posix-tests (Makefile.am): Likewise.
85934         * modules/freadahead-tests (Makefile.am): Likewise.
85935         * modules/fseek-tests (Makefile.am): Likewise.
85936         * modules/fseeko-tests (Makefile.am): Likewise.
85937         * modules/ftell-tests (Makefile.am): Likewise.
85938         * modules/ftello-tests (Makefile.am): Likewise.
85939         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
85940         * modules/isnanl-tests (Makefile.am): Likewise.
85941         * modules/lseek-tests (Makefile.am): Likewise.
85942         * modules/mbscasecmp-tests (Makefile.am): Likewise.
85943         * modules/mbscasestr-tests (Makefile.am): Likewise.
85944         * modules/mbschr-tests (Makefile.am): Likewise.
85945         * modules/mbscspn-tests (Makefile.am): Likewise.
85946         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
85947         * modules/mbspbrk-tests (Makefile.am): Likewise.
85948         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
85949         * modules/mbsrchr-tests (Makefile.am): Likewise.
85950         * modules/mbsspn-tests (Makefile.am): Likewise.
85951         * modules/mbsstr-tests (Makefile.am): Likewise.
85952         * modules/printf-posix-tests (Makefile.am): Likewise.
85953         * modules/snprintf-posix-tests (Makefile.am): Likewise.
85954         * modules/sprintf-posix-tests (Makefile.am): Likewise.
85955         * modules/tsearch-tests (Makefile.am): Likewise.
85956         * modules/uniname/uniname-tests (Makefile.am): Likewise.
85957         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
85958         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
85959         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
85960         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
85961         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
85962         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
85963         * modules/vprintf-posix-tests (Makefile.am): Likewise.
85964         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
85965         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
85966         * modules/xstrtoimax-tests (Makefile.am): Likewise.
85967         * modules/xstrtol-tests (Makefile.am): Likewise.
85968         * modules/xstrtoumax-tests (Makefile.am): Likewise.
85969         * modules/yesno-tests (Makefile.am): Likewise.
85971 2007-10-03  Bruno Haible  <bruno@clisp.org>
85973         * modules/trunc-tests: New file.
85974         * tests/test-trunc.c: New file.
85976         * modules/trunc: New file.
85977         * lib/trunc.c: New file.
85978         * m4/trunc.m4: New file.
85979         * lib/math.in.h (trunc): New declaration.
85980         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
85981         HAVE_DECL_TRUNC.
85982         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
85983         HAVE_DECL_TRUNC.
85984         * doc/functions/trunc.texi: Mention the 'trunc' module.
85986 2007-10-03  Bruno Haible  <bruno@clisp.org>
85988         * tests/test-fpending.c: New file, mostly copied
85989         from coreutils/lib/t-fpending.c.
85990         * modules/fpending-tests: New file.
85992 2007-10-03  Bruno Haible  <bruno@clisp.org>
85994         Port the stdio extensions to QNX (untested).
85995         * lib/fseterr.c (fseterr): Add support for QNX.
85996         * lib/fbufmode.c (fbufmode): Likewise.
85997         * lib/freadable.c (freadable): Likewise.
85998         * lib/fwritable.c (fwritable): Likewise.
85999         * lib/freading.c (freading): Likewise.
86000         * lib/fwriting.c (fwriting): Likewise.
86001         * lib/freadahead.c (freadahed): Likewise.
86002         * lib/fpurge.c (fpurge): Likewise.
86003         * lib/fseeko.c (rpl_fseeko): Likewise.
86005 2007-10-03  Bruno Haible  <bruno@clisp.org>
86006             Jim Meyering  <jim@meyering.net>
86007             Eric Blake  <ebb9@byu.net>
86009         * doc/relocatable.texi: Use @command instead of @program.
86011 2007-10-02  Jim Meyering  <jim@meyering.net>
86013         Perform one more "_.h" -> ".in.h" substitution.
86014         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
86015         instead of unistd_.h here, too.
86017 2007-10-01  Bruno Haible  <bruno@clisp.org>
86019         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
86020         Needed for the alloca-opt module.
86022 2007-09-30  Bruno Haible  <bruno@clisp.org>
86024         * lib/alloca.in.h: Renamed from lib/alloca_.h.
86025         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
86026         alloca_.h.
86027         * lib/argz.in.h: Renamed from lib/argz_.h.
86028         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
86029         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
86030         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
86031         byteswap_.h.
86032         * lib/dirent.in.h: Renamed from lib/dirent_.h.
86033         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
86034         dirent_.h.
86035         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
86036         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
86037         fcntl_.h.
86038         * lib/float.in.h: Renamed from lib/float_.h.
86039         * modules/float (Files, Makefile.am): Use float.in.h instead of
86040         float_.h.
86041         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
86042         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
86043         fnmatch_.h.
86044         * lib/getopt.in.h: Renamed from lib/getopt_.h.
86045         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
86046         getopt_.h.
86047         * lib/glob.in.h: Renamed from lib/glob_.h.
86048         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
86049         * lib/iconv.in.h: Renamed from lib/iconv_.h.
86050         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
86051         iconv_.h.
86052         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
86053         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
86054         inttypes_.h.
86055         * lib/locale.in.h: Renamed from lib/locale_.h.
86056         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
86057         locale_.h.
86058         * lib/math.in.h: Renamed from lib/math_.h.
86059         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
86060         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
86061         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
86062         of netinet_in_.h. Add dependency.
86063         * lib/poll.in.h: Renamed from lib/poll_.h.
86064         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
86065         * lib/search.in.h: Renamed from lib/search_.h.
86066         * modules/search (Files, Makefile.am): Use search.in.h instead of
86067         search_.h.
86068         * lib/signal.in.h: Renamed from lib/signal_.h.
86069         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
86070         _signal.h.
86071         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
86072         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
86073         stdbool_.h.
86074         * lib/stdint.in.h: Renamed from lib/stdint_.h.
86075         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
86076         stdint_.h.
86077         * lib/stdio.in.h: Renamed from lib/stdio_.h.
86078         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
86079         stdio_.h.
86080         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
86081         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
86082         stdlib_.h.
86083         * lib/string.in.h: Renamed from lib/string_.h.
86084         * modules/string (Files, Makefile.am): Use string.in.h instead of
86085         string_.h.
86086         * doc/gnulib-tool.texi (Initial import): Update.
86087         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
86088         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
86089         of sys_select_.h. Add dependency.
86090         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
86091         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
86092         of sys_socket_.h.
86093         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
86094         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
86095         sys_stat_.h.
86096         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
86097         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
86098         sys_time_.h.
86099         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
86100         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
86101         sysexits_.h.
86102         * lib/time.in.h: Renamed from lib/time_.h.
86103         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
86104         * lib/unistd.in.h: Renamed from lib/unistd_.h.
86105         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
86106         unistd_.h.
86107         * lib/wchar.in.h: Renamed from lib/wchar_.h.
86108         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
86109         wchar_.h.
86110         * lib/wctype.in.h: Renamed from lib/wctype_.h.
86111         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
86112         wctype_.h.
86113         * build-aux/bootstrap (slurp): Update.
86114         * lib/.cppi-disable: Update.
86116 2007-09-30  Bruno Haible  <bruno@clisp.org>
86118         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
86119         Needed on BeOS.
86121 2007-09-30  Bruno Haible  <bruno@clisp.org>
86123         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
86125 2007-09-29  Bruno Haible  <bruno@clisp.org>
86127         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
86129 2007-09-29  Bruno Haible  <bruno@clisp.org>
86131         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
86132         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
86133         * build-aux/install-reloc: Compile also areadlink.c.
86134         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
86136 2007-09-29  Bruno Haible  <bruno@clisp.org>
86138         * gnulib-tool (func_emit_initmacro_done): Indentation.
86140 2007-09-29  Bruno Haible  <bruno@clisp.org>
86142         * README: Add CVS checkout update instructions.
86143         Info from Bob Proulx <bob@proulx.com>.
86145 2007-09-28  Eric Blake  <ebb9@byu.net>
86147         Provide move-if-change.
86148         * build-aux/move-if-change: New file, based on best practice
86149         rather than any canonical upstream location.
86151 2007-09-28  Jim Meyering  <jim@meyering.net>
86153         Fix canonicalize loop-detection corner case.
86154         Do not attempt to stat the symlink values stored via seen_triple.
86155         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
86156         on linux-2.6.18, (but not 2.6.22).
86157         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
86158         triple_compare.  The former compares dev,ino,filename, while the latter
86159         would actually stat dirname(filename) when dev and ino were equal.
86160         * lib/hash-triple.c: Install <string.h>.
86161         (STREQ): Define.
86162         (triple_compare_ino_str): New function.
86163         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
86165 2007-09-28  Eric Blake  <ebb9@byu.net>
86167         Enforce that AC_REPLACE_FUNCS files exist.
86168         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
86169         override check for typos.
86171         Fix test-closein on Solaris 10.
86172         * tests/test-closein.c (main): Don't assume stdin can be inherited
86173         closed on all systems.
86174         * tests/test-closein.sh: Likewise.
86175         Reported by Piotr Tarnowski.
86177 2007-09-28  Jim Meyering  <jim@meyering.net>
86179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
86181 2007-09-27  Jim Meyering  <jim@meyering.net>
86183         canonicalize: Avoid a false-positive cycle failure.
86184         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
86185         Sort.  Remove cycle-check.
86186         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
86187         not cycle-check.h.
86188         (seen_triple): New function.
86189         (canonicalize_filename_mode): Use it instead of cycle-check.
86190         * tests/test-canonicalize.c: Add a test for this bug.
86191         * tests/test-canonicalize.sh: Set up and run the test.
86193         New module, file-set, from coreutils.
86194         * modules/file-set: Define it.
86195         * lib/file-set.c, lib/file-set.h: Implement.
86197         New module, hash-triple, from coreutils.
86198         * modules/hash-triple: Define it.
86199         * lib/hash-triple.c, lib/hash-triple.h: Implement.
86201 2007-09-25  Eric Blake  <ebb9@byu.net>
86203         Fix strerror on Interix.
86204         * lib/string_.h (strerror): Declare replacement.
86205         * doc/functions/strerror.texi (strerror): Document the Interix
86206         shortcoming.
86207         * modules/string (Makefile.am): Support new hooks.
86208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
86209         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
86210         gl_FUNC_STRERROR_SEPARATE.
86211         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
86212         * lib/strerror.c (rpl_strerror): Provide replacement.
86213         * modules/strerror (Depends-on): Add string.
86214         (configure.ac): Detect use of module.
86215         * tests/test-strerror.c: New file.
86216         * modules/strerror-tests: New test module.
86217         * modules/argp (Depends-on): Add strerror.
86218         * modules/error (Depends-on): Likewise.
86219         Reported by Martin Koeppe.
86221 2007-09-24  Bruno Haible  <bruno@clisp.org>
86223         * README: Update git instructions.
86225 2007-09-24  Eric Blake  <ebb9@byu.net>
86227         Revert fpending breakage from 2007-09-08.
86228         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
86229         __fpending.c.
86231 2007-09-24  Jim Meyering  <jim@meyering.net>
86233         filenamecat.c: Add a test.
86234         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
86235         showing how the function works when DIR is the empty string.
86237 2007-09-21  Simon Josefsson  <simon@josefsson.org>
86239         * tests/test-canonicalize.sh: Turn on executable bit.
86241 2007-09-19  Eric Blake  <ebb9@byu.net>
86243         * README: Update CVS instructions.
86245 2007-09-18  Bruno Haible  <bruno@clisp.org>
86247         * modules/areadlink: New file.
86248         * lib/areadlink.h (areadlink): New declaration.
86249         * lib/areadlink.c: New file, based on lib/xreadlink.c.
86251 2007-09-17  Jim Meyering  <jim@meyering.net>
86253         * lib/savewd.c (ESTALE) [!defined]: Define.
86254         Reported to be required on Interix by Martin Koeppe.
86256 2007-09-17  Bruno Haible  <bruno@clisp.org>
86258         * gnulib-tool (func_version): Use $version.
86260 2007-09-16  Bruno Haible  <bruno@clisp.org>
86262         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
86263         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
86264         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
86265         Reported by Greg Schafer <gschafer@zip.com.au>.
86267 2007-09-15  Bruno Haible  <bruno@clisp.org>
86269         * gnulib-tool (sed): Try a little harder to make bash understand the
86270         alias.
86271         Reported by Bruce Korb <bruce.korb@gmail.com>.
86273 2007-09-13  Eric Blake  <ebb9@byu.net>
86275         * ChangeLog: Remove conflict markers.
86277 2007-09-13  Simon Josefsson  <simon@josefsson.org>
86279         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
86280         Reported by Bruno Haible <bruno@clisp.org>.
86282 2007-09-12  Bruno Haible  <bruno@clisp.org>
86284         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
86285         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
86286         is not defined.
86288 2007-09-12  Eric Blake  <ebb9@byu.net>
86290         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
86291         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
86292         Autoconf definition.
86293         * modules/euidaccess (Depends-on): Add extensions, for
86294         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
86295         * modules/fnmatch (Depends-on): Likewise.
86296         * modules/getaddrinfo (Depends-on): Likewise.
86297         * modules/getdelim (Depends-on): Likewise.
86298         * modules/getline (Depends-on): Likewise.
86299         * modules/getsubopt (Depends-on): Likewise.
86300         * modules/gettext (Depends-on): Likewise.
86301         * modules/group-member (Depends-on): Likewise.
86302         * modules/mbchar (Depends-on): Likewise.
86303         * modules/memmem (Depends-on): Likewise.
86304         * modules/mempcpy (Depends-on): Likewise.
86305         * modules/memrchr (Depends-on): Likewise.
86306         * modules/pagealign_alloc (Depends-on): Likewise.
86307         * modules/readutmp (Depends-on): Likewise.
86308         * modules/stpcpy (Depends-on): Likewise.
86309         * modules/stpncpy (Depends-on): Likewise.
86310         * modules/strchrnul (Depends-on): Likewise.
86311         * modules/strndup (Depends-on): Likewise.
86312         * modules/strsep (Depends-on): Likewise.
86313         * modules/strverscmp (Depends-on): Likewise.
86314         * modules/vasprintf (Depends-on): Likewise.
86315         * modules/wcwidth (Depends-on): Likewise.
86316         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
86317         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
86318         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
86319         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
86320         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
86321         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86322         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
86323         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
86324         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
86325         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
86326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
86327         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
86328         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
86329         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
86330         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
86331         * m4/readutmp.m4 (gl_READUTMP): Likewise.
86332         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
86333         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
86334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
86335         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
86336         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
86337         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
86338         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
86339         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
86340         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
86341         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
86342         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
86343         so that lock.m4 can be used in gettext without extensions module.
86345 2007-09-11  Bruno Haible  <bruno@clisp.org>
86347         * m4/isc-posix.m4: Remove file.
86348         Suggested by Eric Blake.
86350 2007-09-11  Eric Blake  <ebb9@byu.net>
86352         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
86354 2007-09-10  Bruno Haible  <bruno@clisp.org>
86356         * posix-modules: Fix typo in error message.
86357         Reported by Matt <mkraai@beckman.com>.
86359 2007-09-09  Bruno Haible  <bruno@clisp.org>
86361         * doc/functions/getdelim.texi: Update list of platforms lacking the
86362         function.
86363         * doc/functions/getline.texi: Likewise.
86365 2007-09-09  Jim Meyering  <jim@meyering.net>
86367         * lib/hash.c (hash_initialize): Detect calloc failure.
86368         Reported by Bruno Haible.
86370 2007-09-09  Bruno Haible  <bruno@clisp.org>
86372         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
86373         malloc or realloc fails.
86375 2007-09-09  Bruno Haible  <bruno@clisp.org>
86377         * modules/getcwd (Depends-on): Add malloc-posix.
86378         * modules/glob (Depends-on): Likewise.
86379         * modules/putenv (Depends-on): Likewise.
86380         * modules/strdup (Depends-on): Likewise.
86381         * modules/getdelim (Depends-on): Add realloc-posix.
86382         * modules/read-file (Depends-on): Likewise.
86384 2007-09-09  Bruno Haible  <bruno@clisp.org>
86386         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
86387         (gl_FUNC_MALLOC_POSIX): Require it.
86388         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
86389         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
86390         * modules/realloc (Files): Add m4/malloc.m4.
86391         * modules/calloc (Files): Likewise.
86393 2007-09-09  Bruno Haible  <bruno@clisp.org>
86395         * modules/malloc-posix: New file.
86396         * modules/malloc (Depends-on): Add malloc-posix.
86397         * lib/malloc.c: Include errno.h.
86398         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
86399         and a POSIX-compatible malloc into a single function. Set ENOMEM
86400         when returning NULL.
86401         * m4/malloc.m4: New file.
86402         * doc/functions/malloc.texi: Mention the malloc-posix module.
86403         * lib/stdlib_.h (malloc): New declaration.
86404         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86405         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
86406         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
86407         and HAVE_MALLOC_POSIX.
86409 2007-09-09  Bruno Haible  <bruno@clisp.org>
86411         * modules/realloc-posix: New file.
86412         * modules/realloc (Depends-on): Add realloc-posix.
86413         * lib/realloc.c: Include errno.h.
86414         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
86415         and a POSIX-compatible realloc into a single function. Set ENOMEM
86416         when returning NULL.
86417         * m4/realloc.m4: New file.
86418         * doc/functions/realloc.texi: Mention the realloc-posix module.
86419         * lib/stdlib_.h (realloc): New declaration.
86420         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86421         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
86422         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
86423         and HAVE_REALLOC_POSIX.
86425 2007-09-09  Bruno Haible  <bruno@clisp.org>
86427         * modules/calloc-posix: New file.
86428         * modules/calloc (Depends-on): Add calloc-posix.
86429         * lib/calloc.c: Include errno.h.
86430         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
86431         and a POSIX-compatible calloc into a single function. Set ENOMEM
86432         when returning NULL.
86433         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
86434         * doc/functions/calloc.texi: Mention the calloc-posix module.
86435         * lib/stdlib_.h (calloc): New declaration.
86436         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
86437         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
86438         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
86439         and HAVE_CALLOC_POSIX.
86441 2007-09-09  Bruno Haible  <bruno@clisp.org>
86443         Allow for modules to show an arbitrary notice.
86444         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
86445         * gnulib-tool: New option --extract-notice.
86446         (func_usage): Document it.
86447         (sed_extract_prog): Update.
86448         (func_get_notice): New function.
86449         (func_modules_notice): New function.
86450         (func_import, func_create_testdir): Invoke it.
86451         Suggested by Jim Meyering.
86453 2007-09-09  Bruno Haible  <bruno@clisp.org>
86455         * gnulib-tool: New options --verbose, --quiet.
86456         (func_usage): Document them.
86457         (verbose): New variable.
86458         (func_execute_command): New function.
86459         (func_import): Don't show the module list and the file list if
86460         $verbose < 0.
86461         (func_create_testdir): Likewise. Use func_execute_command.
86462         (func_create_megatestdir): Use func_execute_command.
86464 2007-09-08  Bruno Haible  <bruno@clisp.org>
86466         * gnulib-tool (func_import): Prefer rsync over wget when available,
86467         for fetching the PO files.
86469 2007-09-08  Bruno Haible  <bruno@clisp.org>
86471         * posix-modules: New file. Portions copied from gnulib-tool.
86472         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
86474 2007-09-08  Jim Meyering  <jim@meyering.net>
86476         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
86477         * lib/fpending.h: Rename from __fpending.h.
86478         * lib/fpending.c: Rename from __fpending.c.
86479         Include "fpending.h", not "__fpending.h".
86480         * lib/__fpending.h, lib/__fpending.c: Remove files.
86481         * modules/fpending (Files): Reflect new file names.
86482         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
86484 2007-09-08  Bruno Haible  <bruno@clisp.org>
86486         * m4/inttypes-h.m4: Remove stub file.
86488 2007-09-07  Simon Josefsson  <simon@josefsson.org>
86490         * doc/headers/stdint.texi: Discuss #include_next issue.
86492 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
86494         * build-aux/bootstrap: Remove obsolete comment about wget --help.
86496 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86498         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
86499         in variable name.
86501 2007-09-03  Jim Meyering  <jim@meyering.net>
86503         New module: git-version-gen.
86504         * modules/git-version-gen: New file.
86506         Import changes from coreutils for bootstrap script.
86508         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
86510         bootstrap: uses rsync to download the .po files
86511         * build-aux/bootstrap (po_download_command_format): New global.
86512         (download_po_files): Use rsync.
86513         (update_po_files): Don't remove .po files after download,
86514         so future rsync runs can take advantage of the copies.
86516         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
86518         Solve the unnecessary-.po-file-regeneration problem once and for all.
86519         * build-aux/bootstrap (download_po_files): New function, renamed from
86520         get_translations.  Now, downloads, but doesn't update LINGUAS.
86521         (update_po_files): New function.
86523         bootstrap: Ignore more.
86524         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
86525         uniwidth to e.g., lib/.gitignore.
86526         (slurp): Handle the sys_stat_.h -> sys mapping, too.
86528         * build-aux/bootstrap: New setting: vc_ignore.
86529         (insert_sorted_if_absent): Create $file if absent.
86530         Adapt to new, possibly empty, list: $vc_ignore.
86532         bootstrap: generate more ignorable names
86533         * build-aux/bootstrap (slurp): When generating ignorable names,
86534         also map .sin to .sed, .gperf to .c, and .y to .c.
86536 2007-09-03  Jim Meyering  <jim@meyering.net>
86538         * build-aux/git-version-gen: New file, from coreutils.  For details, see
86539         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
86541 2007-09-02  Bruno Haible  <bruno@clisp.org>
86543         Fix mis-recognition of 'mcs' on QNX 6.
86544         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
86545         output contains the string "Mono".
86546         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
86547         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
86549 2007-09-01  Bruno Haible  <bruno@clisp.org>
86551         Fix collision between uniwidth/* and linebreak modules.
86552         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
86553         u32_width): Remove declarations.
86554         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
86555         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
86556         streq3, streq2, streq1, streq0): Remove functions.
86557         (STREQ): Remove macro.
86558         (is_cjk_encoding): Remove function.
86559         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
86560         (uc_width, u8_width, u16_width, u32_width): Remove functions.
86561         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
86562         * NEWS: Document the change.
86564 2007-09-01  Bruno Haible  <bruno@clisp.org>
86566         * lib/streq.h: Add double-inclusion guard.
86568 2007-09-01  Karl Berry  <karl@gnu.org>
86570         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
86572 2007-08-28  Jim Meyering  <jim@meyering.net>
86574         Rename mreadlink_with_size to areadlink_with_size.
86575         * NEWS: Document the change.
86576         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
86577         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
86578         * lib/mreadlink.h: Rename this to...
86579         * lib/areadlink.h: ...this.
86580         * modules/mreadlink-with-size: Rename this to...
86581         * modules/areadlink-with-size: ...this.
86582         * lib/canonicalize.c: Reflect the renaming.
86583         * modules/canonicalize: Likewise.
86585 2007-08-26  Bruno Haible  <bruno@clisp.org>
86587         * gnulib-tool (func_import): When deciding which files to remove,
86588         consider also dangling symbolic links.
86589         Reported by Eric Blake.
86591 2007-08-26  Bruno Haible  <bruno@clisp.org>
86593         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
86595 2007-08-23  Simon Josefsson  <simon@josefsson.org>
86597         * lib/readline.c: Don't include getline.h, the prototype is now
86598         found in stdio.h.
86600 2007-08-23  Jim Meyering  <jim@meyering.net>
86602         Getdelim touchup.
86603         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
86604         around the funlockfile call, since funlockfile never sets errno.
86605         Don't set errno upon failed realloc.
86607 2007-08-22  Eric Blake  <ebb9@byu.net>
86609         Getline touchups.
86610         * lib/getdelim.c (getdelim): Revert regression that required *n to
86611         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
86612         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
86613         getdelim, rather than whether implementation is missing.
86614         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
86615         * lib/stdio_.h (getline): Also declare if replacement is
86616         required.
86617         * doc/functions/getdelim.texi: New file.
86618         * doc/functions/getline.texi: Likewise.
86619         * doc/gnulib.texi (Function Substitutes): Add new files.
86620         Reported by Bruno Haible.
86622 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
86624         * users.txt: Add Guile.
86626 2007-08-22  Eric Blake  <ebb9@byu.net>
86628         * tests/test-getdelim.c (main): Use remove, not unlink.
86629         * tests/test-getline.c (main): Likewise.
86631         Move getline and getdelim into stdio.h, per POSIX 200x.
86632         * modules/getline (Files): Remove getline.h.
86633         (Depends-on): Add stdio.
86634         (configure.ac): Add module indicator.
86635         * modules/getdelim (Files): Remove getdelim.h.
86636         (Depends-on): Add stdio.
86637         (configure.ac): Add module indicator.
86638         * modules/stdio (Makefile.am): Work with new indicators.
86639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
86640         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
86641         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
86642         * lib/getdelim.h: Delete.
86643         * lib/getline.h: Delete.
86644         * lib/stdio_.h (getdelim, getline): Declare.
86645         * modules/getdelim-tests: New module.
86646         * modules/getline-tests: Likewise.
86647         * tests/test-getdelim.c: New file.
86648         * tests/test-getline.c: Likewise.
86649         * NEWS: Document the change.
86650         * lib/getline.c: Update choice of header.
86651         * lib/csharpcomp.c: Likewise.
86652         * lib/getpass.c: Likewise.
86653         * lib/javacomp.c: Likewise.
86654         * lib/javaversion.c: Likewise.
86655         * lib/yesno.c: Likewise.
86656         * lib/getdelim.c: Likewise.
86657         (getdelim): Set errno on failure, and avoid memory leak.
86659 2007-08-19  Bruno Haible  <bruno@clisp.org>
86661         * modules/closein (Depends-on): Add freadahead.
86662         * lib/closein.c: Include freadahead.h.
86663         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
86664         is zero.
86666 2007-08-19  Bruno Haible  <bruno@clisp.org>
86668         * modules/freadahead-tests: New file.
86669         * tests/test-freadahead.sh: New file.
86670         * tests/test-freadahead.c: New file.
86672         * modules/freadahead: New file.
86673         * lib/freadahead.h: New file.
86674         * lib/freadahead.c: New file.
86675         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
86676         fbufmode, fpurge, freadable, fwritable.
86678 2007-08-19  Eric Blake  <ebb9@byu.net>
86680         Test yesno in combination with closein.
86681         * lib/yesno.c (yesno): Document use of stdin.
86682         * modules/yesno-tests (Files): New module.
86683         * tests/test-yesno.c (main): New file.
86684         * tests/test-yesno.sh: Likewise.
86686 2007-08-19  Bruno Haible  <bruno@clisp.org>
86688         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
86689         * lib/fseeko.c (rpl_fseeko): Likewise.
86690         * lib/fseterr.c (fseterr): Likewise.
86692 2007-08-19  Bruno Haible  <bruno@clisp.org>
86694         * tests/test-lseek.c (main): Disable a test for BeOS.
86695         * doc/functions/lseek.texi: Document the BeOS bug.
86697 2007-08-19  Bruno Haible  <bruno@clisp.org>
86698             Eric Blake  <ebb9@byu.net>
86700         * lib/lseek.c: Include <sys/stat.h>.
86701         (rpl_lseek): Add workaround code also for Unix platforms.
86702         Needed for BeOS.
86703         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
86704         * doc/functions/lseek.texi: Document BeOS definiency.
86706 2007-08-18  Bruno Haible  <bruno@clisp.org>
86708         * modules/fstrcmp-tests: New file.
86709         * tests/test-fstrcmp.c: New file.
86711 2007-08-18  Bruno Haible  <bruno@clisp.org>
86713         * modules/fstrcmp: New file, from GNU gettext with modifications.
86714         * lib/fstrcmp.h: New file, from GNU gettext.
86715         * lib/fstrcmp.c: New file, from GNU gettext.
86716         * MODULES.html.sh (String handling): Add fstrcmp.
86718 2007-08-18  Bruno Haible  <bruno@clisp.org>
86720         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
86721         'bool'.
86722         (diag, compareseq): Remove const from the ctxt argument.
86723         (USE_HEURISTIC): Undefine at the end.
86725 2007-08-18  Jim Meyering  <jim@meyering.net>
86727         New file: lib/idcache.h
86728         * NEWS: Mention the addition.
86729         * modules/idcache (Files): Add lib/idcache.h
86730         * lib/idcache.c: Include "idcache.h".
86731         Don't include <sys/types.h>.
86732         Add a FIXME comment.
86733         Move file-scoped "static" declarations to the top.
86734         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
86736 2007-08-17  Bruno Haible  <bruno@clisp.org>
86737         and Paul Eggert  <eggert@cs.ucla.edu>
86739         * MODULES.html.sh: Add diffseq.
86740         * modules/diffseq: New file.
86741         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
86742         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
86744 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
86746         Import changes from coreutils for bootstrap script.
86748         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
86750         * build-aux/bootstrap (slurp): Work even in environments where
86751         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
86752         current code does not slurp files whose names start with ".", and
86753         this looks like it might be a troublesome area.
86755         2007-07-11  Jim Meyering  <jim@meyering.net>
86757         If there's a GPL vN copyright comment, require that N == 3.
86759         2007-07-08  Jim Meyering  <jim@meyering.net>
86761         Run the coreutils-specific code only if tests/Makefile.am.in exists.
86762         * build-aux/bootstrap (mam_template): Move definition out of loop.
86764         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
86766         * build-aux/bootstrap (symlink_to_dir): Rename function from
86767         symlink_to_gnulib.  Add a directory parameter.  Update all
86768         callers.
86769         (cp_mark_as_generated): Also check for -- and link to -- files in
86770         gl/.
86772         2007-07-08  Jim Meyering  <jim@meyering.net>
86774         Adapt to deeper hierarchy in gnulib.
86775         * build-aux/bootstrap (symlink_to_dir): If the destination
86776         directory doesn't exist, create it. This is required at least for
86777         "lib/uniwidth/cjk.h".
86779         2007-05-15  Jim Meyering  <jim@meyering.net>
86781         * build-aux/bootstrap: Now that generated Makefile.am files
86782         are no longer under version control, they must be created at
86783         bootstrap time.
86785 2007-08-14  Ben Pfaff  <blp@gnu.org>
86787         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
86789 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
86791         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
86792         given the changes below.
86793         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
86794         even on hosts that have padding bits beyond the supported 64.
86796 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
86798         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
86799         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
86800         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
86801         depends on it.
86802         (xstrtol_error): Remove.
86803         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
86804         but with a different signature.
86805         (ATTRIBUTE_NORETURN, __attribute__): New macros.
86806         * lib/xstrtol-error.c: Include exitfail.h.
86807         (xstrtol_fatal): New function, with a different signature from the
86808         old xstrtol_error, so that the caller need not worry about passing
86809         in an exit status, or about storage management of the option argument.
86810         (xstrtol_error): Now a static function.  Redo signature to
86811         implement xstrtol_fatal.  Output the correct number of hyphens in
86812         front of the option so that the caller need not worry about
86813         storage management.
86814         (N_): New macro.
86815         (_): Remove; not used now.
86816         * modules/xstrtol: Depend on getopt.
86817         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
86818         of old STRTOL_FATAL_ERROR macro.
86819         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
86820         of test program.
86821         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
86822         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
86824 2007-08-08  Eric Blake  <ebb9@byu.net>
86826         * lib/xstrtol-error.c: Add missing include.
86828         Move xstrtol messages into gnulib domain, when --pobase is used.
86829         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
86830         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
86831         * modules/xstrtol (Files): Distribute new file.
86832         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
86833         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
86834         * tests/test-xstrtol.c: ...into new file.
86835         * tests/test-xstrtoul.c: Also test xstrtoul.
86836         * tests/test-xstrtoimax.c: Also test xstrtoimax.
86837         * tests/test-xstrtoumax.c: Also test xstrtoumax.
86838         * tests/test-xstrtol.sh: Drive the tests.
86839         * tests/test-xstrtoimax.sh: Likewise.
86840         * tests/test-xstrtoumax.sh: Likewise.
86841         * modules/xstrtol-tests: New module.
86842         * modules/xstrtoimax-tests: Likewise.
86843         * modules/xstrtoumax-tests: Likewise.
86845 2007-08-08  Jim Meyering  <jim@meyering.net>
86847         New function: mfile_name_concat.
86848         * lib/filenamecat.c (mfile_name_concat): New function, just like
86849         file_name_concat, but return NULL upon failure rather than exiting
86850         with a diagnostic.
86851         * lib/filenamecat.h: Declare it.
86853 2007-08-07  Bruno Haible  <bruno@clisp.org>
86855         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
86856         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
86857         warning from gcc.
86858         Reported by Eric Blake.
86860 2007-08-07  Simon Josefsson  <simon@josefsson.org>
86862         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
86863         * modules/crypto/arcfour (License): Likewise.
86864         * modules/crypto/des-tests (License): Likewise.
86865         * modules/crypto/gc-arctwo-tests (License): Likewise.
86866         * modules/crypto/gc-des-tests (License): Likewise.
86867         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
86868         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
86869         * modules/crypto/gc-md2-tests (License): Likewise.
86870         * modules/crypto/gc-md4-tests (License): Likewise.
86871         * modules/crypto/gc-md5-tests (License): Likewise.
86872         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
86873         * modules/crypto/gc-rijndael-tests (License): Likewise.
86874         * modules/crypto/gc-sha1-tests (License): Likewise.
86875         * modules/crypto/gc-tests (License): Likewise.
86876         * modules/crypto/hmac-md5 (License): Likewise.
86877         * modules/crypto/hmac-sha1 (License): Likewise.
86878         * modules/crypto/md2-tests (License): Likewise.
86879         * modules/crypto/md4-tests (License): Likewise.
86880         * modules/crypto/md5 (License): Likewise.
86881         * modules/crypto/rijndael (License): Likewise.
86882         * modules/crypto/sha1 (License): Likewise.
86883         * modules/memxor (License): Likewise.
86885 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
86886         and Bruno Haible  <bruno@clisp.org>
86888         * NEWS: Describe interface changes to human, xstrtol.
86889         * lib/human.h: Include <xstrtol.h>.
86890         (human_options): Return enum strtol_error, not int.  Remove
86891         bool arg; take int * instead.
86892         * lib/human.c: Don't include "gettext.h".
86893         (_): Remove; no longer used.
86894         Don't include <xstrtol.h>, since human.h does it.
86895         (human_options): Adjust to abovementioned interface changes.
86896         Do not report error to stderr; that's now the caller's
86897         responsibility.
86898         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
86899         interface change.
86900         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
86901         Str, Argument_type_string.  All uses changed.  Put " argument"
86902         in diagnostics to make them clearer.  Change wording of suffix
86903         message for clarity.
86904         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
86905         Argument_type_string.
86906         (STRTOL_FATAL_WARN): Remove; no longer used.
86907         * modules/human (Depends-on): Remove gettext-h.
86909 2007-08-06  Simon Josefsson  <simon@josefsson.org>
86911         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
86913 2007-07-31  Bruno Haible  <bruno@clisp.org>
86915         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
86916         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
86917         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
86919 2007-07-31  Bruno Haible  <bruno@clisp.org>
86921         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
86922         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
86924 2007-07-30  Bruno Haible  <bruno@clisp.org>
86926         * modules/base64 (License): Use the synonymous term "LGPLv2+".
86927         * modules/c-ctype (License): Likewise.
86928         * modules/c-strcase (License): Likewise.
86929         * modules/check-version (License): Likewise.
86930         * modules/iconv (License): Likewise.
86931         * modules/iconv_open (License): Likewise.
86932         * modules/read-file (License): Likewise.
86933         * modules/striconv (License): Likewise.
86934         * modules/strverscmp (License): Likewise.
86935         * modules/vasprintf (License): Likewise.
86936         * modules/crypto/des (License): Likewise.
86937         * modules/crypto/gc (License): Likewise.
86938         * modules/crypto/gc-arcfour (License): Likewise.
86939         * modules/crypto/gc-arctwo (License): Likewise.
86940         * modules/crypto/gc-des (License): Likewise.
86941         * modules/crypto/gc-hmac-md5 (License): Likewise.
86942         * modules/crypto/gc-hmac-sha1 (License): Likewise.
86943         * modules/crypto/gc-md2 (License): Likewise.
86944         * modules/crypto/gc-md4 (License): Likewise.
86945         * modules/crypto/gc-md5 (License): Likewise.
86946         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
86947         * modules/crypto/gc-random (License): Likewise.
86948         * modules/crypto/gc-rijndael (License): Likewise.
86949         * modules/crypto/gc-sha1 (License): Likewise.
86950         * modules/crypto/md2 (License): Likewise.
86951         * modules/crypto/md4 (License): Likewise.
86953 2007-07-30  Jim Meyering  <jim@meyering.net>
86955         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
86956         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
86957         it has valid stat data.  This bug would cause du not to count the
86958         sizes of inaccessible directories.
86959         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
86960         in <http://bugzilla.redhat.com/250077>.
86962 2007-07-25  Peter O'Gorman  <peter@pogma.com>
86963             Bruno Haible  <bruno@clisp.org>
86965         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
86966         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
86967         #include_next, gives a diagnostic about it, but reports no error in
86968         the exit code.
86969         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
86971 2007-07-24  Ben Pfaff  <blp@gnu.org>
86973         Improve name: "count-one-bits" is better than "popcount".
86974         * MODULES.html.sh: Update name.
86975         * lib/popcount.h: Renamed lib/count-one-bits.h.
86976         (popcount): Renamed count_one_bits.
86977         (popcountl): Renamed count_one_bits_l.
86978         (popcountll): Renamed count_one_bits_ll.
86979         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
86980         * modules/popcount: Renamed module/count-one-bits.
86981         * modules/popcount-tests: Renamed module/count-one-bits-tests.
86982         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
86984 2007-07-23  Ben Pfaff  <blp@gnu.org>
86986         * lib/popcount.h (popcount32): Reduce size of constants, to allow
86987         better code generation, and add U to large constants to avoid
86988         warnings, in non-GCC case.
86989         Suggested by Bruno Haible.
86991 2007-07-23  Ben Pfaff  <blp@gnu.org>
86993         * lib/popcount.h: Use verify_true instead of if...abort.
86994         * modules/popcount: Depend on verify module.
86995         Suggested by Jim Meyering.
86997 2007-07-23  Bruno Haible  <bruno@clisp.org>
86999         * gnulib-tool (func_import): Create a .cvsignore file also when the
87000         directory is not yet in CVS but the toplevel directory is. When
87001         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
87002         Reported by Karl Berry.
87004 2007-07-22  Ben Pfaff  <blp@gnu.org>
87006         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
87007         case.
87008         Suggested by Eric Blake.
87010 2007-07-22  Ben Pfaff  <blp@gnu.org>
87012         New module: popcount.
87013         * MODULES.html.sh: Add popcount.
87014         * modules/popcount: New file.
87015         * modules/popcount-tests: New file.
87016         * tests/test-popcount.c: New file.
87017         * lib/popcount.h: New file.
87018         * m4/popcount.m4: New file.
87020 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
87022         * build-aux/announce-gen: Update to GPLv3.
87024         * build-aux/config.guess: Update from config.
87026 2007-07-21  Bruno Haible  <bruno@clisp.org>
87028         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
87029         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
87031 2007-07-20  Jim Meyering  <jim@meyering.net>
87033         * check-module: Diagnose a self-dependency.
87035 2007-07-19  Bruno Haible  <bruno@clisp.org>
87037         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
87038         empty.
87039         Reported by Eric Blake.
87041 2007-07-18  Bruno Haible  <bruno@clisp.org>
87043         * gnulib-tool: New options --po-base, --po-domain.
87044         (func_usage): Document them.
87045         (pobase, po_domain): New variables.
87046         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
87047         DEFAULT_TEXT_DOMAIN.
87048         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
87049         (func_import): Consider pobase and po_domain. Create a po/ directory.
87050         (func_create_testdir): Set pobase and po_domain to empty.
87051         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
87052         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
87054 2007-07-18  Bruno Haible  <bruno@clisp.org>
87056         * gnulib-tool (func_get_automake_snippet): Synthesize also an
87057         EXTRA_DIST augmentation for files in build-aux/.
87059 2007-07-16  Bruno Haible  <bruno@clisp.org>
87061         * modules/lseek (License): Use the synonymous term "LGPLv2+".
87062         * modules/getdelim (License): Likewise.
87064 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
87066         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
87067         * modules/d-type (License): Likewise.
87068         * modules/extensions (License): Likewise.
87069         * modules/fnmatch (License): Likewise.
87070         * modules/fseeko (License): Likewise.
87071         * modules/getaddrinfo (License): Likewise.
87072         * modules/getline (License): Likewise.
87073         * modules/getlogin_r (License): Likewise.
87074         * modules/getpass (License): Likewise.
87075         * modules/gettimeofday (License): Likewise.
87076         * modules/glob (License): Likewise.
87077         * modules/inet_ntop (License): Likewise.
87078         * modules/malloc (License): Likewise.
87079         * modules/malloca (License): Likewise.
87080         * modules/memmem (License): Likewise.
87081         * modules/mempcpy (License): Likewise.
87082         * modules/memset (License): Likewise.
87083         * modules/minmax (License): Likewise.
87084         * modules/mktime (License): Likewise.
87085         * modules/netinet_in (License): Likewise.
87086         * modules/pathmax (License): Likewise.
87087         * modules/poll (License): Likewise.
87088         * modules/regex (License): Likewise.
87089         * modules/snprintf (License): Likewise.
87090         * modules/stdbool (License): Likewise.
87091         * modules/stdint (License): Likewise.
87092         * modules/stdio (License): Likewise.
87093         * modules/strcase (License): Likewise.
87094         * modules/strcasestr (License): Likewise.
87095         * modules/strdup (License): Likewise.
87096         * modules/string (License): Likewise.
87097         * modules/strndup (License): Likewise.
87098         * modules/strnlen (License): Likewise.
87099         * modules/strpbrk (License): Likewise.
87100         * modules/strptime (License): Likewise.
87101         * modules/strsep (License): Likewise.
87102         * modules/sys_select (License): Likewise.
87103         * modules/sys_socket (License): Likewise.
87104         * modules/sys_stat (License): Likewise.
87105         * modules/sys_time (License): Likewise.
87106         * modules/time (License): Likewise.
87107         * modules/time_r (License): Likewise.
87108         * modules/timegm (License): Likewise.
87109         * modules/unistd (License): Likewise.
87110         * modules/vsnprintf (License): Likewise.
87111         * modules/wctype (License): Likewise.
87113 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87115         * modules/argz (License): LGPLv2+.
87117 2007-07-15  Karl Berry  <karl@gnu.org>
87119         * doc/gnulib.texi: revise node structure per new fdl.texi.
87121 2007-07-14  Bruno Haible  <bruno@clisp.org>
87123         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
87124         the output file.
87125         * lib/uniname/uninames.h: Regenerated.
87127 2007-07-14  Karl Berry  <karl@gnu.org>
87129         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
87130         omitting sectioning and index commands.
87132 2007-07-13  Bruno Haible  <bruno@clisp.org>
87134         New gnulib-tool option --more-symlinks.
87135         * gnulib-tool (func_usage): Document --more-symlinks.
87136         (do_copyrights): New variable.
87137         Recognize option --more-symlinks.
87138         (func_import): Don't add a copyright notice transform to
87139         sed_transform_lib_file if do_copyrights is empty.
87141 2007-07-13  Bruno Haible  <bruno@clisp.org>
87143         * lib/vasnprintf.c (decimal_point_char): Define also if
87144         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
87145         && !NEED_PRINTF_DIRECTIVE_A.
87146         Reported by Clemens Koller <clemens.koller@anagramm.de> via
87147         Gary V. Vaughan <gary@gnu.org>.
87149 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
87151         * lib/inttypes_.h: Undo previous change, since it was fixed
87152         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
87154 2007-07-13  Bruno Haible  <bruno@clisp.org>
87156         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
87157         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
87159 2007-07-13  Jim Meyering  <jim@meyering.net>
87161         df: Don't fail for Tru64's "file-on-file mount".
87162         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
87163         so we fall through and use statfs instead.  Details here:
87164         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
87165         Reported by Albert Chin.
87167 2007-07-13  Bruno Haible  <bruno@clisp.org>
87169         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
87170         * modules/configmake (License): Likewise.
87171         * modules/gettext (License): Likewise.
87172         * modules/gettext-h (License): Likewise.
87173         * modules/include_next (License): Likewise.
87174         * modules/link-warning (License): Likewise.
87175         * modules/localcharset (License): Likewise.
87176         * modules/localename (License): Likewise.
87177         * modules/lock (License): Likewise.
87178         * modules/relocatable-lib-lgpl (License): Likewise.
87179         * modules/size_max (License): Likewise.
87180         * modules/vasnprintf (License): Likewise.
87181         * modules/wchar (License): Likewise.
87182         * modules/xsize (License): Likewise.
87184 2007-07-13  Bruno Haible  <bruno@clisp.org>
87186         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
87187         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
87189 2007-07-12  Bruno Haible  <bruno@clisp.org>
87191         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
87192         in the modules files.
87194 2007-07-11  Karl Berry  <karl@gnu.org>
87196         * MODULES.html.sh (func_module): use
87197          sed -e '\|^'"${includefile}"'$|d'
87198          instead of /.../d, to avoid errors on $includefile's containing /.
87200 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
87202         * gnulib-tool (func_import): Avoid duplication of --avoid
87203         statements
87204         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
87205         names to `_' in variable names.
87207 2007-07-10  Eric Blake  <ebb9@byu.net>
87209         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
87210         * NEWS: Document this change.
87212 2007-07-08  Bruno Haible  <bruno@clisp.org>
87214         Update to Unicode 5.0.
87215         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
87216         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
87217         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
87218         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
87219         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
87220         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
87221         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
87222         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
87223         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
87224         U+10A3F, U+1D242..U+1D244.
87225         (nonspacing_table_ind): Update.
87226         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
87227         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
87229 2007-07-08  Bruno Haible  <bruno@clisp.org>
87231         Update to Unicode 5.0.
87232         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
87233         code transform. Extend the name index field of unicode_name_to_code and
87234         unicode_code_to_name from 16 to 24 bits.
87235         * lib/uniname/uniname.c (unicode_character_name,
87236         unicode_name_character): Add the range 0x12xxx to the code transform.
87237         * lib/uniname/uninames.h: Regenerated.
87238         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
87240 2007-07-07  Bruno Haible  <bruno@clisp.org>
87242         * modules/wcwidth-tests: New file.
87243         * tests/test-wcwidth.c: New file.
87245         Work around MacOS X wcwidth() bug.
87246         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
87247         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
87248         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
87249         original wcwidth in non-UTF-8 locales.
87250         * modules/wcwidth (Depends-on): Add localcharset, streq,
87251         uniwidth/width.
87252         * doc/functions/wcwidth.texi: Update.
87254 2007-07-07  Bruno Haible  <bruno@clisp.org>
87256         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
87257         (wcwidth): New declaration.
87258         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
87259         macros.
87260         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
87261         here. Prepare for creating <wchar.h> unconditionally.
87262         * modules/wchar (Depends-on): Add link-warning.
87263         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
87264         REPLACE_WCWIDTH, and GL_LINK_WARNING.
87265         * lib/wcwidth.h: Remove file.
87266         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
87267         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
87268         * modules/wcwidth (Files): Remove lib/wcwidth.h.
87269         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
87270         (Include): Replace wcwidth.h with <wchar.h>.
87271         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
87272         * lib/mbchar.h: Don't include wcwidth.h.
87273         * lib/mbswidth.c: Likewise.
87274         * NEWS: Mention the change.
87276 2007-07-07  Bruno Haible  <bruno@clisp.org>
87278         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
87279         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
87280         definition with an external declaration.
87281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
87282         defined as a function. Remove AC_C_INLINE requirement.
87283         * modules/wcwidth (Files): Add lib/wcwidth.c.
87284         (Makefile.am): Remove redundant statement.
87286 2007-07-07  Bruno Haible  <bruno@clisp.org>
87288         * MODULES.html.sh (Unicode string functions): Add the new modules.
87290         * tests/uniwidth/test-u32-strwidth.c: New file.
87291         * modules/uniwidth/u32-strwidth-tests: New file.
87293         * lib/uniwidth/u32-strwidth.c: New file.
87294         * modules/uniwidth/u32-strwidth: New file.
87296         * tests/uniwidth/test-u16-strwidth.c: New file.
87297         * modules/uniwidth/u16-strwidth-tests: New file.
87299         * lib/uniwidth/u16-strwidth.c: New file.
87300         * modules/uniwidth/u16-strwidth: New file.
87302         * tests/uniwidth/test-u8-strwidth.c: New file.
87303         * modules/uniwidth/u8-strwidth-tests: New file.
87305         * lib/uniwidth/u8-strwidth.c: New file.
87306         * modules/uniwidth/u8-strwidth: New file.
87308         * tests/uniwidth/test-u32-width.c: New file.
87309         * modules/uniwidth/u32-width-tests: New file.
87311         * lib/uniwidth/u32-width.c: New file.
87312         * modules/uniwidth/u32-width: New file.
87314         * tests/uniwidth/test-u16-width.c: New file.
87315         * modules/uniwidth/u16-width-tests: New file.
87317         * lib/uniwidth/u16-width.c: New file.
87318         * modules/uniwidth/u16-width: New file.
87320         * tests/uniwidth/test-u8-width.c: New file.
87321         * modules/uniwidth/u8-width-tests: New file.
87323         * lib/uniwidth/u8-width.c: New file.
87324         * modules/uniwidth/u8-width: New file.
87326         * tests/uniwidth/test-uc_width.c: New file.
87327         * modules/uniwidth/width-tests: New file.
87329         * lib/uniwidth/width.c: New file, from GNU libiconv.
87330         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
87331         * modules/uniwidth/width: New file.
87333         * lib/uniwidth.h: New file, from GNU libiconv.
87334         * modules/uniwidth/base: New file.
87336 2007-07-07  Bruno Haible  <bruno@clisp.org>
87338         * lib/uniname.h: New file, from GNU gettext.
87339         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
87340         * lib/uniname/uninames.h: New file, from GNU gettext.
87341         * lib/uniname/uniname.c: New file, from GNU gettext.
87342         * tests/uniname/test-uninames.sh: New file.
87343         * tests/uniname/test-uninames.c: New file, from GNU gettext.
87344         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
87345         * modules/uniname/base: New file.
87346         * modules/uniname/uniname: New file.
87347         * modules/uniname/uniname-tests: New file.
87348         * MODULES.html.sh (Unicode string functions): Add the new modules.
87350 2007-07-06  Bruno Haible  <bruno@clisp.org>
87352         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
87354 2007-07-06  Bruno Haible  <bruno@clisp.org>
87356         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
87357         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
87358         includes <cygwin/sys_time.h> which includes <sys/select.h> which
87359         include <sys/time.h>.
87360         Reported by Eric Blake.
87362 2007-07-06  Eric Blake  <ebb9@byu.net>
87364         Fix testing canonicalize on cygwin.
87365         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87366         Revert patch from 2007-06-19.
87367         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
87368         canonicalize module is also in use.
87369         * tests/test-canonicalize.c: New file.
87370         * tests/test-canonicalize.sh: Likewise.
87371         * modules/canonicalize-tests: Likewise.
87373 2007-07-06  Jim Meyering  <jim@meyering.net>
87375         * lib/getugroups.c (getugroups): Detect getgrent failure.
87376         Adjust comment to reflect reality: this function may return -1.
87378 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
87380         * build-aux/bootstrap (TP_URL,get_translations): Update to use
87381         the new TP address.
87382         (usage): Fix typo
87383         (gnulib_mk): New variable.
87385 2007-07-05  Jim Meyering  <jim@meyering.net>
87387         Don't let endgrent clobber errno, no matter how improbable.
87388         * lib/getugroups.c (getugroups): Save and restore errno around
87389         endgrent call.
87391         Close the group DB even when failing with 2^31 or more members.
87392         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
87394 2007-07-04  Jim Meyering  <jim@meyering.net>
87396         * lib/getugroups.h: New file.
87397         * lib/getugroups.c: Include "getugroups.h".
87398         Remove uses of "register" keyword.
87399         Move local variable, "cp", down into scope where used.
87400         Give "username" parameter the "const" attribute.
87401         * modules/getugroups (Files): Add lib/getugroups.h
87403 2007-07-04  Karl Berry  <karl@gnu.org>
87405         * MODULES.html.sh (func_all_modules): Complete rename of
87406         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
87408 2007-07-02  Bruno Haible  <bruno@clisp.org>
87410         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
87411         mode, when inttypes.h comes from gnulib.
87412         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
87414 2007-07-02  Simon Josefsson  <simon@josefsson.org>
87416         * NEWS: Mention lgpl module name change.
87418         * modules/lgpl-2.1: Renamed from lgpl.
87420         * NEWS: Mention gpl module name change.
87422         * modules/gpl-3.0: New file, based on gpl-2.0.
87424         * modules/gpl-2.0: Renamed from gpl.
87426         * modules/gpl: Fix filename, doc/gpl.texi is now found at
87427         doc/gpl-2.0.texi.
87429 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
87431         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
87432         #define __STDC_LIMIT_MACROS temporarily while including
87433         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
87434         Problem reported by Joel E. Denny in
87435         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
87437 2007-07-01  Bruno Haible  <bruno@clisp.org>
87439         * lib/unistdio.h: New file.
87440         * lib/unistdio/u-asnprintf.h: New file.
87441         * lib/unistdio/u-asprintf.h: New file.
87442         * lib/unistdio/u-printf-args.c: New file.
87443         * lib/unistdio/u-printf-args.h: New file.
87444         * lib/unistdio/u-printf-parse.h: New file.
87445         * lib/unistdio/u-snprintf.h: New file.
87446         * lib/unistdio/u-sprintf.h: New file.
87447         * lib/unistdio/u-vasprintf.h: New file.
87448         * lib/unistdio/u-vsnprintf.h: New file.
87449         * lib/unistdio/u-vsprintf.h: New file.
87450         * lib/unistdio/ulc-asnprintf.c: New file.
87451         * lib/unistdio/ulc-asprintf.c: New file.
87452         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
87453         * lib/unistdio/ulc-printf-parse.c: New file.
87454         * lib/unistdio/ulc-snprintf.c: New file.
87455         * lib/unistdio/ulc-sprintf.c: New file.
87456         * lib/unistdio/ulc-vasnprintf.c: New file.
87457         * lib/unistdio/ulc-vasprintf.c: New file.
87458         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
87459         * lib/unistdio/ulc-vsnprintf.c: New file.
87460         * lib/unistdio/ulc-vsprintf.c: New file.
87461         * lib/unistdio/u8-asnprintf.c: New file.
87462         * lib/unistdio/u8-asprintf.c: New file.
87463         * lib/unistdio/u8-printf-parse.c: New file.
87464         * lib/unistdio/u8-snprintf.c: New file.
87465         * lib/unistdio/u8-sprintf.c: New file.
87466         * lib/unistdio/u8-vasnprintf.c: New file.
87467         * lib/unistdio/u8-vasprintf.c: New file.
87468         * lib/unistdio/u8-vsnprintf.c: New file.
87469         * lib/unistdio/u8-vsprintf.c: New file.
87470         * lib/unistdio/u8-u8-asnprintf.c: New file.
87471         * lib/unistdio/u8-u8-asprintf.c: New file.
87472         * lib/unistdio/u8-u8-snprintf.c: New file.
87473         * lib/unistdio/u8-u8-sprintf.c: New file.
87474         * lib/unistdio/u8-u8-vasnprintf.c: New file.
87475         * lib/unistdio/u8-u8-vasprintf.c: New file.
87476         * lib/unistdio/u8-u8-vsnprintf.c: New file.
87477         * lib/unistdio/u8-u8-vsprintf.c: New file.
87478         * lib/unistdio/u16-asnprintf.c: New file.
87479         * lib/unistdio/u16-asprintf.c: New file.
87480         * lib/unistdio/u16-printf-parse.c: New file.
87481         * lib/unistdio/u16-snprintf.c: New file.
87482         * lib/unistdio/u16-sprintf.c: New file.
87483         * lib/unistdio/u16-vasnprintf.c: New file.
87484         * lib/unistdio/u16-vasprintf.c: New file.
87485         * lib/unistdio/u16-vsnprintf.c: New file.
87486         * lib/unistdio/u16-vsprintf.c: New file.
87487         * lib/unistdio/u16-u16-asnprintf.c: New file.
87488         * lib/unistdio/u16-u16-asprintf.c: New file.
87489         * lib/unistdio/u16-u16-snprintf.c: New file.
87490         * lib/unistdio/u16-u16-sprintf.c: New file.
87491         * lib/unistdio/u16-u16-vasnprintf.c: New file.
87492         * lib/unistdio/u16-u16-vasprintf.c: New file.
87493         * lib/unistdio/u16-u16-vsnprintf.c: New file.
87494         * lib/unistdio/u16-u16-vsprintf.c: New file.
87495         * lib/unistdio/u32-asnprintf.c: New file.
87496         * lib/unistdio/u32-asprintf.c: New file.
87497         * lib/unistdio/u32-printf-parse.c: New file.
87498         * lib/unistdio/u32-snprintf.c: New file.
87499         * lib/unistdio/u32-sprintf.c: New file.
87500         * lib/unistdio/u32-vasnprintf.c: New file.
87501         * lib/unistdio/u32-vasprintf.c: New file.
87502         * lib/unistdio/u32-vsnprintf.c: New file.
87503         * lib/unistdio/u32-vsprintf.c: New file.
87504         * lib/unistdio/u32-u32-asnprintf.c: New file.
87505         * lib/unistdio/u32-u32-asprintf.c: New file.
87506         * lib/unistdio/u32-u32-snprintf.c: New file.
87507         * lib/unistdio/u32-u32-sprintf.c: New file.
87508         * lib/unistdio/u32-u32-vasnprintf.c: New file.
87509         * lib/unistdio/u32-u32-vasprintf.c: New file.
87510         * lib/unistdio/u32-u32-vsnprintf.c: New file.
87511         * lib/unistdio/u32-u32-vsprintf.c: New file.
87512         * tests/unistdio/test-ulc-asnprintf1.c: New file.
87513         * tests/unistdio/test-ulc-asnprintf1.h: New file.
87514         * tests/unistdio/test-ulc-printf1.h: New file.
87515         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
87516         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
87517         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
87518         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
87519         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
87520         * tests/unistdio/test-ulc-vasprintf1.c: New file.
87521         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
87522         * tests/unistdio/test-ulc-vsprintf1.c: New file.
87523         * tests/unistdio/test-u8-asnprintf1.c: New file.
87524         * tests/unistdio/test-u8-asnprintf1.h: New file.
87525         * tests/unistdio/test-u8-printf1.h: New file.
87526         * tests/unistdio/test-u8-vasnprintf1.c: New file.
87527         * tests/unistdio/test-u8-vasnprintf2.c: New file.
87528         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
87529         * tests/unistdio/test-u8-vasnprintf3.c: New file.
87530         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
87531         * tests/unistdio/test-u8-vasprintf1.c: New file.
87532         * tests/unistdio/test-u8-vsnprintf1.c: New file.
87533         * tests/unistdio/test-u8-vsprintf1.c: New file.
87534         * tests/unistdio/test-u16-asnprintf1.c: New file.
87535         * tests/unistdio/test-u16-asnprintf1.h: New file.
87536         * tests/unistdio/test-u16-printf1.h: New file.
87537         * tests/unistdio/test-u16-vasnprintf1.c: New file.
87538         * tests/unistdio/test-u16-vasnprintf2.c: New file.
87539         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
87540         * tests/unistdio/test-u16-vasnprintf3.c: New file.
87541         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
87542         * tests/unistdio/test-u16-vasprintf1.c: New file.
87543         * tests/unistdio/test-u16-vsnprintf1.c: New file.
87544         * tests/unistdio/test-u16-vsprintf1.c: New file.
87545         * tests/unistdio/test-u32-asnprintf1.c: New file.
87546         * tests/unistdio/test-u32-asnprintf1.h: New file.
87547         * tests/unistdio/test-u32-printf1.h: New file.
87548         * tests/unistdio/test-u32-vasnprintf1.c: New file.
87549         * tests/unistdio/test-u32-vasnprintf2.c: New file.
87550         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
87551         * tests/unistdio/test-u32-vasnprintf3.c: New file.
87552         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
87553         * tests/unistdio/test-u32-vasprintf1.c: New file.
87554         * tests/unistdio/test-u32-vsnprintf1.c: New file.
87555         * tests/unistdio/test-u32-vsprintf1.c: New file.
87556         * modules/unistdio/base: New file.
87557         * modules/unistdio/u-printf-args: New file.
87558         * modules/unistdio/ulc-asnprintf: New file.
87559         * modules/unistdio/ulc-asprintf: New file.
87560         * modules/unistdio/ulc-fprintf: New file.
87561         * modules/unistdio/ulc-printf-parse: New file.
87562         * modules/unistdio/ulc-snprintf: New file.
87563         * modules/unistdio/ulc-sprintf: New file.
87564         * modules/unistdio/ulc-vasnprintf: New file.
87565         * modules/unistdio/ulc-vasprintf: New file.
87566         * modules/unistdio/ulc-vfprintf: New file.
87567         * modules/unistdio/ulc-vsnprintf: New file.
87568         * modules/unistdio/ulc-vsprintf: New file.
87569         * modules/unistdio/u8-asnprintf: New file.
87570         * modules/unistdio/u8-asprintf: New file.
87571         * modules/unistdio/u8-printf-parse: New file.
87572         * modules/unistdio/u8-snprintf: New file.
87573         * modules/unistdio/u8-sprintf: New file.
87574         * modules/unistdio/u8-vasnprintf: New file.
87575         * modules/unistdio/u8-vasprintf: New file.
87576         * modules/unistdio/u8-vsnprintf: New file.
87577         * modules/unistdio/u8-vsprintf: New file.
87578         * modules/unistdio/u8-u8-asnprintf: New file.
87579         * modules/unistdio/u8-u8-asprintf: New file.
87580         * modules/unistdio/u8-u8-snprintf: New file.
87581         * modules/unistdio/u8-u8-sprintf: New file.
87582         * modules/unistdio/u8-u8-vasnprintf: New file.
87583         * modules/unistdio/u8-u8-vasprintf: New file.
87584         * modules/unistdio/u8-u8-vsnprintf: New file.
87585         * modules/unistdio/u8-u8-vsprintf: New file.
87586         * modules/unistdio/u16-asnprintf: New file.
87587         * modules/unistdio/u16-asprintf: New file.
87588         * modules/unistdio/u16-printf-parse: New file.
87589         * modules/unistdio/u16-snprintf: New file.
87590         * modules/unistdio/u16-sprintf: New file.
87591         * modules/unistdio/u16-vasnprintf: New file.
87592         * modules/unistdio/u16-vasprintf: New file.
87593         * modules/unistdio/u16-vsnprintf: New file.
87594         * modules/unistdio/u16-vsprintf: New file.
87595         * modules/unistdio/u16-u16-asnprintf: New file.
87596         * modules/unistdio/u16-u16-asprintf: New file.
87597         * modules/unistdio/u16-u16-snprintf: New file.
87598         * modules/unistdio/u16-u16-sprintf: New file.
87599         * modules/unistdio/u16-u16-vasnprintf: New file.
87600         * modules/unistdio/u16-u16-vasprintf: New file.
87601         * modules/unistdio/u16-u16-vsnprintf: New file.
87602         * modules/unistdio/u16-u16-vsprintf: New file.
87603         * modules/unistdio/u32-asnprintf: New file.
87604         * modules/unistdio/u32-asprintf: New file.
87605         * modules/unistdio/u32-printf-parse: New file.
87606         * modules/unistdio/u32-snprintf: New file.
87607         * modules/unistdio/u32-sprintf: New file.
87608         * modules/unistdio/u32-vasnprintf: New file.
87609         * modules/unistdio/u32-vasprintf: New file.
87610         * modules/unistdio/u32-vsnprintf: New file.
87611         * modules/unistdio/u32-vsprintf: New file.
87612         * modules/unistdio/u32-u32-asnprintf: New file.
87613         * modules/unistdio/u32-u32-asprintf: New file.
87614         * modules/unistdio/u32-u32-snprintf: New file.
87615         * modules/unistdio/u32-u32-sprintf: New file.
87616         * modules/unistdio/u32-u32-vasnprintf: New file.
87617         * modules/unistdio/u32-u32-vasprintf: New file.
87618         * modules/unistdio/u32-u32-vsnprintf: New file.
87619         * modules/unistdio/u32-u32-vsprintf: New file.
87620         * modules/unistdio/ulc-asnprintf-tests: New file.
87621         * modules/unistdio/ulc-vasnprintf-tests: New file.
87622         * modules/unistdio/ulc-vasprintf-tests: New file.
87623         * modules/unistdio/ulc-vsnprintf-tests: New file.
87624         * modules/unistdio/ulc-vsprintf-tests: New file.
87625         * modules/unistdio/u8-asnprintf-tests: New file.
87626         * modules/unistdio/u8-vasnprintf-tests: New file.
87627         * modules/unistdio/u8-vasprintf-tests: New file.
87628         * modules/unistdio/u8-vsnprintf-tests: New file.
87629         * modules/unistdio/u8-vsprintf-tests: New file.
87630         * modules/unistdio/u16-asnprintf-tests: New file.
87631         * modules/unistdio/u16-vasnprintf-tests: New file.
87632         * modules/unistdio/u16-vasprintf-tests: New file.
87633         * modules/unistdio/u16-vsnprintf-tests: New file.
87634         * modules/unistdio/u16-vsprintf-tests: New file.
87635         * modules/unistdio/u32-asnprintf-tests: New file.
87636         * modules/unistdio/u32-vasnprintf-tests: New file.
87637         * modules/unistdio/u32-vasprintf-tests: New file.
87638         * modules/unistdio/u32-vsnprintf-tests: New file.
87639         * modules/unistdio/u32-vsprintf-tests: New file.
87640         * MODULES.html.sh (Unicode string functions): Add the new modules.
87642 2007-07-01  Bruno Haible  <bruno@clisp.org>
87644         * lib/sprintf.c (sprintf): Limit the available length estimation,
87645         to avoid address wraparound.
87646         * lib/vsprintf.c (vsprintf): Likewise.
87647         * modules/sprintf-posix (Dependencies): Add stdint.
87648         * modules/vsprintf-posix (Dependencies): Likewise.
87650 2007-07-01  Bruno Haible  <bruno@clisp.org>
87652         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
87653         Windows PATH as well. Conservative double-quoting. Comments.
87655 2007-07-01  Bruno Haible  <bruno@clisp.org>
87656             Eric Blake  <ebb9@byu.net>
87657             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87659         * gnulib-tool (self_abspathname): Fix algorithm to cope with
87660         empty components in $PATH, denoting '.'.
87662 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87664         * gnulib-tool: Fix indentation.
87665         (func_create_megatestdir): Likewise.
87666         Report by Bruno Haible.
87668 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87670         Sync from Automake.
87671         * build-aux/gnupload: Fix shell portability issues with for loops.
87672         Report by Karl Berry.
87674 2007-06-29  Simon Josefsson  <simon@josefsson.org>
87676         * build-aux/maint.mk (POURL): Use translationproject.org.
87678 2007-06-27  Simon Josefsson  <simon@josefsson.org>
87679             Bruno Haible  <bruno@clisp.org>
87681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
87682         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
87683         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
87684         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
87685         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
87687 2007-06-27  Bruno Haible  <bruno@clisp.org>
87689         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
87690         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
87692 2007-06-26  Karl Berry  <karl@gnu.org>
87694         * MODULES.html.sh: remove xreadlink-with-size.
87696 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87698         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
87699         method that I hope also handles the double-include problem noted
87700         by Bruno Haible in
87701         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
87703 2007-06-23  Bruno Haible  <bruno@clisp.org>
87705         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
87706         Don't let the 'mostlyclean' target fail if the last subdirectory could
87707         not be removed.
87708         Reported by Karl Berry.
87710 2007-06-23  Bruno Haible  <bruno@clisp.org>
87712         * gnulib-tool (echo): Add a speedier workaround for ksh.
87713         * tests/test-echo.sh: Likewise.
87715 2007-06-23  Bruno Haible  <bruno@clisp.org>
87717         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
87718         * tests/test-echo.sh: Likewise.
87720 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87722         * gnulib-tool (IFS): Initialize early, so we don't set it to
87723         empty later.
87724         (self_abspathname): Rewrite algorithm to set it, reindent.
87725         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
87726         (func_create_megatestdir): Merge some sed scripts.
87728 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
87730         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
87731         exposed by Sun Studio 11 cc on Solaris 8.
87733 2007-06-22  Bruno Haible  <bruno@clisp.org>
87735         * gnulib-tool (echo): Ensure the echo primitive does not interpret
87736         backslashes.
87737         * tests/test-echo.sh: New file.
87739 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87741         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
87742         simplify `sed_replace_build_aux' scripts, they are portable but
87743         echoing them with `echo' is not.
87744         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
87746 2007-06-21  Karl Berry  <karl@gnu.org>
87748         * config/srclist.txt: guess we can't handle the licenses via
87749         srclist at the moment.
87751 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
87753         * MODULES.html.sh: Add include_next.
87754         * modules/include_next: New file.
87756 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
87758         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
87759         INCLUDE_NEXT.
87760         (gl_CHECK_NEXT_HEADERS): New macro.
87761         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
87762         the obsolescent gl_ABSOLUTE_HEADER.
87763         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
87764         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
87765         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
87766         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
87767         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
87768         * m4/math_h.m4 (gl_MATH_H): Likewise.
87769         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
87770         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
87771         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
87772         * m4/stdint.m4 (gl_STDINT_H): Likewise.
87773         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
87774         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
87775         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
87776         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
87777         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
87778         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
87779         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
87780         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
87781         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
87782         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
87783         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
87784         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
87785         * m4/inttypes.m4 (gl_INTTYPES_H): Define
87786         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
87787         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
87788         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
87789         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
87790         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
87791         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
87792         * lib/float_.h: Likewise.
87793         * lib/inttypes_.h: Likewise.
87794         * lib/math_.h: Likewise.
87795         * lib/search_.h: Likewise.
87796         * lib/signal_.h: Likewise.
87797         * lib/stdint_.h: Likewise.
87798         * lib/stdio_.h: Likewise.
87799         * lib/stdlib_.h: Likewise.
87800         * lib/string_.h: Likewise.
87801         * lib/sys_stat_.h: Likewise.
87802         * lib/sys_time_.h: Likewise.
87803         * lib/time_.h: Likewise.
87804         * lib/unistd_.h: Likewise.
87805         * lib/wchar_.h: Likewise.
87806         * lib/wctype_.h: Likewise.
87807         * lib/dirent_.h: Likewise.
87808         * lib/iconv_.h: Likewise.
87809         * lib/locale_.h: Likewise.
87810         * lib/netinet_in_.h: Likewise.
87811         * lib/sys_select_.h: Likewise.
87812         * lib/sys_socket_.h: Likewise.
87813         * lib/sysexits_.h: Likewise.
87814         * modules/fcntl (Depends-on): Depend on include_next, not
87815         absolute_header.
87816         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
87817         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
87818         * modules/fchdir: Likewise.
87819         * modules/float: Likewise.
87820         * modules/iconv_open: Likewise.
87821         * modules/inttypes: Likewise.
87822         * modules/locale: Likewise.
87823         * modules/math: Likewise.
87824         * modules/netinet_in: Likewise.
87825         * modules/search: Likewise.
87826         * modules/signal: Likewise.
87827         * modules/stdint: Likewise.
87828         * modules/stdio: Likewise.
87829         * modules/stdlib: Likewise.
87830         * modules/string: Likewise.
87831         * modules/sys_select: Likewise.
87832         * modules/sys_socket: Likewise.
87833         * modules/sys_stat: Likewise.
87834         * modules/sys_time: Likewise.
87835         * modules/sysexits: Likewise.
87836         * modules/time: Likewise.
87837         * modules/unistd: Likewise.
87838         * modules/wchar: Likewise.
87839         * modules/wctype: Likewise.
87840         * modules/sys_stat: Change maintainer to "all".
87841         * modules/unistd: Likewise.
87843 2007-06-20  Karl Berry  <karl@gnu.org>
87845         * config/srclist.txt: track www changes in license files.
87847 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
87849         * build-aux/bootstrap: Remove stray dot.
87850         Make sure build_aux settings are honored when linking
87851         gnulib_extra_files.
87853 2007-06-19  Eric Blake  <ebb9@byu.net>
87855         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
87856         Allow compilation on cygwin.
87858 2007-06-19  Jim Meyering  <jim@meyering.net>
87860         xreadlink-with-size: Remove module.  No longer used.
87861         Ex-callers now use xreadlink or mreadlink-with-size.
87862         * modules/xreadlink-with-size: Remove module.
87863         * lib/xreadlink-with-size.c: Remove file.
87864         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
87865         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
87866         just before the function definition *is* accurate.
87868         Eliminate one way canonicalize_filename_mode could exit.
87869         * lib/canonicalize.c (canonicalize_filename_mode):
87870         Use mreadlink_with_size, not xreadlink_with_size.
87872 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
87874         Detect porting problems to FreeBSD/arm, which has time_t wider than
87875         long int.  Original problem reported for GNU diff by Xin Li in
87876         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
87877         * modules/getdate (Depends-on): Add intprops, verify.
87878         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
87879         is an integer type no wider than long int.
87881 2007-06-18  Jim Meyering  <jim@meyering.net>
87883         New module: mreadlink-with-size.
87884         * MODULES.html.sh: Add mreadlink-with-size.
87885         * modules/mreadlink-with-size: New module
87886         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
87887         not xreadlink-with-size.
87888         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
87890 2007-06-16  Bruno Haible  <bruno@clisp.org>
87892         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
87893         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
87894         Reported by Gary V. Vaughan <gary@gnu.org>.
87896 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
87898         Revamp lchown so that it lives in unistd.h where it belongs.
87899         * lib/lchown.h: Remove.
87900         * lib/dirchownmod.c: Don't include lib/lchown.h.
87901         * lib/fchownat.c: Likewise.
87902         * lib/openat.c: Likewise.
87903         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
87904         does not follow symlinks.
87905         (EOPNOTSUPP): Define if not defined.
87906         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
87907         is defined to 0.
87908         (lchown): New decl.
87909         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
87910         Do not check for lchown decl.
87911         Set REPLACE_LCHOWN.
87912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
87913         REPLACE_LCHOWN.
87914         * modules/chown: Make it clear it follows symlinks.
87915         * modules/lchown: Make it clear it doesn't follow symlinks.
87916         (Files): Remove lib/lchown.h
87917         (Depends-on): Add unistd.
87918         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
87919         (Include): Include <unistd.h>, not "lchown.h".
87920         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
87921         REPLACE_LCHOWN.
87923 2007-06-15  Jim Meyering  <jim@meyering.net>
87925         Change license (GPL to LGPL) of fsusage and dependents.
87926         * modules/fsusage (License): Change to LGPL.
87927         * modules/full-read (License): Likewise.
87928         * modules/full-write (License): Likewise.
87929         * modules/safe-read (License): Likewise.
87930         * modules/safe-write (License): Likewise.
87932 2007-06-14  Ben Pfaff  <blp@gnu.org>
87934         Missing part of allocsa -> malloca transition.
87935         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
87936         gl_MALLOCA.
87938 2007-06-12  Bruno Haible  <bruno@clisp.org>
87940         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
87941         to ia64, x86_64, i386.
87942         Reported by Eric Blake.
87944 2007-06-12  Bruno Haible  <bruno@clisp.org>
87946         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
87947         cross-compiling to x86_64.
87949 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
87951         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
87952         glitch reported by Ralf Wildenhues in
87953         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
87955         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
87956         Vin Shelton.
87958 2007-06-11  Bruno Haible  <bruno@clisp.org>
87960         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
87961         replacement string.
87962         Reported by Eric Blake.
87964 2007-06-10  Bruno Haible  <bruno@clisp.org>
87966         Prepare vasnprintf code for use with Unicode strings.
87967         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
87968         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
87969         TYPE_U32_STRING.
87970         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
87971         a_u32_string variants.
87972         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87973         * lib/printf-args.c: Don't include config.h and the specification
87974         header if PRINTF_FETCHARGS is already defined.
87975         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
87976         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
87977         TYPE_U16_STRING, TYPE_U32_STRING.
87978         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
87979         u16_directive, u16_directives, u32_directive, u32_directives): New
87980         types.
87981         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
87982         New declarations.
87983         * lib/printf-parse.c: Don't include config.h and the specification
87984         header if PRINTF_PARSE is already defined. Eliminate the set of
87985         parameters for WIDE_CHAR_VERSION; the user of this file must provide
87986         them now. Include c-ctype.h.
87987         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
87988         directive and CHAR_T_ONLY_ASCII.
87989         * lib/vasnprintf.c: Don't include config.h and the specification header
87990         if VASNPRINTF is already defined.
87991         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
87992         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
87993         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
87994         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
87995         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
87996         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
87997         code accordingly.
87998         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
87999         pad_ourselves also in this case, with the 'c' and 's' directives, and
88000         with a different notion of "width".
88001         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
88003 2007-06-10  Bruno Haible  <bruno@clisp.org>
88005         * modules/unistr/u32-mbsnlen: New file.
88006         * lib/unistr/u32-mbsnlen.c: New file.
88008         * modules/unistr/u16-mbsnlen: New file.
88009         * lib/unistr/u16-mbsnlen.c: New file.
88011         * modules/unistr/u8-mbsnlen: New file.
88012         * lib/unistr/u8-mbsnlen.c: New file.
88014         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
88015         declarations.
88017 2007-06-10  Bruno Haible  <bruno@clisp.org>
88019         * lib/string_.h (mbsnlen): New declaration.
88020         * lib/mbsnlen.c: New file.
88021         * m4/mbsnlen.m4: New file.
88022         * modules/mbsnlen: New file.
88023         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
88024         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
88025         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
88027 2007-06-10  Bruno Haible  <bruno@clisp.org>
88029         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
88031 2007-06-10  Bruno Haible  <bruno@clisp.org>
88033         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
88034         * lib/mbuiter.h: Likewise.
88036 2007-06-10  Bruno Haible  <bruno@clisp.org>
88038         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
88039         declaration.
88041 2007-06-10  Karl Berry  <karl@gnu.org>
88043         * config/srclist.txt: remove gettext entries, Bruno prefers
88044         to update individually.
88046 2007-06-10  Bruno Haible  <bruno@clisp.org>
88048         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
88049         'maxlen'. Ensure only length + width bytes are allocated, not
88050         length + 1 + width.
88052 2007-06-09  Bruno Haible  <bruno@clisp.org>
88054         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
88055         (CHAR_T): Remove macro.
88056         (VASNPRINTF): Update.
88058 2007-06-09  Bruno Haible  <bruno@clisp.org>
88060         * MODULES.html.sh (Unicode string functions): Add the new modules.
88062         * modules/uniconv/u32-conv-to-enc: New file.
88063         * lib/uniconv/u32-conv-to-enc.c: New file.
88064         * modules/uniconv/u32-conv-to-enc-tests: New file.
88065         * tests/uniconv/test-u32-conv-to-enc.c: New file.
88067         * modules/uniconv/u16-conv-to-enc: New file.
88068         * lib/uniconv/u16-conv-to-enc.c: New file.
88069         * lib/uniconv/u-conv-to-enc.h: New file.
88070         * modules/uniconv/u16-conv-to-enc-tests: New file.
88071         * tests/uniconv/test-u16-conv-to-enc.c: New file.
88073         * modules/uniconv/u8-conv-to-enc: New file.
88074         * lib/uniconv/u8-conv-to-enc.c: New file.
88075         * modules/uniconv/u8-conv-to-enc-tests: New file.
88076         * tests/uniconv/test-u8-conv-to-enc.c: New file.
88078         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
88079         u32_conv_to_encoding): New declarations.
88081 2007-06-09  Bruno Haible  <bruno@clisp.org>
88083         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
88085 2007-06-09  Bruno Haible  <bruno@clisp.org>
88087         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
88088         * modules/malloca: Renamed from modules/allocsa, updated.
88089         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
88090         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
88091         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
88092         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
88093         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
88094         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
88095         * modules/xmalloca: Renamed from modules/xallocsa, updated.
88096         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
88097         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
88098         * modules/c-strcasestr (Depends-on): Update.
88099         * lib/c-strcasestr.c: Update.
88100         * modules/c-strstr (Depends-on): Update.
88101         * lib/c-strstr.c: Update.
88102         * modules/canonicalize-lgpl (Depends-on): Update.
88103         * lib/canonicalize-lgpl.c: Update.
88104         * modules/clean-temp (Depends-on): Update.
88105         * lib/clean-temp.c: Update.
88106         * modules/csharpcomp (Depends-on): Update.
88107         * lib/csharpcomp.c: Update.
88108         * modules/csharpexec (Depends-on): Update.
88109         * lib/csharpexec.c: Update.
88110         * modules/javacomp (Depends-on): Update.
88111         * lib/javacomp.c: Update.
88112         * modules/javaexec (Depends-on): Update.
88113         * lib/javaexec.c: Update.
88114         * modules/mbscasestr (Depends-on): Update.
88115         * lib/mbscasestr.c: Update.
88116         * modules/mbsstr (Depends-on): Update.
88117         * lib/mbsstr.c: Update.
88118         * modules/setenv (Depends-on): Update.
88119         * lib/setenv.c: Update.
88120         * modules/strcasestr (Depends-on): Update.
88121         * lib/strcasestr.c: Update.
88122         * modules/striconveha (Depends-on): Update.
88123         * lib/striconveha.c: Update.
88124         * modules/relocatable-prog-wrapper (Files): Update.
88125         * lib/relocwrapper.c: Update.
88126         * build-aux/install-reloc: Update.
88127         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
88129 2007-06-08  Bruno Haible  <bruno@clisp.org>
88131         Port to uClibc.
88132         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
88133         * lib/fpurge.c (fpurge): Likewise.
88134         * lib/freading.c (freading): Likewise.
88135         * lib/fseeko.c (rpl_fseeko): Likewise.
88136         * lib/fseterr.c (fseterr): Likewise.
88137         * lib/fwriting.c (fwriting): Likewise.
88138         * tests/test-fflush.c (main): Avoid a failure on uClibc.
88140 2007-06-08  Bruno Haible  <bruno@clisp.org>
88142         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
88143         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
88144         * modules/gettext (Files): Add m4/intlmacosx.m4.
88146 2007-06-07  Bruno Haible  <bruno@clisp.org>
88148         * modules/localename-tests: New file.
88149         * tests/test-localename.c: New file.
88151         New module 'localename'.
88152         * lib/localename.h: New file.
88153         * lib/localename.c: New file, from GNU gettext.
88154         * m4/localename.m4: New file.
88155         * modules/localename: New file.
88157 2007-06-07  Bruno Haible  <bruno@clisp.org>
88159         Work around the lack of <wchar.h> on some builds of uClibc.
88160         * doc/headers/wchar.texi: Update.
88161         * lib/wchar_.h: Include <wchar.h> only if it exists.
88162         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
88163         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
88164         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
88165         doesn't exist.
88166         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
88167         * modules/mbfile (Depends-on): Add wchar.
88168         * modules/mbiter (Depends-on): Likewise.
88169         * modules/mbuiter (Depends-on): Likewise.
88170         Reported by Simon Josefsson.
88172 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88174         Work around problem reported by Steven M. Schweda in
88175         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
88176         Tru64 5.1B with the Compaq compiler environment installed declares
88177         an 'isblank' function but does not define it in the C library.
88178         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
88179         * lib/regex_internal.h (isblank): Likewise.
88180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
88181         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
88183 2007-06-05  Bruno Haible  <bruno@clisp.org>
88185         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
88186         ia64.
88187         * modules/printf-safe: New file.
88188         * modules/fprintf-posix (Depends-on): Add printf-safe.
88189         * modules/printf-posix (Depends-on): Likewise.
88190         * modules/snprintf-posix (Depends-on): Likewise.
88191         * modules/sprintf-posix (Depends-on): Likewise.
88192         * modules/vasnprintf-posix (Depends-on): Likewise.
88193         * modules/vasprintf-posix (Depends-on): Likewise.
88194         * modules/vfprintf-posix (Depends-on): Likewise.
88195         * modules/vprintf-posix (Depends-on): Likewise.
88196         * modules/vsnprintf-posix (Depends-on): Likewise.
88197         * modules/vsprintf-posix (Depends-on): Likewise.
88198         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
88199         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
88200         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
88201         "no" on i386, x86_64, ia64.
88202         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
88203         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88204         on i386, x86_64, ia64.
88205         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
88206         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88207         on i386, x86_64, ia64.
88208         * tests/test-vasnprintf-posix.c: Include float.h.
88209         (LDBL80_WORDS): New macro.
88210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88211         on i386, x86_64, ia64.
88212         * tests/test-vasprintf-posix.c: Include float.h.
88213         (LDBL80_WORDS): New macro.
88214         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
88215         on i386, x86_64, ia64.
88216         * tests/test-snprintf-posix.c: Include float.h.
88217         * tests/test-sprintf-posix.c: Likewise.
88218         * tests/test-vsnprintf-posix.c: Likewise.
88219         * tests/test-vsprintf-posix.c: Likewise.
88221 2007-06-05  Bruno Haible  <bruno@clisp.org>
88223         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
88224         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
88225         non-IEEE numbers on i386, x86_64, ia64.
88226         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
88227         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
88228         * tests/test-isnanl.h: Include float.h.
88229         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
88231 2007-06-05  Bruno Haible  <bruno@clisp.org>
88233         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
88234         also the %a / %A. Handle the %a / %A code before this extra handling.
88236 2007-06-05  Bruno Haible  <bruno@clisp.org>
88238         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
88239         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
88241 2007-06-05  Bruno Haible  <bruno@clisp.org>
88243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
88244         typo in variable name.
88246 2007-06-05  Eric Blake  <ebb9@byu.net>
88248         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
88249         Reported by Simon Josefsson.
88251 2007-06-04  Bruno Haible  <bruno@clisp.org>
88253         Avoid test failures on some PowerPC platforms.
88254         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
88255         Define differently for PowerPC.
88256         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
88257         Reported by Gary V. Vaughan <gary@gnu.org>.
88259 2007-06-02  Bruno Haible  <bruno@clisp.org>
88261         Fix test-stdint failure on FreeBSD/ia64.
88262         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
88263         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
88264         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
88265         * doc/headers/stdint.texi: Update.
88267 2007-06-01  Bruno Haible  <bruno@clisp.org>
88269         * tests/test-binary-io.c (main): Pass a third argument to open().
88270         Reported by Gary V. Vaughan <gary@gnu.org>.
88272 2007-06-01  Bruno Haible  <bruno@clisp.org>
88274         * doc/functions/frexpl.texi: Update for mingw.
88276 2007-06-01  Bruno Haible  <bruno@clisp.org>
88278         * tests/test-lseek.c (main): Disable test of errno for invalid third
88279         argument.
88280         * doc/functions/lseek.texi: Update.
88281         Reported by Gary V. Vaughan <gary@gnu.org>.
88283 2007-05-28  Bruno Haible  <bruno@clisp.org>
88285         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
88287 2007-05-31  Eric Blake  <ebb9@byu.net>
88289         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
88290         cross compiling.
88292 2007-05-30  Eric Blake  <ebb9@byu.net>
88293         and Bruno Haible  <bruno@clisp.org>
88295         Work around mingw test failures exposed by m4-1.4.9b.
88296         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
88297         * tests/test-unistd.c: Disable uid_t and git_t tests for the
88298         moment.
88300 2007-05-30  Bruno Haible  <bruno@clisp.org>
88302         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
88303         assuming that they are closed. Needed on HP-UX 11.
88305 2007-05-29  Bruno Haible  <bruno@clisp.org>
88307         Fix a problem with #include_next.
88308         * lib/dirent_.h: Split the double-inclusion guard.
88309         * lib/fcntl_.h: Likewise.
88310         * lib/float_.h: Likewise.
88311         * lib/iconv_.h: Likewise.
88312         * lib/inttypes_.h: Likewise.
88313         * lib/locale_.h: Likewise.
88314         * lib/math_.h: Likewise.
88315         * lib/netinet_in_.h: Likewise.
88316         * lib/search_.h: Likewise.
88317         * lib/signal_.h: Likewise.
88318         * lib/stdint_.h: Likewise.
88319         * lib/stdio_.h: Likewise.
88320         * lib/stdlib_.h: Likewise.
88321         * lib/string_.h: Likewise.
88322         * lib/sys_select_.h: Likewise.
88323         * lib/sys_socket_.h: Likewise.
88324         * lib/sys_stat_.h: Likewise.
88325         * lib/sys_time_.h: Likewise.
88326         * lib/sysexits_.h: Likewise.
88327         * lib/time_.h: Likewise.
88328         * lib/unistd_.h: Likewise.
88329         * lib/wchar_.h: Likewise.
88330         * lib/wctype_.h: Likewise.
88332 2007-05-29  Bruno Haible  <bruno@clisp.org>
88334         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
88335         for the moment.
88337 2007-05-29  Bruno Haible  <bruno@clisp.org>
88339         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
88340         invocation.
88341         Reported by Eric Blake.
88343 2007-05-29  Bruno Haible  <bruno@clisp.org>
88345         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
88346         compiling case.
88348 2007-05-29  Eric Blake  <ebb9@byu.net>
88349             Bruno Haible  <bruno@clisp.org>
88351         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
88352         cross compiles.
88354 2007-05-28  Eric Blake  <ebb9@byu.net>
88356         * modules/closein-tests (test_closein_LDADD): Support test on
88357         cygwin with libtool.
88359 2007-05-28  Bruno Haible  <bruno@clisp.org>
88361         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
88362         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
88363         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
88364         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
88365         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
88366         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
88367         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
88368         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
88369         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
88371 2007-05-28  Eric Blake  <ebb9@byu.net>
88373         Unconditionally include <config.h> in unit tests.
88374         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
88375         * tests/test-allocsa.c, tests/test-arcfour.c,
88376         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
88377         tests/test-array_list.c, tests/test-array_oset.c,
88378         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
88379         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
88380         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
88381         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
88382         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
88383         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
88384         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
88385         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
88386         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
88387         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
88388         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
88389         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
88390         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
88391         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
88392         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
88393         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
88394         test-md5.c, test-memmem.c, test-printf-posix.c,
88395         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
88396         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
88397         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
88398         test-strcasestr.c, test-striconv.c, test-striconveh.c,
88399         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
88400         test-vasnprintf-posix2.c, test-vasnprintf.c,
88401         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
88402         test-vfprintf-posix.c, test-vprintf-posix.c,
88403         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
88404         test-xvasprintf.c: Likewise.
88406 2007-05-28  Bruno Haible  <bruno@clisp.org>
88408         * gnulib-tool (func_import): Remember the --with-tests command-line
88409         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
88410         Reported by Eric Blake.
88412 2007-05-28  Bruno Haible  <bruno@clisp.org>
88414         * modules/ftell-tests: New file.
88415         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
88416         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
88418         * lib/ftell.c: New file.
88419         * modules/ftell: New file.
88420         * m4/ftell.m4: New file.
88421         * doc/functions/ftell.texi: Update.
88422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
88423         REPLACE_FTELL.
88424         * lib/stdio_.h (rpl_ftell): New declaration.
88425         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
88426         REPLACE_FTELL.
88428 2007-05-28  Eric Blake  <ebb9@byu.net>
88430         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
88432 2007-05-28  Bruno Haible  <bruno@clisp.org>
88434         * modules/fseek-tests: New file.
88435         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
88436         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
88438         * lib/fseek.c: New file.
88439         * modules/fseek: New file.
88440         * m4/fseek.m4: New file.
88441         * doc/functions/fseek.texi: Update.
88442         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
88443         REPLACE_FSEEK.
88444         * lib/stdio_.h (rpl_fseek): New declaration.
88445         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
88446         REPLACE_FSEEK.
88448 2007-05-28  Bruno Haible  <bruno@clisp.org>
88450         * lib/stdio_.h (fflush): More comments.
88452 2007-05-28  Bruno Haible  <bruno@clisp.org>
88454         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
88455         runtime test.
88457 2007-05-28  Eric Blake  <ebb9@byu.net>
88459         Improve lseek module.
88460         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
88461         * lib/unistd_.h (lseek): Scale back link warning message.
88462         * tests/test-lseek.c: Beef up test.
88463         * tests/test-lseek.sh: Exercise more facets of lseek.
88464         Reported by Bruno Haible.
88466 2007-05-28  Bruno Haible  <bruno@clisp.org>
88468         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
88469         to define.
88471 2007-05-27  Bruno Haible  <bruno@clisp.org>
88473         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
88475 2007-05-27  Bruno Haible  <bruno@clisp.org>
88477         * modules/openmp: New file.
88478         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
88479         Noah Misch.
88481 2007-05-26  Bruno Haible  <bruno@clisp.org>
88483         * modules/chdir-long (Depends-on): Add fchdir.
88484         * modules/chdir-safer (Depends-on): Likewise.
88485         * modules/fts (Depends-on): Likewise.
88486         * modules/fts-lgpl (Depends-on): Likewise.
88487         * modules/openat (Depends-on): Likewise.
88488         * modules/savewd (Depends-on): Likewise.
88490 2007-05-24  Eric Blake  <ebb9@byu.net>
88492         Fix lseek on mingw.
88493         * modules/lseek: New module.
88494         * m4/lseek.m4: New file.
88495         * lib/lseek.c: New file.
88496         * modules/lseek-tests: New file.
88497         * tests/test-lseek.c: New file.
88498         * tests/test-lseek.sh: New file.
88499         * MODULES.html.sh: Document lseek module.
88500         * modules/fflush (Depends-on): Add lseek, fseeko.
88501         * modules/fseeko (Depends-on): Likewise.
88502         * modules/ftello (Depends-on): Likewise.
88503         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
88504         broken.
88505         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
88506         broken.
88507         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
88508         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
88509         * lib/ftello.c (rpl_ftello): Likewise.
88510         * tests/test-fseeko.c (main): Test this.
88511         * tests/test-fseeko.sh: Likewise.
88512         * tests/test-ftello.c (main): Likewise.
88513         * tests/test-ftello.sh: Likewise.
88514         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
88515         implies replacing fseek.
88516         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
88517         HAVE_FTELLO.
88518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
88519         * modules/unistd (Makefile.am): Likewise.
88520         * lib/unistd_.h (lseek): Declare a replacement.
88521         * doc/functions/lseek.texi (lseek): Document this fix.
88522         * doc/functions/fseek.texi (fseek): Likewise.
88523         * doc/functions/ftell.texi (ftell): Likewise.
88525 2007-05-24  Bruno Haible  <bruno@clisp.org>
88527         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
88528         in the printed representation of a NaN.
88529         * tests/test-vasprintf-posix.c (test_function): Likewise.
88530         * tests/test-snprintf-posix.h (test_function): Likewise.
88531         * tests/test-sprintf-posix.h (test_function): Likewise.
88532         Reported by Eric Blake.
88534 2007-05-23  Eric Blake  <ebb9@byu.net>
88536         Fix fseeko/ftello on cygwin 1.5.24.
88537         * doc/functions/fseeko.texi (fseeko): Document the fix.
88538         * doc/functions/ftello.texi (ftello): Document the fix.
88539         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
88540         * doc/functions/stdout.text (stdout): New file.
88541         * doc/functions/stderr.text (stderr): New file.
88542         * doc/gnulib.texi (Function Substitutes): Use new files.
88543         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
88544         prior to 1.7.0.
88545         * tests/test-ftello.c (main): Likewise for ftello.
88546         * tests/test-fseeko.sh: New file.
88547         * tests/test-ftello.sh: New file.
88548         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
88549         with seekable stdin.
88550         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
88551         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
88552         (gl_REPLACE_FSEEKO): New macro.
88553         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
88554         * modules/fseeko (Files): Distribute fseeko.c.
88555         * modules/ftello (Files): Distribute ftello.c.
88556         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
88557         mode.
88558         * lib/ftello.c (rpl_ftello): New file.
88559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
88560         fseeko, ftello.
88561         (gl_STDIN_LARGE_OFFSET): New macro.
88562         * modules/stdio (Makefile.am): Perform the replacement.
88563         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
88565 2007-05-23  Bruno Haible  <bruno@clisp.org>
88567         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
88568         GNULIB_POSIXCHECK is defined.
88570 2007-05-21  Bruno Haible  <bruno@clisp.org>
88572         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
88573         Check also the output for NaN arguments. When cross-compiling, guess
88574         no on IRIX.
88575         * lib/vasnprintf.c: Update comments.
88576         * tests/test-vasnprintf-posix.c (strisnan): New function.
88577         (test_function): Use it.
88578         * tests/test-vasprintf-posix.c (strisnan): New function.
88579         (test_function): Use it.
88580         * tests/test-snprintf-posix.h (strisnan): New function.
88581         (test_function): Use it.
88582         * tests/test-sprintf-posix.h (strisnan): New function.
88583         (test_function): Use it.
88584         Reported by Eric Blake.
88586 2007-05-20  Bruno Haible  <bruno@clisp.org>
88588         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
88589         numbers that fails on BeOS.
88590         * doc/functions/frexpl.texi: Update.
88592 2007-05-20  Jim Meyering  <jim@meyering.net>
88594         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
88595         forced upon us by glibc-2.6.
88597 2007-05-20  Bruno Haible  <bruno@clisp.org>
88599         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
88600         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
88601         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
88602         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
88603         NEED_PRINTF_INFINITE.
88604         (is_infinitel): New function.
88605         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
88606         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
88607         gl_PREREQ_VASNPRINTF_INFINITE.
88608         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
88609         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88610         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
88611         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
88612         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
88613         gl_PREREQ_VASNPRINTF_INFINITE.
88614         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88615         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88616         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88617         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88618         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88619         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88620         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88621         * doc/functions/fprintf.texi: Update.
88622         * doc/functions/printf.texi: Update.
88623         * doc/functions/snprintf.texi: Update.
88624         * doc/functions/sprintf.texi: Update.
88625         * doc/functions/vfprintf.texi: Update.
88626         * doc/functions/vprintf.texi: Update.
88627         * doc/functions/vsnprintf.texi: Update.
88628         * doc/functions/vsprintf.texi: Update.
88630 2007-05-20  Bruno Haible  <bruno@clisp.org>
88632         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
88633         was not found in libc.
88634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
88636 2007-05-20  Bruno Haible  <bruno@clisp.org>
88638         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88639         printed as "-nan" instead of "nan".
88640         * tests/test-vasprintf-posix.c (test_function): Likewise.
88641         * tests/test-snprintf-posix.h (test_function): Likewise.
88642         * tests/test-sprintf-posix.h (test_function): Likewise.
88643         Needed for HP-UX 11.
88645 2007-05-20  Jim Meyering  <jim@meyering.net>
88647         Fix buggy test for the fchownat-deref bug.
88648         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
88649         symlink required for the run-test.  Without it, this test would
88650         always declare that fchownat doesn't work, and client code would
88651         unnecessarily use the replacement function with fixed libc.
88652         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
88653         Reported by Greg Schafer.
88655 2007-05-19  Bruno Haible  <bruno@clisp.org>
88657         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
88658         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
88659         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
88660         Needed for IRIX 6.5 and Solaris 2.5.1.
88662 2007-05-19  Bruno Haible  <bruno@clisp.org>
88664         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
88665         (test_function): Skip tests involving -0.0 on platforms where
88666         -0.0 = 0.0.
88667         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
88668         (test_function): Skip tests involving -0.0 on platforms where
88669         -0.0 = 0.0.
88670         * tests/test-snprintf-posix.h (have_minus_zero): New function.
88671         (test_function): Skip tests involving -0.0 on platforms where
88672         -0.0 = 0.0.
88673         * tests/test-sprintf-posix.h (have_minus_zero): New function.
88674         (test_function): Skip tests involving -0.0 on platforms where
88675         -0.0 = 0.0.
88676         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
88677         tests.
88678         * tests/test-printf-posix.h (test_function): Likewise.
88679         * tests/test-printf-posix.output: Remove all -0.0 related results.
88680         Needed for IRIX 6.5.
88682 2007-05-19  Bruno Haible  <bruno@clisp.org>
88684         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
88685         printed as "nan0x7fffffff" instead of "nan".
88686         * tests/test-vasprintf-posix.c (test_function): Likewise.
88687         * tests/test-snprintf-posix.h (test_function): Likewise.
88688         * tests/test-sprintf-posix.h (test_function): Likewise.
88689         * tests/test-fprintf-posix.h (NaN): Remove macro.
88690         (test_function): Remove all NaN related tests.
88691         * tests/test-printf-posix.h (NaN): Remove macro.
88692         (test_function): Remove all NaN related tests.
88693         * tests/test-printf-posix.output: Remove all NaN related results.
88694         Needed for IRIX 6.5.
88696 2007-05-19  Bruno Haible  <bruno@clisp.org>
88698         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
88699         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
88701 2007-05-19  Bruno Haible  <bruno@clisp.org>
88703         * lib/float_.h: New file.
88704         * m4/float_h.m4: New file.
88705         * modules/float: New file.
88706         * modules/isnanl (Dependencies): Add float.
88707         * modules/isnanl-nolibm (Dependencies): Likewise.
88708         * modules/mathl (Dependencies): Likewise.
88709         * modules/printf-frexpl (Dependencies): Likewise.
88710         * modules/signbit (Dependencies): Likewise.
88711         * modules/vasnprintf (Dependencies): Likewise.
88712         * doc/headers/float.texi: Update.
88714 2007-05-19  Jim Meyering  <jim@meyering.net>
88716         * lib/utimens.c (gl_futimens): Rename from futimens,
88717         now that glibc-2.6 declares futimens.
88718         * lib/utimens.h: Likewise.
88720 2007-05-19  Bruno Haible  <bruno@clisp.org>
88722         Avoid test failures on mingw.
88723         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
88724         * tests/test-printf-posix.sh: Likewise.
88725         * tests/test-vfprintf-posix.sh: Likewise.
88726         * tests/test-vprintf-posix.sh: Likewise.
88728 2007-05-19  Bruno Haible  <bruno@clisp.org>
88730         Fix *printf result for NaN, Inf, -0.0 on mingw.
88731         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
88732         * lib/vasnprintf.c: Include math.h and isnan.h.
88733         (is_infinite_or_zero): New function.
88734         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
88735         values in the %f, %F, %e, %E, %g, %G directives.
88736         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
88737         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88738         gl_PRINTF_INFINITE and test its result. Invoke
88739         gl_PREREQ_VASNPRINTF_INFINITE.
88740         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88741         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88742         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88743         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88744         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88747         * doc/functions/fprintf.texi: Update.
88748         * doc/functions/printf.texi: Update.
88749         * doc/functions/snprintf.texi: Update.
88750         * doc/functions/sprintf.texi: Update.
88751         * doc/functions/vfprintf.texi: Update.
88752         * doc/functions/vprintf.texi: Update.
88753         * doc/functions/vsnprintf.texi: Update.
88754         * doc/functions/vsprintf.texi: Update.
88756 2007-05-19  Bruno Haible  <bruno@clisp.org>
88758         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
88759         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
88760         Instead of multiplying with 10^k, set extra_zeroes to k.
88761         (scale10_round_long_double): Remove function.
88763 2007-05-18  Bruno Haible  <bruno@clisp.org>
88765         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
88766         introduced on 2007-05-06.
88768 2007-05-18  Bruno Haible  <bruno@clisp.org>
88770         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
88771         %g directives.
88772         * tests/test-vasprintf-posix.c (test_function): Likewise.
88773         * tests/test-snprintf-posix.h (test_function): Likewise.
88774         * tests/test-sprintf-posix.h (test_function): Likewise.
88776 2007-05-18  Bruno Haible  <bruno@clisp.org>
88778         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
88779         (strmatch): New function.
88780         (test_function): Test the %f directive on numbers of various exponents.
88781         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
88782         (strmatch): New function.
88783         (test_function): Test the %f directive on numbers of various exponents.
88784         * tests/test-snprintf-posix.h (strmatch): New function.
88785         (test_function): Test the %f directive on numbers of various exponents.
88786         * tests/test-sprintf-posix.h (strmatch): New function.
88787         (test_function): Test the %f directive on numbers of various exponents.
88788         * tests/test-snprintf-posix.c (SIZEOF): New macro.
88789         * tests/test-sprintf-posix.c (SIZEOF): New macro.
88790         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
88791         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
88793 2007-05-18  Bruno Haible  <bruno@clisp.org>
88795         Add support for 'long double' number output.
88796         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
88797         * lib/vasnprintf.c: Include math.h and float+.h.
88798         (mp_limb_t): New type.
88799         (GMP_LIMB_BITS): New macro.
88800         (mp_twolimb_t): New type.
88801         (GMP_TWOLIMB_BITS): New macro.
88802         (mpn_t): New type.
88803         (multiply, divide, convert_to_decimal, decode_long_double,
88804         scale10_round_long_double, scale10_round_decimal_long_double,
88805         floorlog10l): New functions.
88806         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
88807         for the %f, %F, %e, %E, %g, %G directives.
88808         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
88809         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
88810         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
88811         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
88812         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
88813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88815         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88816         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88817         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88818         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88819         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
88820         * modules/snprintf-posix (Depends-on): Likewise.
88821         * modules/sprintf-posix (Depends-on): Likewise.
88822         * modules/vasnprintf-posix (Depends-on): Likewise.
88823         * modules/vasprintf-posix (Depends-on): Likewise.
88824         * modules/vfprintf-posix (Depends-on): Likewise.
88825         * modules/vsnprintf-posix (Depends-on): Likewise.
88826         * modules/vsprintf-posix (Depends-on): Likewise.
88827         * modules/vasnprintf (Files): Add lib/float+.h.
88828         * doc/functions/fprintf.texi: Update.
88829         * doc/functions/printf.texi: Update.
88830         * doc/functions/snprintf.texi: Update.
88831         * doc/functions/sprintf.texi: Update.
88832         * doc/functions/vfprintf.texi: Update.
88833         * doc/functions/vprintf.texi: Update.
88834         * doc/functions/vsnprintf.texi: Update.
88835         * doc/functions/vsprintf.texi: Update.
88837 2007-05-18  Bruno Haible  <bruno@clisp.org>
88839         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
88841 2007-05-18  Bruno Haible  <bruno@clisp.org>
88843         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
88844         for printing 64-bit integers. Needed for mingw.
88846 2007-05-18  Bruno Haible  <bruno@clisp.org>
88848         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
88849         gl_FUNC_FREXPL_WORKS.
88850         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
88852 2007-05-18  Bruno Haible  <bruno@clisp.org>
88854         * modules/frexpl-nolibm-tests: New file.
88856         * modules/frexpl-nolibm: New file.
88857         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
88859 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88861         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
88862         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88863         GCC 4.2, which otherwise issues a lot of warnings.
88864         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
88865         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
88866         Likewise.
88867         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
88868         * modules/iconv_open (iconv.h): Likewise.
88869         * modules/locale (locale.h): Likewise.
88870         * modules/netinet_in (netinet/in.h): Likewise.
88871         * modules/sys_select (sys_select.h): Likewise.
88872         * modules/sys_socket (sys/socket.h): Likewise.
88873         * modules/sys_stat (sys/stat.h): Likewise.
88874         * modules/sysexits (sysexits.h): Likewise.
88875         * modules/unistd (unistd.h): Likewise.
88877 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
88879         * modules/closein-tests (Makefile.am): Distribute
88880         `test-closein.sh'.
88882 2007-05-17  Bruno Haible  <bruno@clisp.org>
88884         * tests/test-printf-posix.output: Renamed from
88885         tests/test-fprintf-posix.out.
88886         * modules/fprintf-posix-tests: Update.
88887         * modules/printf-posix-tests: Update.
88888         * modules/vfprintf-posix-tests: Update.
88889         * modules/vprintf-posix-tests: Update.
88890         * tests/test-fprintf-posix.sh: Update.
88891         * tests/test-printf-posix.sh: Update.
88892         * tests/test-vfprintf-posix.sh: Update.
88893         * tests/test-vprintf-posix.sh: Update.
88894         Reported by Ralf Wildenhues.
88896 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88898         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
88899         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
88900         GCC 4.2, which otherwise issues a lot of warnings.
88901         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
88902         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
88903         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
88904         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
88905         it should no longer be needed.
88906         * lib/string_.h: Likewise.
88907         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
88908         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
88909         * modules/inttypes (inttypes.h): Likewise.
88910         * modules/math (math.h): Likewise.
88911         * modules/search (search.h): Likewise.
88912         * modules/signal (signal.h): Likewise.
88913         * modules/stdint (stdint.h): Likewise.
88914         * modules/stdio (stdio.h): Likewise.
88915         * modules/stdlib (stdlib.h): Likewise.
88916         * modules/string (string.h): Likewise.
88917         * modules/sys_time (sys/time.h): Likewise.
88918         * modules/time (time.h): Likewise.
88919         * modules/wchar (wchar.h): Likewise.
88920         * modules/wctype (wtype.h): Likewise.
88922 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
88924         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
88926 2007-05-13  Bruno Haible  <bruno@clisp.org>
88928         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
88929         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
88930         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
88931         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
88932         (gl_PREREQ_STRTOK_R): Don't require it here.
88934 2007-05-13  Bruno Haible  <bruno@clisp.org>
88936         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
88937         when used in C++ mode.
88939 2007-05-12  Bruno Haible  <bruno@clisp.org>
88941         * lib/linebuffer.h: Tweak doc.
88942         * lib/linebuffer.c: Likewise.
88944 2007-05-12  James Youngman  <jay@gnu.org>
88946         * lib/linebuffer.c (readlinebuffer_delim): New function,
88947         like readlinebuffer, but use a caller-specified delimiter.
88948         (readlinebuffer): Just call readlinebuffer_delim with '\n'
88949         as the delimiter.
88950         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
88952 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
88954         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
88955         * modules/openat (Files): Remove openat-die.c.
88956         (Depends-on): Add openat-die.
88957         * modules/openat-die: New module.
88959 2007-05-06  Bruno Haible  <bruno@clisp.org>
88961         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
88962         Update with info about Cygwin.
88963         * doc/functions/fprintf.texi: Update.
88964         * doc/functions/printf.texi: Update.
88965         * doc/functions/snprintf.texi: Update.
88966         * doc/functions/sprintf.texi: Update.
88967         * doc/functions/vfprintf.texi: Update.
88968         * doc/functions/vprintf.texi: Update.
88969         * doc/functions/vsnprintf.texi: Update.
88970         * doc/functions/vsprintf.texi: Update.
88971         Reported by Eric Blake.
88973 2007-05-06  Bruno Haible  <bruno@clisp.org>
88975         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
88976         padding ourselves for the floating-point directives.
88977         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
88978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
88979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
88980         gl_PRINTF_FLAG_ZERO and test its result. Invoke
88981         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
88982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
88983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
88984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
88985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
88986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
88987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
88988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
88989         * tests/test-snprintf-posix.h (test_function): Also check the width
88990         and some flags in the %f directive.
88991         * tests/test-sprintf-posix.h (test_function): Likewise.
88992         * tests/test-vasnprintf-posix.c (test_function): Likewise.
88993         * tests/test-vasprintf-posix.c (test_function): Likewise.
88994         * doc/functions/fprintf.texi: Update.
88995         * doc/functions/printf.texi: Update.
88996         * doc/functions/snprintf.texi: Update.
88997         * doc/functions/sprintf.texi: Update.
88998         * doc/functions/vfprintf.texi: Update.
88999         * doc/functions/vprintf.texi: Update.
89000         * doc/functions/vsnprintf.texi: Update.
89001         * doc/functions/vsprintf.texi: Update.
89003 2007-05-06  Bruno Haible  <bruno@clisp.org>
89005         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
89006         pass the ' flag character to sprintf or snprintf.
89007         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
89008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
89009         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89010         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
89011         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
89012         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
89013         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
89014         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
89015         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
89016         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
89017         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89018         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
89019         * tests/test-snprintf-posix.h (test_function): Also check the grouping
89020         flag.
89021         * tests/test-sprintf-posix.h (test_function): Likewise.
89022         * tests/test-vasnprintf-posix.c (test_function): Likewise.
89023         * tests/test-vasprintf-posix.c (test_function): Likewise.
89024         * doc/functions/fprintf.texi: Update.
89025         * doc/functions/printf.texi: Update.
89026         * doc/functions/snprintf.texi: Update.
89027         * doc/functions/sprintf.texi: Update.
89028         * doc/functions/vfprintf.texi: Update.
89029         * doc/functions/vprintf.texi: Update.
89030         * doc/functions/vsnprintf.texi: Update.
89031         * doc/functions/vsprintf.texi: Update.
89033 2007-05-01  Bruno Haible  <bruno@clisp.org>
89035         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
89037 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
89039         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
89040         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
89042 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
89044         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
89045         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
89046         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
89048 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
89050         * lib/argp-help.c (struct hol_entry): New member `ord'.
89051         (HOL_ENTRY_PTRCMP): Use ord for comparison
89052         (hol_sort): Initialize ord.
89054 2007-05-01  Bruno Haible  <bruno@clisp.org>
89056         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
89057         Reported by Eric Blake.
89058         * doc/gnulib.texi (Function Substitutes): Update.
89060 2007-05-01  Bruno Haible  <bruno@clisp.org>
89062         * doc/functions.texi: Remove file, now redundant through
89063         doc/functions/*.texi.
89065 2007-05-01  Bruno Haible  <bruno@clisp.org>
89067         * modules/argp (Depends-on): Add sleep.
89069 2007-05-01  Bruno Haible  <bruno@clisp.org>
89071         * modules/sleep-tests: New file.
89072         * tests/test-sleep.c: New file.
89074         * modules/sleep: New file.
89075         * lib/sleep.c: New file.
89076         * m4/sleep.m4: New file.
89077         * lib/unistd_.h (sleep): New declaration.
89078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
89079         HAVE_SLEEP.
89080         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
89081         * doc/functions/sleep.texi: Document the sleep module.
89083 2007-05-01  Bruno Haible  <bruno@clisp.org>
89085         * lib/sigprocmask.h: Remove file.
89086         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
89087         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
89088         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
89089         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
89090         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
89091         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
89092         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
89093         HAVE_SIGSET_T as a shell variable.
89094         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
89095         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
89096         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
89097         (Depends-on): Add signal. Remove verify.
89098         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
89099         (Include): Mention <signal.h> instead of sigprocmask.h.
89100         * NEWS: Mention the change.
89101         * lib/fatal-signal.c: Don't include sigprocmask.h.
89103 2007-05-01  Bruno Haible  <bruno@clisp.org>
89105         * modules/signal: New file.
89106         * lib/signal_.h: New file.
89107         * m4/signal_h.m4: New file.
89109 2007-05-01  Bruno Haible  <bruno@clisp.org>
89111         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
89112         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
89113         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
89114         HAVE_WCTYPE_CTMP_BUG into wctype.h.
89116 2007-05-01  Bruno Haible  <bruno@clisp.org>
89118         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
89119         configure time.
89120         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
89121         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
89122         * modules/sys_stat (Makefile.am): Substitute their values into
89123         sys/stat.h.
89125 2007-05-01  Bruno Haible  <bruno@clisp.org>
89127         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
89128         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
89129         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
89131 2007-05-01  Bruno Haible  <bruno@clisp.org>
89133         * doc/header/assert.texi: Undo last change: don't mention the gnulib
89134         'assert' module here.
89136 2007-05-01  Bruno Haible  <bruno@clisp.org>
89138         * doc/functions/*.texi: New files.
89139         * doc/functions/google-ranking.txt: New file.
89140         * doc/gnulib.texi (Function Substitutes): New chapter.
89141         (ctime, inet_ntoa): Remove sections.
89142         * doc/ctime.texi: Remove file.
89143         * doc/inet_ntoa.texi: Remove file.
89144         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
89145         dependencies.
89146         (%.info): New rule, specifying a --reference-limit.
89148 2007-05-01  Bruno Haible  <bruno@clisp.org>
89150         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
89152 2007-05-01  Bruno Haible  <bruno@clisp.org>
89154         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
89155         the portability of 'mkdir' to mingw systems.
89157 2007-05-01  Bruno Haible  <bruno@clisp.org>
89159         * doc/headers/google-ranking.txt: New file.
89161 2007-04-30  Eric Blake  <ebb9@byu.net>
89163         Prefer fseeko to fseek.
89164         * modules/getpass (Depends-on): Add fseeko.
89165         * lib/getpass.c (getpass): Use fseeko, not fseek.
89167 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
89169         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
89170         assumes the sorting is stable, while most qsort implementations
89171         are not.  Use argument addresses to ensure they never compare as
89172         equal.
89174         * tests/test-argp-2.sh (usage-indent test): Fix output
89175         (func_compare): Restore diff options
89176         * tests/test-argp.c: Restore #include "progname.h"
89178 2007-04-29  Bruno Haible  <bruno@clisp.org>
89180         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
89181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89182         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
89183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
89184         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
89185         (configure.ac): Define CHECK_SNPRINTF_POSIX.
89186         (TESTS, check_PROGRAMS): Add test-snprintf.
89187         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
89188         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
89189         (TESTS, check_PROGRAMS): Add test-vsnprintf.
89190         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
89191         assertions that fail on HP-UX, OSF/1, or IRIX.
89192         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
89194 2007-04-29  Bruno Haible  <bruno@clisp.org>
89196         * MODULES.html.sh (posix_functions): Remove 'contents'.
89198 2007-04-29  Karl Berry  <karl@gnu.org>
89200         * config/srclist.txt (gendocs_template_min): new entry.
89202 2007-04-29  Bruno Haible  <bruno@clisp.org>
89204         Work around fpurge bug on BSD systems.
89205         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
89206         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
89207         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
89208         fpurge to rpl_fpurge if the system already has this function.
89209         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
89210         the case where the system already has this function. Correct invariants
89211         on BSD systems.
89212         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
89213         BSD systems.
89215 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
89217         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
89218         proposed by Sven Verdoolaege.
89220         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
89221         options.
89222         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
89223         (usage and help tests): Update
89225 2007-04-29  Bruno Haible  <bruno@clisp.org>
89227         * tests/test-fflush.c (main): Use a file of size 17, not 10.
89228         Print more information in case of failure. Disable a test on BeOS.
89230 2007-04-29  Bruno Haible  <bruno@clisp.org>
89232         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
89233         This helps debugging on systems on which no gdb is available.
89235 2007-04-29  Bruno Haible  <bruno@clisp.org>
89237         * lib/freading.h: Improve comments.
89238         * lib/fwriting.h: Likewise.
89239         * tests/test-freading.c (main): Don't check freading immediately after
89240         repositioning. Needed for glibc.
89242 2007-04-29  Bruno Haible  <bruno@clisp.org>
89244         * lib/freading.c (freading): Trivial simplification.
89246 2007-04-28  Bruno Haible  <bruno@clisp.org>
89248         * tests/test-fwriting.c (main): Also test the interaction between
89249         fflush and fwriting.
89250         * modules/fwriting-tests (Depends-on): Add fflush.
89252         * tests/test-freading.c (main): Also test the interaction between
89253         fflush and freading.
89254         * modules/freading-tests (Depends-on): Add fflush.
89256 2007-04-28  Bruno Haible  <bruno@clisp.org>
89258         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
89259         fseeko and ftello.
89260         Suggested by Eric Blake.
89262 2007-04-28  Jim Meyering  <jim@meyering.net>
89264         Avoid false-negative in gl_STDINT_H's C99 conformance test.
89265         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
89266         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
89268 2007-04-27  Eric Blake  <ebb9@byu.net>
89270         * doc/headers/assert.texi (assert.h): Document assert module use.
89272 2007-04-27  Bruno Haible  <bruno@clisp.org>
89274         * doc/headers/*.texi: New files.
89275         * doc/gnulib.texi (Header File Substitutes): New chapter.
89276         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
89277         dependencies.
89278         (standards.info ,standards.html, standards.dvi): Update dependencies.
89279         (mostlyclean, clean): New targets.
89281 2007-04-27  Bruno Haible  <bruno@clisp.org>
89283         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
89284         * modules/sysexits (Files, Makefile.am): Update.
89286         * lib/sys_socket_.h: Renamed from lib/socket_.h.
89287         * modules/sys_socket (Files, Makefile.am): Update.
89289         * lib/sys_stat_.h: Renamed from lib/stat_.h.
89290         * modules/sys_stat (Files, Makefile.am): Update.
89292 2007-04-27  Eric Blake  <ebb9@byu.net>
89294         * lib/freading.h: Improve comments.
89295         * lib/fwriting.h: Likewise.
89296         * lib/fflush.c: Likewise.
89298         Fix closein for mingw.
89299         * modules/closein-tests: Add tests for closein.
89300         * tests/test-closein.c: New file.
89301         * tests/test-closein.sh: Likewise.
89302         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
89303         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
89305 2007-04-27  Bruno Haible  <bruno@clisp.org>
89307         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
89308         version is < 6.
89309         * lib/math_.h [__DECC]: Likewise.
89310         * lib/stdio_.h [__DECC]: Likewise.
89311         * lib/stdlib_.h [__DECC]: Likewise.
89312         * lib/string_.h [__DECC]: Likewise.
89313         * lib/time_.h [__DECC]: Likewise.
89314         * lib/wchar_.h [__DECC]: Likewise.
89315         * lib/wctype_.h [__DECC]: Likewise.
89317 2007-04-27  Bruno Haible  <bruno@clisp.org>
89319         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
89321 2007-04-27  Bruno Haible  <bruno@clisp.org>
89323         * lib/fflush.c: Add comments.
89324         * modules/fpurge-tests (Depends-on): Add fflush.
89325         * modules/freadable-tests (Depends-on): Likewise.
89326         * modules/fwritable-tests (Depends-on): Likewise.
89328 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
89330         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
89331         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
89332         Report by Bruno Haible <bruno@clisp.org>.
89334 2007-04-26  Eric Blake  <ebb9@byu.net>
89336         Fix fflush on mingw.
89337         * modules/fflush (Depends-on): Add freading.
89338         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
89339         but unread data.
89341 2007-04-26  Eric Blake  <ebb9@byu.net>
89342         and Bruno Haible  <bruno@clisp.org>
89344         Implement freading and fwriting.
89345         * lib/freading.c: New file.
89346         * lib/freading.h: Likewise.
89347         * m4/freading.m4: Likewise.
89348         * modules/freading: Likewise.
89349         * modules/freading-tests: Likewise.
89350         * tests/test-freading.c: Likewise.
89351         * lib/fwriting.c: New file.
89352         * lib/fwriting.h: Likewise.
89353         * m4/fwriting.m4: Likewise.
89354         * modules/fwriting: Likewise.
89355         * modules/fwriting-tests: Likewise.
89356         * tests/test-fwriting.c: Likewise.
89357         * MODULES.html.sh (File stream based Input/Output): Mention them.
89359 2007-04-26  Bruno Haible  <bruno@clisp.org>
89361         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
89362         'long' when we assume it.
89363         Suggested by Eric Blake.
89365 2007-04-26  Bruno Haible  <bruno@clisp.org>
89367         Ensure fseeko, ftello are declared on glibc systems.
89368         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
89369         * modules/fseeko (configure.ac-early): Likewise.
89370         * modules/ftello (configure.ac-early): Likewise.
89371         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
89372         AC_FUNC_FSEEKO for this.
89373         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
89374         (gl_CHECK_FSEEKO): Remove macro.
89376 2007-04-26  Bruno Haible  <bruno@clisp.org>
89378         * tests/test-fflush.c (main): Also check the ftell result after
89379         fflush and fseek/fseeko.
89380         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
89381         file descriptor position cache in the stream.
89382         * lib/fseeko.c (rpl_fseeko): Likewise.
89384 2007-04-26  Bruno Haible  <bruno@clisp.org>
89386         * modules/fflush-tests (Depends-on): Add fseeko.
89388 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
89389             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89391         * lib/argz_.h: ensure error_t definition is obtained in same
89392         mechanism system argz.h would have.
89393         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
89394         argz facilities are known bad.  Err on the side of caution if
89395         cross-compiling.
89397 2007-04-25  Eric Blake  <ebb9@byu.net>
89399         * lib/fpurge.c (includes): Use stdlib.h for free.
89400         * tests/test-fflush.c (main): Also test fflush-fseeko.
89402 2007-04-25  Bruno Haible  <bruno@clisp.org>
89404         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
89405         * lib/fseeko.c: New file.
89406         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
89407         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
89408         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
89409         gl_FUNC_FSEEKO.
89410         (gl_FUNC_FSEEKO): Invoke it.
89411         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
89412         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
89413         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
89415 2007-04-25  Bruno Haible  <bruno@clisp.org>
89417         * modules/fflush (Depends-on): Add ftello.
89419 2007-04-25  Bruno Haible  <bruno@clisp.org>
89421         * modules/ftello-tests: New file.
89422         * tests/test-ftello.c: New file.
89424         * modules/ftello: New file.
89425         * m4/ftello.m4: New file.
89426         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
89427         HAVE_FTELLO.
89428         * lib/stdio_.h (ftello): New declaration.
89429         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
89430         HAVE_FTELLO.
89432 2007-04-25  Bruno Haible  <bruno@clisp.org>
89434         * modules/fseeko-tests: New file.
89435         * tests/test-fseeko.c: New file.
89437         * modules/fseeko: New file.
89438         * m4/fseeko.m4: New file.
89439         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
89440         HAVE_FSEEKO.
89441         * lib/stdio_.h (fseeko): New declaration.
89442         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
89443         HAVE_FSEEKO.
89445 2007-04-25  Bruno Haible  <bruno@clisp.org>
89447         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
89449 2007-04-25  Bruno Haible  <bruno@clisp.org>
89451         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
89452         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
89453         * tests/test-unistd.c: Likewise.
89454         * tests/test-fcntl.c: Likewise.
89456 2007-04-23  Eric Blake  <ebb9@byu.net>
89458         * lib/fflush.c: Fix missing include.
89459         Reported by Bruno Haible.
89461 2007-04-23  Bruno Haible  <bruno@clisp.org>
89463         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
89464         Reported by Eric Blake.
89466 2007-04-23  Bruno Haible  <bruno@clisp.org>
89468         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
89470 2007-04-23  Bruno Haible  <bruno@clisp.org>
89472         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
89474 2007-04-23  Bruno Haible  <bruno@clisp.org>
89476         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
89477         Needed on HP-UX 11.
89479 2007-04-16  Eric Blake  <ebb9@byu.net>
89481         Make fflush rely on fpurge.
89482         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
89483         open coding all variants.
89484         * modules/fflush (Depends-on): Add fpurge and unistd.
89485         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
89486         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
89488         Fix --with-tests compilation on cygwin.
89489         * modules/argmatch-tests (Makefile.am): List gnulib library first
89490         in LDADD.
89491         * modules/argp-tests (Makefile.am): Likewise.
89492         * modules/array-list-tests (Makefile.am): Likewise.
89493         * modules/array-oset-tests (Makefile.am): Likewise.
89494         * modules/avltree-list-tests (Makefile.am): Likewise.
89495         * modules/avltree-oset-tests (Makefile.am): Likewise.
89496         * modules/avltreehash-list-tests (Makefile.am): Likewise.
89497         * modules/carray-list-tests (Makefile.am): Likewise.
89498         * modules/dirname-tests (Makefile.am): Likewise.
89499         * modules/frexp-tests (Makefile.am): Likewise.
89500         * modules/isnanl-tests (Makefile.am): Likewise.
89501         * modules/linked-list-tests (Makefile.am): Likewise.
89502         * modules/linkedhash-list-tests (Makefile.am): Likewise.
89503         * modules/lock-tests (Makefile.am): Likewise.
89504         * modules/rbtree-list-tests (Makefile.am): Likewise.
89505         * modules/rbtree-oset-tests (Makefile.am): Likewise.
89506         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
89507         * modules/tls-tests (Makefile.am): Likewise.
89508         * modules/tsearch-tests (Makefile.am): Likewise.
89509         * modules/xvasprintf-tests (Makefile.am): Likewise.
89511         Fix fpurge for cygwin.
89512         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
89513         value.
89514         * modules/fpurge-tests (Depends-on): Clean up trash.
89516 2007-04-16  Simon Josefsson  <simon@josefsson.org>
89518         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
89520         * m4/autobuild.m4: Re-indent.
89522 2007-04-13  Bruno Haible  <bruno@clisp.org>
89524         * modules/fpurge-tests: New file.
89525         * tests/test-fpurge.c: New file.
89527         * modules/fpurge: New file.
89528         * lib/fpurge.h: New file.
89529         * lib/fpurge.c: New file.
89530         * m4/fpurge.m4: New file.
89532 2007-04-13  Bruno Haible  <bruno@clisp.org>
89534         * modules/fbufmode-tests: New file.
89535         * tests/test-fbufmode.c: New file.
89537         * modules/fbufmode: New file.
89538         * lib/fbufmode.h: New file.
89539         * lib/fbufmode.c: New file.
89540         * m4/fbufmode.m4: New file.
89542 2007-04-13  Bruno Haible  <bruno@clisp.org>
89544         * modules/fwritable-tests: New file.
89545         * tests/test-fwritable.c: New file.
89547         * modules/fwritable: New file.
89548         * lib/fwritable.h: New file.
89549         * lib/fwritable.c: New file.
89550         * m4/fwritable.m4: New file.
89552 2007-04-13  Bruno Haible  <bruno@clisp.org>
89554         * modules/freadable-tests: New file.
89555         * tests/test-freadable.c: New file.
89557         * modules/freadable: New file.
89558         * lib/freadable.h: New file.
89559         * lib/freadable.c: New file.
89560         * m4/freadable.m4: New file.
89562 2007-04-13  Bruno Haible  <bruno@clisp.org>
89564         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
89565         MOSTLYCLEANFILES.
89567 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
89569         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
89570         gzip bootstrap.conf to avoid dragging in i18n machinery.
89571         (gnulib_tool_option): Use it.
89573 2007-04-13  Bruno Haible  <bruno@clisp.org>
89575         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
89576         %F directives.
89577         * tests/test-vasprintf-posix.c (test_function): Likewise.
89578         * tests/test-snprintf-posix.h (test_function): Likewise.
89579         * tests/test-sprintf-posix.h (test_function): Likewise.
89580         * tests/test-fprintf-posix.h (test_function): Likewise.
89581         * tests/test-printf-posix.h (test_function): Likewise.
89582         * tests/test-fprintf-posix.out: Likewise.
89584 2007-04-13  Bruno Haible  <bruno@clisp.org>
89586         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
89587         * modules/tls-tests (configure.ac): Likewise.
89588         Reported by Arto C. Nirkko <anirkko@insel.ch>.
89590 2007-04-13  Bruno Haible  <bruno@clisp.org>
89592         * lib/tls.c (glthread_tls_get): Fix return type.
89593         Patch by Arto C. Nirkko <anirkko@insel.ch>.
89595 2007-04-12  Eric Blake  <ebb9@byu.net>
89597         * modules/gettime (Depends-on): Remove gettime.
89598         Reported by Dmitry V. Levin.
89600 2007-04-12  Bruno Haible  <bruno@clisp.org>
89602         * modules/fflush (Include): Mention <stdio.h>.
89603         * modules/strtoimax (Include): Mention <inttypes.h>.
89604         * modules/strtoumax (Include): Likewise.
89606 2007-04-12  Eric Blake  <ebb9@byu.net>
89608         * .cvsignore: New file.
89609         * .gitignore: Likewise.
89611 2007-04-12  Bruno Haible  <bruno@clisp.org>
89613         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
89614         not before, since $(LDADD) often contains libgnu.a.
89615         * modules/striconv-tests (test_striconv_LDADD): Likewise.
89616         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
89617         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
89618         Needed on Cygwin.
89620 2007-04-12  Eric Blake  <ebb9@byu.net>
89622         Work around glibc's failure to flush stdin on fclose.
89623         * lib/closein.c (close_stdin): Flush stdin before closing.
89625         Work around glibc's failure to reset seekable stdin on exit.
89626         * modules/closein: New module.
89627         * lib/closein.c: New file.
89628         * lib/closein.h: Likewise.
89629         * m4/closein.m4: Likewise.
89630         * MODULES.html.sh (File stream based Input/Output): Document it.
89632 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89634         * gnulib-tool: Rename generated 'autobuild' script to
89635         'do-autobuild' in --create-megatestdir output.
89637         * doc/gnulib.texi (Build robot for gnulib): Fix.
89639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89641         * modules/sysexits (Depends-on): Add absolute-header.
89643 2007-04-12  Eric Blake  <ebb9@byu.net>
89645         No need to preserve errno on success.
89646         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
89647         Reported by Bruno Haible.
89649 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89651         * MODULES.html.sh (Support for maintaining and releasing
89652         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
89654 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89656         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
89658 2007-04-12  Simon Josefsson  <simon@josefsson.org>
89660         * modules/autobuild: New module.
89662         * m4/autobuild.m4: New file.
89664 2007-04-11  Bruno Haible  <bruno@clisp.org>
89666         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
89667         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
89668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
89669         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
89670         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
89671         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89672         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89673         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89674         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89675         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89676         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
89677         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89678         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
89680         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89681         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89682         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
89683         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89684         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89685         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
89686         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89687         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
89689         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89690         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
89692         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
89693         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
89694         Reported by Eric Blake.
89696 2007-04-11  Bruno Haible  <bruno@clisp.org>
89698         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
89700 2007-04-10  Bruno Haible  <bruno@clisp.org>
89702         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
89703         for NaN and Infinity. Needed on FreeBSD 6.1.
89704         * tests/test-vasnprintf-posix.c (test_function): Undo last change
89705         regarding results for "%010a" of Infinity and NaN.
89706         * tests/test-vasprintf-posix.c (test_function): Likewise.
89707         * tests/test-snprintf-posix.h (test_function): Likewise.
89708         * tests/test-sprintf-posix.h (test_function): Likewise.
89709         * tests/test-fprintf-posix.h (test_function): Likewise.
89710         * tests/test-printf-posix.h (test_function): Likewise.
89711         * tests/test-fprintf-posix.out: Likewise.
89713 2007-04-10  Bruno Haible  <bruno@clisp.org>
89715         * modules/locale-tests: New file.
89716         * tests/test-locale.c: New file.
89718         * modules/locale: New file.
89719         * lib/locale_.h: New file.
89720         * m4/locale_h.m4: New file.
89722 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
89723             Bruno Haible  <bruno@clisp.org>
89725         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
89726         be determined, test for availability of the copysignf, copysign,
89727         copysignl functions.
89728         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
89729         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
89730         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
89732 2007-04-09  Eric Blake  <ebb9@byu.net>
89734         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
89735         * modules/stdio (Makefile.am): Support fflush.
89736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
89737         * modules/fflush: New file.
89738         * lib/fflush.c: Likewise.
89739         * m4/fflush.m4: Likewise.
89740         * modules/fflush-tests: New test.
89741         * tests/test-fflush.c: Likewise.
89742         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
89744 2007-04-06  Bruno Haible  <bruno@clisp.org>
89746         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
89747         (VASNPRINTF): Use signbit for faster determination whether to print a
89748         minus sign.
89749         * modules/vasnprintf (Files): Remove lib/float+.h.
89750         * modules/fprintf-posix (Depends-on): Add signbit.
89751         * modules/snprintf-posix (Depends-on): Likewise.
89752         * modules/sprintf-posix (Depends-on): Likewise.
89753         * modules/vasnprintf-posix (Depends-on): Likewise.
89754         * modules/vasprintf-posix (Depends-on): Likewise.
89755         * modules/vfprintf-posix (Depends-on): Likewise.
89756         * modules/vsnprintf-posix (Depends-on): Likewise.
89757         * modules/vsprintf-posix (Depends-on): Likewise.
89759 2007-04-06  Bruno Haible  <bruno@clisp.org>
89761         * tests/test-frexp.c (main): Test also the sign bit of zero results.
89762         * tests/test-frexpl.c (main): Likewise.
89763         * tests/test-ldexpl.c (main): Likewise.
89764         * modules/frexp-tests (Depends-on): Add signbit.
89765         * modules/frexpl-tests (Depdends-on): Likewise.
89766         * modules/ldexpl-tests (Depdends-on): Likewise.
89768 2007-04-06  Bruno Haible  <bruno@clisp.org>
89770         * modules/signbit-tests: New file.
89771         * tests/test-signbit.c: New file.
89773         * modules/signbit: New file.
89774         * lib/signbitf.c: New file.
89775         * lib/signbitd.c: New file.
89776         * lib/signbitl.c: New file.
89777         * m4/signbit.m4: New file.
89778         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
89779         (signbit): New macro.
89780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
89781         REPLACE_SIGNBIT.
89782         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
89783         REPLACE_FREXPL into math.h.
89785 2007-04-06  Bruno Haible  <bruno@clisp.org>
89787         * modules/isnanf-nolibm-tests: New file.
89788         * tests/test-isnanf.c: New file.
89790         * modules/isnanf-nolibm: New file.
89791         * lib/isnanf.h: New file.
89792         * lib/isnanf.c: New file.
89793         * lib/isnan.c: Consider the USE_FLOAT macro.
89794         * m4/isnanf.m4: New file.
89796 2007-04-06  Bruno Haible  <bruno@clisp.org>
89798         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
89799         (Link): New section.
89801         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
89803 2007-04-06  Bruno Haible  <bruno@clisp.org>
89805         Assume the 'long double' type.
89806         * m4/longdouble.m4: Remove file.
89807         * config/srclist.txt: Don't mention longdouble.m4.
89808         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
89809         * lib/float+.h: Likewise.
89810         * lib/frexp.c: Likewise.
89811         * lib/printf-args.h: Likewise.
89812         * lib/printf-args.c: Likewise.
89813         * lib/printf-frexp.c: Likewise.
89814         * lib/printf-parse.c: Likewise.
89815         * lib/vasnprintf.c: Likewise.
89816         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
89817         * m4/intl.m4: Likewise.
89818         * m4/isnanl.m4: Likewise.
89819         * m4/printf.m4: Likewise.
89820         * m4/printf-frexpl.m4: Likewise.
89821         * m4/vasnprintf.m4: Likewise.
89822         * modules/allocsa (Files): Remove m4/longdouble.m4.
89823         * modules/gettext (Files): Likewise.
89824         * modules/relocatable-prog-wrapper (Files): Likewise.
89825         * modules/vasnprintf (Files): Likewise.
89826         * modules/isnanl (Files): Likewise.
89827         (Include): Simplify.
89828         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
89829         (Include): Simplify.
89830         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
89831         (Include): Simplify.
89832         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
89833         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89834         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
89835         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89836         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89837         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89838         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
89839         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89840         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
89841         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89842         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
89843         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
89844         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
89845         * tests/test-isnanl.c: Likewise.
89846         * tests/test-snprintf-posix.h: Likewise.
89847         * tests/test-sprintf-posix.h: Likewise.
89848         * tests/test-vasnprintf-posix.c: Likewise.
89849         * tests/test-vasnprintf-posix2.c: Likewise.
89850         * tests/test-vasprintf-posix.c: Likewise.
89852 2007-04-06  Bruno Haible  <bruno@clisp.org>
89854         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
89855         * lib/math_.h [__DECC]: Include the overridden include file through
89856         #include_next, outside the double-inclusion guard.
89857         * lib/stdio_.h [__DECC]: Likewise.
89858         * lib/stdlib_.h [__DECC]: Likewise.
89859         * lib/string_.h [__DECC]: Likewise.
89860         * lib/time_.h [__DECC]: Likewise.
89861         * lib/wchar_.h [__DECC]: Likewise.
89862         * lib/wctype_.h [__DECC]: Likewise.
89863         * lib/inttypes_.h [__DECC]: Likewise.
89864         Reported by Albert Chin <china@thewrittenword.com> in
89865         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
89867 2007-04-04  Eric Blake  <ebb9@byu.net>
89869         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
89870         1.5.x.
89872 2007-04-04  Bruno Haible  <bruno@clisp.org>
89874         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
89875         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
89877 2007-04-04  Bruno Haible  <bruno@clisp.org>
89879         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
89880         results for "%010a" of Infinity and NaN.
89881         * tests/test-vasprintf-posix.c (test_function): Likewise.
89882         * tests/test-snprintf-posix.h (test_function): Likewise.
89883         * tests/test-sprintf-posix.h (test_function): Likewise.
89884         * tests/test-fprintf-posix.h (test_function): Remove these tests.
89885         * tests/test-printf-posix.h (test_function): Likewise.
89886         * tests/test-fprintf-posix.out: Update.
89887         Needed for FreeBSD 6.1.
89889 2007-04-04  Bruno Haible  <bruno@clisp.org>
89891         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
89892         directly used by the gnulib modules nor by gnulib-tool.
89894 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
89896         * DEPENDENCIES: Give overall description of version dependency
89897         desirability.  Use more-typical names for apps.
89898         Add shell, coreutils, diffutils, grep, tar, gzip.
89900 2007-04-04  Simon Josefsson  <simon@josefsson.org>
89902         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
89904 2007-04-04  Karl Berry  <karl@gnu.org>
89906         * MODULES.html.sh (func_module): missing '.
89908 2007-04-03  Bruno Haible  <bruno@clisp.org>
89910         * modules/argmatch-tests (Makefile.am): New variable
89911         test_argmatch_LDADD.
89912         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
89913         * modules/array-list-tests (Makefile.am): New variable
89914         test_array_list_LDADD.
89915         * modules/array-oset-tests (Makefile.am): New variable
89916         test_array_oset_LDADD.
89917         * modules/avltree-list-tests (Makefile.am): New variable
89918         test_avltree_list_LDADD.
89919         * modules/avltree-oset-tests (Makefile.am): New variable
89920         test_avltree_oset_LDADD.
89921         * modules/avltreehash-list-tests (Makefile.am): New variable
89922         test_avltreehash_list_LDADD.
89923         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
89924         test_canonicalize_lgpl_LDADD.
89925         * modules/carray-list-tests (Makefile.am): New variable
89926         test_carray_list_LDADD.
89927         * modules/dirname-tests (Makefile.am): New variable
89928         test_dirname_LDADD.
89929         * modules/linked-list-tests (Makefile.am): New variable
89930         test_linked_list_LDADD.
89931         * modules/linkedhash-list-tests (Makefile.am): New variable
89932         test_linkedhash_list_LDADD.
89933         * modules/rbtree-list-tests (Makefile.am): New variable
89934         test_rbtree_list_LDADD.
89935         * modules/rbtree-oset-tests (Makefile.am): New variable
89936         test_rbtree_oset_LDADD.
89937         * modules/rbtreehash-list-tests (Makefile.am): New variable
89938         test_rbtreehash_list_LDADD.
89939         * modules/xvasprintf-tests (Makefile.am): New variable
89940         test_xvasprintf_LDADD.
89941         Reported by Eric Blake.
89943 2007-04-03  Eric Blake  <ebb9@byu.net>
89945         * DEPENDENCIES: Weaken m4 requirements.
89947 2007-04-03  Bruno Haible  <bruno@clisp.org>
89949         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
89950         * modules/isnanl-tests (configure.ac): Likewise.
89952 2007-04-03  Ben Pfaff  <blp@gnu.org>
89954         * modules/iconv_open: Add $(srcdir)/ to source directory
89955         references in Makefile fragments that call gperf, to fix VPATH
89956         builds.
89958 2007-04-03  Bruno Haible  <bruno@clisp.org>
89960         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
89961         * lib/ldexpl.c: Undo last change.
89963 2007-04-03  Bruno Haible  <bruno@clisp.org>
89965         * modules/printf-frexpl (Depends-on): Undo last change.
89966         (Files): Add m4/ldexpl.m4.
89968 2007-04-03  Bruno Haible  <bruno@clisp.org>
89970         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
89971         * modules/isnanl (Link): New section.
89973         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
89974         * modules/frexp (Link): New section.
89976         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
89977         * modules/frexpl (Link): New section.
89979         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
89980         * modules/ldexpl (Link): New section.
89982 2007-04-03  Bruno Haible  <bruno@clisp.org>
89984         * modules/TEMPLATE-EXTENDED: New file.
89985         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
89987 2007-04-03  Bruno Haible  <bruno@clisp.org>
89989         * DEPENDENCIES: New file.
89990         Suggested by Simon Josefsson.
89992 2007-04-03  Bruno Haible  <bruno@clisp.org>
89994         * doc/gnulib.texi: Escape @.
89996 2007-04-03  James Youngman  <jay@gnu.org>
89997         and Paul Eggert  <eggert@cs.ucla.edu>
89999         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
90000         birthtime on all systems that have birthtime, not just those which
90001         use st_birthtimensec rather than st_birthtim.  Putting zero in
90002         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
90003         that the birth time is not available for files on an NFS mount.
90005 2007-04-03  Simon Josefsson  <simon@josefsson.org>
90007         * modules/memxor: Move back from crypto/, suggested by Bruno.
90008         * modules/crypto/hmac-sha1: Fix memxor dependency.
90010         * modules/crypto/gc: Moved from ../.
90012 2007-04-02  Eric Blake  <ebb9@byu.net>
90014         * lib/ldexpl.c (includes): Avoid libm.
90016         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
90018 2007-04-02  Bruno Haible  <bruno@clisp.org>
90020         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
90021         on IRIX.
90023 2007-04-02  Bruno Haible  <bruno@clisp.org>
90025         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
90026         x86 or x86_64 platforms running MacOS X.
90027         Reported by Ryan Schmidt <@ryandesign.com>.
90029 2007-04-02  Bruno Haible  <bruno@clisp.org>
90031         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
90032         i386.
90034 2007-04-01  Simon Josefsson  <simon@josefsson.org>
90036         * modules/crypto/arcfour: Moved from ../.
90037         * modules/crypto/arcfour-tests: Moved from ../.
90038         * modules/crypto/arctwo: Moved from ../.
90039         * modules/crypto/arctwo-tests: Moved from ../.
90040         * modules/crypto/des: Moved from ../.
90041         * modules/crypto/des-tests: Moved from ../.
90042         * modules/crypto/gc-arcfour: Moved from ../.
90043         * modules/crypto/gc-arcfour-tests: Moved from ../.
90044         * modules/crypto/gc-arctwo: Moved from ../.
90045         * modules/crypto/gc-arctwo-tests: Moved from ../.
90046         * modules/crypto/gc-des: Moved from ../.
90047         * modules/crypto/gc-des-tests: Moved from ../.
90048         * modules/crypto/gc-hmac-md5: Moved from ../.
90049         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
90050         * modules/crypto/gc-hmac-sha1: Moved from ../.
90051         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
90052         * modules/crypto/gc-md2: Moved from ../.
90053         * modules/crypto/gc-md2-tests: Moved from ../.
90054         * modules/crypto/gc-md4: Moved from ../.
90055         * modules/crypto/gc-md4-tests: Moved from ../.
90056         * modules/crypto/gc-md5: Moved from ../.
90057         * modules/crypto/gc-md5-tests: Moved from ../.
90058         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
90059         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
90060         * modules/crypto/gc-random: Moved from ../.
90061         * modules/crypto/gc-rijndael: Moved from ../.
90062         * modules/crypto/gc-rijndael-tests: Moved from ../.
90063         * modules/crypto/gc-sha1: Moved from ../.
90064         * modules/crypto/gc-sha1-tests: Moved from ../.
90065         * modules/crypto/gc-tests: Moved from ../.
90066         * modules/crypto/hmac-md5: Moved from ../.
90067         * modules/crypto/hmac-md5-tests: Moved from ../.
90068         * modules/crypto/hmac-sha1: Moved from ../.
90069         * modules/crypto/hmac-sha1-tests: Moved from ../.
90070         * modules/crypto/md2: Moved from ../.
90071         * modules/crypto/md2-tests: Moved from ../.
90072         * modules/crypto/md4: Moved from ../.
90073         * modules/crypto/md4-tests: Moved from ../.
90074         * modules/crypto/md5: Moved from ../.
90075         * modules/crypto/md5-tests: Moved from ../.
90076         * modules/crypto/memxor: Moved from ../.
90077         * modules/crypto/rijndael: Moved from ../.
90078         * modules/crypto/rijndael-tests: Moved from ../.
90079         * modules/crypto/sha1: Moved from ../.
90081 2007-03-30  James Youngman  <jay@gnu.org>
90083         * tests/test-stat-time.c (prepare_test): use chmod() rather than
90084         rename() to change the ctime of a file (because ctime is unaffected
90085         by rename on jfs2 on AIX 5.1).
90086         (main): Start by doing cleanup, in case a previous run failed leaving
90087         test files behind.
90089 2007-03-31  Bruno Haible  <bruno@clisp.org>
90091         Support old proprietary implementations of iconv.
90092         * modules/iconv_open: New file.
90093         * lib/iconv_.h: New file.
90094         * m4/iconv_h.m4: New file.
90095         * lib/iconv_open.c: New file.
90096         * lib/iconv_open-aix.gperf: New file.
90097         * lib/iconv_open-hpux.gperf: New file.
90098         * lib/iconv_open-irix.gperf: New file.
90099         * lib/iconv_open-osf.gperf: New file.
90100         * m4/iconv_open.m4: New file.
90101         * modules/linebreak (Depends-on): Add iconv_open.
90102         * modules/striconv (Depends-on): Likewise.
90103         * modules/striconveh (Depends-on): Likewise.
90104         * modules/unicodeio (Depends-on): Likewise.
90105         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
90106         (iconv_t)(-1).
90107         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
90108         conversion if cd is (iconv_t)(-1).
90109         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
90110         is not possible.
90112 2007-03-31  Bruno Haible  <bruno@clisp.org>
90114         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
90115         work on Solaris either. Protect also second use of "autodetect_jp".
90117 2007-03-31  Bruno Haible  <bruno@clisp.org>
90119         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
90120         the function is not present.
90122 2007-03-31  Bruno Haible  <bruno@clisp.org>
90124         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
90125         the function is not present.
90127 2007-03-31  Bruno Haible  <bruno@clisp.org>
90129         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
90130         a bug in HP-UX iconv_open().
90132 2007-03-31  Bruno Haible  <bruno@clisp.org>
90134         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
90135         (Mathematics <math.h>): New section, add fpieee.
90136         (Input/output <stdio.h>): Add fseterr.
90137         (Mathematics <math.h>): New section, add printf-frexp.
90138         (Container data structures): Add sublist.
90139         (Core language properties): Add fpucw, inline.
90140         (Functions for greatest-width integer types <inttypes.h>): Add
90141         imaxabs, imaxdiv, inttypes.
90142         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
90143         isnanl-nolibm, ldexp.
90144         (Mathematics <math.h>): New section, add printf-frexpl.
90145         (Support for systems lacking POSIX:2001): Add fprintf-posix,
90146         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
90147         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
90148         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
90149         (Unicode string functions): Add unistr/u*-mbtoucr.
90150         (Java): Add javacomp-script, javaexec-script.
90151         (C#): Add csharpcomp-script, csharpexec-script.
90152         (Support for building libraries and executables): Add havelib,
90153         relocatable-*.
90154         (Support for maintaining and releasing projects): Renamed from
90155         'Support for maintaining and release projects'. Add announce-gen.
90157 2007-03-31  Bruno Haible  <bruno@clisp.org>
90159         * README: Talk primarily about git.
90160         (git and CVS): Renamed from CVS.
90161         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
90162         gnulib is available through git.
90163         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
90165 2007-03-30  Bruno Haible  <bruno@clisp.org>
90167         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
90168         * lib/poll_.h: Likewise.
90169         * lib/stat_.h: Likewise.
90170         * lib/sys_time_.h: Likewise.
90171         * lib/sysexit_.h: Likewise.
90172         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
90173         * lib/stdbool_.h: Likewise.
90174         * lib/byteswap_.h: Add double-inclusion guard.
90176 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
90178         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
90180 2007-03-30  Karl Berry  <karl@gnu.org>
90182         * config/srclist-update: double space after USA in the license
90183         substitution, since that's how it's usually (?) written.
90185 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
90187         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
90188         reported by Bruno Haible.
90190 2007-03-29  Bruno Haible  <bruno@clisp.org>
90192         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
90193         a bug in AIX iconv().
90195 2007-03-29  Bruno Haible  <bruno@clisp.org>
90197         * modules/ldexpl-tests: New file.
90198         * tests/test-ldexpl.c: New file.
90200 2007-03-29  Bruno Haible  <bruno@clisp.org>
90202         * lib/ldexpl.c: Include fpucw.h.
90203         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
90204         multiplication.
90205         * modules/ldexpl (Depends-on): Add fpucw.
90207 2007-03-29  Bruno Haible  <bruno@clisp.org>
90209         * modules/ldexpl: New file.
90210         * m4/ldexpl.m4: New file.
90211         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
90212         set.
90213         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
90214         REPLACE_LDEXPL.
90215         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
90216         REPLACE_LDEXPL.
90217         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
90218         gl_FUNC_LDEXPL_WORKS.
90219         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
90220         * modules/mathl (Files): Remove lib/ldexpl.c.
90221         (Depends-on): Add ldexpl.
90223 2007-03-29  Bruno Haible  <bruno@clisp.org>
90225         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
90227 2007-03-29  Bruno Haible  <bruno@clisp.org>
90229         * tests/test-striconveh.c (main): Don't assume that a direct conversion
90230         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
90231         and possibly also HP-UX.
90232         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
90233         work on AIX, IRIX, HP-UX, OSF/1.
90234         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
90235         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
90236         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
90237         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
90238         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
90239         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
90241 2007-03-29  Bruno Haible  <bruno@clisp.org>
90243         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
90245 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90247         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
90248         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
90250 2007-03-29  Eric Blake  <ebb9@byu.net>
90252         * lib/acl-internal.h: Remove redundant include.
90253         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
90254         Cygwin when a file is locked.
90256 2007-03-29  Bruno Haible  <bruno@clisp.org>
90258         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
90259         file.
90260         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
90262 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
90264         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
90265         try to remove a parent directory if the child couldn't be removed
90266         (except for the first rmdir, which could fail because the child
90267         doesn't exist).  Problem reported by Jeff Blaine in
90268         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
90270 2007-03-28  Bruno Haible  <bruno@clisp.org>
90272         * lib/striconveh.c (utf8conv_carefully): New function.
90273         (mem_cd_iconveh_internal): Invoke it.
90275 2007-03-28  Bruno Haible  <bruno@clisp.org>
90277         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
90278         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
90279         input.
90280         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
90281         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
90282         unistr/u8-uctomb.
90284 2007-03-28  Bruno Haible  <bruno@clisp.org>
90286         * modules/unistr/u8-mbtoucr: New file.
90287         * lib/unistr/u8-mbtoucr.c: New file.
90288         * modules/unistr/u16-mbtoucr: New file.
90289         * lib/unistr/u16-mbtoucr.c: New file.
90290         * modules/unistr/u16-mbtoucr: New file.
90291         * lib/unistr/u16-mbtoucr.c: New file.
90292         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
90294 2007-03-27  Simon Josefsson  <simon@josefsson.org>
90295             Bruno Haible  <bruno@clisp.org>
90297         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
90298         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
90299         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
90301         * m4/stdio_h.m4: Add stubs for vasprintf too.
90303         * modules/stdio: Support vasprintf in sed command.
90305         * modules/vasprintf: Depend on stdio for prototypes.  Remove
90306         vasprintf.h.  Add stdio module indicator.
90308         * lib/stdio_.h: Declare asprintf and vasprintf, based on
90309         vasprintf.h.
90311         * lib/vasprintf.h: File removed.
90313         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
90314         * lib/vasprintf.c: Ditto.
90315         * lib/xvasprintf.c: Ditto.
90316         * tests/test-vasprintf-posix.c: Ditto.
90317         * tests/test-vasprintf.c: Ditto.
90319 2007-03-27  Bruno Haible  <bruno@clisp.org>
90321         Make vasnprintf multithread-safe.
90322         * lib/vasnprintf.c (decimal_point_char): New function.
90323         (VASNPRINTF): Use it.
90324         Suggested by Simon Josefsson.
90326 2007-03-27  Eric Blake  <ebb9@byu.net>
90328         Support sub-second birthtime on cygwin.
90329         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
90330         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
90331         (get_stat_birthtime): Also work with st_birthtim.
90333 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
90335         * lib/stat-time.h (USE_BIRTHTIME): Remove.
90336         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
90337         (get_stat_birthtime_ns): Do not try to use "spare" fields.
90338         (get_stat_birthtime_ns): Simplify compile-time tests.
90339         (get_stat_birthtime): Change the API to look like
90340         get_stat_mtime etc., except return a negative tv_nsec on error.
90341         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
90342         Don't check for "spare" fields.
90343         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
90344         or for struct stat.st_birthtime, as these tests aren't used.
90345         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
90347 2007-03-27  Bruno Haible  <bruno@clisp.org>
90349         * lib/stat-time.h: Include <sys/stat.h>.
90351 2007-03-27  James Youngman  <jay@gnu.org>
90353         * lib/stat-time.h (get_stat_birthtime): New function for
90354           retrieving st_birthtime as provided by UFS2 (hence *BSD).
90355         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
90356           and its variants.
90357         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
90358         * modules/stat-time-test: New file.
90359         * tests/test-stat-time.c: New test, devised by Bruno Haible.
90361 2007-03-26  Bruno Haible  <bruno@clisp.org>
90363         Better support of signalling NaNs.
90364         * lib/atanl.c: Include isnanl.h.
90365         (atanl): Perform test for NaN at the beginning of the function and
90366         through a call to isnanl.
90367         * lib/cosl.c: Include isnanl.h.
90368         (cosl): Perform test for NaN at the beginning of the function and
90369         through a call to isnanl.
90370         * lib/ldexpl.c: Include isnanl.h.
90371         (ldexpl): Perform test for NaN through a call to isnanl.
90372         * lib/logl.c: Include isnanl.h.
90373         (logl): Perform test for NaN at the beginning of the function and
90374         through a call to isnanl.
90375         * lib/sinl.c: Include isnanl.h.
90376         (sinl): Perform test for NaN at the beginning of the function and
90377         through a call to isnanl.
90378         * lib/sqrtl.c: Include isnanl.h.
90379         (sqrtl): Perform test for NaN at the beginning of the function and
90380         through a call to isnanl.
90381         * lib/tanl.c: Include isnanl.h.
90382         (tanl): Perform test for NaN at the beginning of the function and
90383         through a call to isnanl.
90384         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
90385         * modules/mathl (Depends-on): Add isnanl.
90387 2007-03-26  Eric Blake  <ebb9@byu.net>
90389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
90390         regression in logic sense of previous patch.
90392 2007-03-26  Bruno Haible  <bruno@clisp.org>
90394         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
90395         unportable shell command "if ! ...".
90396         Reported by Ralf Wildenhues.
90398 2007-03-25  Bruno Haible  <bruno@clisp.org>
90400         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
90401         <sysexits.h> file, and only add EX_CONFIG.
90402         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
90403         absolute file name and whether it is sufficient. Substitute also
90404         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
90405         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
90406         ABSOLUTE_SYSEXITS_H into sysexits.h.
90408 2007-03-25  Bruno Haible  <bruno@clisp.org>
90410         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
90411         hints is NULL.
90413 2007-03-25  Bruno Haible  <bruno@clisp.org>
90415         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
90416         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
90418 2007-03-25  Bruno Haible  <bruno@clisp.org>
90420         * lib/vasnprintf.c: Include langinfo.h.
90421         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
90422         multithread-safe.
90423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
90424         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
90425         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
90426         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
90427         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
90428         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
90429         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
90430         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
90431         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
90432         Reported by Simon Josefsson.
90434 2007-03-25  Bruno Haible  <bruno@clisp.org>
90436         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
90437         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
90438         * modules/vasnprintf (Depends-on): Add stdint.
90440 2007-03-25  Bruno Haible  <bruno@clisp.org>
90442         * modules/fpieee: New file.
90443         * m4/fpieee.m4: New file.
90444         * modules/isnan-nolibm (Depends-on): Add fpieee.
90445         * modules/isnanl-nolibm (Depends-on): Add fpieee.
90446         * modules/isnanl (Depends-on): Add fpieee.
90448 2007-03-25  Bruno Haible  <bruno@clisp.org>
90450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
90452 2007-03-25  Bruno Haible  <bruno@clisp.org>
90454         Avoid test failures on IRIX 6.5.
90455         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
90456         (main): Use it.
90457         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
90458         macros.
90459         (main): Use them.
90461 2007-03-25  Bruno Haible  <bruno@clisp.org>
90463         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
90464         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
90465         exists but doesn't work.
90466         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
90467         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
90468         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
90469         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
90470         math.h.
90472 2007-03-25  Bruno Haible  <bruno@clisp.org>
90474         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
90475         returns inf. Needed on IRIX 6.5.
90477 2007-03-25  Bruno Haible  <bruno@clisp.org>
90479         * tests/test-frexpl.c: Include isnanl-nolibm.h.
90480         (main): Use isnanl instead of x != x idiom.
90481         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
90483         * tests/test-frexp.c: Include isnan.h.
90484         (main): Use isnan instead of x != x idiom.
90485         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
90487 2007-03-25  Bruno Haible  <bruno@clisp.org>
90489         * tests/test-frexp.c (NaN): New function/macro.
90490         (main): Use it instead of 0.0 / 0.0.
90491         * tests/test-isnan.c (NaN): New function/macro.
90492         (main): Use it instead of 0.0 / 0.0.
90493         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
90494         (test_function): Use it instead of 0.0 / 0.0.
90495         * tests/test-vasprintf-posix.c (NaN): New function/macro.
90496         (test_function): Use it instead of 0.0 / 0.0.
90497         * tests/test-snprintf-posix.h (NaN): New function/macro.
90498         (test_function): Use it instead of 0.0 / 0.0.
90499         * tests/test-sprintf-posix.h (NaN): New function/macro.
90500         (test_function): Use it instead of 0.0 / 0.0.
90501         * tests/test-fprintf-posix.h (NaN): New function/macro.
90502         (test_function): Use it instead of 0.0 / 0.0.
90503         * tests/test-printf-posix.h (NaN): New function/macro.
90504         (test_function): Use it instead of 0.0 / 0.0.
90506         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
90508 2007-03-25  Bruno Haible  <bruno@clisp.org>
90510         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
90512 2007-03-25  Bruno Haible  <bruno@clisp.org>
90514         * lib/regexec.c (merge_state_with_log): Make static.
90516 2007-03-25  Bruno Haible  <bruno@clisp.org>
90518         * lib/trigl.c (kernel_rem_pio2): Make static.
90520 2007-03-25  Bruno Haible  <bruno@clisp.org>
90522         * lib/sincosl.c (sincosl_table): Make static.
90524 2007-03-25  Bruno Haible  <bruno@clisp.org>
90526         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
90527         if the compiler does not support C99.
90529 2007-03-25  Bruno Haible  <bruno@clisp.org>
90531         * modules/time (Makefile.am): Ensure all rule action lines start with a
90532         tab.
90534 2007-03-24  Bruno Haible  <bruno@clisp.org>
90536         * modules/tsearch-tests: New file.
90537         * tests/test-tsearch.sh: New file.
90538         * tests/test-tsearch.c: New file, mostly copied from glibc.
90540         * modules/search-tests: New file.
90541         * tests/test-search.c: New file.
90543         * modules/search: New file.
90544         * lib/search_.h: New file, incorporating lib/tsearch.h.
90545         * m4/search_h.m4: New file.
90546         * lib/tsearch.h: Remove file.
90547         * lib/tsearch.c: Include search.h instead of tsearch.h.
90548         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
90549         HAVE_TSEARCH.
90550         * modules/tsearch (Files): Remove lib/tsearch.h.
90551         (Depends-on): Add search.
90552         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
90553         (Include): Change tsearch.h into search.h.
90555 2007-03-24  Bruno Haible  <bruno@clisp.org>
90557         * modules/fpucw: New file.
90558         * lib/fpucw.h: New file.
90559         * lib/frexp.c: Include fpucw.h.
90560         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90561         (FUNC): Use them.
90562         * lib/printf-frexp.c: Include fpucw.h.
90563         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
90564         (FUNC): Use them.
90565         * lib/vasnprintf.c: Include fpucw.h.
90566         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
90567         'long double' calculations.
90568         * tests/test-frexpl.c: Include fpucw.h.
90569         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90570         * tests/test-printf-frexpl.c: Include fpucw.h.
90571         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
90572         * modules/frexpl (Depends-on): Add fpucw.
90573         * modules/printf-frexpl (Depends-on): Likewise.
90574         * modules/fprintf-posix (Depends-on): Likewise.
90575         * modules/snprintf-posix (Depends-on): Likewise.
90576         * modules/sprintf-posix (Depends-on): Likewise.
90577         * modules/vasnprintf-posix (Depends-on): Likewise.
90578         * modules/vasprintf-posix (Depends-on): Likewise.
90579         * modules/vfprintf-posix (Depends-on): Likewise.
90580         * modules/vsnprintf-posix (Depends-on): Likewise.
90581         * modules/vsprintf-posix (Depends-on): Likewise.
90582         * modules/frexpl-tests (Depends-on): Likewise.
90583         * modules/printf-frexpl-tests (Depends-on): Likewise.
90585 2007-03-24  Bruno Haible  <bruno@clisp.org>
90587         * lib/float+.h: New file.
90588         * lib/isnan.c: Include float+.h.
90589         (SIZE): New macro.
90590         (FUNC): Compare only SIZE bytes of the value.
90591         * lib/vasnprintf.c: Include float+.h.
90592         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
90593         SIZEOF_LDBL or SIZEOF_DBL bytes.
90594         * modules/isnan-nolibm (Files): Add lib/float+.h.
90595         * modules/isnanl-nolibm (Files): Add lib/float+.h.
90596         * modules/isnanl (Files): Add lib/float+.h.
90597         * modules/vasnprintf (Files): Add lib/float+.h.
90599 2007-03-24  Bruno Haible  <bruno@clisp.org>
90601         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
90602         include isnanl-nolibm.h.
90604 2007-03-24  Bruno Haible  <bruno@clisp.org>
90606         * tests/test-read-file.c (main): Don't produce spurious output for
90607         expected situations. Make the test fail if it encountered unexpected
90608         results.
90610 2007-03-24  Bruno Haible  <bruno@clisp.org>
90612         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
90613         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
90615 2007-03-24  Bruno Haible  <bruno@clisp.org>
90617         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
90619 2007-03-24  Bruno Haible  <bruno@clisp.org>
90621         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
90622         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
90624         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
90625         * modules/utf8-ucs4: Turn into a symbolic link to module
90626         unistr/u8-mbtouc.
90628         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
90629         utf8-ucs4-unsafe.
90630         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
90631         unistr/u8-mbtouc-unsafe.
90633         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
90634         * modules/utf16-ucs4: Turn into a symbolic link to module
90635         unistr/u16-mbtouc.
90637         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
90638         utf16-ucs4-unsafe.
90639         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
90640         unistr/u16-mbtouc-unsafe.
90642         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
90643         * modules/ucs4-utf8: Turn into a symbolic link to module
90644         unistr/u8-ubtomb.
90646         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
90647         * modules/ucs4-utf16: Turn into a symbolic link to module
90648         unistr/u16-ubtomb.
90650 2007-03-24  Bruno Haible  <bruno@clisp.org>
90652         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
90653         Enable the function only if HAVE_INLINE.
90654         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
90655         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90656         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
90657         Enable the function only if HAVE_INLINE.
90658         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
90659         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
90660         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
90661         Enable the function only if HAVE_INLINE.
90662         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
90663         Enable the function only if HAVE_INLINE.
90664         * modules/utf8-ucs4: Update.
90665         * modules/utf8-ucs4-unsafe: Update.
90666         * modules/utf16-ucs4: Update.
90667         * modules/utf16-ucs4-unsafe: Update.
90668         * modules/ucs4-utf8: Update.
90669         * modules/ucs4-utf16: Update.
90671 2007-03-24  Bruno Haible  <bruno@clisp.org>
90673         * lib/utf8-ucs4.h: Remove file.
90674         * lib/utf8-ucs4-unsafe.h: Remove file.
90675         * lib/utf16-ucs4.h: Remove file.
90676         * lib/utf16-ucs4-unsafe.h: Remove file.
90677         * lib/ucs4-utf8.h: Remove file.
90678         * lib/ucs4-utf16.h: Remove file.
90679         * lib/unistr.h: Include their previous contents.
90680         * m4/utf-ucs4.m4: Remove file.
90681         * m4/ucs4-utf.m4: Remove file.
90682         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
90683         (Depends-on): Add unistr/base.
90684         (configure.ac): Remove gl_UTF_UCS4.
90685         (Makefile.am): Update.
90686         (Include): Change to unistr.h.
90687         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
90688         (Depends-on): Add unistr/base.
90689         (configure.ac): Remove gl_UTF_UCS4.
90690         (Makefile.am): Update.
90691         (Include): Change to unistr.h.
90692         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
90693         (Depends-on): Add unistr/base.
90694         (configure.ac): Remove gl_UTF_UCS4.
90695         (Makefile.am): Update.
90696         (Include): Change to unistr.h.
90697         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
90698         (Depends-on): Add unistr/base.
90699         (configure.ac): Remove gl_UTF_UCS4.
90700         (Makefile.am): Update.
90701         (Include): Change to unistr.h.
90702         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
90703         (Depends-on): Add unistr/base.
90704         (configure.ac): Remove gl_UCS4_UTF.
90705         (Makefile.am): Update.
90706         (Include): Change to unistr.h.
90707         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
90708         (Depends-on): Add unistr/base.
90709         (configure.ac): Remove gl_UCS4_UTF.
90710         (Makefile.am): Update.
90711         (Include): Change to unistr.h.
90712         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
90713         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
90714         utf8-ucs4-unsafe.h.
90715         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
90716         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
90717         utf16-ucs4-unsafe.h.
90718         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
90719         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
90720         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
90721         * lib/unistr/u8-strchr.c: Likewise.
90722         * lib/unistr/u8-strrchr.c: Likewise.
90723         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
90724         * lib/unistr/u16-strchr.c: Likewise.
90725         * lib/unistr/u16-strrchr.c: Likewise.
90726         * lib/striconveh.c: Update.
90727         * lib/linebreak.c: Update.
90729 2007-03-24  Bruno Haible  <bruno@clisp.org>
90731         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
90732         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
90734 2007-03-22  Bruno Haible  <bruno@clisp.org>
90736         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
90738 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
90740         * MODULES.html.sh (File system functions): New module write-any-file.
90741         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
90742         * m4/write-any-file.m4: New files.
90744 2007-03-23  Eric Blake  <ebb9@byu.net>
90746         * gnulib-tool: Rearrange space-tab sequences, since some editors
90747         like to eat them.
90749 2007-03-23  Eric Blake  <ebb9@byu.net>
90751         * lib/version-etc.c (version_etc_va): Update license wording to
90752         be more concise.  Recommended by Richard Stallman.
90754 2007-03-22  Bruno Haible  <bruno@clisp.org>
90756         * lib/poll.c (MSG_PEEK): New fallback definition.
90758 2007-03-22  Bruno Haible  <bruno@clisp.org>
90760         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
90761         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
90762         (main): Update.
90763         Fixes a compilation error on BeOS.
90765 2007-03-22  Bruno Haible  <bruno@clisp.org>
90767         * modules/frexpl-tests: New file.
90768         * tests/test-frexpl.c: New file.
90770         * modules/frexpl: New file.
90771         * m4/frexpl.m4: New file.
90772         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
90773         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
90774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
90775         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
90776         (Depends-on): Add frexpl. Remove isnanl-nolibm.
90777         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
90779 2007-03-22  Bruno Haible  <bruno@clisp.org>
90781         * lib/frexpl.c: Share code with lib/frexp.c.
90782         * modules/mathl (Files): Add lib/frexp.c.
90783         (Depends-on): Add isnanl-nolibm.
90785 2007-03-22  Bruno Haible  <bruno@clisp.org>
90787         * modules/printf-frexp (Files): Add m4/frexp.m4.
90788         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
90789         only if the found frexp function actually works.
90791 2007-03-22  Bruno Haible  <bruno@clisp.org>
90793         * lib/frexp.c: Remove older implementation that uses divisions.
90795 2007-03-21  Bruno Haible  <bruno@clisp.org>
90797         * modules/frexp-tests: New file.
90798         * tests/test-frexp.c: New file.
90800         * modules/frexp: New file.
90801         * lib/frexp.c: New file.
90802         * m4/frexp.m4: New file.
90803         * lib/math_.h (frexp): New declaration.
90804         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
90805         REPLACE_FREXP.
90806         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
90808 2007-03-21  Bruno Haible  <bruno@clisp.org>
90810         * modules/isnanl-tests: New file.
90811         * tests/test-isnanl.c: New file.
90813         * modules/isnanl: New file.
90814         * lib/isnanl.h: New file.
90815         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
90816         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
90817         gl_FUNC_ISNANL_WORKS.
90818         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
90819         New macros.
90821 2007-03-21  Bruno Haible  <bruno@clisp.org>
90823         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
90824         lib/isnanl.h.
90825         (Include): Update.
90826         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
90827         * lib/vasnprintf.c: Update.
90828         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
90829         tests/test-isnanl.h, remove tests/test-isnanl.c.
90830         (Makefile.am): Update.
90831         * tests/test-isnanl-nolibm.c: New file.
90832         * tests/test-isnanl.h: New file.
90833         * tests/test-isnanl.c: Remove file.
90835 2007-03-21  Jim Meyering  <jim@meyering.net>
90837         When trying to open ".", treat ESTALE like EACCES.
90838         * lib/savewd.c (savewd_save): Resort to forking not just upon
90839         failure with EACCES, but also when errno is ESTALE.
90841 2007-03-20  Bruno Haible  <bruno@clisp.org>
90843         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
90844         Needed on AIX 5.1. Reported by Matthew Woehlke.
90846 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90848         Suggestions by Bruno Haible:
90849         * lib/acl-internal.h: Include "gettext.h" rather than rolling
90850         our own.
90851         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
90852         * modules/acl (Depends-on): Add gettext.
90854 2007-03-19  Bruno Haible  <bruno@clisp.org>
90856         * modules/iconvme: Remove file.
90857         * lib/iconvme.h: Remove file.
90858         * lib/iconvme.c: Remove file.
90859         * m4/iconvme.m4: Remove file.
90861 2007-03-19  Bruno Haible  <bruno@clisp.org>
90863         * doc/relocatable-maint.texi: Break long shell script line.
90864         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90866 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90868         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
90869         handle file_has_acl.
90870         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
90871         * lib/acl.c: Move header inclusions and related macro defns into
90872         lib/acl-internal.h.
90873         (S_ISLNK): Remove defn, since that's now done for us.
90874         (file_has_acl): Move to lib/file-has-acl.c.
90875         Call acl_trivial if available.  This is the crucial part of the fix.
90876         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
90877         shared within the library.  Rewrite a bit, partly to make it compatible
90878         with the GNU coding style.
90879         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
90880         Remove unnecessary double-quotes.
90881         Don't test for acl_to_text; the build will catch that.
90882         Replace acl_entries if it doesn't exist and it is needed.
90883         Check for -lsec and acl_trivial (as used on Solaris 10).
90884         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
90885         lib/file-has-acl.c.
90886         (Depends-on): Add sys_stat, for S_ISLNK.
90888 2007-03-19  Ben Pfaff  <blp@gnu.org>
90890         * doc/gnulib.texi: Fix typos.
90891         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
90893 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
90895         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
90896         If size is zero here, buf must be zero.
90898 2007-03-19  Simon Josefsson  <simon@josefsson.org>
90900         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
90901         <bruno@clisp.org>.
90903 2007-03-18  Bruno Haible  <bruno@clisp.org>
90905         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
90906         Suggested by Eric Blake.
90908 2007-03-18  Ben Pfaff  <blp@gnu.org>
90910         * doc/relocatable.texi: Recommend using as prefix a directory
90911         that does not exist and will never be created.  Based on
90912         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
90913         and others.
90915 2007-03-17  Bruno Haible  <bruno@clisp.org>
90917         * lib/fchownat.c: Include lchown.h.
90919 2007-03-17  Bruno Haible  <bruno@clisp.org>
90921         Fix endless loop when the given allocated size was > INT_MAX.
90922         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
90923         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
90924         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
90925         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
90926         * lib/sprintf.c (sprintf): Likewise.
90928 2007-03-17  Bruno Haible  <bruno@clisp.org>
90930         * tests/test-argp-2.sh (func_compare): Output a context diff.
90932 2007-03-17  Bruno Haible  <bruno@clisp.org>
90934         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
90935         locale's decimal-point character.
90937 2007-03-17  Bruno Haible  <bruno@clisp.org>
90939         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
90940         before comparing it. Needed because on some platforms (e.g. x86) a
90941         'long double' occupies less bytes than sizeof (long double).
90943 2007-03-17  Bruno Haible  <bruno@clisp.org>
90945         * tests/test-crc.c (main): Make printf statements 64-bit clean.
90946         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
90947         * tests/test-getaddrinfo.c (simple): Likewise.
90948         * tests/test-read-file.c (main): Likewise.
90950 2007-03-17  Bruno Haible  <bruno@clisp.org>
90952         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
90954 2007-03-17  Bruno Haible  <bruno@clisp.org>
90956         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
90957         unused variable.
90959 2007-03-17  Bruno Haible  <bruno@clisp.org>
90961         * tests/test-c-strcasecmp.c: Include c-strcase.h.
90962         * tests/test-c-strncasecmp.c: Likewise.
90964 2007-03-17  Bruno Haible  <bruno@clisp.org>
90966         * modules/stdlib (Depends-on): Add unistd.
90967         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
90968         Needed for MacOS X 10.3.
90970 2007-03-17  Bruno Haible  <bruno@clisp.org>
90972         * lib/unistr/u-strdup.h: Include <stdlib.h>.
90974 2007-03-17  Bruno Haible  <bruno@clisp.org>
90976         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
90978 2007-03-17  Bruno Haible  <bruno@clisp.org>
90980         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
90981         to reflect files copied from gnulib (with or without modifications).
90982         Suggested by Jim Meyering.
90984 2007-03-17  Eric Blake  <ebb9@byu.net>
90986         * NEWS: Document stdlib change from 2007-02-18.
90988 2007-03-17  Jim Meyering  <jim@meyering.net>
90990         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
90991         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
90992         someone uses a name containing shell meta-characters.
90993         Reported by Alfred M. Szmidt.
90995         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
90997 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
90999         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
91000         and copy gettext configuration files only if configure.ac contains
91001         a use of AM_GNU_GETTEXT_VERSION.
91003 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
91005         * build-aux/bootstrap (gnulib_name): New variable.
91006         (gnulib_tool_options): Use it.
91008 2007-03-13  Simon Josefsson  <simon@josefsson.org>
91010         * tests/test-des.c: Use new namespace.
91012 2007-03-15  Bruno Haible  <bruno@clisp.org>
91014         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
91015         Reported by James Youngman <jay@gnu.org>.
91017 2007-03-15  Bruno Haible  <bruno@clisp.org>
91019         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
91020         declared prototype. Needed with cc on OSF/1 5.1.
91022 2007-03-15  Bruno Haible  <bruno@clisp.org>
91024         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
91025         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
91026         (struct gl_list_implementation): Add dispose_fn argument to the
91027         'create_empty', 'create' methods.
91028         (struct gl_list_impl_base): Add field 'dispose_fn'.
91029         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
91030         argument.
91031         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
91032         dispose_fn argument.
91033         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
91034         dispose_fn on the dropped values.
91035         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
91036         dispose_fn argument.
91037         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
91038         dropped values.
91039         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
91040         (gl_tree_remove_node): Call dispose_fn on the dropped value.
91041         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
91042         (gl_tree_remove_node): Call dispose_fn on the dropped value.
91043         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
91044         argument.
91045         (gl_tree_list_free): Call dispose_fn on the dropped values.
91046         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
91047         the dropped values.
91048         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
91049         Add dispose_fn argument.
91050         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
91051         Call dispose_fn on the dropped values.
91052         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
91053         Add dispose_fn argument.
91054         (gl_sublist_create): Initialize the 'dispose_fn' field.
91055         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
91056         * tests/test-array_list.c (main): Update.
91057         * tests/test-carray_list.c (main): Update.
91058         * tests/test-avltree_list.c (main): Update.
91059         * tests/test-rbtree_list.c (main): Update.
91060         * tests/test-avltreehash_list.c (main): Update.
91061         * tests/test-rbtreehash_list.c (main): Update.
91062         * tests/test-linked_list.c (main): Update.
91063         * tests/test-linkedhash_list.c (main): Update.
91064         * tests/test-array_oset.c (main): Update.
91066 2007-03-15  Bruno Haible  <bruno@clisp.org>
91068         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
91069         (gl_oset_create_empty): Add dispose_fn argument.
91070         (struct gl_oset_implementation): Add dispose_fn argument to
91071         'create_empty' method.
91072         (struct gl_oset_impl_base): Add dispose_fn field.
91073         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
91074         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
91075         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
91076         values.
91077         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
91078         (gl_tree_oset_free): Call dispose_fn on the dropped values.
91079         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
91080         dropped value.
91081         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
91082         dropped value.
91083         * tests/test-array_oset.c (main): Update.
91084         * tests/test-avltree_oset.c (main): Update.
91085         * tests/test-rbtree_oset.c (main): Update.
91086         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
91088 2007-03-13  Bruno Haible  <bruno@clisp.org>
91090         * tests/test-stdbool.c (i): Update after last patch.
91092 2007-03-12  Bruno Haible  <bruno@clisp.org>
91094         * lib/quotearg.c: Include <wctype.h> early, before the definition of
91095         the iswprint macro. Needed on Solaris 2.5.1.
91097 2007-03-12  Bruno Haible  <bruno@clisp.org>
91099         * tests/test-printf-frexp.c (main): Declare x as volatile.
91101 2007-03-12  Simon Josefsson  <simon@josefsson.org>
91103         * doc/gnulib.texi (Build robot for gnulib): New section.
91105 2007-03-12  Jim Meyering  <jim@meyering.net>
91107         * build-aux/bootstrap: New file.
91108         * build-aux/bootstrap.conf: New file, from coreutils.
91110 2007-03-11  Bruno Haible  <bruno@clisp.org>
91112         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
91114 2007-03-12  Simon Josefsson  <simon@josefsson.org>
91116         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
91117         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
91118         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
91120 2007-03-11  Bruno Haible  <bruno@clisp.org>
91122         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
91123         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
91125 2007-03-11  Bruno Haible  <bruno@clisp.org>
91127         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
91128         formula. Needed for SunPRO C 5.0.
91130 2007-03-11  Bruno Haible  <bruno@clisp.org>
91132         * modules/long-options (Depends-on): Add getopt.
91134 2007-03-11  Bruno Haible  <bruno@clisp.org>
91136         * modules/modechange (Depends-on): Add stdbool.
91138 2007-03-11  Bruno Haible  <bruno@clisp.org>
91140         * modules/i-ring (Depends-on): Add stdbool.
91142 2007-03-11  Bruno Haible  <bruno@clisp.org>
91144         * modules/gc-des (Depends-on): Add stdbool.
91146 2007-03-11  Bruno Haible  <bruno@clisp.org>
91148         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
91150 2007-03-11  Bruno Haible  <bruno@clisp.org>
91152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
91154 2007-03-11  Bruno Haible  <bruno@clisp.org>
91156         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
91158 2007-03-11  Bruno Haible  <bruno@clisp.org>
91160         * lib/vasnprintf.c (sprintf): Undefine.
91162 2007-03-11  Bruno Haible  <bruno@clisp.org>
91164         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
91165         initializers in SunPRO C and Compaq C compilers.
91167 2007-03-11  Bruno Haible  <bruno@clisp.org>
91169         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
91170         decrementing code ANSI C compliant.
91172 2007-03-11  Bruno Haible  <bruno@clisp.org>
91174         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
91175         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
91177 2007-03-11  Bruno Haible  <bruno@clisp.org>
91179         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
91180         <stdbool.h> substitute doesn't pass.
91182 2007-03-11  Bruno Haible  <bruno@clisp.org>
91184         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
91186 2007-03-11  Bruno Haible  <bruno@clisp.org>
91188         * gnulib-tool (func_create_megatestdir): Create also an autobuild
91189         script, for submission to autobuild.josefsson.org.
91191 2007-03-10  Bruno Haible  <bruno@clisp.org>
91193         * modules/canonicalize-lgpl-tests: New file.
91194         * tests/test-canonicalize-lgpl.sh: New file.
91195         * tests/test-canonicalize-lgpl.c: New file.
91197         * modules/c-strcase-tests: New file.
91198         * tests/test-c-strcase.sh: New file.
91199         * tests/test-c-strcasecmp.c: New file.
91200         * tests/test-c-strncasecmp.c: New file.
91202         * modules/atexit-tests: New file.
91203         * tests/test-atexit.sh: New file.
91204         * tests/test-atexit.c: New file.
91206 2007-03-10  Bruno Haible  <bruno@clisp.org>
91208         * tests/test-binary-io.sh: Use temporary filenames that are not so
91209         likely to clash with those of other tests (in a parallel make).
91210         * tests/test-binary-io.c: Likewise.
91212 2007-03-10  Bruno Haible  <bruno@clisp.org>
91214         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
91215         fallback; use #error instead.
91216         Suggested by Simon Josefsson.
91218 2007-03-10  Bruno Haible  <bruno@clisp.org>
91220         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
91221         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
91222         first and the last.
91224 2007-03-10  Bruno Haible  <bruno@clisp.org>
91226         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
91228 2007-03-10  Bruno Haible  <bruno@clisp.org>
91230         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
91231         "make distcheck".
91232         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
91233         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
91234         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
91236 2007-03-10  Bruno Haible  <bruno@clisp.org>
91238         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
91239         variable.
91240         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
91241         variable.
91243 2007-03-09  Eric Blake  <ebb9@byu.net>
91244         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
91246         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
91247         types are not being provided by gnulib.
91248         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
91249         types are supported.
91251 2007-03-10  Bruno Haible  <bruno@clisp.org>
91253         * lib/stdio_.h (__attribute__): New macro.
91254         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
91255         vsprintf): Specify __attribute__ __format__ for GCC.
91256         Suggested by Eric Blake.
91258 2007-03-09  Bruno Haible  <bruno@clisp.org>
91260         * modules/printf-posix-tests: New file.
91261         * tests/test-printf-posix.sh: New file.
91262         * tests/test-printf-posix.c: New file.
91264         * modules/printf-posix: New file.
91265         * lib/printf.c: New file.
91266         * m4/printf-posix-rpl.m4: New file.
91267         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
91268         REPLACE_PRINTF.
91269         * lib/stdio_.h (printf): New declaration.
91270         (format, __format__, ____printf____, ____scanf____, ____strftime____,
91271         ____strfmon____): New macros.
91272         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
91273         REPLACE_PRINTF.
91275 2007-03-09  Bruno Haible  <bruno@clisp.org>
91277         * tests/test-vasnprintf-posix2.sh: New file.
91278         * tests/test-vasnprintf-posix2.c: New file.
91279         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
91280         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
91281         (Makefile.am): Activate test-vasnprintf-posix2.sh.
91283         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
91284         a locale dependent decimal point, rather than always '.'.
91286 2007-03-09  Eric Blake  <ebb9@byu.net>
91288         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
91289         spite of platforms like Tandem/NSK that define it to -1.
91291 2007-03-08  Bruno Haible  <bruno@clisp.org>
91293         * modules/vprintf-posix-tests: New file.
91294         * tests/test-vprintf-posix.sh: New file.
91295         * tests/test-vprintf-posix.c: New file.
91296         * tests/test-printf-posix.h: New file.
91298         * modules/vprintf-posix: New file.
91299         * lib/vprintf.c: New file.
91300         * m4/vprintf-posix.m4: New file.
91301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
91302         REPLACE_VPRINTF.
91303         * lib/stdio_.h (vprintf): New declaration.
91304         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
91305         REPLACE_VPRINTF.
91307 2007-03-08  Bruno Haible  <bruno@clisp.org>
91309         * modules/fprintf-posix-tests: New file.
91310         * tests/test-fprintf-posix.sh: New file.
91311         * tests/test-fprintf-posix.c: New file.
91313         * modules/fprintf-posix: New file.
91314         * lib/fprintf.c: New file.
91315         * m4/fprintf-posix.m4: New file.
91316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
91317         REPLACE_FPRINTF.
91318         * lib/stdio_.h (fprintf): New declaration.
91319         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
91320         REPLACE_FPRINTF.
91322 2007-03-08  Bruno Haible  <bruno@clisp.org>
91324         * modules/vfprintf-posix-tests: New file.
91325         * tests/test-vfprintf-posix.sh: New file.
91326         * tests/test-vfprintf-posix.c: New file.
91327         * tests/test-fprintf-posix.h: New file.
91328         * tests/test-fprintf-posix.out: New file.
91330         * modules/vfprintf-posix: New file.
91331         * lib/vfprintf.c: New file.
91332         * m4/vfprintf-posix.m4: New file.
91333         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
91334         REPLACE_VFPRINTF.
91335         * lib/stdio_.h (vfprintf): New declaration.
91336         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
91337         REPLACE_VFPRINTF.
91339 2007-03-08  Bruno Haible  <bruno@clisp.org>
91341         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
91343 2007-03-08  Bruno Haible  <bruno@clisp.org>
91345         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
91346         instead of 'expr' invocations.
91347         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
91348         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
91349         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
91350         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
91351         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
91352         Suggested by Paul Eggert.
91354 2007-03-08  Bruno Haible  <bruno@clisp.org>
91356         * modules/fseterr-tests: New file.
91357         * tests/test-fseterr.c: New file.
91359         * modules/fseterr: New file.
91360         * lib/fseterr.h: New file.
91361         * lib/fseterr.c: New file.
91363 2007-03-08  Bruno Haible  <bruno@clisp.org>
91365         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
91366         * lib/getopt_.h: Likewise.
91367         * lib/mbswidth.h: Likewise.
91368         * lib/setenv.h: Likewise.
91369         * lib/vasnprintf.h: Likewise.
91370         * lib/vasprintf.h: Likewise.
91371         * lib/verror.h: Likewise.
91372         * lib/xsetenv.h: Likewise.
91373         * lib/xvasprintf.h: Likewise.
91375 2007-03-08  Jim Meyering  <jim@meyering.net>
91377         * users.txt: Add parted.
91379         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
91381 2007-03-07  Bruno Haible  <bruno@clisp.org>
91383         * m4/printf.m4: Make the shell script snippets copy&pastable.
91385 2007-03-02  Bruno Haible  <bruno@clisp.org>
91387         * lib/netinet_in_.h: New file.
91388         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
91389         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
91390         * modules/netinet_in (Files): Add lib/netinet_in_.h.
91391         (Depends-on): Add absolute-header.
91392         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
91393         into netinet/in.h.
91395 2007-03-03  Bruno Haible  <bruno@clisp.org>
91397         * lib/sys_select_.h: New file.
91398         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
91399         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
91400         * modules/sys_select (Files): Add lib/sys_select_.h.
91401         (Depends-on): Add absolute-header.
91402         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
91403         into sys/select.h.
91405 2007-03-02  Bruno Haible  <bruno@clisp.org>
91407         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
91408         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
91409         values.
91410         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
91411         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
91412         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
91413         * modules/sys_socket (Depends-on): Add absolute-header.
91414         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
91415         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
91416         (Include): Remove requirement of inclusion of <sys/types.h>.
91418 2007-03-02  Bruno Haible  <bruno@clisp.org>
91420         * lib/byteswap_.h (bswap_32): Fix formula.
91422 2007-03-06  Bruno Haible  <bruno@clisp.org>
91424         * modules/sprintf-posix-tests: New file.
91425         * tests/test-sprintf-posix.c: New file.
91427         * modules/sprintf-posix: New file.
91428         * lib/sprintf.c: New file.
91429         * m4/sprintf-posix.m4: New file.
91430         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
91431         REPLACE_SPRINTF.
91432         * lib/stdio_.h (sprintf): New declaration.
91433         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
91434         REPLACE_SPRINTF.
91436 2007-03-06  Bruno Haible  <bruno@clisp.org>
91438         * modules/vsprintf-posix-tests: New file.
91439         * tests/test-vsprintf-posix.c: New file.
91440         * tests/test-sprintf-posix.h: New file.
91442         * modules/vsprintf-posix: New file.
91443         * lib/vsprintf.c: New file.
91444         * m4/vsprintf-posix.m4: New file.
91445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
91446         REPLACE_VSPRINTF.
91447         * lib/stdio_.h (vsprintf): New declaration.
91448         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
91449         REPLACE_VSPRINTF.
91451 2007-03-06  Bruno Haible  <bruno@clisp.org>
91453         * modules/vsnprintf (Depend-on): Remove minmax.
91455 2007-03-06  Bruno Haible  <bruno@clisp.org>
91457         * modules/snprintf-posix-tests: New file.
91458         * tests/test-snprintf-posix.c: New file.
91460         * modules/snprintf-posix: New file.
91461         * m4/snprintf-posix.m4: New file.
91462         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
91463         gl_FUNC_SNPRINTF.
91464         (gl_FUNC_SNPRINTF): Invoke it.
91465         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
91466         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
91467         is set.
91468         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
91470 2007-03-06  Bruno Haible  <bruno@clisp.org>
91472         * modules/vsnprintf-posix-tests: New file.
91473         * tests/test-vsnprintf-posix.c: New file.
91474         * tests/test-snprintf-posix.h: New file.
91476         * modules/vsnprintf-posix: New file.
91477         * m4/vsnprintf-posix.m4: New file.
91478         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
91479         gl_FUNC_VSNPRINTF.
91480         (gl_FUNC_VSNPRINTF): Invoke it.
91481         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
91482         * lib/stdio_.h (vsnprintf): Define as a replacement if
91483         REPLACE_VSNPRINTF is set.
91484         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
91486 2007-03-06  Bruno Haible  <bruno@clisp.org>
91488         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
91489         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
91491 2007-03-06  Bruno Haible  <bruno@clisp.org>
91493         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
91494         (asinl): Declare also if HAVE_DECL_ASINL is set.
91495         (atanl): Declare also if HAVE_DECL_ATANL is set.
91496         (ceill): Declare also if HAVE_DECL_CEILL is set.
91497         (cosl): Declare also if HAVE_DECL_COSL is set.
91498         (expl): Declare also if HAVE_DECL_EXPL is set.
91499         (floorl): Declare also if HAVE_DECL_FLOORL is set.
91500         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
91501         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
91502         (logl): Declare also if HAVE_DECL_LOGL is set.
91503         (sinl): Declare also if HAVE_DECL_SINL is set.
91504         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
91505         (tanl): Declare also if HAVE_DECL_TANL is set.
91506         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
91507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
91508         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
91509         declaration of frexpl, ldexpl.
91510         * modules/printf-frexpl (Depends-on): Add math.
91511         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
91513 2007-03-05  Bruno Haible  <bruno@clisp.org>
91515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
91516         frexpl and ldexpl are declared.
91517         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
91519 2007-03-05  Bruno Haible  <bruno@clisp.org>
91521         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
91522         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
91524 2007-03-05  Bruno Haible  <bruno@clisp.org>
91526         * lib/stdio_.h: Include <stddef.h>.
91528 2007-03-05  Bruno Haible  <bruno@clisp.org>
91530         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
91532 2007-03-05  Bruno Haible  <bruno@clisp.org>
91534         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
91535         NetBSD 4, from Ralf Wildenhues.
91537 2007-03-04  Bruno Haible  <bruno@clisp.org>
91539         * lib/vasprintf.h: Update #if logic for the case when the functions
91540         exist but are overridden.
91542 2007-03-04  Bruno Haible  <bruno@clisp.org>
91544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
91545         implementations: glibc-2.4 and MacOS X 10.3.
91546         * tests/test-vasnprintf-posix.c (test_function): Test also the case
91547         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
91548         * tests/test-vasprintf-posix.c (test_function): Likewise.
91550 2007-03-04  Bruno Haible  <bruno@clisp.org>
91552         * modules/vasprintf-posix-tests: New file.
91553         * tests/test-vasprintf-posix.c: New file.
91555         * modules/vasprintf-posix: New file.
91556         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
91557         defined.
91558         * m4/vasprintf-posix.m4: New file.
91559         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
91560         gl_FUNC_VASPRINTF.
91561         (gl_FUNC_VASPRINTF): Invoke it.
91562         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
91563         here.
91564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
91566 2007-03-04  Bruno Haible  <bruno@clisp.org>
91568         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
91569         REPLACE_GETTIMEOFDAY.
91570         * modules/sys_time (Makefile.am): Likewise.
91571         * m4/sys_time_h.m4: Likewise.
91572         * m4/gettimeofday.m4: Likewise.
91574 2007-03-04  Bruno Haible  <bruno@clisp.org>
91576         * modules/vasnprintf-posix-tests: New file.
91577         * tests/test-vasnprintf-posix.c: New file.
91579         * modules/vasnprintf-posix: New file.
91580         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
91581         printf-frexpl.h.
91582         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
91583         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
91584         REPLACE_VASNPRINTF is defined.
91585         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
91586         gl_FUNC_VASNPRINTF.
91587         (gl_FUNC_VASNPRINTF): Invoke it.
91588         * m4/vasnprintf-posix.m4: New file.
91589         * m4/printf.m4: New file.
91591 2007-03-04  Bruno Haible  <bruno@clisp.org>
91593         Compile progreloc.c only if --enable-relocatable is specified.
91594         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
91595         if --enable-relocatable was specified.
91596         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
91597         lib_SOURCES.
91599 2007-03-04  Jim Meyering  <jim@meyering.net>
91601         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
91602         Use it consistently, rather than enumerating errno constants.
91604 2007-03-04  Bruno Haible  <bruno@clisp.org>
91606         * modules/xvasprintf-tests: New file.
91607         * tests/test-xvasprintf.c: New file.
91609         * modules/vasprintf-tests: New file.
91610         * tests/test-vasprintf.c: New file.
91612         * modules/vasnprintf-tests: New file.
91613         * tests/test-vasnprintf.c: New file.
91615         * modules/vsnprintf-tests: New file.
91616         * tests/test-vsnprintf.c: New file.
91618         * modules/snprintf-tests: New file.
91619         * tests/test-snprintf.c: New file.
91621 2007-03-04  Bruno Haible  <bruno@clisp.org>
91623         Compile relocatable.c only if --enable-relocatable is specified.
91624         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
91625         gl_RELOCATABLE_LIBRARY.
91626         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
91627         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
91628         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
91629         gl_RELOCATABLE_LIBRARY.
91630         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
91631         (Makefile.am): Remove lib_SOURCES.
91632         * modules/relocatable-lib-lgpl (configure.ac): Invoke
91633         gl_RELOCATABLE_LIBRARY.
91634         (Makefile.am): Remove lib_SOURCES.
91635         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
91636         always.
91637         * modules/relocatable-prog-wrapper (configure.ac): Invoke
91638         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
91640 2007-03-04  Bruno Haible  <bruno@clisp.org>
91642         * modules/argmatch-tests: New file.
91643         * tests/test-argmatch.c: New file.
91645         * tests/test-allocsa.c (main): Halve the number of loop runs.
91647         * modules/alloca-opt-tests: New file.
91648         * tests/test-alloca-opt.c: New file.
91650 2007-03-04  Jim Meyering  <jim@meyering.net>
91652         Work around difference between Linux ACLs and Solaris 10 ZFS.
91653         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
91654         for EINVAL.
91656 2007-03-03  Bruno Haible  <bruno@clisp.org>
91658         * modules/relocatable-prog (Depends-on): Add back progreloc's
91659         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
91661 2007-03-03  Bruno Haible  <bruno@clisp.org>
91663         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
91664         * modules/relocatable-lib: New file.
91666 2007-03-03  Bruno Haible  <bruno@clisp.org>
91668         * modules/relocatable-prog: Renamed from modules/relocatable.
91669         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
91671 2007-03-03  Bruno Haible  <bruno@clisp.org>
91673         * modules/relocatable-script (Files): Add doc/relocatable.texi,
91674         m4/relocatable-lib.m4.
91675         (Depends-on): Remove 'relocatable'.
91676         (configure.ac): Add gl_RELOCATABLE_NOP.
91678 2007-03-03  Bruno Haible  <bruno@clisp.org>
91680         * modules/relocatable-prog-wrapper: New file.
91681         * modules/relocatable (Depends-on): Add it. Remove all other
91682         dependencies except progname.
91683         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
91685         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
91686         (gl_FUNC_STRERROR): Nop.
91687         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
91689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
91690         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
91692         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
91693         (gl_FUNC_READLINK): Update.
91695         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
91697 2007-03-03  Bruno Haible  <bruno@clisp.org>
91699         * lib/xreadlink.c: Include <unistd.h> unconditionally.
91700         * modules/xreadlink (Depends-on): Add unistd.
91701         * modules/xreadlink-with-size (Depends-on): Likewise.
91703 2007-03-03  Bruno Haible  <bruno@clisp.org>
91705         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
91706         extracted from gt_FUNC_SETENV.
91707         (gt_FUNC_SETENV): Remove macro.
91708         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
91709         remove gt_FUNC_SETENV.
91711 2007-03-03  Bruno Haible  <bruno@clisp.org>
91713         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
91714         ENABLE_RELOCATABLE here.
91715         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
91717 2007-03-03  Bruno Haible  <bruno@clisp.org>
91719         * modules/rbtreehash-list-tests (Depends-on): Add progname.
91720         * tests/test-rbtreehash_list.c: Include progname.h.
91721         (main): Call set_program_name.
91723         * modules/rbtree-oset-tests (Depends-on): Add progname.
91724         * tests/test-rbtree_oset.c: Include progname.h.
91725         (main): Call set_program_name.
91727         * modules/rbtree-list-tests (Depends-on): Add progname.
91728         * tests/test-rbtree_list.c: Include progname.h.
91729         (main): Call set_program_name.
91731         * modules/linked-list-tests (Depends-on): Add progname.
91732         * tests/test-linked_list.c: Include progname.h.
91733         (main): Call set_program_name.
91735 2007-03-03  Bruno Haible  <bruno@clisp.org>
91737         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
91738         All uses of __restrict changed to _Restrict_.
91739         * lib/glob_.h (__restrict): Remove macro.
91741 2007-03-02  Bruno Haible  <bruno@clisp.org>
91743         * modules/gettext (configure.ac): Require gettext infrastructure
91744         from version 0.16.1.
91746 2007-03-02  Bruno Haible  <bruno@clisp.org>
91748         * modules/linkedhash-list-tests (Depends-on): Add progname.
91749         * tests/test-linkedhash_list.c: Include progname.h.
91750         (main): Call set_program_name.
91752         * modules/carray-list-tests (Depends-on): Add progname.
91753         * tests/test-carray_list.c: Include progname.h.
91754         (main): Call set_program_name.
91756         * modules/avltreehash-list-tests (Depends-on): Add progname.
91757         * tests/test-avltreehash_list.c: Include progname.h.
91758         (main): Call set_program_name.
91760         * modules/avltree-oset-tests (Depends-on): Add progname.
91761         * tests/test-avltree_oset.c: Include progname.h.
91762         (main): Call set_program_name.
91764         * modules/avltree-list-tests (Depends-on): Add progname.
91765         * tests/test-avltree_list.c: Include progname.h.
91766         (main): Call set_program_name.
91768         * modules/array-oset-tests (Depends-on): Add progname.
91769         * tests/test-array_oset.c: Include progname.h.
91770         (main): Call set_program_name.
91772         * modules/array-list-tests (Depends-on): Add progname.
91773         * tests/test-array_list.c: Include progname.h.
91774         (main): Call set_program_name.
91776         * modules/argp-tests (Depends-on): Add progname.
91777         * tests/test-argp.c: Include argp.h first. Include progname.h.
91778         (main): Call set_program_name.
91780 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
91782         * doc/gnulib-tool.texi (Initial import): Reword description of
91783         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
91784         limited effect even if defined after the first system include.
91786 2007-03-01  Bruno Haible  <bruno@clisp.org>
91788         * build-aux/config.libpath: Update to libtool-1.5.22.
91789         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
91791 2007-03-01  Bruno Haible  <bruno@clisp.org>
91793         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
91794         foo_CFLAGS.
91795         Reported by Ralf Wildenhues.
91797 2007-03-01  Bruno Haible  <bruno@clisp.org>
91799         * build-aux/install-reloc: Remove object files left over by some
91800         compilers.
91801         Reported by Ralf Wildenhues.
91803 2007-03-01  Bruno Haible  <bruno@clisp.org>
91805         * build-aux/install-reloc: Break long lines.
91807 2007-03-01  Bruno Haible  <bruno@clisp.org>
91809         * doc/relocatable.texi: Document that it may not work on OpenBSD.
91810         Reported by Ralf Wildenhues.
91812 2007-03-01  Bruno Haible  <bruno@clisp.org>
91814         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
91815         include ordering constraints.
91817 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
91819         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
91820         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
91821         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
91822         as another example.
91823         * lib/time_.h: Fix misspelling.
91824         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
91825         Require gl_HEADER_TIME_H_DEFAULTS.
91826         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
91827         * m4/time_r.m4 (gl_TIME_R): Likewise.
91828         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
91830 2007-03-01  Bruno Haible  <bruno@clisp.org>
91832         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
91833         * m4/utimens.m4 (gl_UTIMENS): Likewise.
91835 2007-03-01  Jim Meyering  <jim@meyering.net>
91837         * modules/xreadlink (Maintainer): Add my name.
91838         * modules/xreadlink-with-size (Depends-on): Alphabetize.
91840 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
91841             Bruno Haible  <bruno@clisp.org>
91843         * build-aux/install-reloc: Compile also c-ctype.c.
91844         * build-aux/relocatable.sh.in: New file.
91845         * doc/relocatable.texi: New file.
91846         * doc/relocatable-maint.texi: New file.
91847         * doc/gnulib.texi: Include relocatable-maint.texi.
91848         * lib/progreloc.c: Include unistd.h unconditionally.
91849         * lib/relocwrapper.c: Include unistd.h unconditionally.
91850         Include c-ctype.h.
91851         (add_dotbin): Use c_tolower.
91852         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
91853         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
91854         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
91855         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
91856         to m4/relocatable-lib.m4.
91857         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
91858         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
91859         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
91860         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
91861         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
91862         * modules/relocatable: New file.
91863         * modules/relocatable-lib: New file.
91864         * modules/relocatable-script: New file.
91866 2007-02-28  Bruno Haible  <bruno@clisp.org>
91868         Import --enable-relocatable infrastructure.
91869         * build-aux/config.libpath: New file, from GNU gettext.
91870         * build-aux/install-reloc: New file, from GNU gettext.
91871         * build-aux/reloc-ldflags: New file, from GNU gettext.
91872         * lib/relocatable.h: New file, from GNU gettext.
91873         * lib/relocatable.c: New file, from GNU gettext.
91874         * lib/relocwrapper.c: New file, from GNU gettext.
91875         * m4/relocatable.m4: New file, from GNU gettext.
91877 2007-02-28  Bruno Haible  <bruno@clisp.org>
91879         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
91881         * modules/xreadlink: New file, from GNU gettext with modifications.
91882         * lib/xreadlink.c: New file, from GNU gettext.
91883         * lib/xreadlink.h: Add comments.
91884         (xreadlink): New declaration.
91886         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
91887         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
91888         lib/xreadlink-with-size.c.
91889         (configure.ac): Remove gl_XREADLINK invocation.
91890         (Makefile.am): Augment lib_SOURCES.
91891         * m4/xreadlink.m4: Remove file.
91892         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
91893         (xreadlink_with_size): Renamed from xreadink.
91894         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
91895         * modules/canonicalize (Depends-on): Replace xreadlink with
91896         xreadlink-with-size.
91897         * lib/canonicalize.c (canonicalize_filename_mode): Update.
91899 2007-02-25  Jim Meyering  <jim@meyering.net>
91901         * build-aux/announce-gen: When complaining about excess arguments,
91902         list them.
91904 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
91906         * README: Document signed integer overflow situation more
91907         accurately.
91909 2007-02-25  Bruno Haible  <bruno@clisp.org>
91911         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
91912         'a' or 'A' conversion.
91914 2007-02-25  Bruno Haible  <bruno@clisp.org>
91916         * modules/filename: Renamed from modules/pathname.
91917         (Files): Replace lib/pathname.h with lib/filename.h. Replace
91918         lib/concatpath.c with lib/concat-filename.c.
91919         (Makefile.am): Update.
91920         (Include): Replace pathname.h with filename.h.
91921         * lib/filename.h: Renamed from lib/pathname.h.
91922         (concatenated_filename): Renamed from concatenated_pathname.
91923         * lib/concat-filename.c: Renamed from lib/concatpath.c.
91924         (concatenated_filename): Renamed from concatenated_pathname.
91925         * lib/findprog.c: Include filename.h instead of pathname.h.
91926         (find_in_path): Update.
91927         * lib/javacomp.c: Include filename.h instead of pathname.h.
91928         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
91929         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
91930         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
91931         is_oldgcj_14_13_usable, is_javac_usable): Update.
91932         * lib/javaexec.c: Include filename.h instead of pathname.h.
91933         (execute_java_class): Update.
91934         * modules/findprog: Update.
91935         * modules/javacomp: Update.
91936         * modules/javaexec: Update.
91937         * MODULES.html.sh (File system functions): Add 'filename', remove
91938         'pathname'.
91940 2007-02-25  Bruno Haible  <bruno@clisp.org>
91942         * modules/printf-frexpl-tests: New file.
91943         * tests/test-printf-frexpl.c: New file.
91945         * modules/printf-frexpl: New file.
91946         * lib/printf-frexpl.h: New file.
91947         * lib/printf-frexpl.c: New file.
91948         * m4/printf-frexpl.m4: New file.
91950 2007-02-25  Bruno Haible  <bruno@clisp.org>
91952         * modules/printf-frexp-tests: New file.
91953         * tests/test-printf-frexp.c: New file.
91955         * modules/printf-frexp: New file.
91956         * lib/printf-frexp.h: New file.
91957         * lib/printf-frexp.c: New file.
91958         * m4/printf-frexp.m4: New file.
91960 2007-02-25  Bruno Haible  <bruno@clisp.org>
91962         Assume automake >= 1.10 for the tests.
91963         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
91964         * modules/arctwo-tests: Likewise.
91965         * modules/argp-tests: Likewise.
91966         * modules/avltree-list-tests: Likewise.
91967         * modules/avltree-oset-tests: Likewise.
91968         * modules/avltreehash-list-tests: Likewise.
91969         * modules/carray-list-tests: Likewise.
91970         * modules/crc-tests: Likewise.
91971         * modules/des-tests: Likewise.
91972         * modules/gc-arcfour-tests: Likewise.
91973         * modules/gc-arctwo-tests: Likewise.
91974         * modules/gc-des-tests: Likewise.
91975         * modules/gc-hmac-md5-tests: Likewise.
91976         * modules/gc-hmac-sha1-tests: Likewise.
91977         * modules/gc-md2-tests: Likewise.
91978         * modules/gc-md4-tests: Likewise.
91979         * modules/gc-md5-tests: Likewise.
91980         * modules/gc-pbkdf2-sha1-tests: Likewise.
91981         * modules/gc-rijndael-tests: Likewise.
91982         * modules/gc-sha1-tests: Likewise.
91983         * modules/gc-tests: Likewise.
91984         * modules/getaddrinfo-tests: Likewise.
91985         * modules/hmac-md5-tests: Likewise.
91986         * modules/hmac-sha1-tests: Likewise.
91987         * modules/linked-list-tests: Likewise.
91988         * modules/linkedhash-list-tests: Likewise.
91989         * modules/lock-tests: Likewise.
91990         * modules/md2-tests: Likewise.
91991         * modules/md4-tests: Likewise.
91992         * modules/md5-tests: Likewise.
91993         * modules/rbtree-list-tests: Likewise.
91994         * modules/rbtree-oset-tests: Likewise.
91995         * modules/rbtreehash-list-tests: Likewise.
91996         * modules/read-file-tests: Likewise.
91997         * modules/rijndael-tests: Likewise.
91998         * modules/stdint-tests: Likewise.
91999         * modules/tls-tests: Likewise.
92001 2007-02-24  Bruno Haible  <bruno@clisp.org>
92003         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
92004         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
92005         function; instead check whether isnan with a double argument links.
92006         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
92007         function; instead check whether isnan with a 'long double' argument
92008         links.
92009         Reported by Eric Blake <ebb9@byu.net>.
92011 2007-02-24  Bruno Haible  <bruno@clisp.org>
92013         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
92014         defined.
92015         * lib/isnanl.c: Remove all code. Just include isnan.c.
92016         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
92018 2007-02-25  Jim Meyering  <jim@meyering.net>
92020         Avoid conflicting types for 'unsetenv' on FreeBSD.
92021         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
92022         conflicting with FreeBSD's (5.0 and 6.1) function declaration
92023         in stdlib.h.
92025 2007-02-24  Bruno Haible  <bruno@clisp.org>
92027         * modules/isnanl-nolibm-tests: New file.
92028         * tests/test-isnanl.c: New file.
92030         * modules/isnanl-nolibm: New file.
92031         * lib/isnanl.h: New file.
92032         * lib/isnanl.c: New file.
92033         * m4/isnanl.m4: New file.
92035 2007-02-24  Bruno Haible  <bruno@clisp.org>
92037         * modules/isnan-nolibm-tests: New file.
92038         * tests/test-isnan.c: New file.
92040         * modules/isnan-nolibm: New file.
92041         * lib/isnan.h: New file.
92042         * lib/isnan.c: New file.
92043         * m4/isnan.m4: New file.
92045 2007-02-24  Bruno Haible  <bruno@clisp.org>
92047         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
92048         assume that an exponent fits in 20 bits.
92050 2007-02-24  Jim Meyering  <jim@meyering.net>
92052         * m4/regex.m4: Update the description of the configure-time option,
92053         --without-included-regex, to state accurately what the defaults are,
92054         and perhaps to give people an idea why using this option is risky.
92056 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
92058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
92059         loops on small arguments.  This attempts to avoid the problem
92060         Bruno Haible reported for AIX 4.3.2 in
92061         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
92063 2007-02-23  Bruno Haible  <bruno@clisp.org>
92065         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
92066         Needed for help2man.
92068 2007-02-23  Karl Berry  <karl@gnu.org>
92070         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
92071         exists, foo.h should be cvs-ignored, not committed.
92073 2007-02-23  Eric Blake  <ebb9@byu.net>
92075         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
92076         * lib/stat-time.h (includes): Likewise.
92077         * lib/utimecmp.c (includes): Likewise.
92078         * lib/utimens.h (includes): Likewise.
92079         * lib/getdate.y (includes): Also include "timespec.h" for use
92080         internal to the module.
92081         * modules/utimens (Depends-on): Revert yesterday's patch.
92082         * modules/nanosleep (Depends-on): Add missing dependency.
92084 2007-02-22  Bruno Haible  <bruno@clisp.org>
92086         * lib/glob.c: Don't include getlogin_r.h.
92088 2007-02-22  Jim Meyering  <jim@meyering.net>
92090         * modules/utimens (Depends-on): Add timespec, required for
92091         utimens.h's inclusion of timespec.h.
92093 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
92095         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
92096         long unreadable paths in GNU/Linux.  Problem reported by Andreas
92097         Schwab in
92098         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
92099         I'll try to think of a better way to fix the Solaris problem.
92101         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
92102         like glibc; on Solaris 10, it fails with errno == EINVAL.
92103         POSIX says the behavior is unspecified if the first argument is NULL,
92104         so play it safe and never pass NULL to the system getcwd.
92106 2007-02-21  Jim Meyering  <jim@meyering.net>
92108         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
92109         of gettimeofday.  It would conflict with the one now always
92110         provided via sys_time_.h.  Reported by Matthew Woehlke, as
92111         an IRIX 6.5 build failure.
92113 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
92115         Minor fixups to port to Solaris 10 with Sun C 5.8.
92116         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
92117         * modules/getcwd (Depends-on): Add dirfd.
92118         * lib/putenv.c (putenv): #undef it.
92119         (rpl_putenv): New decl.
92120         (malloc, free): Include <stdlib.h> rather than prototyping separately.
92122 2007-02-20  Bruno Haible  <bruno@clisp.org>
92124         * modules/stdio-tests: New file.
92125         * tests/test-stdio.c: New file.
92127         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
92128         (Depends-on): Add stdio.
92129         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
92130         (Include): Use <stdio.h> instead of vsnprintf.h.
92131         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
92132         HAVE_DECL_VSNPRINTF.
92133         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
92135         * modules/snprintf (Files): Remove lib/snprintf.h.
92136         (Depends-on): Add stdio.
92137         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
92138         (Include): Use <stdio.h> instead of snprintf.h.
92139         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
92140         HAVE_DECL_SNPRINTF.
92141         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
92142         * lib/getaddrinfo.c: Likewise.
92144         * modules/stdio: New file.
92145         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
92146         * lib/snprintf.h: Remove file.
92147         * lib/vsnprintf.h: Remove file.
92148         * lib/.cppi-disable: Remove snprintf.h.
92149         * m4/stdio_h.m4: New file.
92150         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
92152 2007-02-20  Jim Meyering  <jim@meyering.net>
92154         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
92155         used by e.g., mingw.  From Bruno Haible.
92157 2007-02-19  Bruno Haible  <bruno@clisp.org>
92159         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
92160         warnings.
92161         Reported by Ben Pfaff <blp@cs.stanford.edu>.
92163 2007-02-19  Bruno Haible  <bruno@clisp.org>
92165         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
92166         from mingw users.
92168 2007-02-19  Bruno Haible  <bruno@clisp.org>
92170         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
92171         warnings.
92172         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
92174 2007-02-19  Jim Meyering  <jim@meyering.net>
92176         Don't use FD after a successful "fdopendir (fd)".
92177         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
92178         Reset it by calling dirfd on the just-obtained DIR*.
92180         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
92181         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
92183 2007-02-18  Bruno Haible  <bruno@clisp.org>
92185         * lib/readlink.c: Include <unistd.h>.
92186         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
92187         HAVE_READLINK.
92188         * modules/readlink (Depends-on): Add unistd.
92189         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92190         (Include): Add <unistd.h>.
92192         * lib/getlogin_r.h: Remove file.
92193         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
92194         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
92195         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
92196         HAVE_DECL_GETLOGIN_R.
92197         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
92198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92199         (Include): Use <unistd.h> instead of getlogin_r.h.
92201         * lib/getcwd.h: Remove file.
92202         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
92203         * lib/xgetcwd.c: Likewise.
92204         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
92205         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
92206         * modules/getcwd (Files): Remove lib/getcwd.h.
92207         (Depends-on): Add unistd.
92208         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92209         (Include): Use <unistd.h> instad of getcwd.h.
92211         * lib/ftruncate.c: Include <unistd.h> first.
92212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
92213         Set HAVE_FTRUNCATE.
92214         * modules/ftruncate (Depends-on): Add unistd.
92215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92217         * lib/fchdir.c: Include <unistd.h> first.
92218         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
92219         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
92220         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
92221         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92222         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
92224         * lib/dup2.c: Include <unistd.h> first.
92225         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
92226         HAVE_DUP2.
92227         * modules/dup2 (Depends-on): Add unistd.
92228         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92230         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
92231         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
92232         REPLACE_CHOWN. Don't define chown as a macro here.
92233         * modules/chown (Depends-on): Add unistd.
92234         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
92236         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
92237         Add definition for GL_LINK_WARNING.
92238         (chown, dup2): New declarations.
92239         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
92240         link warning.
92241         (ftruncate): New declaration.
92242         (getcwd): New declaration, taken from old getcwd.h.
92243         (getlogin_r): New declaration, taken from old getlogin_r.h.
92244         (readlink): New declaration.
92245         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
92246         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
92247         (gl_PREREQ_UNISTD): Remove macro.
92248         (gl_UNISTD_MODULE_INDICATOR): New macro.
92249         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
92250         many new variables. Don't set UNISTD_H.
92251         * modules/unistd (Description): Change.
92252         (Depends-on): Add link-warning.
92253         (configure.ac): Update.
92254         (Makefile.am): Create unistd.h always. Substitute many new variables
92255         into it.
92257 2007-02-18  Bruno Haible  <bruno@clisp.org>
92259         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
92260         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
92261         HAVE_GETSUBOPT.
92262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
92263         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
92264         * lib/getsubopt.h: Remove file.
92265         * modules/getsubopt (Files): Remove lib/getsubopt.h.
92266         (Depends-on): Add stdlib.
92267         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92268         (Includes): Use <stdlib.h> instead of getsubopt.h.
92269         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
92270         Set HAVE_GETSUBOPT.
92271         * lib/getsubopt.c: Don't include getsubopt.h.
92273 2007-02-18  Bruno Haible  <bruno@clisp.org>
92275         * modules/fchdir (Depends-on): Add dup2.
92277 2007-02-18  Bruno Haible  <bruno@clisp.org>
92279         * lib/stdlib_.h: Handle glibc's special invocation convention
92280         specially.
92282 2007-02-18  Bruno Haible  <bruno@clisp.org>
92284         * modules/stdlib-tests: New file.
92285         * tests/test-stdlib.c: New file.
92287         * modules/mkstemp (Files): Remove lib/mkstemp.h.
92288         (Depends-on): Add stdlib.
92289         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92290         (Includes): Use <stdlib.h> instead of mkstemp.h.
92291         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92292         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
92293         * lib/mkstemp.c: Don't include mkstemp.h.
92294         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
92295         * lib/stdlib--.h: Don't include mkstemp.h.
92297         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
92298         (Depends-on): Add stdlib.
92299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
92300         (Includes): Use <stdlib.h> instead of mkdtemp.h.
92301         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
92302         HAVE_MKDTEMP.
92303         * lib/mkdtemp.c: Don't include mkdtemp.h.
92304         * lib/clean-temp.c: Don't include mkdtemp.h.
92306         * modules/exit (Files): Remove lib/exit.h.
92307         (Depends-on): Add stdlib.
92308         (Makefile.am): Remove lib_SOURCES.
92309         (Include): Use <stdlib.h> instead of exit.h.
92310         * lib/argmatch.c: Don't include exit.h.
92311         * lib/execute.c: Likewise.
92312         * lib/pagealign_alloc.c: Likewise.
92313         * lib/pipe.c: Likewise.
92314         * lib/wait-process.c: Likewise.
92315         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
92316         * lib/exitfail.c: Likewise.
92317         * lib/savewd.c: Likewise.
92318         * lib/xsetenv.c: Likewise.
92320         * modules/stdlib: New file.
92321         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
92322         and extra comments about mkstemp().
92323         * lib/exit.h: Remove file.
92324         * lib/mkdtemp.h: Remove file.
92325         * lib/mkstemp.h: Remove file.
92326         * m4/stdlib_h.m4: New file.
92327         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
92329 2007-02-18  Bruno Haible  <bruno@clisp.org>
92331         * modules/math-tests: New file.
92332         * tests/test-math.c: New file.
92334         * modules/math: New file.
92335         * modules/mathl (Files): Remove lib/mathl.h.
92336         (Depends-on): Add math.
92337         (Makefile.am): Don't mention mathl.h.
92338         (Include): Use <math.h> instead of mathl.h.
92339         * lib/math_.h: New file.
92340         * lib/mathl.h: Remove file.
92341         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
92342         mathl.h.
92343         * lib/asinl.c: Likewise.
92344         * lib/atanl.c: Likewise.
92345         * lib/ceill.c: Likewise.
92346         * lib/cosl.c: Likewise.
92347         * lib/expl.c: Likewise.
92348         * lib/floorl.c: Likewise.
92349         * lib/frexpl.c: Likewise.
92350         * lib/ldexpl.c: Likewise.
92351         * lib/logl.c: Likewise.
92352         * lib/sincosl.c: Likewise.
92353         * lib/sinl.c: Likewise.
92354         * lib/sqrtl.c: Likewise.
92355         * lib/tanl.c: Likewise.
92356         * lib/trigl.c: Likewise.
92357         * m4/math_h.m4: New file.
92358         * MODULES.html.sh (Mathematics): Add math.
92360 2007-02-17  Bruno Haible  <bruno@clisp.org>
92362         * modules/wctype-tests: New file.
92363         * tests/test-wctype.c: New file.
92365         * modules/wchar-tests: New file.
92366         * tests/test-wchar.c: New file.
92368         * modules/unistd-tests: New file.
92369         * tests/test-unistd.c: New file.
92371         * modules/time-tests: New file.
92372         * tests/test-time.c: New file.
92374         * modules/sysexits-tests: New file.
92375         * tests/test-sysexits.c: New file.
92377         * modules/sys_time-tests: New file.
92378         * tests/test-sys_time.c: New file.
92380         * modules/sys_stat-tests: New file.
92381         * tests/test-sys_stat.c: New file.
92383         * modules/sys_socket-tests: New file.
92384         * tests/test-sys_socket.c: New file.
92386         * modules/sys_select-tests: New file.
92387         * tests/test-sys_select.c: New file.
92389         * modules/string-tests: New file.
92390         * tests/test-string.c: New file.
92392         * modules/stdbool-tests: New file.
92393         * tests/test-stdbool.c: New file.
92395         * modules/netinet_in-tests: New file.
92396         * tests/test-netinet_in.c: New file.
92398         * modules/inttypes-tests: New file.
92399         * tests/test-inttypes.c: New file.
92401         * modules/fcntl-tests: New file.
92402         * tests/test-fcntl.c: New file.
92404         * modules/byteswap-tests: New file.
92405         * tests/test-byteswap.c: New file.
92407         * modules/arpa_inet-tests: New file.
92408         * tests/test-arpa_inet.c: New file.
92410 2007-02-17  Bruno Haible  <bruno@clisp.org>
92412         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
92413         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
92414         if the corresponding module is not enabled. Emit link warnings if
92415         the function is used nevertheless.
92416         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
92417         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
92418         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
92419         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
92420         * modules/inttypes (Depends-on): Add link-warning.
92421         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92422         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
92423         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
92424         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
92425         * modules/imaxdiv (configure.ac): Likewise.
92426         * modules/strtoimax (configure.ac): Likewise.
92427         * modules/strtoumax (configure.ac): Likewise.
92429 2007-02-17  Bruno Haible  <bruno@clisp.org>
92431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
92432         gl_STRING_MODULE_INDICATOR_DEFAULTS.
92433         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
92434         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
92436 2007-02-17  Bruno Haible  <bruno@clisp.org>
92438         * modules/link-warning: New file.
92439         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
92440         * lib/string_.h (GL_LINK_WARNING): Remove definition.
92441         * modules/string (Depends-on): Add link-warning.
92442         (Makefile.am): Copy the contents of build-aux/link-warning.h into
92443         string.h.
92444         * MODULES.html.sh (Support for building libraries and executables): Add
92445         link-warning.
92447 2007-02-17  Bruno Haible  <bruno@clisp.org>
92449         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
92450         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
92451         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
92452         long lines.
92454 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
92455             Bruno Haible  <bruno@clisp.org>
92457         * modules/tmpfile: New file.
92458         * lib/tmpfile.c: New file.
92459         * m4/tmpfile.m4: New file.
92460         * MODULES.html.sh (func_all_modules): New section "Input/output".
92462 2007-02-15  Bruno Haible  <bruno@clisp.org>
92464         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
92465         (supports_delete_on_close): New function.
92466         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
92468 2007-02-14  Bruno Haible  <bruno@clisp.org>
92470         * modules/mbspcasecmp-tests: New file.
92471         * tests/test-mbspcasecmp.sh: New file.
92472         * tests/test-mbspcasecmp.c: New file.
92474         New module mbspcasecmp.
92475         * modules/mbspcasecmp: New file.
92476         * lib/mbspcasecmp.c: New file.
92477         * lib/string_.h (strncasecmp): Change warning message.
92478         (mbspcasecmp): New declaration.
92479         * m4/mbspcasecmp.m4: New file.
92480         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92481         GNULIB_MBSPCASECMP.
92482         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
92483         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
92485 2007-02-14  Bruno Haible  <bruno@clisp.org>
92487         * modules/mbsncasecmp-tests: New file.
92488         * tests/test-mbsncasecmp.sh: New file.
92489         * tests/test-mbsncasecmp.c: New file.
92491         New module mbsncasecmp.
92492         * modules/mbsncasecmp: New file.
92493         * lib/mbsncasecmp.c: New file.
92494         * lib/string_.h (mbsncasecmp): New declaration.
92495         * m4/mbsncasecmp.m4: New file.
92496         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92497         GNULIB_MBSNCASECMP.
92498         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
92499         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
92501 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
92503         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
92504         Verify that it doesn't overlap with our flags.
92505         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
92506         do not have the desired effect in multibyte locales; instead, use
92507         mbscasecmp.
92508         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
92509         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
92510         we don't require GNU fnmatch ourselves (if our users require it, they
92511         should do so explicitly).
92513         Fix regex code so it doesn't rely on strcasecmp.
92514         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
92515         Otherwise, include gnulib's langinfo.h.
92516         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
92517         undesirable behavior in non-C locales.  Instead, rely on localecharset.
92518         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
92519         * modules/regex (FILES): Remove m4/codeset.m4.
92520         (Depends-on): Add localcharset.  Remove strcase.
92522 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92524         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
92525         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
92527 2007-02-13  Bruno Haible  <bruno@clisp.org>
92529         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
92530         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92532 2007-02-12  Bruno Haible  <bruno@clisp.org>
92534         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
92535         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
92536         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
92537         time warning rather than a link error.
92539 2007-02-12  Bruno Haible  <bruno@clisp.org>
92541         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
92542         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
92543         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
92545 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92547         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
92548         args, not 2.
92550 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
92552         New module 'time', so that apps can include <time.h> as per
92553         POSIX and GNU instead of separate include files like time_r.h
92554         and timegm.h.  This implementation tries out a simpler approach
92555         for replacing decls in standard include files (as compared to
92556         the string module), somewhat as an experiment.
92558         * config/srclist.txt: Comment out mktime.c for now.
92559         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
92560         since it doesn't apply any more.  Use generic wording instead.
92561         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
92562         'time'.
92563         * lib/time_.h, m4/time_h.m4, modules/time: New files.
92564         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
92565         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
92566         Don't include <sys/types.h>; no longer needed since we assume C89.
92567         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
92568         * lib/strftime.c: Likewise.
92569         * lib/time_r.c: Likewise.
92570         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
92571         * lib/nanosleep.c: Include <time.h> first, to check interface.
92572         * lib/strptime.c: Likewise.
92573         * lib/time_r.c: Likewise.
92574         * lib/timegm.c: Likewise.
92575         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
92576         needed.
92577         * lib/timegm.c: Don't include timegm.h; no longer needed.
92578         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
92579         time.h now handles any problems in that area.
92580         (struct timespec, nanosleep): Remove; time.h now arranges for these.
92581         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
92582         that time.h defines struct timespec.
92583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
92584         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
92585         handles that.
92586         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
92587         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
92588         needed.  Set REPLACE_LOCALTIME.
92589         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
92590         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
92591         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
92592         nanosleep; time_h.m4 now does that.  Don't require
92593         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
92594         module handles this now.
92595         * modules/getdate (Depends-on): Remove timespec.  Add time.
92596         * modules/nanosleep (Depends-on): Likewise.
92597         * modules/stat-time (Depends-on): Likewise.
92598         * modules/nanosleep (Include): Include time.h, not timespec.h.
92599         * modules/strptime (Files): Remove lib/strptime.h.
92600         (Depends-on): Add extensions, time.
92601         (Include): Include time.h, not strptime.h.
92602         * modules/time_r (Files): Remove lib/time_r.h.
92603         (Depends-on): Add time.
92604         (Include): Include time.h, not time_r.h.
92605         * modules/timegm: Likewise.
92606         * modules/timespec (Description): Now does timespec-related decls
92607         of our own, instead of struct timespec itself.
92608         (Depends-on): Add time; remove extensions.
92609         (Maintainer): Add self.
92610         * modules/utimecmp (Depends-on): Add time; remove timespec.
92611         * modules/utimens (Depends-on): Likewise.
92612         * modules/xnanosleep (Depends-on): Likewise.
92614 2007-02-11  Bruno Haible  <bruno@clisp.org>
92616         * lib/c-strstr.c: Include allocsa.h.
92617         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92618         * lib/c-strcasestr.c: Include allocsa.h.
92619         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92620         * lib/strcasestr.c: Include allocsa.h.
92621         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
92622         * lib/mbsstr.c: Include allocsa.h.
92623         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92624         allocsa/freesa instead of malloc/free.
92625         * lib/mbscasestr.c: Include allocsa.h.
92626         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
92627         allocsa/freesa instead of malloc/free.
92628         * modules/c-strstr (Depends-on): Add allocsa.
92629         * modules/c-strcasestr (Depends-on): Likewise.
92630         * modules/strcasestr (Depends-on): Likewise.
92631         * modules/mbsstr (Depends-on): Likewise.
92632         * modules/mbscasestr (Depends-on): Likewise.
92634 2007-02-11  Bruno Haible  <bruno@clisp.org>
92636         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
92638         * modules/mbsspn-tests: New file.
92639         * tests/test-mbsspn.sh: New file.
92640         * tests/test-mbsspn.c: New file.
92642 2007-02-11  Bruno Haible  <bruno@clisp.org>
92644         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
92646         * modules/mbspbrk-tests: New file.
92647         * tests/test-mbspbrk.sh: New file.
92648         * tests/test-mbspbrk.c: New file.
92650 2007-02-11  Bruno Haible  <bruno@clisp.org>
92652         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
92653         unneeded cast.
92655         * modules/mbscspn-tests: New file.
92656         * tests/test-mbscspn.sh: New file.
92657         * tests/test-mbscspn.c: New file.
92659 2007-02-11  Bruno Haible  <bruno@clisp.org>
92661         * modules/mbscasecmp-tests: New file.
92662         * tests/test-mbscasecmp.sh: New file.
92663         * tests/test-mbscasecmp.c: New file.
92665 2007-02-11  Bruno Haible  <bruno@clisp.org>
92667         Ensure O(n) worst-case complexity of mbscasestr.
92668         * lib/mbscasestr.c: Include stdbool.h.
92669         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92670         functions.
92671         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
92672         the bookkeeping indicates that it's worth it.
92673         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
92675         * modules/mbscasestr-tests: New file.
92676         * tests/test-mbscasestr1.c: New file.
92677         * tests/test-mbscasestr2.sh: New file.
92678         * tests/test-mbscasestr2.c: New file.
92679         * tests/test-mbscasestr3.sh: New file.
92680         * tests/test-mbscasestr3.c: New file.
92681         * tests/test-mbscasestr4.sh: New file.
92682         * tests/test-mbscasestr4.c: New file.
92683         * m4/locale-tr.m4: New file.
92685 2007-02-11  Bruno Haible  <bruno@clisp.org>
92687         Ensure O(n) worst-case complexity of mbsstr.
92688         * lib/mbsstr.c: Include stdbool.h.
92689         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
92690         functions.
92691         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
92692         bookkeeping indicates that it's worth it.
92693         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
92695         * modules/mbsstr-tests: New file.
92696         * tests/test-mbsstr1.c: New file.
92697         * tests/test-mbsstr2.sh: New file.
92698         * tests/test-mbsstr2.c: New file.
92699         * tests/test-mbsstr3.sh: New file.
92700         * tests/test-mbsstr3.c: New file.
92701         * m4/locale-fr.m4: New file.
92703 2007-02-11  Bruno Haible  <bruno@clisp.org>
92705         * lib/mbsrchr.c (mbsrchr): Fix bug.
92707         * modules/mbsrchr-tests: New file.
92708         * tests/test-mbsrchr.sh: New file.
92709         * tests/test-mbsrchr.c: New file.
92711 2007-02-11  Bruno Haible  <bruno@clisp.org>
92713         * lib/mbschr.c (mbschr): Fix bug.
92715         * modules/mbschr-tests: New file.
92716         * tests/test-mbschr.sh: New file.
92717         * tests/test-mbschr.c: New file.
92718         * m4/locale-zh.m4: New file.
92720 2007-02-11  Bruno Haible  <bruno@clisp.org>
92722         Support for copying multibyte string iterators.
92723         * lib/mbiter.h: Include <string.h>.
92724         (mbiter_multi_copy): New function.
92725         (mbi_copy): New macro.
92726         * lib/mbuiter.h: Include <string.h>.
92727         (mbuiter_multi_copy): New function.
92728         (mbui_copy): New macro.
92730 2007-02-11  Bruno Haible  <bruno@clisp.org>
92732         New module mbslen.
92733         * modules/mbslen: New file.
92734         * lib/mbslen.c: New file.
92735         * lib/string_.h (mbslen): New declaration.
92736         * m4/mbslen.m4: New file.
92737         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92738         GNULIB_MBSLEN.
92739         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
92740         * MODULES.html.sh (Internationalization functions): Add mbslen.
92742 2007-02-11  Bruno Haible  <bruno@clisp.org>
92744         Ensure O(n) worst-case complexity of strcasestr substitute.
92745         * lib/strcasestr.c: Include stdbool.h.
92746         (knuth_morris_pratt): New function.
92747         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92748         bookkeeping indicates that it's worth it.
92749         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
92751         * modules/strcasestr-tests: New file.
92752         * tests/test-strcasestr.c: New file.
92754 2007-02-11  Bruno Haible  <bruno@clisp.org>
92756         Ensure O(n) worst-case complexity of c_strcasestr.
92757         * lib/c-strcasestr.c: Include stdbool.h, string.h.
92758         (knuth_morris_pratt): New function.
92759         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
92760         the bookkeeping indicates that it's worth it.
92761         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
92763         * modules/c-strcasestr-tests: New file.
92764         * tests/test-c-strcasestr.c: New file.
92766 2007-02-11  Bruno Haible  <bruno@clisp.org>
92768         Ensure O(n) worst-case complexity of c_strstr.
92769         * lib/c-strstr.c: Include stdbool.h, string.h.
92770         (knuth_morris_pratt): New function.
92771         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
92772         bookkeeping indicates that it's worth it.
92773         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
92775         * lib/c-strstr.c: Complete rewrite for maintainability.
92777         * modules/c-strstr-tests: New file.
92778         * tests/test-c-strstr.c: New file.
92780 2007-02-11  Bruno Haible  <bruno@clisp.org>
92782         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
92783         5.2.1 and earlier, whereby \055 was treated just like the range
92784         delimiter '-'.
92785         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
92787 2007-02-08  Bruno Haible  <bruno@clisp.org>
92789         * modules/regex (Depends-on): Add stdbool.
92790         Reported by Dalibor Topic <robilad@kaffe.org>.
92792 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
92794         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
92795         Prefer returning from main to exiting from it.
92796         Remove unnecessary parens after sizeof.
92798 2007-02-05  Bruno Haible  <bruno@clisp.org>
92800         New module mbssep.
92801         * modules/mbssep: New file.
92802         * lib/mbssep.c: New file.
92803         * lib/string_.h (strsep): Add a conditional link warning.
92804         (mbssep): New declaration.
92805         * m4/mbssep.m4: New file.
92806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92807         GNULIB_MBSSEP.
92808         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
92809         * MODULES.html.sh (Internationalization functions): Add mbssep.
92811 2007-02-05  Bruno Haible  <bruno@clisp.org>
92813         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
92814         Optimize search in case of 1 delimiter.
92816 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92818         * lib/acl.h: Include sys/types.h before sys/acl.h.
92820 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
92822         Merge upstream fix for glibc bugzilla #3957:
92824         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
92826         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
92827         bit for RE_HAT_LISTS_NOT_NEWLINE.
92828         (build_charclass_op): Remove bogus comment.
92830 2007-02-05  Simon Josefsson  <simon@josefsson.org>
92832         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
92834 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
92836         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
92837         * lib/memmem.c [!defined _LIBC]: Include config.h.
92839 2007-02-04  Bruno Haible  <bruno@clisp.org>
92841         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
92842         warning message.
92844 2007-02-04  Bruno Haible  <bruno@clisp.org>
92846         New module mbstok_r.
92847         * modules/mbstok_r: New file.
92848         * lib/mbstok_r.c: New file.
92849         * lib/string_.h (strtok_r): Change argument names to match the
92850         comments. Add a conditional link warning.
92851         (mbstok_r): New declaration.
92852         * m4/mbstok_r.m4: New file.
92853         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92854         GNULIB_MBSTOK_R.
92855         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
92856         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
92858 2007-02-04  Bruno Haible  <bruno@clisp.org>
92860         New module mbsspn.
92861         * modules/mbsspn: New file.
92862         * lib/mbsspn.c: New file.
92863         * lib/string_.h (strspn): Add a conditional link warning.
92864         (mbsspn): New declaration.
92865         * m4/mbsspn.m4: New file.
92866         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92867         GNULIB_MBSSPN.
92868         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
92869         * MODULES.html.sh (Internationalization functions): Add mbsspn.
92871 2007-02-04  Bruno Haible  <bruno@clisp.org>
92873         New module mbspbrk.
92874         * modules/mbspbrk: New file.
92875         * lib/mbspbrk.c: New file.
92876         * lib/string_.h (strpbrk): Add a conditional link warning.
92877         (mbspbrk): New declaration.
92878         * m4/mbspbrk.m4: New file.
92879         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92880         GNULIB_MBSPBRK.
92881         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
92882         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
92884 2007-02-04  Bruno Haible  <bruno@clisp.org>
92886         New module mbscspn.
92887         * modules/mbscspn: New file.
92888         * lib/mbscspn.c: New file.
92889         * lib/string_.h (strcspn): Add a conditional link warning.
92890         (mbscspn): New declaration.
92891         * m4/mbscspn.m4: New file.
92892         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92893         GNULIB_MBSCSPN.
92894         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
92895         * MODULES.html.sh (Internationalization functions): Add mbscspn.
92897 2007-02-04  Bruno Haible  <bruno@clisp.org>
92899         New module mbscasestr, reduced goal of strcasestr.
92900         * modules/mbscasestr: New file.
92901         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
92902         (mbscasestr): Renamed from strcasestr.
92903         * lib/strcasestr.c: Don't include mbuiter.h.
92904         (strcasestr): Remove support for multibyte locales.
92905         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
92906         Change the conditional link warning.
92907         (mbscasestr): New declaration.
92908         * m4/mbscasestr.m4: New file.
92909         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
92910         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
92911         REPLACE_STRCASESTR.
92912         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
92913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92914         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92915         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
92916         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
92917         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
92918         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
92919         (Depends-on): Remove mbuiter.
92920         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
92922 2007-02-04  Bruno Haible  <bruno@clisp.org>
92924         Simplify handling of strncasecmp.
92925         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
92926         the conditional link warning.
92927         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92928         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
92929         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
92930         * modules/strcase (configure.ac): Don't invoke
92931         gl_STRING_MODULE_INDICATOR.
92932         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
92934 2007-02-04  Bruno Haible  <bruno@clisp.org>
92936         New module mbscasecmp, reduced goal of strcasecmp.
92937         * modules/mbscasecmp: New file.
92938         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
92939         (mbscasecmp): Renamed from strcasecmp.
92940         * lib/strcasecmp.c: Don't include mbuiter.h.
92941         (strcasecmp): Remove support for multibyte locales.
92942         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
92943         Change the conditional link warning.
92944         (mbscasecmp): New declaration.
92945         * m4/mbscasecmp.m4: New file.
92946         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
92947         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
92948         REPLACE_STRCASECMP.
92949         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
92950         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92951         GNULIB_MBSCASECMP.
92952         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
92953         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
92954         * modules/strcase (Files): Remove m4/mbrtowc.m4.
92955         (Depends-on): Remove mbuiter.
92956         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
92958 2007-02-04  Bruno Haible  <bruno@clisp.org>
92960         New module mbsstr. Remove module strstr.
92961         * modules/mbsstr: New file.
92962         * modules/strstr: Remove file.
92963         * lib/mbsstr.c: Renamed from lib/strstr.c.
92964         (mbsstr): Renamed from strstr.
92965         * lib/string_.h (strstr): Remove declaration. Change the conditional
92966         link warning.
92967         (mbsstr): New declaration.
92968         * m4/mbsstr.m4: New file.
92969         * m4/strstr.m4: Remove file.
92970         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
92971         REPLACE_STRSTR.
92972         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
92973         Don't initialize GNULIB_STRSTR.
92974         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
92975         substitute GNULIB_STRSTR and REPLACE_STRSTR.
92976         * MODULES.html.sh (Internationalization functions): Add mbsstr.
92977         (Support for systems lacking ANSI C 89): Remove strstr.
92979 2007-02-04  Bruno Haible  <bruno@clisp.org>
92981         New module mbsrchr.
92982         * modules/mbsrchr: New file.
92983         * lib/mbsrchr.c: New file.
92984         * lib/string_.h (strrchr): Add a conditional link warning.
92985         (mbsrchr): New declaration.
92986         * m4/mbsrchr.m4: New file.
92987         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
92988         GNULIB_MBSRCHR.
92989         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
92990         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
92992 2007-02-04  Bruno Haible  <bruno@clisp.org>
92994         New module mbschr.
92995         * modules/mbschr: New file.
92996         * lib/mbschr.c: New file.
92997         * lib/string_.h (strchr): Add a conditional link warning.
92998         (mbschr): New declaration.
92999         * m4/mbschr.m4: New file.
93000         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
93001         GNULIB_MBSCHR.
93002         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
93003         * MODULES.html.sh (Internationalization functions): Add mbschr.
93005 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
93007         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
93009         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
93011 2007-02-04  Bruno Haible  <bruno@clisp.org>
93013         New module description section 'configure.ac-early'.
93014         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
93015         (func_get_autoconf_early_snippet): New function.
93016         (func_import, func_create_testdir): Use it. Remove special cases for
93017         modules 'extensions' and 'lock'.
93018         * modules/extensions (configure.ac-early): Require
93019         gl_USE_SYSTEM_EXTENSIONS.
93020         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
93022 2007-02-04  Bruno Haible  <bruno@clisp.org>
93024         Make use of gcj-4.3's -fsource and -ftarget option.
93025         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
93026         and if so try the options -fsource and -ftarget.
93027         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
93028         source_version, ftarget_option, target_version arguments.
93029         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
93030         (is_envjavac_oldgcj_14_14_usable): Renamed from
93031         is_envjavac_gcj_14_14_usable.
93032         (is_envjavac_oldgcj_14_13_usable): Renamed from
93033         is_envjavac_gcj_14_13_usable.
93034         (is_gcj_present): Update.
93035         (is_gcj_43, is_gcj43_usable): New functions.
93036         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
93037         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
93038         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
93039         try the options -fsource and -ftarget.
93041 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
93043         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
93044         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
93045         larger value.
93047 2007-02-03  Jim Meyering  <jim@meyering.net>
93049         Give tools a better chance to allocate space for very large buffers.
93050         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
93052         Make pwd and readlink work also when run with an unreadable parent dir
93053         on systems with openat support.
93054         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
93055         provided getcwd function, even when we have openat support.
93056         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
93058 2007-02-02  Bruno Haible  <bruno@clisp.org>
93060         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
93061         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
93062         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
93063         portability problems if one of these functions is only used on specific
93064         platforms.
93065         Reported by Paul Eggert.
93067 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
93069         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
93070         is causing more trouble than it's curing.
93071         * lib/regex_internal.h (__mempcpy): Remove.
93072         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
93073         (and make the code a tad smaller to boot).
93074         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
93076 2007-02-02  Jim Meyering  <jim@meyering.net>
93078         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
93079         section, not in the Makefile.am: one.
93081 2007-02-02  Eric Blake  <ebb9@byu.net>
93083         * lib/strchrnul.c: Always include config.h first.
93085         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
93086         gnulib strstr is not necessary here.
93088 2007-02-02  Simon Josefsson  <simon@josefsson.org>
93090         * m4/socklen.m4: Fix typo.
93092 2007-02-02  Eric Blake  <ebb9@byu.net>
93094         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
93095         * modules/netinet_in (Makefile.am): Likewise.
93097 2007-02-01  Bruno Haible  <bruno@clisp.org>
93099         * lib/string_.h (GL_LINK_WARNING): New macro.
93100         (strcasecmp, strstr, strcasestr): If provided by the system,
93101         conditionally define as a macro that leads to a warning instead of to
93102         an error.
93103         (strncasecmp): Conditionally define as a macro that leads to a warning.
93105 2007-02-01  Karl Berry  <karl@gnu.org>
93107         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
93109 2007-02-01  Bruno Haible  <bruno@clisp.org>
93111         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
93112         renamings.
93114 2007-02-01  Eric Blake  <ebb9@byu.net>
93116         * modules/regex (Depends-on): Revert dependence on mempcpy.
93117         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
93118         module's definition of mempcpy.
93119         Reported by Paul Eggert.
93121 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
93123         * lib/string_.h: If the gnulib module XYZ is not present, undefine
93124         the symbol XYZ before redefining it.  This fixes a problem with
93125         programs that don't use XYZ, when compiled on systems that define
93126         XYZ to something else.
93128 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
93130         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
93131         occurs when "mkdir -m foo" creates a setgid directory that is (1)
93132         writeable to group or other and (2) is intended to have a special
93133         mode bit that is set or cleared.  In such a case, the directory
93134         should be neither group- nor other-writeable until the special
93135         mode bits are right.
93137 2007-01-31  Eric Blake  <ebb9@byu.net>
93139         * modules/mountlist (Depends-on): Add strstr.
93141         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
93142         bug.
93143         * modules/string (Makefile.am): Remove redundant replacement.
93144         * modules/regex (Depends-on): Add mempcpy.
93146 2007-01-31  Bruno Haible  <bruno@clisp.org>
93148         New module description field 'Link'.
93149         * gnulib-tool (func_usage): Document --extract-link-directive.
93150         (sed_extract_prog): Recognize 'Link' directive.
93151         (func_get_link_directive): New function.
93152         (func_import): Show summary of link directives.
93153         Handle --extract-link-directive option.
93154         * modules/acl (Link): New section.
93155         * modules/clock-time (Link): New section.
93156         * modules/euidaccess (Link): New section.
93157         * modules/gettext (Link): New section.
93158         * modules/iconv (Link): New section.
93159         * modules/lock (Link): New section.
93160         * modules/nanosleep (Link): New section.
93161         * modules/readline (Link): New section.
93163 2007-01-27  Bruno Haible  <bruno@clisp.org>
93165         Enforce the use of gnulib modules for unportable <string.h> functions.
93166         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
93167         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
93168         (gl_HEADER_STRING_H_BODY): Require it.
93169         * lib/string_.h: If the gnulib module XYZ is not present, redefine
93170         the symbol XYZ to one that gives a link error.
93171         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
93172         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
93173         * modules/mempcpy (configure.ac): Likewise.
93174         * modules/memrchr (configure.ac): Likewise.
93175         * modules/stpcpy (configure.ac): Likewise.
93176         * modules/stpncpy (configure.ac): Likewise.
93177         * modules/strcase (configure.ac): Likewise.
93178         * modules/strcasestr (configure.ac): Likewise.
93179         * modules/strchrnul (configure.ac): Likewise.
93180         * modules/strdup (configure.ac): Likewise.
93181         * modules/strndup (configure.ac): Likewise.
93182         * modules/strnlen (configure.ac): Likewise.
93183         * modules/strpbrk (configure.ac): Likewise.
93184         * modules/strsep (configure.ac): Likewise.
93185         * modules/strstr (configure.ac): Likewise.
93186         * modules/strtok_r (configure.ac): Likewise.
93188 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
93190         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
93192 2007-01-30  Jim Meyering  <jim@meyering.net>
93194         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
93196 2007-01-29  Bruno Haible  <bruno@clisp.org>
93198         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
93199         * lib/execute.c: Likewise.
93200         * lib/pipe.c: Likewise.
93201         * lib/printf-args.h: Likewise.
93202         * lib/printf-args.c: Likewise.
93203         * lib/printf-parse.c: Likewise.
93204         * lib/vasnprintf.c: Likewise.
93206 2007-01-29  Eric Blake  <ebb9@byu.net>
93208         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
93209         declaration.
93211 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
93213         * lib/strptime.h (strptime): Use 'restrict' for args where
93214         POSIX requires this.
93215         * lib/strptime.c (strptime): Likewise.
93216         Change license notice from LGPL to GPL, since gnulib-tool will
93217         change this as needed.
93218         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
93219         defined.
93220         Include "strptime.h" first, to check interface.
93221         Do not #undef _LIBC and _NL_CURRENT.
93222         Do not include <stdlib.h>; no longer needed.
93223         Include "time_r.h" and declare ptime_locale_status
93224         only if _LIBC is not defined.
93225         (__P): Remove unused macro.
93226         (match_string): Bring back glibc version, but use it only if _LIBC
93227         is defined.
93228         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
93229         Remove unnecessary assertion and abort() call.
93230         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
93231         * m4/strptime.m4: Fix serial number comment.
93232         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
93233         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
93234         (Depends-on): Add time_r.
93236 2007-01-29  Bruno Haible  <bruno@clisp.org>
93238         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93239         strptime.
93240         * modules/strptime (Depends-on): Add stdbool.
93241         * lib/strptime.h: Include <time.h> always. Add comments.
93243 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
93245         * modules/strptime: New file.
93246         * lib/strptime.h: New file.
93247         * lib/strptime.c: New file.
93248         * m4/strptime.m4: New file.
93250 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
93252         * MODULES.html.sh: New module mpsort.
93253         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
93255         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
93256         a circularity problem with HP-UX ia64 reported by Bob Proulx in
93257         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
93258         All uses changed.
93259         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
93260         All uses changed.
93261         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
93262         to _Restrict_.
93263         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
93264         the parameter matches the prototype.
93266 2007-01-28  Jim Meyering  <jim@meyering.net>
93268         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
93269         sys/time.h here, reverting that part of the previous patch:
93270         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
93272 2007-01-28  Bruno Haible  <bruno@clisp.org>
93274         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
93275         value of $(SYS_TIME_H).
93276         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
93277         remove it conditionally, too. [added by Jim Meyering]
93278         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
93279         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93280         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
93281         GETTIMEOFDAY_REPLACEMENT to 1.
93283 2007-01-28  Bruno Haible  <bruno@clisp.org>
93285         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
93286         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
93287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
93288         Set UNISTD_H instead of UNISTD_H2.
93289         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
93291 2007-01-28  Bruno Haible  <bruno@clisp.org>
93293         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
93294         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
93296 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93298         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
93299         (func_create_testdir): Ensure C locale for `grep' and `tr'
93300         character ranges.
93301         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
93302         ACLOCAL_AMFLAGS parsing state machine.
93304 2007-01-27  Bruno Haible  <bruno@clisp.org>
93306         * modules/unistr/base: Update.
93308 2007-01-27  Bruno Haible  <bruno@clisp.org>
93310         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
93311         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
93312         * modules/unistr/u32-mbtouc-unsafe: Renamed from
93313         modules/unistr/u32-mbtouc.
93314         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
93315         * lib/unistr.h: Update.
93316         * lib/linebreak.c: Update.
93317         * modules/unistr/u32-mbtouc: Renamed from
93318         modules/unistr/u32-mbtouc-safe.
93319         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
93320         * lib/unistr.h: Update.
93321         * lib/unistr/u32-to-u8.c: Update.
93322         * lib/unistr/u32-to-u16.c: Update.
93324 2007-01-27  Bruno Haible  <bruno@clisp.org>
93326         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
93327         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
93328         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
93329         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
93330         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
93331         * modules/unistr/u16-mbtouc-unsafe: Renamed from
93332         modules/unistr/u16-mbtouc.
93333         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
93334         * lib/unistr.h: Update.
93335         * lib/linebreak.c: Update.
93336         * modules/linebreak: Update.
93337         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
93338         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
93339         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
93340         * modules/unistr/u16-mbtouc: Renamed from
93341         modules/unistr/u16-mbtouc-safe.
93342         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
93343         * lib/unistr.h: Update.
93344         * lib/unistr/u16-to-u8.c: Update.
93345         * modules/unistr/u16-to-u8: Update.
93346         * lib/unistr/u16-to-u32.c: Update.
93347         * modules/unistr/u16-to-u32: Update.
93349 2007-01-27  Bruno Haible  <bruno@clisp.org>
93351         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
93352         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
93353         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
93354         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
93355         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
93356         * modules/unistr/u8-mbtouc-unsafe: Renamed from
93357         modules/unistr/u8-mbtouc.
93358         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
93359         * lib/unistr.h: Update.
93360         * lib/striconveh.c: Update.
93361         * modules/striconveh: Update.
93362         * lib/linebreak.c: Update.
93363         * modules/linebreak: Update.
93364         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
93365         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
93366         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
93367         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
93368         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
93369         * lib/unistr.h: Update.
93370         * lib/striconveh.c: Update.
93371         * modules/striconveh: Update.
93372         * lib/unistr/u8-to-u16.c: Update.
93373         * modules/unistr/u8-to-u16: Update.
93374         * lib/unistr/u8-to-u32.c: Update.
93375         * modules/unistr/u8-to-u32: Update.
93377 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93379         Sync from Libtool.
93380         * lib/argz.c: Do not include strings.h nor memory.h, include
93381         string.h unconditionally.  Patch by Simon Josefsson.
93383 2007-01-27  Bruno Haible  <bruno@clisp.org>
93385         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
93386         from gl_HEADER_STRING_H_BODY.
93387         (gl_HEADER_STRING_H_BODY): Require it.
93388         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
93389         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
93390         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
93391         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
93392         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
93393         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
93394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93395         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
93396         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
93397         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
93398         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
93399         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
93400         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
93401         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
93402         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
93404 2007-01-27  Bruno Haible  <bruno@clisp.org>
93406         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
93407         check_PROGRAMS into noinst_PROGRAMS.
93408         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
93409         check_PROGRAMS in this case.
93410         (func_import): Set for_test to false.
93411         (func_create_testdir): Set for_test to true.
93413 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93414             Bruno Haible  <bruno@clisp.org>
93416         * modules/strcasestr (Files): Remove lib/strcasestr.h.
93417         (Depends-on): Add string.
93418         (Includes): Use <string.h> instead of strcasestr.h.
93419         * modules/string (Makefile.am): Also substitute the value of
93420         REPLACE_STRCASESTR.
93421         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
93422         assume strcasestr is declared in <string.h> not <strings.h>. Also
93423         set REPLACE_STRCASESTR.
93424         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
93425         REPLACE_STRCASESTR.
93426         * lib/strcasestr.h: Remove file.
93427         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
93428         * lib/string_.h (strcasestr): New declaration.
93430 2007-01-27  Bruno Haible  <bruno@clisp.org>
93432         * lib/string_.h: Use 'extern'.
93434 2007-01-27  Jim Meyering  <jim@meyering.net>
93436         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
93437         of set-but-not-used local, "q".
93439         * lib/mempcpy.c: Include <config.h> before <string.h>.
93440         This fixes a compilation error on HP-UX, due to the system's
93441         "restrict"-using mempcpy prototype.
93443 2007-01-26  Bruno Haible  <bruno@clisp.org>
93445         Small optimization.
93446         * lib/javacomp.c: Include c-strstr.h.
93447          (is_envjavac_gcj): Use c_strstr instead of strstr.
93448         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
93450 2007-01-26  Bruno Haible  <bruno@clisp.org>
93452         * MODULES.html.sh (Unicode string functions): Add the new modules.
93454         * modules/uniconv/u32-strconv-to-locale: New file.
93455         * lib/uniconv/u32-strconv-to-locale.c: New file.
93457         * modules/uniconv/u16-strconv-to-locale: New file.
93458         * lib/uniconv/u16-strconv-to-locale.c: New file.
93460         * modules/uniconv/u8-strconv-to-locale: New file.
93461         * lib/uniconv/u8-strconv-to-locale.c: New file.
93463         * modules/uniconv/u32-strconv-from-locale: New file.
93464         * lib/uniconv/u32-strconv-from-locale.c: New file.
93466         * modules/uniconv/u16-strconv-from-locale: New file.
93467         * lib/uniconv/u16-strconv-from-locale.c: New file.
93469         * modules/uniconv/u8-strconv-from-locale: New file.
93470         * lib/uniconv/u8-strconv-from-locale.c: New file.
93472         * modules/uniconv/u32-strconv-to-enc: New file.
93473         * lib/uniconv/u32-strconv-to-enc.c: New file.
93474         * modules/uniconv/u32-strconv-to-enc-tests: New file.
93475         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
93477         * modules/uniconv/u16-strconv-to-enc: New file.
93478         * lib/uniconv/u16-strconv-to-enc.c: New file.
93479         * lib/uniconv/u-strconv-to-enc.h: New file.
93480         * modules/uniconv/u16-strconv-to-enc-tests: New file.
93481         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
93483         * modules/uniconv/u8-strconv-to-enc: New file.
93484         * lib/uniconv/u8-strconv-to-enc.c: New file.
93485         * modules/uniconv/u8-strconv-to-enc-tests: New file.
93486         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
93488         * modules/uniconv/u32-strconv-from-enc: New file.
93489         * lib/uniconv/u32-strconv-from-enc.c: New file.
93490         * modules/uniconv/u32-strconv-from-enc-tests: New file.
93491         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
93493         * modules/uniconv/u16-strconv-from-enc: New file.
93494         * lib/uniconv/u16-strconv-from-enc.c: New file.
93495         * modules/uniconv/u16-strconv-from-enc-tests: New file.
93496         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
93498         * modules/uniconv/u8-strconv-from-enc: New file.
93499         * lib/uniconv/u8-strconv-from-enc.c: New file.
93500         * lib/uniconv/u-strconv-from-enc.h: New file.
93501         * modules/uniconv/u8-strconv-from-enc-tests: New file.
93502         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
93504         * modules/uniconv/u32-conv-from-enc: New file.
93505         * lib/uniconv/u32-conv-from-enc.c: New file.
93506         * modules/uniconv/u32-conv-from-enc-tests: New file.
93507         * tests/uniconv/test-u32-conv-from-enc.c: New file.
93509         * modules/uniconv/u16-conv-from-enc: New file.
93510         * lib/uniconv/u16-conv-from-enc.c: New file.
93511         * lib/uniconv/u-conv-from-enc.h: New file.
93512         * modules/uniconv/u16-conv-from-enc-tests: New file.
93513         * tests/uniconv/test-u16-conv-from-enc.c: New file.
93515         * modules/uniconv/u8-conv-from-enc: New file.
93516         * lib/uniconv/u8-conv-from-enc.c: New file.
93517         * modules/uniconv/u8-conv-from-enc-tests: New file.
93518         * tests/uniconv/test-u8-conv-from-enc.c: New file.
93520         * modules/uniconv/base: New file.
93521         * lib/uniconv.h: New file.
93523 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
93525         * doc/gnulib-tool.texi (Initial import): Update to match current
93526         behavior with strdup module.
93527         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
93528         * lib/memmem.h: Remove; all uses removed.  This is now done
93529         by <string.h>.
93530         * lib/mempcpy.h: Likewise.
93531         * lib/memrchr.h: Likewise.
93532         * lib/stpcpy.h: Likewise.
93533         * lib/stpncpy.h: Likewise.
93534         * lib/strcase.h: Likewise.
93535         * lib/strchrnul.h: Likewise.
93536         * lib/strdup.h: Likewise.
93537         * lib/strndup.h: Likewise.
93538         * lib/strnlen.h: Likewise.
93539         * lib/strpbrk.h: Likewise.
93540         * lib/strsep.h: Likewise.
93541         * lib/strstr.h: Likewise.
93542         * lib/strtok_r.h: Likewise.
93543         * lib/string_.h: New file.
93544         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
93545         Rely on <string.h> instead.
93546         * lib/canon-host.c: Likewise.
93547         * lib/chdir-long.c: Likewise.
93548         * lib/concatpath.c: Likewise.
93549         * lib/exclude.c: Likewise.
93550         * lib/fchdir.c: Likewise.
93551         * lib/getaddrinfo.c: Likewise.
93552         * lib/getcwd.c: Likewise.
93553         * lib/getsubopt.c: Likewise.
93554         * lib/glob.c: Likewise.
93555         * lib/hard-locale.c: Likewise.
93556         * lib/iconvme.c: Likewise.
93557         * lib/javacomp.c: Likewise.
93558         * lib/mempcpy.c: Likewise.
93559         * lib/memrchr.c: Likewise.
93560         * lib/regex_internal.h: Likewise.
93561         * lib/stpncpy.c: Likewise.
93562         * lib/strcasecmp.c: Likewise.
93563         * lib/strchrnul.c: Likewise.
93564         * lib/strdup.c: Likewise.
93565         * lib/striconv.c: Likewise.
93566         * lib/striconveh.c: Likewise.
93567         * lib/striconveha.c: Likewise.
93568         * lib/strncasecmp.c: Likewise.
93569         * lib/strndup.c: Likewise.
93570         * lib/strnlen.c: Likewise.
93571         * lib/strsep.c: Likewise.
93572         * lib/strstr.c: Likewise.
93573         * lib/strtok_r.c: Likewise.
93574         * lib/userspec.c: Likewise.
93575         * lib/w32spawn.h: Likewise.
93576         * lib/xstrndup.c: Likewise.
93577         * lib/mountlist.c (strstr): Remove decl.
93578         * m4/string_h.m4: New file.
93579         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
93580         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
93581         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
93582         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
93583         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
93584         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
93585         Set REPLACE_STRCASECMP if necessary.
93586         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
93587         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
93588         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
93589         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
93590         HAVE_DECL_STRDUP if necessary.
93591         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
93592         since gl_FUNC_STRNDUP does that now.
93593         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
93594         Check for decl here...
93595         (gl_PREREQ_STRNLEN): ... not here.
93596         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
93597         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
93598         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
93599         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
93600         necessary.
93601         * modules/string: New file.
93602         * modules/memmem (Files): Remove special-purpose include file.
93603         (Depends-on): Add string.
93604         (Include): Include <string.h>, not the removed file.
93605         * modules/mempcpy: Likewise.
93606         * modules/memrchr: Likewise.
93607         * modules/stpcpy: Likewise.
93608         * modules/stpncpy: Likewise.
93609         * modules/strcase: Likewise.
93610         * modules/strchrnul: Likewise.
93611         * modules/strdup: Likewise.
93612         * modules/strndup: Likewise.
93613         * modules/strnlen: Likewise.
93614         * modules/strpbrk: Likewise.
93615         * modules/strsep: Likewise.
93616         * modules/strstr: Likewise.
93617         * modules/strtok_r: Likewise.
93618         * tests/test-dirname.c: Don't include "strdup.h", since
93619         <string.h> now suffices.
93620         * tests/test-memmem.c: Don't include "memmem.h", since
93621         <string.h> now suffices.
93623 2007-01-25  Bruno Haible  <bruno@clisp.org>
93625         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
93626         *resultp is 0.
93628         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
93629         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
93630         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
93631         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
93633         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
93634         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
93635         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
93636         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
93637         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
93638         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
93640 2007-01-24  Bruno Haible  <bruno@clisp.org>
93642         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
93643         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
93644         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
93645         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
93646         gl_FUNC_FTS_CORE.
93647         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
93648         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
93649         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93650         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
93651         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
93652         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
93653         gl_FUNC_FCHOWNAT.
93654         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
93655         gl_FUNC_STRFTIME.
93656         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
93657         Reported by Ralf Wildenhues.
93659 2007-01-24  Bruno Haible  <bruno@clisp.org>
93661         Drop AC_REQUIRE calls that are redundant with the module dependencies.
93662         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
93663         gl_GETADDRINFO.
93664         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
93665         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
93666         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
93668 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
93670         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
93671         Don't use 'exit'; just return from 'main'.
93672         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
93674         * lib/fnmatch_.h: Readjust white space and comments to match
93675         glibc, to avoid spurious diffs.
93677 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93679         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
93680         2004-12-01 change by Jakub Jelinek, since this code won't compile
93681         if !LIBC.  Problem reported by Bob Proulx.
93683 2007-01-23  Bruno Haible  <bruno@clisp.org>
93685         * lib/striconveh.c: Include c-strcaseeq.h.
93686         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
93687         * modules/striconveh (Depends-on): Add c-strcaseeq.
93689 2007-01-23  Bruno Haible  <bruno@clisp.org>
93691         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
93693         * modules/c-strcaseeq: New file.
93694         * lib/c-strcaseeq.h: New file.
93696         * modules/streq: New file.
93697         * lib/streq.h: New file.
93699 2007-01-23  Bruno Haible  <bruno@clisp.org>
93701         * modules/striconveha-tests: New file.
93702         * tests/test-striconveha.c: New file.
93704         * lib/striconveha.h: Include <stdbool.h>.
93705         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
93706         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
93707         (mem_iconveha_notranslit): Renamed from mem_iconveha.
93708         (mem_iconveha): New function.
93709         (str_iconveha_notranslit): Renamed from str_iconveha.
93710         (str_iconveha): New function.
93711         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
93712         c-strcase.
93714 2007-01-23  Bruno Haible  <bruno@clisp.org>
93716         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
93717         encodings without forgiving before trying any encoding with handler.
93718         (str_iconveha): Try all encodings without forgiving before trying any
93719         encoding with handler.
93721 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
93723         Import the following changes from libc.
93725         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
93727         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
93729         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
93731         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
93732         normal_bracket label.
93734         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
93736         [BZ #361]
93737         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
93738         to normal_bracket after fetching the next character.
93740 2007-01-22  Bruno Haible  <bruno@clisp.org>
93742         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
93743         argument.
93744         * lib/striconveh.c (iconv_carefully_1): New function.
93745         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
93746         argument.
93747         (str_cd_iconveh): Update.
93748         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
93749         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
93750         * tests/test-striconveh.c (MAGIC): New macro.
93751         (new_offsets): New function.
93752         (main): Test call with and without offsets.
93754 2007-01-22  Bruno Haible  <bruno@clisp.org>
93756         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
93757         * modules/sys_select (Makefile.am): Likewise.
93758         * modules/sys_socket (Makefile.am): Likewise.
93759         * modules/sys_time (Makefile.am): Likewise.
93761 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
93763         * modules/gettimeofday (License): Change from GPL to LGPL, since
93764         gettimeofday is a library function.
93766 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
93768         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
93770 2007-01-21  Bruno Haible  <bruno@clisp.org>
93772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
93774 2007-01-21  Bruno Haible  <bruno@clisp.org>
93776         * modules/striconveha: New file.
93777         * lib/striconveha.h: New file.
93778         * lib/striconveha.c: New file.
93779         * MODULES.html.sh (Internationalization functions): Add striconveha.
93780         * lib/striconv.c (str_iconv): Optimize the case of an empty input
93781         string.
93782         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
93784 2007-01-21  Bruno Haible  <bruno@clisp.org>
93786         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
93787         * lib/striconveh.c (str_iconveh): Likewise.
93789 2007-01-21  Bruno Haible  <bruno@clisp.org>
93791         * lib/striconveh.h (mem_iconveh): New declaration.
93792         * lib/striconveh.c (mem_iconveh): New function.
93793         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
93795 2007-01-21  Bruno Haible  <bruno@clisp.org>
93797         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
93799         * lib/striconveh.h (mem_cd_iconveh): Change specification.
93800         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
93801         original result buffer.
93802         (str_cd_iconveh): Update.
93803         * tests/test-striconveh.c (main): Update.
93805         * lib/striconv.h (mem_cd_iconv): Change specification.
93806         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
93807         result buffer.
93808         (str_cd_iconv): Update.
93809         * tests/test-striconv.c (main): Update.
93811 2007-01-21  Bruno Haible  <bruno@clisp.org>
93813         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
93815 2007-01-20  Jim Meyering  <jim@meyering.net>
93817         * lib/userspec.c (parse_with_separator): If a user or group string
93818         starts with "+", skip the corresponding name-to-ID look-up, since
93819         such a look-up must fail: user and group names may not include "+".
93821 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
93823         * lib/poll.c: Include sys/time.h and time.h unconditionally,
93824         since we now assume the sys_time module.
93825         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
93826         check for sys/time.h; no longer needed.
93827         * modules/poll (Depends-on): Depend on sys_time.
93829 2007-01-18  Bruno Haible  <bruno@clisp.org>
93831         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
93832         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93834         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
93835         gettimeofday.
93837         * tests/test-gettimeofday.c: Include <time.h>.
93838         (dummy): Remove variable.
93840         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
93841         gl_HEADER_SYS_TIME_H.
93842         (gl_HEADER_SYS_TIME_H): New macro.
93844         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
93845         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
93847         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
93848         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93849         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
93850         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
93851         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93852         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
93853         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
93854         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93856         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
93857         last change; it caused a compilation error when cross-compiling to
93858         Cygwin.
93860 2007-01-18  Jim Meyering  <jim@meyering.net>
93862         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
93863         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
93864         than the race-prone "test -d sys || mkdir sys".
93865         (configure.ac): Use AC_PROG_MKDIR_P.
93866         * modules/sys_select: Likewise.
93867         * modules/sys_socket: Likewise.
93868         * modules/sys_time: Likewise.
93870 2007-01-18  Eric Blake  <ebb9@byu.net>
93872         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
93873         replace gettimeofday.
93874         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
93875         name, to avoid infinite recursion.
93877 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
93879         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
93880         module sys_time.
93881         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
93882         assume timespec.h defines struct timeval.
93883         * lib/settime.c: Likewise.
93884         * lib/utimens.c: Likewise.
93885         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
93886         since we now assume the gettimeofday module.
93887         * lib/tempname.c (__gen_tempname): Likewise.
93888         * lib/gettimeofday.h: Remove.
93889         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
93890         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
93891         Include <time.h>, for 'time()'.
93892         (localtime_buffer_addr): Also use this workaround if
93893         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
93894         to simplify the uses.  All uses changed.
93895         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
93896         that #undef is inside {}, and 'const' follows type name consistently.
93897         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
93898         (gettimeofday): Do not use the maximum possible value for
93899         tv->tv_usec, since that might break usages other than ls.c.
93900         Instead, we'll leave ls.c alone.  This undoes today's patch
93901         by Bruno.  Add a compile-time warning for 1s-clock resolution;
93902         we've never observed the problem but might as well keep the
93903         canary.
93904         * lib/nanosleep.c: Include timespec.h first, for interface check.
93905         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
93906         now assume the sys_time module.
93907         * lib/tempname.c: Likewise.
93908         * lib/timespec.h: Likewise.
93909         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
93910         needed.
93911         * lib/strftime.c: Likewise.
93912         * lib/timespec.h: Likewise.
93913         * lib/posixtm.c: Include posixtm.h first, for interface check.
93914         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
93915         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
93916         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
93917         * lib/sys_time_.h: New file.
93918         * lib/timespec.h (struct timespec): Use long int, not long.
93919         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
93920         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
93921         Remove obsolescent call to AC_HEADER_TIME.
93922         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
93923         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
93924         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
93925         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
93926         Likewise.
93927         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
93928         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
93929         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
93930         into the sys_time module.  Check for gettimeofday just once.
93931         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
93932         for gettimeofday signature to just check the signature.  Merely
93933         compile it, since linking doesn't test signature.  Improve test for
93934         whether gettimeofday.o is actually needed.
93935         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
93936         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
93937         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
93938         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93939         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
93940         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
93941         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
93942         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
93943         than worrying about sys/time.h.
93944         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
93945         Don't bother worrying about TIME_WITH_SYS_TIME.
93946         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
93947         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
93948         * m4/sys_time_h.m4: New file.
93949         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
93950         Don't include sys/time.h.  Return from main rather than exiting.
93951         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
93952         all uses changed.
93953         * modules/gethrxtime (Depends-on): Add sys_time.
93954         * modules/gettime (Depends-on): Likewise.
93955         * modules/gettimeofday (Depends-on): Likewise.
93956         * modules/nanosleep (Depends-on): Likewise.
93957         * modules/settime (Depends-on): Likewise.
93958         * modules/tempname (Depends-on): Likewise.
93959         * modules/utimens (Depends-on): Likewise.
93960         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
93961         (Include): Change back to <sys/time.h>.
93962         (Maintainer): Add self.
93963         * modules/sys_time: New file.
93964         * modules/tempname (Depends-on): Add gettimeofday.
93965         * tests/test-gettimeofday.c: Include <sys/time.h>
93966         rather than gettimeofday.h.
93968 2007-01-17  Bruno Haible  <bruno@clisp.org>
93970         * gnulib-tool (func_get_license): Revert last patch. Instead, let
93971         the license default to GPL.
93972         (func_create_testdir): Don't complain if a module is LGPL and its
93973         tests module depends on GPLed modules.
93975 2007-01-17  Bruno Haible  <bruno@clisp.org>
93977         * lib/gettimeofday.c (gettimeofday): Add code for the case
93978         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
93979         maximum possible value for tv->tv_usec, rather than the minimum one.
93981 2005-10-08  Martin Lambers  <marlam@marlam.de>
93982 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
93983 2007-01-16  Bruno Haible  <bruno@clisp.org>
93985         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
93986         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
93987         gl_FUNC_GETTIMEOFDAY.
93988         (Include): Add gettimeofday.h.
93989         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
93990         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
93991         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
93992         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
93993         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
93994         * lib/gettimeofday.h: New file.
93995         * lib/gettimeofday.c: Include <sys/timeb.h>.
93996         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
93997         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
93998         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
93999         fall back on time().
94001         * tests/test-gettimeofday.c: New file.
94002         * modules/gettimeofday-tests: New file.
94004 2007-01-16  Eric Blake  <ebb9@byu.net>
94006         * modules/fnmatch (Depends-on): Depend on wchar.
94007         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
94008         * m4/fnmatch.m4: Likewise.
94009         * modules/mbchar (Makefile.am): Assume <wchar.h>.
94010         * m4/mbchar.m4: Likewise.
94011         * modules/mbswidth (Depends-on): Depend on wchar.
94012         * lib/mbswidth.c: Assume <wchar.h>.
94013         * m4/mbswidth.m4: Likewise.
94014         * modules/quotearg (Depends-on): Depend on wchar.
94015         * lib/quotearg.c: Assume <wchar.h>.
94016         * m4/quotearg.m4: Likewise.
94017         * modules/regex (Depends-on): Depend on wchar.
94018         * lib/regex_internal.h: Assume <wchar.h>.
94019         * m4/regex.m4: Likewise.
94020         * modules/stdint (Depends-on): Depend on wchar.
94021         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
94022         * m4/stdint.m4: Likewise.
94023         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
94024         * modules/strftime (Depends-on): Depend on wchar.
94025         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
94026         * modules/strtol (Depends-on): Depend on wchar.
94027         * lib/strtol.c: Assume <wchar.h>.
94028         * modules/wcwidth (Depends-on): Depend on wchar.
94029         * lib/wcwidth.h: Assume <wchar.h>.
94030         * m4/wcwidth.m4: Likewise.
94032 2007-01-16  Bruno Haible  <bruno@clisp.org>
94034         * modules/csharpexec-script: New, created from...
94035         * modules/csharpexec: ... this.
94037 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
94039         * modules/javaexec-script: New, created from...
94040         * modules/javaexec: ... this.
94042 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
94044         * modules/poll (Dependencies): Add sys_select.
94046 2007-01-15  Jim Meyering  <jim@meyering.net>
94048         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
94049         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
94050         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
94051         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
94053 2007-01-15  Bruno Haible  <bruno@clisp.org>
94055         * modules/striconveh: New file.
94056         * lib/striconveh.h: New file.
94057         * lib/striconveh.c: New file.
94058         * MODULES.html.sh (Internationalization functions): Add striconveh.
94060         * modules/striconveh-tests: New file.
94061         * tests/test-striconveh.c: New file.
94063 2007-01-15  Bruno Haible  <bruno@clisp.org>
94065         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
94066         not from GNU libiconv or GNU libc.
94068 2007-01-15  Bruno Haible  <bruno@clisp.org>
94070         * doc/gnulib-intro.texi (Copyright): Explain the different license
94071         terms for module descriptions, autoconf macros, tests, documentation.
94073 2007-01-14  Bruno Haible  <bruno@clisp.org>
94075         * modules/striconv-tests: New file.
94076         * tests/test-striconv.c: New file.
94078 2007-01-14  Bruno Haible  <bruno@clisp.org>
94080         * modules/iconv-tests: New file.
94081         * tests/test-iconv.c: New file.
94083 2007-01-14  Bruno Haible  <bruno@clisp.org>
94085         * gnulib-tool (func_get_license): For test modules, use the license of
94086         the main module.
94088 2007-01-14  Bruno Haible  <bruno@clisp.org>
94090         * modules/iconv (Include): Clarify that <iconv.h> can only be included
94091         if iconv is found to exist.
94093 2007-01-14  Bruno Haible  <bruno@clisp.org>
94095         * modules/c-ctype-tests: New file.
94096         * tests/test-c-ctype.c: New file.
94098 2007-01-14  Bruno Haible  <bruno@clisp.org>
94100         * modules/binary-io-tests: New file.
94101         * tests/test-binary-io.sh: New file.
94102         * tests/test-binary-io.c: New file.
94104 2007-01-14  Bruno Haible  <bruno@clisp.org>
94106         * modules/array-oset-tests: New file.
94107         * tests/test-array_oset.c: New file.
94109 2007-01-14  Bruno Haible  <bruno@clisp.org>
94111         * modules/array-list-tests: New file.
94112         * tests/test-array_list.c: New file.
94114 2007-01-14  Bruno Haible  <bruno@clisp.org>
94116         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
94117         and make.
94118         Reported by Simon Josefsson in
94119         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
94121 2007-01-14  Bruno Haible  <bruno@clisp.org>
94123         * modules/allocsa-tests: New file.
94124         * tests/test-allocsa.c: New file.
94126 2007-01-14  Bruno Haible  <bruno@clisp.org>
94128         * modules/fchdir (Depends-on): Add absolute-header.
94129         * modules/unistd (Depends-on): Likewise.
94131 2006-12-30  Bruno Haible  <bruno@clisp.org>
94133         * modules/fchdir: New file.
94134         * modules/unistd (Files): Add lib/unistd_.h.
94135         (Makefile.am): Generate unistd.h from unistd_.h.
94136         * lib/fchdir.c: New file.
94137         * lib/dirent_.h: New file.
94138         * lib/unistd_.h: New file.
94139         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
94140         * m4/fchdir.m4: New file.
94141         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
94142         (gl_HEADER_UNISTD): Invoke it.
94143         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
94144         function.
94145         * lib/backupfile.c (opendir, closedir): Undefine.
94146         * lib/chown.c (open, close): Undefine.
94147         * lib/clean-temp.c (open, close): Undefine.
94148         * lib/copy-file.c (open, close): Undefine.
94149         * lib/execute.c (open, close): Undefine.
94150         * lib/fsusage.c (open, close): Undefine.
94151         * lib/gc-gnulib.c (open, close): Undefine.
94152         * lib/getcwd.c (opendir, closedir): Undefine.
94153         * lib/glob.c (opendir, closedir): Undefine.
94154         * lib/javacomp.c (open, close): Undefine.
94155         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
94156         * lib/openat-proc.c (open, close): Undefine.
94157         * lib/pagealign_alloc.c (open, close): Undefine.
94158         * lib/pipe.c (open, close): Undefine.
94159         * lib/progreloc.c (open, close): Undefine.
94160         * lib/savedir.c (opendir, closedir): Undefine.
94161         * lib/utime.c (open, close): Undefine.
94162         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
94164 2007-01-10  Bruno Haible  <bruno@clisp.org>
94166         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
94168 2007-01-12  Eric Blake  <ebb9@byu.net>
94170         Provide a robust <wchar.h>.  Further simplifications are now
94171         possible in other modules, but not included here.
94172         * modules/wchar: New module.
94173         * m4/wchar.m4: New file.
94174         * lib/wchar_.h: Likewise.
94175         * modules/mbchar (Depends-on): Depend on wchar, as the first use
94176         of the new module.
94177         * MODULES.html.sh (Extended multibyte and wide character utilities):
94178         New section.
94180 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
94182         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
94183         to a reasonable default for memory allocation.
94184         (xreadlink): Don't allocate a huge buffer, to work around a buggy
94185         file system that reports garbage st_size values for symlinks.
94186         Problem reported by Liyang Hu.
94188 2007-01-11  Simon Josefsson  <simon@josefsson.org>
94190         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
94191         Emacs .#* auto-save files).
94193 2007-01-11  Bruno Haible  <bruno@clisp.org>
94195         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
94196         directory.
94198 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
94200         Use @...@ consistently in lib/wctype_.h.
94201         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
94202         on it being set to 1 or 0.
94203         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
94204         go back to AC_SUBSTing it.
94205         * modules/wctype (Makefile.am): Undo previous change.
94207 2007-01-10  Eric Blake  <ebb9@byu.net>
94209         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
94210         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
94211         * modules/wctype (Makefile.am): Likewise.
94212         Reported by Chris McGuire.
94214 2007-01-10  Jim Meyering  <jim@meyering.net>
94216         fts.c: a small readability/maintainability improvement
94217         * lib/fts.c (fts_read): Make this code slightly more readable and
94218         maintainable by hoisting the "sp->fts_cur = p" assignments to
94219         immediately follow the statements that set P.  Derived from
94220         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
94222 2007-01-10  Eric Blake  <ebb9@byu.net>
94224         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
94225         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
94226         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94227         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
94228         Reported by Chris McGuire.
94230 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94232         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
94233         in sed script.
94235 2007-01-09  Bruno Haible  <bruno@clisp.org>
94237         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
94238         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
94239         variables.
94240         (func_module): Use them.
94242 2007-01-09  Bruno Haible  <bruno@clisp.org>
94244         * modules/unistr/base: New file.
94245         * lib/unistr.h: New file.
94247         * modules/unistr/u8-to-u16: New file.
94248         * lib/unistr/u8-to-u16.c: New file.
94250         * modules/unistr/u8-to-u32: New file.
94251         * lib/unistr/u8-to-u32.c: New file.
94253         * modules/unistr/u16-to-u8: New file.
94254         * lib/unistr/u16-to-u8.c: New file.
94256         * modules/unistr/u16-to-u32: New file.
94257         * lib/unistr/u16-to-u32.c: New file.
94259         * modules/unistr/u32-to-u8: New file.
94260         * lib/unistr/u32-to-u8.c: New file.
94262         * modules/unistr/u32-to-u16: New file.
94263         * lib/unistr/u32-to-u16.c: New file.
94265         * modules/unistr/u8-check: New file.
94266         * modules/unistr/u16-check: New file.
94267         * modules/unistr/u32-check: New file.
94268         * lib/unistr/u8-check.c: New file.
94269         * lib/unistr/u16-check.c: New file.
94270         * lib/unistr/u32-check.c: New file.
94272         * modules/unistr/u8-chr: New file.
94273         * modules/unistr/u16-chr: New file.
94274         * modules/unistr/u32-chr: New file.
94275         * lib/unistr/u8-chr.c: New file.
94276         * lib/unistr/u16-chr.c: New file.
94277         * lib/unistr/u32-chr.c: New file.
94279         * modules/unistr/u8-cmp: New file.
94280         * modules/unistr/u16-cmp: New file.
94281         * modules/unistr/u32-cmp: New file.
94282         * lib/unistr/u8-cmp.c: New file.
94283         * lib/unistr/u16-cmp.c: New file.
94284         * lib/unistr/u32-cmp.c: New file.
94286         * modules/unistr/u8-cpy: New file.
94287         * modules/unistr/u16-cpy: New file.
94288         * modules/unistr/u32-cpy: New file.
94289         * lib/unistr/u8-cpy.c: New file.
94290         * lib/unistr/u16-cpy.c: New file.
94291         * lib/unistr/u32-cpy.c: New file.
94292         * lib/unistr/u-cpy.h: New file.
94294         * modules/unistr/u8-cpy-alloc: New file.
94295         * modules/unistr/u16-cpy-alloc: New file.
94296         * modules/unistr/u32-cpy-alloc: New file.
94297         * lib/unistr/u8-cpy-alloc.c: New file.
94298         * lib/unistr/u16-cpy-alloc.c: New file.
94299         * lib/unistr/u32-cpy-alloc.c: New file.
94300         * lib/unistr/u-cpy-alloc.h: New file.
94302         * modules/unistr/u8-endswith: New file.
94303         * modules/unistr/u16-endswith: New file.
94304         * modules/unistr/u32-endswith: New file.
94305         * lib/unistr/u8-endswith.c: New file.
94306         * lib/unistr/u16-endswith.c: New file.
94307         * lib/unistr/u32-endswith.c: New file.
94308         * lib/unistr/u-endswith.h: New file.
94310         * modules/unistr/u8-mblen: New file.
94311         * modules/unistr/u16-mblen: New file.
94312         * modules/unistr/u32-mblen: New file.
94313         * lib/unistr/u8-mblen.c: New file.
94314         * lib/unistr/u16-mblen.c: New file.
94315         * lib/unistr/u32-mblen.c: New file.
94317         * modules/unistr/u8-mbtouc: New file.
94318         * modules/unistr/u16-mbtouc: New file.
94319         * modules/unistr/u32-mbtouc: New file.
94320         * lib/unistr/u8-mbtouc.c: New file.
94321         * lib/unistr/u16-mbtouc.c: New file.
94322         * lib/unistr/u32-mbtouc.c: New file.
94324         * modules/unistr/u8-mbtouc-safe: New file.
94325         * modules/unistr/u16-mbtouc-safe: New file.
94326         * modules/unistr/u32-mbtouc-safe: New file.
94327         * lib/unistr/u8-mbtouc-safe.c: New file.
94328         * lib/unistr/u16-mbtouc-safe.c: New file.
94329         * lib/unistr/u32-mbtouc-safe.c: New file.
94331         * modules/unistr/u8-move: New file.
94332         * modules/unistr/u16-move: New file.
94333         * modules/unistr/u32-move: New file.
94334         * lib/unistr/u8-move.c: New file.
94335         * lib/unistr/u16-move.c: New file.
94336         * lib/unistr/u32-move.c: New file.
94337         * lib/unistr/u-move.h: New file.
94339         * modules/unistr/u8-next: New file.
94340         * modules/unistr/u16-next: New file.
94341         * modules/unistr/u32-next: New file.
94342         * lib/unistr/u8-next.c: New file.
94343         * lib/unistr/u16-next.c: New file.
94344         * lib/unistr/u32-next.c: New file.
94346         * modules/unistr/u8-prev: New file.
94347         * modules/unistr/u16-prev: New file.
94348         * modules/unistr/u32-prev: New file.
94349         * lib/unistr/u8-prev.c: New file.
94350         * lib/unistr/u16-prev.c: New file.
94351         * lib/unistr/u32-prev.c: New file.
94353         * modules/unistr/u8-set: New file.
94354         * modules/unistr/u16-set: New file.
94355         * modules/unistr/u32-set: New file.
94356         * lib/unistr/u8-set.c: New file.
94357         * lib/unistr/u16-set.c: New file.
94358         * lib/unistr/u32-set.c: New file.
94359         * lib/unistr/u-set.h: New file.
94361         * modules/unistr/u8-startswith: New file.
94362         * modules/unistr/u16-startswith: New file.
94363         * modules/unistr/u32-startswith: New file.
94364         * lib/unistr/u8-startswith.c: New file.
94365         * lib/unistr/u16-startswith.c: New file.
94366         * lib/unistr/u32-startswith.c: New file.
94367         * lib/unistr/u-startswith.h: New file.
94369         * modules/unistr/u8-stpcpy: New file.
94370         * modules/unistr/u16-stpcpy: New file.
94371         * modules/unistr/u32-stpcpy: New file.
94372         * lib/unistr/u8-stpcpy.c: New file.
94373         * lib/unistr/u16-stpcpy.c: New file.
94374         * lib/unistr/u32-stpcpy.c: New file.
94375         * lib/unistr/u-stpcpy.h: New file.
94377         * modules/unistr/u8-stpncpy: New file.
94378         * modules/unistr/u16-stpncpy: New file.
94379         * modules/unistr/u32-stpncpy: New file.
94380         * lib/unistr/u8-stpncpy.c: New file.
94381         * lib/unistr/u16-stpncpy.c: New file.
94382         * lib/unistr/u32-stpncpy.c: New file.
94383         * lib/unistr/u-stpncpy.h: New file.
94385         * modules/unistr/u8-strcat: New file.
94386         * modules/unistr/u16-strcat: New file.
94387         * modules/unistr/u32-strcat: New file.
94388         * lib/unistr/u8-strcat.c: New file.
94389         * lib/unistr/u16-strcat.c: New file.
94390         * lib/unistr/u32-strcat.c: New file.
94391         * lib/unistr/u-strcat.h: New file.
94393         * modules/unistr/u8-strchr: New file.
94394         * modules/unistr/u16-strchr: New file.
94395         * modules/unistr/u32-strchr: New file.
94396         * lib/unistr/u8-strchr.c: New file.
94397         * lib/unistr/u16-strchr.c: New file.
94398         * lib/unistr/u32-strchr.c: New file.
94400         * modules/unistr/u8-strcmp: New file.
94401         * modules/unistr/u16-strcmp: New file.
94402         * modules/unistr/u32-strcmp: New file.
94403         * lib/unistr/u8-strcmp.c: New file.
94404         * lib/unistr/u16-strcmp.c: New file.
94405         * lib/unistr/u32-strcmp.c: New file.
94407         * modules/unistr/u8-strcpy: New file.
94408         * modules/unistr/u16-strcpy: New file.
94409         * modules/unistr/u32-strcpy: New file.
94410         * lib/unistr/u8-strcpy.c: New file.
94411         * lib/unistr/u16-strcpy.c: New file.
94412         * lib/unistr/u32-strcpy.c: New file.
94413         * lib/unistr/u-strcpy.h: New file.
94415         * modules/unistr/u8-strcspn: New file.
94416         * modules/unistr/u16-strcspn: New file.
94417         * modules/unistr/u32-strcspn: New file.
94418         * lib/unistr/u8-strcspn.c: New file.
94419         * lib/unistr/u16-strcspn.c: New file.
94420         * lib/unistr/u32-strcspn.c: New file.
94421         * lib/unistr/u-strcspn.h: New file.
94423         * modules/unistr/u8-strdup: New file.
94424         * modules/unistr/u16-strdup: New file.
94425         * modules/unistr/u32-strdup: New file.
94426         * lib/unistr/u8-strdup.c: New file.
94427         * lib/unistr/u16-strdup.c: New file.
94428         * lib/unistr/u32-strdup.c: New file.
94429         * lib/unistr/u-strdup.h: New file.
94431         * modules/unistr/u8-strlen: New file.
94432         * modules/unistr/u16-strlen: New file.
94433         * modules/unistr/u32-strlen: New file.
94434         * lib/unistr/u8-strlen.c: New file.
94435         * lib/unistr/u16-strlen.c: New file.
94436         * lib/unistr/u32-strlen.c: New file.
94437         * lib/unistr/u-strlen.h: New file.
94439         * modules/unistr/u8-strmblen: New file.
94440         * modules/unistr/u16-strmblen: New file.
94441         * modules/unistr/u32-strmblen: New file.
94442         * lib/unistr/u8-strmblen.c: New file.
94443         * lib/unistr/u16-strmblen.c: New file.
94444         * lib/unistr/u32-strmblen.c: New file.
94446         * modules/unistr/u8-strmbtouc: New file.
94447         * modules/unistr/u16-strmbtouc: New file.
94448         * modules/unistr/u32-strmbtouc: New file.
94449         * lib/unistr/u8-strmbtouc.c: New file.
94450         * lib/unistr/u16-strmbtouc.c: New file.
94451         * lib/unistr/u32-strmbtouc.c: New file.
94453         * modules/unistr/u8-strncat: New file.
94454         * modules/unistr/u16-strncat: New file.
94455         * modules/unistr/u32-strncat: New file.
94456         * lib/unistr/u8-strncat.c: New file.
94457         * lib/unistr/u16-strncat.c: New file.
94458         * lib/unistr/u32-strncat.c: New file.
94459         * lib/unistr/u-strncat.h: New file.
94461         * modules/unistr/u8-strncmp: New file.
94462         * modules/unistr/u16-strncmp: New file.
94463         * modules/unistr/u32-strncmp: New file.
94464         * lib/unistr/u8-strncmp.c: New file.
94465         * lib/unistr/u16-strncmp.c: New file.
94466         * lib/unistr/u32-strncmp.c: New file.
94468         * modules/unistr/u8-strncpy: New file.
94469         * modules/unistr/u16-strncpy: New file.
94470         * modules/unistr/u32-strncpy: New file.
94471         * lib/unistr/u8-strncpy.c: New file.
94472         * lib/unistr/u16-strncpy.c: New file.
94473         * lib/unistr/u32-strncpy.c: New file.
94474         * lib/unistr/u-strncpy.h: New file.
94476         * modules/unistr/u8-strnlen: New file.
94477         * modules/unistr/u16-strnlen: New file.
94478         * modules/unistr/u32-strnlen: New file.
94479         * lib/unistr/u8-strnlen.c: New file.
94480         * lib/unistr/u16-strnlen.c: New file.
94481         * lib/unistr/u32-strnlen.c: New file.
94482         * lib/unistr/u-strnlen.h: New file.
94484         * modules/unistr/u8-strpbrk: New file.
94485         * modules/unistr/u16-strpbrk: New file.
94486         * modules/unistr/u32-strpbrk: New file.
94487         * lib/unistr/u8-strpbrk.c: New file.
94488         * lib/unistr/u16-strpbrk.c: New file.
94489         * lib/unistr/u32-strpbrk.c: New file.
94490         * lib/unistr/u-strpbrk.h: New file.
94492         * modules/unistr/u8-strrchr: New file.
94493         * modules/unistr/u16-strrchr: New file.
94494         * modules/unistr/u32-strrchr: New file.
94495         * lib/unistr/u8-strrchr.c: New file.
94496         * lib/unistr/u16-strrchr.c: New file.
94497         * lib/unistr/u32-strrchr.c: New file.
94499         * modules/unistr/u8-strspn: New file.
94500         * modules/unistr/u16-strspn: New file.
94501         * modules/unistr/u32-strspn: New file.
94502         * lib/unistr/u8-strspn.c: New file.
94503         * lib/unistr/u16-strspn.c: New file.
94504         * lib/unistr/u32-strspn.c: New file.
94505         * lib/unistr/u-strspn.h: New file.
94507         * modules/unistr/u8-strstr: New file.
94508         * modules/unistr/u16-strstr: New file.
94509         * modules/unistr/u32-strstr: New file.
94510         * lib/unistr/u8-strstr.c: New file.
94511         * lib/unistr/u16-strstr.c: New file.
94512         * lib/unistr/u32-strstr.c: New file.
94513         * lib/unistr/u-strstr.h: New file.
94515         * modules/unistr/u8-strtok: New file.
94516         * modules/unistr/u16-strtok: New file.
94517         * modules/unistr/u32-strtok: New file.
94518         * lib/unistr/u8-strtok.c: New file.
94519         * lib/unistr/u16-strtok.c: New file.
94520         * lib/unistr/u32-strtok.c: New file.
94521         * lib/unistr/u-strtok.h: New file.
94523         * modules/unistr/u8-uctomb: New file.
94524         * modules/unistr/u16-uctomb: New file.
94525         * modules/unistr/u32-uctomb: New file.
94526         * lib/unistr/u8-uctomb.c: New file.
94527         * lib/unistr/u16-uctomb.c: New file.
94528         * lib/unistr/u32-uctomb.c: New file.
94530         * MODULES.html.sh (Unicode string functions): Add the new modules.
94532 2007-01-08  Bruno Haible  <bruno@clisp.org>
94534         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
94535         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
94536         subdirectories.
94538 2007-01-08  Karl Berry  <karl@gnu.org>
94540         * doc/error.texi: mention that main() fns must set program_name
94541         when progname is used.
94543 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
94545         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
94546         WCTYPE_H is empty, for the benefit of builds from non-distclean
94547         directories.  Problem reported by Eric Blake in
94548         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
94550 2007-01-08  Bruno Haible  <bruno@clisp.org>
94552         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
94553         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
94554         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
94555         PROVIDE_CANONICALIZE_FILENAME_MODE.
94556         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
94558 2007-01-08  Bruno Haible  <bruno@clisp.org>
94560         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
94561         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
94562         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
94563         * lib/fts.c: Likewise.
94564         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
94566 2006-12-25  Bruno Haible  <bruno@clisp.org>
94568         * modules/utf8-ucs4-safe: New file.
94569         * lib/utf8-ucs4-safe.h: New file.
94570         * lib/unistr/utf8-ucs4-safe.c: New file.
94572         * modules/utf16-ucs4-safe: New file.
94573         * lib/utf16-ucs4-safe.h: New file.
94574         * lib/unistr/utf16-ucs4-safe.c: New file.
94576         * MODULES.html.sh (Unicode string functions): Add the new modules.
94578 2007-01-08  Bruno Haible  <bruno@clisp.org>
94580         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
94581         (Depends-on): Add unitypes.
94582         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94583         (u8_mbtouc_aux): Move out to separate file.
94584         (u8_mbtouc): Use ucs4_t, uint8_t types.
94585         * lib/unistr/utf8-ucs4.c: New file.
94587         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
94588         (Depends-on): Add unitypes.
94589         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
94590         (u16_mbtouc_aux): Move out to separate file.
94591         (u16_mbtouc): Use ucs4_t, uint16_t types.
94592         * lib/unistr/utf16-ucs4.c: New file.
94594         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
94595         (Depends-on): Add unitypes.
94596         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
94597         (u8_uctomb_aux): Move out to separate file.
94598         (u8_uctomb): Use ucs4_t, uint8_t types.
94599         * lib/unistr/ucs4-utf8.c: New file.
94601         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
94602         (Depends-on): Add unitypes.
94603         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
94604         (u16_uctomb_aux): Move out to separate file.
94605         (u16_uctomb): Use ucs4_t, uint16_t types.
94606         * lib/unistr/ucs4-utf16.c: New file.
94608 2006-12-25  Bruno Haible  <bruno@clisp.org>
94610         * modules/unitypes: New file.
94611         * lib/unitypes.h: New file.
94612         * MODULES.html.sh (func_all_modules): New section "Unicode string
94613         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
94614         this section. Add unitypes.
94616 2007-01-08  Bruno Haible  <bruno@clisp.org>
94618         Avoid variable names that conflict with those from libtool.
94619         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
94620         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
94621         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
94622         library_names_spec to acl_library_names_spec, hardcode_* to
94623         acl_hardcode_*.
94624         Reported by Ralf Wildenhues.
94626 2007-01-08  Bruno Haible  <bruno@clisp.org>
94628         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
94629         definition.
94630         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
94631         definition.
94632         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
94633         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
94634         definition.
94635         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
94636         definition.
94637         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
94638         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
94639         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
94640         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
94641         definition.
94642         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
94643         definition.
94644         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
94645         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
94646         GC_USE_<algorithm>.
94647         * lib/gc-libgcrypt.c: Likewise.
94648         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
94649         * modules/gc-arctwo (configure.ac): Likewise.
94650         * modules/gc-des (configure.ac): Likewise.
94651         * modules/gc-hmac-md5 (configure.ac): Likewise.
94652         * modules/gc-hmac-sha1 (configure.ac): Likewise.
94653         * modules/gc-md2 (configure.ac): Likewise.
94654         * modules/gc-md4 (configure.ac): Likewise.
94655         * modules/gc-md5 (configure.ac): Likewise.
94656         * modules/gc-random (configure.ac): Likewise.
94657         * modules/gc-rijndael (configure.ac): Likewise.
94658         * modules/gc-sha1 (configure.ac): Likewise.
94660 2007-01-08  Bruno Haible  <bruno@clisp.org>
94662         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
94663         macro definition.
94664         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
94665         definition.
94666         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
94667         definition.
94668         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
94669         * modules/fcntl-safer (configure.ac): Likewise.
94670         * modules/fopen-safer (configure.ac): Likewise.
94671         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
94672         GNULIB_FWRITEERROR macro definition.
94674 2007-01-08  Bruno Haible  <bruno@clisp.org>
94676         * m4/gnulib-common.m4: New file.
94677         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
94678         (func_get_filelist): Add m4/gnulib-common.m4.
94680 2007-01-08  Bruno Haible  <bruno@clisp.org>
94682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
94683         command.
94685 2007-01-08  Jim Meyering  <jim@meyering.net>
94687         Use a more robust test for a "can't happen" condition.
94688         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
94689         narrowed the st_size value.  Presuming the "can't happen" condition
94690         is true, that narrowing could conceivably convert an invalid st_size
94691         value into a valid one.  Instead, use a change based on Matthew
94692         Woehlke's original patch.
94694         Slight readability improvement: use an assert-like macro
94695         in place of literal "abort ()" uses.
94696         * lib/fts.c (fts_assert): Define.
94697         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
94698         Use this macro instead of a bare 'abort'.
94700 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
94702         Don't worry about using IRIX 5.3's wctype.h broken definitions;
94703         simply work around them.
94704         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
94705         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
94706         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
94707         declaring.
94708         Don't bother to define as macros, since the standard doesn't require it.
94709         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
94710         longer worry about IRIX 5.3.
94711         (HAVE_WCTYPE_CTMP_BUG): Remove.
94713 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
94715         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
94716         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
94717         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
94718         Problems reported by Georg Schwarz for IRIX 5.3.
94720         * gnulib-tool (autoconf_minversion): Take the maximum version number
94721         found, not the minimum.  Problem reported by James Youngman.
94723 2007-01-03  Karl Berry  <karl@gnu.org>
94725         * doc/error.texi: new file, explaining interaction with progname.
94726         * doc/gnulib.texi: include it.  Update copyright.
94728 2007-01-03  Simon Josefsson  <simon@josefsson.org>
94730         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
94731         AC_CANONICAL_HOST, to improve autobuild outputs.
94733 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
94734             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
94736         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
94737         sockets, server sockets, and other file descriptors.  Count errors
94738         to compute the return value.  Reorder the code a bit to be easier
94739         to follow.  Don't set event bits that were not requested (except
94740         POLLERR and POLLHUP).
94742 2007-01-01  Bruno Haible  <bruno@clisp.org>
94744         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
94746 2007-01-03  Jim Meyering  <jim@meyering.net>
94748         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
94750 2007-01-02  Bruno Haible  <bruno@clisp.org>
94752         * modules/settime (Include): Require timespec.h.
94753         * modules/nanosleep (Include): Likewise.
94755 2007-01-01  Bruno Haible  <bruno@clisp.org>
94757         * gnulib-tool (func_emit_copyright_notice): Bump year.
94758         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
94760 2007-01-01  Bruno Haible  <bruno@clisp.org>
94762         Improve support for OpenBSD.
94763         * build-aux/config.rpath (libname_spec): Export.
94764         (library_names_spec): New variable. Export.
94765         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
94766         library_names_spec from the config.rpath output. Locate shared library
94767         through the name pattern in library_names_spec.
94769 2007-01-01  Eric Blake  <ebb9@byu.net>
94771         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
94773 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
94775         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
94776         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
94777         assume the C locale, and avoid an "eval" that could cause trouble.
94778         Problem with SORT reported by Bob Proulx.
94780         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
94781         Define.  Trivial patch from Henning Nielsen Lund, originally
94782         sent to bug-grep@gnu.org today.
94784 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
94786         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
94787         struct stat.  Problem reported by Henning Nielsen Lund.
94788         * lib/acl.c: Include acl.h first, to check interface.  Don't
94789         bother to include sys/types.h and sys/stat.h again.
94791 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
94793         Import the following change from libc; problem reported by
94794         Sven Verdoolaege.
94796         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
94798         [BZ #1373]
94799         * lib/argp.h: Remove __NTH for __argp_usage inline function.
94801 2006-12-28  Jim Meyering  <jim@meyering.net>
94803         * build-aux/announce-gen: Do not assume that the package
94804         builds any of tar.gz, tar.bz2, and .xdelta files.
94805         Suggestion from Simon Josefsson.
94807 2006-12-28  Simon Josefsson  <simon@josefsson.org>
94809         * modules/announce-gen: New file.
94811 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
94813         * lib/mbchar.h: Just include <wctype.h>; the wctype module
94814         handles its gotchas now.
94815         * lib/mbswidth.c: Likewise.
94816         * lib/wcwidth.h: Likewise.
94817         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
94818         and iswcntrl; the wctype module does this stuff now.
94819         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
94820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
94821         * modules/mbchar (Depends-on): Add wctype.
94822         * modules/mbswidth (Depends-on): Likewise.
94823         * modules/wcwidth (Depends-on): Likewise.
94825 2006-12-27  Eric Blake  <ebb9@byu.net>
94827         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
94828         module uses more than what <wctype.h> is required to provide.
94830 2006-12-26  Eric Blake  <ebb9@byu.net>
94832         * gnulib-tool (sed_extract_prog): Avoid space-tab.
94834 2006-12-26  Eric Blake  <ebb9@byu.net>
94836         * modules/absolute-header: New module.
94837         * modules/fcntl (Depends-on): Depend on it.
94838         * modules/inttypes (Depends-on): Likewise.
94839         * modules/stdint (Depends-on): Likewise.
94840         * modules/sys_stat (Depends-on): Likewise.
94841         * modules/wctype (Depends-on): Likewise.
94842         * MODULES.html.sh (Support for building libraries and
94843         executables): Document it.
94845 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
94847         * gnulib-tool (SED): Remove, undoing previous change.
94848         The problem was that it broke coreutils on Solaris, because
94849         "sed --posix" leaked into a makefile.
94850         (sed): New alias, if 'alias' and GNU sed.
94852 2006-12-24  Jim Meyering  <jim@meyering.net>
94854         Work around an fchownat bug in glibc-2.4:
94855         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
94856         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
94857         in spite of the -P option.
94858         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
94859         New macros.
94860         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
94861         * modules/openat (Files): Add lib/fchownat.c.
94862         * lib/openat.c (fchownat): Don't define here.  Move to...
94863         * lib/fchownat.c: ...this new file.
94865 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
94867         Fix bug reported by Bruno Haible in
94868         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
94869         where quotearg.c didn't compile on Mac OS X 10.2 because it
94870         lacks <wchar.h> and wint_t.
94871         * lib/wctype_.h (__wctype_wint_t): New type.
94872         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
94873         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
94874         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
94875         Arg is now of type __wctype_wint_t, not wint_t.
94876         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
94877         substitute HAVE_WINT_T.
94878         * modules/wctype (Files): Add m4/wint_t.m4.
94879         (wctype.h): Substitute HAVE_WINT_T.
94881 2006-12-23  Bruno Haible  <bruno@clisp.org>
94883         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
94885 2006-12-23  Bruno Haible  <bruno@clisp.org>
94887         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
94888         S_ISLNK.
94889         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
94890         mingw.
94892 2006-12-22  Bruno Haible  <bruno@clisp.org>
94894         * lib/copy-file.c: Include acl.h.
94895         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
94896         Close the file descriptors only after being done with copy_acl.
94897         * modules/copy-file (Depends-on): Add acl.
94899 2006-12-22  Bruno Haible  <bruno@clisp.org>
94901         * gnulib-tool (SED): New variable.
94902         Use $SED instead of sed everywhere.
94904 2006-12-22  Bruno Haible  <bruno@clisp.org>
94906         * modules/no-c++: New file.
94907         * m4/no-c++.m4: New file.
94908         * MODULES.html.sh (Support for building libraries and executables):
94909         Add no-c++.
94911 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
94913         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
94914         Include <limits.h>, and use its INT_MAX to rewrite the
94915         j loop so that it does not overflow 'int'.  Problem reported by
94916         Ralf Wildenhues in
94917         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
94918         Play it safe by shifting left by 1 rather than multiplying by 2,
94919         as GCC is less likely to optimize this away when the value
94920         is signed (when it assumes overflow leads to undefined behavior).
94921         Also, don't assume time_t uses two's complement.
94923 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
94925         * MODULES.html.sh: New module wctype.
94926         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
94927         * lib/fnmatch.c: Don't bother to include <wchar.h> before
94928         <wctype.h>, since the new wctype module should fix this.
94929         * lib/quotearg.c: Include <wctype.h> unconditionally, since
94930         the wctype module should arrange for it.
94931         * lib/regex_internal.h: Likewise.
94932         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
94933         since the wctype module should handle this now.
94934         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
94935         * modules/fnmatch (Depends-on): Add wctype.
94936         * modules/quotearg (Depends-on): Likewise.
94937         * modules/regex (Depends-on): Likewise.
94939 2006-12-19  Bruno Haible  <bruno@clisp.org>
94941         * lib/strdup.h [C++]: Wrap definitions in extern "C".
94942         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
94944 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
94946         * modules/savewd (Depends-on): Fix dependency on fcntl.
94948 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94950         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
94951         conforms to C99, rather than relying on the user's environment
94952         setting of STDINT_H.
94954 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
94955         and Eric Blake  <ebb9@byu.net>
94957         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
94958         This is more consistent with the other defines here.
94959         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
94960         Port to z/OS.  Problem reported by Paul Gilmartin.
94961         Change local vars to use gl_ prefix rather than ac_.
94962         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
94963         with other defines.
94964         * modules/double-slash-root: New module.
94965         * modules/dirname (Files): Remove m4/double-slash-root.m4.
94966         (Depends-on): Add double-slash-root.
94967         * MODULES.html.sh (File system functions): Mention new module.
94969 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
94971         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
94972         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
94973         This is for the benefit of gzip, which doesn't do i18n.
94975 2006-12-12  Jim Meyering  <jim@meyering.net>
94977         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
94978         Reported by Andreas Schwab <schwab@suse.de>.
94980 2006-12-12  Bruno Haible  <bruno@clisp.org>
94982         Merge these changes.
94983         2006-09-05  Bruno Haible  <bruno@clisp.org>
94984         * lib/iconvme.c (iconv_string): No need to save and restore errno when
94985         iconv_alloc succeeded.
94986         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
94987         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
94988         test for " && dest " at the end - dest is always != NULL there. Call
94989         iconv with 4xNULL arguments initially, to reset the state. Call iconv
94990         with 2xNULL arguments, also to flush the state storage. Handle the
94991         IRIX iconv behaviour. Realloc the final result, to throw away unused
94992         memory.
94994 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
94996         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
94997         and fchmodat unconditionally, since glibc 2.4 has them.
94998         Problem reported by Arkadiusz Miskiewicz.
95000 2006-12-10  Bruno Haible  <bruno@clisp.org>
95002         * gnulib-tool (func_import): Show the include files only for those
95003         modules that are copied and specified.
95004         Reported by Karl Berry.
95006 2006-12-08  Jim Meyering  <jim@meyering.net>
95008         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
95009         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
95011         * build-aux/announce-gen: Add two new options, both optional:
95012         --bootstrap-tools=TOOL_LIST
95013               a comma-separated list of tools, e.g.,
95014               autoconf,automake,bison,gnulib
95015         --gnulib-snapshot-date=DATE
95016               if gnulib is in the bootstrap tool list,
95017               then report this as the snapshot date.
95018               If not specified, use the current date/time.
95019               If you specify a date here, be sure it's UTC.
95021 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95023         * tests/test-argp-2.sh: Fix test to match actual output.
95024         (func_compare): Fix sed script to be portable.
95026 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
95028         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
95029         workaround for this case.  It is not autoconfigured now; offhand
95030         it's hard to see how to autoconfigure it.
95032 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
95034         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
95035         a directory that is about to be chowned.  Such a directory's
95036         initial file permissions should permit the owner only and this
95037         should not be changed until after the chown, since the group and
95038         other bits would be incorrect if they granted permission before
95039         the chown.
95041         Fix porting problem for iswctype reported by Georg Schwarz in:
95042         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
95043         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
95044         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
95045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
95046         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
95048 2006-12-03  Jim Meyering  <jim@meyering.net>
95050         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
95051         p->fts_statp may not yet be defined.
95052         (fts_read): Instead, set it in the caller, once p->fts_statp is
95053         sure to be defined, and corresponds to a top-level directory.
95054         This bug made du -x fail.  Here's the coreutils test case:
95055         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
95056         Reported by Mike Frysinger.
95058 2006-12-01  Jim Meyering  <jim@meyering.net>
95060         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
95061         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
95062         Reported by Simon Josefsson.
95064 2006-11-30  Jim Meyering  <jim@meyering.net>
95066         * m4/warning.m4: Use the all-permissive copyright notice
95067         recommended by RMS (rather than LGPL).
95068         * m4/vararrays.m4: Likewise.
95069         * m4/flexmember.m4: Likewise.
95071 2006-11-29  Bruno Haible  <bruno@clisp.org>
95073         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95074         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
95075         using +=.
95076         Reported by Simon Josefsson <simon@josefsson.org>.
95078 2006-11-28  James Youngman  <jay@gnu.org>
95080         * README: Advise users that they might find the bug-gnulib@gnu.org
95081         and autotools-announce@gnu.org mailing lists useful.
95083 2006-11-28  Bruno Haible  <bruno@clisp.org>
95085         * m4/ptrdiff_max.m4: Remove file.
95087 2006-11-21  Bruno Haible  <bruno@clisp.org>
95089         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
95090         _AC_COMPUTE_INT.
95091         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95092         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
95093         _AC_COMPUTE_INT.
95094         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95095         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
95096         _AC_COMPUTE_INT.
95097         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95099 2006-11-28  Jim Meyering  <jim@meyering.net>
95101         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
95102         warning from "gcc -Wshadow" about shadowing the builtin.
95104 2006-11-27  Bruno Haible  <bruno@clisp.org>
95106         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
95107         _AC_COMPUTE_INT.
95108         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
95110 2006-11-27  Bruno Haible  <bruno@clisp.org>
95111             Paul Eggert  <eggert@cs.ucla.edu>
95113         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
95115 2006-11-26  Bruno Haible  <bruno@clisp.org>
95117         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
95118         noinst_LTLIBRARIES.
95120 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
95121             Bruno Haible  <bruno@clisp.org>
95123         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
95124         if compiling with "gcc -ansi".
95126 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
95128         Fix some incompatibilities with gcc -ansi -pedantic.
95129         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
95130         if compiling pedantically with GCC, unless it's C99 or later.
95131         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
95132         it mishandles gcc -ansi -pedantic as well.
95133         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
95134         if gcc -pedantic.
95135         * lib/regexec.c (check_node_accept_bytes): Don't use auto
95136         initializers for struct if -pedantic, unless it's C99 or later.
95138 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
95140         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
95141         Don't close an fd more than once. Identical atimes indicate
95142         success, not failure.
95144 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
95146         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
95148 2006-11-23  Jim Meyering  <jim@meyering.net>
95150         * build-aux/announce-gen: New file.  From coreutils.
95152 2006-11-22  Jim Meyering  <jim@meyering.net>
95154         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
95155         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
95156         (fts_read): Use a temporary to narrow the overused st_size member
95157         before using it in a switch statement.  Reported by Matthew Woehlke.
95159         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
95160         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
95162 2006-11-20  Bruno Haible  <bruno@clisp.org>
95164         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
95165         changequote instead of pairs of brackets.
95166         Reported by Andreas Schwab <schwab@suse.de>.
95168 2006-11-21  Jim Meyering  <jim@meyering.net>
95170         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
95171         so as to remain compatible with older compilers.
95172         Patch from Michael Deutschmann.
95174 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
95176         * MODULES.html.sh (File system functions): Add openat.
95178         * lib/openat.h (rpl_fstatat): New macro, if
95179         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
95180         (fstatat): Define to rpl_fstatat under the same conditions,
95181         unless COMPILING_FSTATAT.
95182         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
95183         seems to have the bug.
95184         * lib/fstatat.c: New file.
95185         * modules/openat (Files): Add it.
95187 2006-11-20  Bruno Haible  <bruno@clisp.org>
95189         * Makefile: New file.
95191 2006-11-20  Jim Meyering  <jim@meyering.net>
95193         The beginnings of syntax-related checks for gnulib.
95194         * lib/Makefile: New file.
95195         * lib/t-idcache: New script.  Ensure that the two halves of
95196         idcache.c stay in sync.
95198         * lib/idcache.c: Adjust comments in user- and group- portions to
95199         be more accurate, and to be consistent with one another.
95201 2006-11-20  Jim Meyering  <jim@meyering.net>
95203         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
95204         continue using the flexible array member (thus, this module performs
95205         half as many malloc calls), with the addition that...
95206         (getgroup, getuser): Consistently record a non-match via an empty
95207         "name" string, and map an empty string match to a NULL return value.
95208         * modules/idcache (Depends-on): Re-add flexmember.
95210         * lib/idcache.c (getuser): Remove all uses of the register keyword.
95211         (getuidbyname, getgroup, getgidbyname): Likewise.
95213         Use cleaner syntax: NULL rather than 0.
95214         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
95216 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
95218         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
95219         It mishandled the case where the group was missing.
95220         Problem reported by Greg Schafer.
95221         * modules/idcache: Likewise.
95223 2006-11-18  Jim Meyering  <jim@meyering.net>
95225         * check-module (%exempt_header): Add exception for some
95226         conditionally-included headers.
95228         * modules/i-ring (Depends-on): Add verify.
95229         (License): Change to LGPL.
95231 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
95233         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
95234         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
95235         and inttostr.h.  Use snprintf rather than uinttostr, so that
95236         LGPLed code doesn't depend on GPLed.
95238 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
95240         * modules/inline (License): Change from GPL to LGPL.
95242 2006-11-17  Jim Meyering  <jim@meyering.net>
95244         * modules/d-type (License): Switch to LGPL.
95246 2006-11-15  Bruno Haible  <bruno@clisp.org>
95248         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
95250 2006-11-15  Eric Blake  <ebb9@byu.net>
95252         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
95253         the module dependency.
95255 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
95256             Bruno Haible  <bruno@clisp.org>
95258         * gnulib-tool (func_create_testdir): Add license consistency check.
95260 2006-11-15  Eric Blake  <ebb9@byu.net>
95262         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
95263         random "(cached)" in configure output.
95265 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95267         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
95268         test for conforming inttypes.h is both announced and cached.
95270         * MODULES.html.sh (seen_modules, seen_files): New variables.
95271         (func_module): Rewrite to use a few less gnulib-tool and sed
95272         invocations.  Avoid a couple of quadratic algorithms for ...
95273         (missed_modules, missed_files): ... these, with ...
95274         (func_append, func_tmpdir): ... these new functions, from
95275         gnulib-tool.  Analogously, install traps for cleanup.
95277         * tests/test-gc.c (main): Remove unused variables.
95278         * tests/test-read-file.c: Include stdlib.h, for 'free'.
95280 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
95282         * modules/inttostr (License): Change to LGPL.
95284 2006-11-14  Eric Blake  <ebb9@byu.net>
95286         * modules/tempname (License): Change to LGPL.
95288 2006-11-14  Eric Blake  <ebb9@byu.net>
95290         * doc/functions.texi (Function Portability): *printf functions on
95291         Cygwin now understand all POSIX size specifiers.
95293 2006-11-14  Bruno Haible  <bruno@clisp.org>
95295         * modules/c-ctype (License): Change to LGPL.
95297 2006-11-12  Bruno Haible  <bruno@clisp.org>
95299         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
95300         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
95301         for GNOME libraries, for which the include files are installed in
95302         subdirectories of $prefix/include.
95304 2006-11-12  Bruno Haible  <bruno@clisp.org>
95306         * m4/lib-link.m4: Require at least autoconf-2.54.
95307         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
95308         name to underscores for the --with option.
95310 2006-11-13  Bruno Haible  <bruno@clisp.org>
95312         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
95313         the tests directory.
95314         Reported by Ralf Wildenhues.
95316 2006-11-13  Bruno Haible  <bruno@clisp.org>
95318         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
95319         (func_emit_initmacro_end): Undo the override here.
95320         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
95321         Works around the famous automake error in coreutils.
95323 2006-11-13  Eric Blake  <ebb9@byu.net>
95325         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
95326         element, not its node.
95328 2006-11-12  Bruno Haible  <bruno@clisp.org>
95330         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
95331         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
95333 2006-11-12  Bruno Haible  <bruno@clisp.org>
95335         * gnulib-tool: New option --local-symlink.
95336         (func_usage): Document it.
95337         (lsymbolic): New variable.
95338         (func_import, func_create_testdir): If --symlink was not specified,
95339         test whether --local-symlink was specified and the file comes from
95340         the local_gnulib_dir.
95342 2006-11-12  Bruno Haible  <bruno@clisp.org>
95344         * gnulib-tool (func_ln): New function.
95345         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
95347 2006-11-12  Bruno Haible  <bruno@clisp.org>
95349         Finish support for source files in subdirectories.
95350         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
95351         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
95352         AUTOMAKE_OPTIONS.
95353         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
95355 2006-11-12  Bruno Haible  <bruno@clisp.org>
95357         * gnulib-tool (func_get_automake_snippet): Synthesize also an
95358         EXTRA_lib_SOURCES augmentation.
95359         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
95361 2006-11-12  Jim Meyering  <jim@meyering.net>
95363         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
95364         file descriptors.  This also averts a failure on systems with
95365         native openat support when a traversed directory lacks "x" access.
95366         * lib/fts_.h: Include "i-ring.h"
95367         (struct FTS) [fts_fd_ring]: New member.
95368         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
95369         (FCHDIR): Add parentheses.
95370         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
95371         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
95372         When descending, rather than simply closing the previous
95373         fts_cwd_fd value, push that file descriptor onto the ring.
95374         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
95375         (fts_open): Initialize the new fd_ring member.
95376         (fts_close): Clear the ring.
95377         (fts_safe_changedir): When possible, use our new fd_ring to skip
95378         the diropen and fstat and dev/ino comparison that would normally
95379         accompany a virtual `chdir ("..")'.
95381         * modules/fts (Depends-on): Add i-ring.
95382         * modules/i-ring: New module.
95383         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
95384         * m4/i-ring.m4: New file.
95386 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95388         * gnulib-tool (func_create_testdir): Fix replacement of
95389         `build-aux' in configure.ac.  Run autotools in gltests
95390         subdirectory.
95391         (func_create_testdir, func_create_megatestdir, test): There is
95392         no need for '--force' in most autotool invocations in a new
95393         tree.  Actually fail the whole test if any of the tools, or the
95394         configure or make stages fail.
95396         Sync from Automake.
95397         * build-aux/gnupload: Revert last change.  Add pointer to upload
95398         instructions of the GNU Maintenance Instructions.
95399         Suggestion by Karl Berry.
95401 2006-11-10  Jim Meyering  <jim@meyering.net>
95403         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
95405 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95407         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
95408         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
95409         (bind_textdomain_codeset) [! ENABLE_NLS]:
95410         Evaluate all the arguments.  That way, callers get compatible behavior
95411         if the arguments have side effects.  Also, it avoids some GCC
95412         diagnostics in some cases; Joel E. Denny reported problems when Bison
95413         was configured with --enable-gcc-warnigs.
95415 2006-11-10  Jim Meyering  <jim@meyering.net>
95417         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
95418         relevant options in CFLAGS (like -O, -fno-inline) are taken into
95419         account.
95421 2006-11-10  Jim Meyering  <jim@meyering.net>
95423         * modules/inline: New file/module.
95424         * modules/xalloc (Files): Remove m4/inline.m4.
95425         (Depends-on): Add inline, instead.
95426         * modules/oset: Likewise.
95427         * modules/list: Likewise.
95429 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
95431         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
95432         Problem reported by Matthew Woehlke.
95434 2006-11-09  Bruno Haible  <bruno@clisp.org>
95436         * lib/tempname.c (gen_tempname): Remove variant that invokes
95437         __gen_tempname.
95438         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
95439         __gen_tempname.
95441 2006-11-08  Bruno Haible  <bruno@clisp.org>
95443         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
95444         to 'yes' instead of 'cross-compiling'.
95446 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
95448         * lib/quotearg.h (quotearg_free): New decl.
95449         * lib/quotearg.c (quotearg_free): New function.
95450         (slot0, nslots, slotvec0, slotvec):
95451         Now file-scope so that quotearg_free can get at them.
95453 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95455         Sync from Automake.
95456         * build-aux/gnupload: Add missing 'gnu' to example URL.
95457         Report by Karl Berry.
95459 2006-11-08  Bruno Haible  <bruno@clisp.org>
95461         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
95462         Suggested by Paul Eggert.
95464 2006-11-08  Jim Meyering  <jim@meyering.net>
95466         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
95467         It's already included if !_LIBC.
95468         (fts_safe_changedir): Add a comment.
95470 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95472         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
95473         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
95474         Matthew Woehlke.
95476         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
95477         definitions up, to avoid colliding with change below.
95478         (static_inline) [HAVE_INLINE]: New macro.
95479         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
95480         Provide extern decls when !HAVE_INLINE.  Do not define unless
95481         static_inline is defined, either by us or by xmalloc.c.  Use
95482         static_inline rather than static inline.
95483         (XCALLOC): Optimize sizeof(T) = 1 case.
95484         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
95486 2006-11-07  Bruno Haible  <bruno@clisp.org>
95488         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
95489         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
95490         AC_C_INLINE.
95491         * modules/xalloc (Files): Add m4/inline.m4.
95493 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95495         * README: Fix typo.
95496         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
95497         (Miscellanous Notes): ...from this.
95499 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
95501         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
95502         Mention that offsetof should be used instead of sizeof.
95503         From Bruno Haible.
95505 2006-11-07  Bruno Haible  <bruno@clisp.org>
95507         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
95509 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95511         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95512         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
95513         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95514         (gl_tree_add_before, gl_tree_add_after):
95515         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
95516         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
95517         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
95518         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
95519         (gl_linked_add_after, gl_linked_add_at): Likewise.
95520         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
95521         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
95522         (gl_tree_add_before, gl_tree_add_after): Likewise.
95523         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
95524         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
95525         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
95527 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95529         * lib/gl_oset.h: Use C comment style, not C++ comment style.
95531 2006-11-06  Bruno Haible  <bruno@clisp.org>
95533         * m4/inline.m4: New file.
95534         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
95535         * modules/list (Files): Add m4/inline.m4.
95536         * modules/oset (Files): Likewise.
95538 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
95540         * lib/idcache.c: Include <stddef.h>, for offsetof.
95541         (struct userid.name): Change from char * to a flexible array member.
95542         All uses changed.
95543         * modules/idcache (Depends-on): Add flexmember.
95545         * MODULES.html.sh (Core language properties): New module flexmember.
95546         * modules/flexmember, m4/flexmember.m4: New files.
95548         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
95549         inline functions that are identical with the old xnmalloc_inline,
95550         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
95551         that we can avoid some unnecessary integer multiplications and
95552         divisions in the common case where the element size is known at
95553         compile time.
95554         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
95555         needed.
95556         (xnboundedmalloc): Remove.
95557         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
95558         arguments, for consistency with rest of this header.
95559         (xcharalloc): Rewrite using XNMALLOC.
95560         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
95561         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
95562         versions have been moved to lib/xalloc.h and renamed to be the
95563         non-*_inline versions.
95564         (xmalloc, xrealloc): Implement without reference to the xnmalloc
95565         and xnrealloc functions, since those functions are now inline and
95566         now call us.
95567         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
95568         renaming described above.
95569         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
95570         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
95571         captures the dependency in AC_C_INLINE.
95573         New module canonicalize-lgpl, proposed by Charles Wilson in
95574         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
95575         with a few small changes afterwards.
95576         * MODULES.html.sh (File system functions): New module
95577         canonicalize-lgpl.
95578         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
95579         and canonicalize_file_name.
95580         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
95581         * modules/canonicalize-lgpl: New files.
95583 2006-11-05  Bruno Haible  <bruno@clisp.org>
95585         * gnulib-tool (func_import, func_create_testdir): Create directories
95586         also for files in subdirectories of lib/.
95588 2006-11-05  Bruno Haible  <bruno@clisp.org>
95590         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
95591         ANSI C compliant.
95593 2006-11-03  Bruno Haible  <bruno@clisp.org>
95595         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
95596         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
95597         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
95598         (xnboundedmalloc): New inline function.
95599         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
95600         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
95601         xmalloc.
95602         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
95603         xmalloc.
95604         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
95605         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
95606         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
95607         xmalloc.
95608         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95609         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
95610         xmalloc.
95611         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
95612         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95613         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
95614         xmalloc.
95615         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
95616         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
95617         gl_tree_add_after): Use XMALLOC instead of xmalloc.
95618         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
95619         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
95620         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
95621         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
95623 2006-11-03  Bruno Haible  <bruno@clisp.org>
95625         * lib/c-ctype.h [C++]: Define functions without name mangling.
95626         * lib/fwriteerror.h [C++]: Likewise.
95627         * lib/gcd.h [C++]: Likewise.
95628         * lib/linebreak.h [C++]: Likewise.
95630 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
95632         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
95633         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
95634         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
95635         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
95636         Check for functions and headers just once.
95637         Check for declaration of canonicalize_file_name.
95638         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
95640 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
95642         * gnulib-tool (func_import): Fix typo in actioncmd.
95644 2006-11-02  Bruno Haible  <bruno@clisp.org>
95646         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
95647         newline sequence in the Makefile.am snippet as a space, like "make"
95648         does.
95649         Reported by Roger Persson <perrog@gmail.com>.
95651 2006-11-01  Bruno Haible  <bruno@clisp.org>
95653         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
95654         already declared in <string.h>.
95655         * lib/strcase.h (strncasecmp): Don't declare it if yes.
95657 2006-11-01  Bruno Haible  <bruno@clisp.org>
95659         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
95660         * lib/strcase.h: Include <string.h>.
95661         (strcasecmp): Define to rpl_strcasecmp here.
95663 2006-11-01  Bruno Haible  <bruno@clisp.org>
95665         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
95667 2006-11-01  Eric Blake  <ebb9@byu.net>
95669         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
95671         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
95673 2006-10-29  Bruno Haible  <bruno@clisp.org>
95675         Make it compile in C++ mode.
95676         * lib/full-write.c (full_rw): Add a cast.
95678 2006-11-01  Bruno Haible  <bruno@clisp.org>
95680         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
95681         be POSIX compliant.
95682         Reported by Roger Persson <perrog@gmail.com>.
95684 2006-11-01  Eric Blake  <ebb9@byu.net>
95686         * lib/getopt_.h: Fix comments.
95688 2006-10-31  Eric Blake  <ebb9@byu.net>
95690         * modules/tmpdir (Depends-on): Add sys_stat.
95691         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
95692         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
95693         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
95694         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
95695         tempname.
95697 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
95699         Avoid some C++ diagnostics reported by Bruno Haible.
95700         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
95701         xmalloc.
95702         (quotearg_alloc): Use xcharalloc rather than xmalloc.
95703         (struct slotvec): Move to top level.
95704         (quotearg_n_options): Rewrite to avoid xmalloc.
95705         * lib/xalloc.h (xcharalloc): New function.
95706         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
95707         [defined __cplusplus]: Add function template that provides result
95708         type propagation.  This part of the change is from Bruno Haible.
95710 2006-10-29  Bruno Haible  <bruno@clisp.org>
95712         Make it compile in C++ mode.
95713         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
95714         * lib/strnlen1.c (strnlen1): Cast memchr result.
95715         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
95716         * lib/clean-temp.c (string_equals, string_hash): Add casts.
95717         (create_temp_dir): Rename local variable 'template'.
95718         (compile_csharp_using_sscli): Add cast.
95719         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
95720         * lib/findprog.c (find_in_path): Likewise.
95721         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
95722         * lib/wait-process.c (register_slave_subprocess): Likewise.
95724 2006-10-22  Bruno Haible  <bruno@clisp.org>
95726         * modules/tsearch: New file.
95727         * lib/tsearch.h: New file.
95728         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
95729         * m4/tsearch.m4: New file.
95730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
95732 2006-10-29  Eric Blake  <ebb9@byu.net>
95734         * lib/arcfour.c: Assume config.h.
95735         * lib/arctwo.c: Likewise.
95736         * lib/base64.c: Likewise.
95737         * lib/check-version.c: Likewise.
95738         * lib/crc.c: Likewise.
95739         * lib/des.c: Likewise.
95740         * lib/gc-gnulib.c: Likewise.
95741         * lib/gc-libgcrypt.c: Likewise.
95742         * lib/gc-pbkdf2-sha1.c: Likewise.
95743         * lib/getaddrinfo.c: Likewise.
95744         * lib/getdelim.c: Likewise.
95745         * lib/getline.c: Likewise.
95746         * lib/hmac-md5.c: Likewise.
95747         * lib/hmac-sha1.c: Likewise.
95748         * lib/iconvme.c: Likewise.
95749         * lib/md2.c: Likewise.
95750         * lib/md4.c: Likewise.
95751         * lib/memxor.c: Likewise.
95752         * lib/read-file.c: Likewise.
95753         * lib/readline.c: Likewise.
95754         * lib/rijndael-alg-fst.c: Likewise.
95755         * lib/rijndael-api-fst.c: Likewise.
95756         * lib/xgetdomainname.c: Likewise.
95758 2006-10-28  Eric Blake  <ebb9@byu.net>
95760         * lib/xstrndup.c: Assume config.h.
95762 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
95764         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
95765         stat-macros.h is now for our own macros, whereas stat_h is for
95766         macros in the <sys/stat.h> name space.
95767         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
95768         (STAT_MACROS_H): Remove.
95769         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
95770         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
95771         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
95772         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
95773         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
95774         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
95775         Move these macros to ...
95776         * lib/stat_.h: here.  Don't include stat-macros.h.
95777         * lib/canonicalize.c: Don't include stat-macros.h.
95778         * lib/chown.c: Likewise.
95779         * lib/euidaccess.c: Likewise.
95780         * lib/file-type.c: Likewise.
95781         * lib/filemode.c: Likewise.
95782         * lib/glob.c: Likewise.
95783         * lib/isapipe.c: Likewise.
95784         * lib/lchown.c: Likewise.
95785         * lib/lstat.c: Likewise.
95786         * lib/mkdir-p.c: Likewise.
95787         * lib/rmdir.c: Likewise.
95788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
95789         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
95790         unless mkdir isn't declared, to speed up 'configure'.
95791         Always create sys/stat.h, since it's unlikely any real sys/stat.h
95792         would define all the S_* symbols.
95793         * modules/canonicalize (Depends-on):
95794         Depend on sys_stat, not stat-macros.
95795         * modules/chown: Likewise.
95796         * modules/euidaccess: Likewise.
95797         * modules/filemode: Likewise.
95798         * modules/file-type: Likewise.
95799         * modules/glob: Likewise.
95800         * modules/isapipe: Likewise.
95801         * modules/lchown: Likewise.
95802         * modules/lstat: Likewise.
95803         * modules/mkancesdirs: Likewise.
95804         * modules/rmdir: Likewise.
95805         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
95806         * modules/modechange: Likewise.
95807         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
95808         (configure.ac): Remove gl_STAT_MACROS.
95809         * modules/sys_stat (Depends-on): Remove stat-macros.
95811 2006-10-27  Bruno Haible  <bruno@clisp.org>
95813         * m4/signed.m4: Remove file.
95814         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
95815         invocation.
95816         * modules/vasnprintf (Files): Remove m4/signed.m4.
95818 2006-10-27  Bruno Haible  <bruno@clisp.org>
95820         Update to GNU gettext 0.16.
95821         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
95822         m4/inttypes-h.m4, m4/signed.m4.
95823         * m4/gettext.m4: Update to GNU gettext 0.16.
95824         * m4/intl.m4: New file, from GNU gettext.
95825         * m4/intldir.m4: New file, from GNU gettext.
95826         * config/srclist.txt: Update
95828 2006-10-27  Eric Blake  <ebb9@byu.net>
95830         * MODULES.html.sh: Document tempname.
95831         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
95832         dependencies.
95833         (Files): Move lib/tempname.c...
95834         * modules/tempname: ...to this new module.
95835         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
95836         (gl_PREREQ_TEMPNAME): Move...
95837         * m4/tempname.m4: ...to this new file.
95838         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
95839         * modules/sys_stat (Depends-on): Add stat-macros.
95840         * lib/stat_.h (includes): Pick up stat macros.
95841         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
95842         if stat macros are broken.
95843         * lib/tempname.c (includes): No need to include "stat-macros.h".
95844         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
95845         (direxists, __path_search) [!_LIBC]: Don't compile these in
95846         gnulib; the tmpdir module covers that.
95847         * lib/tempname.h: New file.
95849 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
95851         * COPYING: Explain how gnulib-tool converts licence headers.
95852         Almost all wording by Eric Blake.
95854 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
95856         * lib/mbchar.h (is_basic_table): Make read-only.
95857         * lib/mbchar.c (is_basic_table): Likewise.
95858         Reported by John Darrington.
95860 2006-10-25  Bruno Haible  <bruno@clisp.org>
95862         * lib/progname.h (set_program_name): Undefine before defining.
95864 2006-10-25  Bruno Haible  <bruno@clisp.org>
95866         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
95867         false for non-gcc C++ compilers.
95868         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95870 2006-10-24  Bruno Haible  <bruno@clisp.org>
95872         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
95873         iconv implementations like Irix iconv.
95875 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95877         * modules/vararrays: New file.
95878         * m4/vararrays.m4: New file, taken from diffutils.
95879         * MODULES.html.sh: New module vararrays.
95881 2006-10-24  Karl Berry  <karl@gnu.org>
95883         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
95884         Don't call GNU Unix.
95886 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
95888         * users.txt: Add Libtool.
95890         Sync from Libtool:
95892         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95894         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
95895         to gnulib's policy of including config.h unconditionally.
95897 2006-10-24  Bruno Haible  <bruno@clisp.org>
95899         * modules/wcwidth (Files): Add m4/wint_t.m4.
95900         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
95901         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
95903 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
95905         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
95906         to pacify GCC with some -W flags enabled.  Problem reported by
95907         Bruno Haible.
95909 2006-10-24  Jim Meyering  <jim@meyering.net>
95911         * MODULES.html.sh: Remove uinttostr.  It's not a module.
95912         Reported by Karl Berry.
95914 2006-10-23  Bruno Haible  <bruno@clisp.org>
95916         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
95918 2006-10-24  Bruno Haible  <bruno@clisp.org>
95920         * lib/gl_list.h: Use C comment style, not C++ comment style.
95922 2006-10-23  Eric Blake  <ebb9@byu.net>
95924         * lib/getaddrinfo.c (includes): Add missing include.
95926 2006-10-23  Bruno Haible  <bruno@clisp.org>
95927             Paul Eggert  <eggert@cs.ucla.edu>
95929         Ability to rename obstack_free.
95930         * lib/obstack.h (__obstack_free): New macro. Declare instead of
95931         obstack_free.
95932         (obstack_free): Invoke the __obstack_free macro.
95933         * lib/obstack.c (obstack_free): Use __obstack_free macro.
95935 2006-10-23  Bruno Haible  <bruno@clisp.org>
95936             Paul Eggert  <eggert@cs.ucla.edu>
95938         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
95939         __argc, __argv from the declaration. (They are defined as macros on
95940         mingw.)
95942 2006-10-22  Bruno Haible  <bruno@clisp.org>
95944         * doc/gnulib-intro.texi: New file.
95945         * doc/gnulib.texi: Include it.
95947 2006-10-21  Bruno Haible  <bruno@clisp.org>
95949         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
95950         "Introduction", "Miscellanous Notes", "Particular Modules".
95952 2006-10-21  Bruno Haible  <bruno@clisp.org>
95954         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
95955         Change mostlyclean-local rule to avoid sh syntax error from bash
95956         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
95958 2006-10-23  Jim Meyering  <jim@meyering.net>
95960         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
95961         in place of snprintf.
95963         * modules/inttostr (Files): Add lib/uinttostr.c.
95964         * lib/uinttostr.c (inttostr): New file/function.
95965         * lib/inttostr.h (uinttostr): Declare.
95966         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
95967         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
95968         Add uinttostr.
95969         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
95971 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95973         * lib/canonicalize.c (ELOOP): Define if not already defined.
95974         Problem reported by Bruno Haible in
95975         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
95977 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
95979         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
95980         Problem reported by Perry Smith and Ville Laurikari.
95982         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
95983         uses.
95985 2006-10-19  Bruno Haible  <bruno@clisp.org>
95987         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
95988         for mingw.
95990 2006-10-19  Bruno Haible  <bruno@clisp.org>
95992         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
95993         Needed for mingw.
95995 2006-10-19  Bruno Haible  <bruno@clisp.org>
95997         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
95999 2006-10-19  Bruno Haible  <bruno@clisp.org>
96001         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
96002         it.
96004 2006-10-19  Bruno Haible  <bruno@clisp.org>
96006         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
96007         invocation.
96009 2006-10-19  Bruno Haible  <bruno@clisp.org>
96011         * gnulib-tool (func_create_testdir): Don't include ftruncate and
96012         mountlist by default.
96014 2006-10-16  Bruno Haible  <bruno@clisp.org>
96016         * lib/c-strstr.c: Include c-strstr.h.
96018 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
96020         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
96021         in a slash.
96023 2006-10-18  Bruno Haible  <bruno@clisp.org>
96025         * lib/lock.h [C++]: Wrap definitions in extern "C".
96027 2006-10-18  Bruno Haible  <bruno@clisp.org>
96029         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
96030         gl_LIBOBJS list.
96032 2006-10-18  Bruno Haible  <bruno@clisp.org>
96034         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
96036 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
96038         * lib/xstrtol.h: Include gettext.h.
96039         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
96040         Problem reported by Eric Blake.
96041         * modules/xstrtol (Depends-on): Add gettext-h.
96043 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
96045         * lib/strftime.c (advance): New macro.
96046         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
96047         incomplete type, so you can't add 0 to it.  Problem and patch
96048         reported by Eelco Dolstra for dietlibc.
96050 2006-10-18  Jim Meyering  <jim@meyering.net>
96052         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
96053         type for a local, and rename it: s/up/user_proc/.
96055 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
96057         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
96058         READ_UTMP_USER_PROCESS.
96059         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
96061 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
96063         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
96064         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
96066 2006-10-17  Eric Blake  <ebb9@byu.net>
96068         * lib/sigprocmask.c (sigprocmask): Fix typo.
96070         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
96072         * modules/clean-temp (Makefile.am): Don't add to make output...
96073         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
96074         config.h.
96076 2006-10-17  Bruno Haible  <bruno@clisp.org>
96078         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
96079         differently if DEFAULT_TEXT_DOMAIN is set.
96081 2006-10-16  Bruno Haible  <bruno@clisp.org>
96083         * lib/clean-temp.c: Include fwriteerror.h.
96085 2006-10-16  Bruno Haible  <bruno@clisp.org>
96087         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
96089 2006-10-16  Bruno Haible  <bruno@clisp.org>
96091         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
96092         * lib/sigprocmask.h: Include <sys/types.h>.
96093         (sigset_t): Use the system's definition if present.
96095 2006-10-17  Eric Blake  <ebb9@byu.net>
96097         * lib/xvasprintf.c (includes): Assume config.h.
96098         * lib/xasprintf.c (includes): Likewise.
96100 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
96102         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
96103         at least as wide as intmax_t.
96105 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
96107         (Imported from Automake.)
96108         * build-aux/gnupload: Update to version 1.1 of directive file.
96110 2006-10-16  Eric Blake  <ebb9@byu.net>
96112         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
96113         match Automake 1.10a.
96115 2006-10-14  Bruno Haible  <bruno@clisp.org>
96117         * modules/sigprocmask: New file.
96118         * lib/sigprocmask.h: New file.
96119         * lib/sigprocmask.c: New file.
96120         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
96121         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
96122         request sigprocmask.o.
96123         (gl_PREREQ_SIGPROCMASK): New macro.
96124         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
96125         (Depends-on): Add sigprocmask.
96126         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
96127         gt_SIGNALBLOCKING. Test for 'raise' only once.
96128         * lib/fatal-signal.c: Include sigprocmask.h.
96129         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
96130         unblock_fatal_signals): Define always.
96131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
96132         sigprocmask.
96134 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
96136         Sync from Automake.
96137         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
96138         which incorrectly sets the mode of an existing destination
96139         directory.  In some cases the unpatched install-sh could do the
96140         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
96141         system.  We hope this is rare in practice, but it's clearly worth
96142         fixing.  Problem reported by Alex Unleashed in
96143         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
96144         Also, don't bother to check for -m bugs unless we're using -m;
96145         suggested by Stepan Kasal.
96147 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96149         Sync from Automake.
96150         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
96151         `-c' flag, so they appear at the same position as in %FASTDEP%
96152         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
96153         which ignores unknown options only after the first non-option.
96154         Bug report against M4 by Nelson H. F. Beebe.
96156 2006-10-13  Jim Meyering  <jim@meyering.net>
96158         Fix a bug in yesterday's change.
96159         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
96160         p->fts_statp->st_dev would be used uninitialized.
96161         Ensures that we always call fts_stat on the very first entry.
96162         Miklos Szeredi reported that find -xdev stopped working.
96164 2006-10-12  Bruno Haible  <bruno@clisp.org>
96166         * gnulib-tool (func_get_automake_snippet): Append an automatically
96167         computed EXTRA_DIST augmentation.
96168         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
96169         * modules/alloca-opt (Makefile.am): Likewise.
96170         * modules/allocsa (Makefile.am): Likewise.
96171         * modules/arcfour (Makefile.am): Likewise.
96172         * modules/arctwo (Makefile.am): Likewise.
96173         * modules/argmatch (Makefile.am): Likewise.
96174         * modules/argz (Makefile.am): Likewise.
96175         * modules/atexit (Makefile.am): Likewise.
96176         * modules/backupfile (Makefile.am): Likewise.
96177         * modules/byteswap (Makefile.am): Likewise.
96178         * modules/c-strtod (Makefile.am): Likewise.
96179         * modules/c-strtold (Makefile.am): Likewise.
96180         * modules/calloc (Makefile.am): Likewise.
96181         * modules/canon-host (Makefile.am): Likewise.
96182         * modules/canonicalize (Makefile.am): Likewise.
96183         * modules/chdir-long (Makefile.am): Likewise.
96184         * modules/chdir-safer (Makefile.am): Likewise.
96185         * modules/check-version (Makefile.am): Likewise.
96186         * modules/chown (Makefile.am): Likewise.
96187         * modules/cloexec (Makefile.am): Likewise.
96188         * modules/close-stream (Makefile.am): Likewise.
96189         * modules/closeout (Makefile.am): Likewise.
96190         * modules/crc (Makefile.am): Likewise.
96191         * modules/csharpexec (Makefile.am): Likewise.
96192         * modules/cycle-check (Makefile.am): Likewise.
96193         * modules/des (Makefile.am): Likewise.
96194         * modules/dev-ino (Makefile.am): Likewise.
96195         * modules/dirfd (Makefile.am): Likewise.
96196         * modules/dirname (Makefile.am): Likewise.
96197         * modules/dup2 (Makefile.am): Likewise.
96198         * modules/eealloc (Makefile.am): Likewise.
96199         * modules/error (Makefile.am): Likewise.
96200         * modules/euidaccess (Makefile.am): Likewise.
96201         * modules/exclude (Makefile.am): Likewise.
96202         * modules/exitfail (Makefile.am): Likewise.
96203         * modules/fcntl-safer (Makefile.am): Likewise.
96204         * modules/fcntl (Makefile.am): Likewise.
96205         * modules/file-type (Makefile.am): Likewise.
96206         * modules/fileblocks (Makefile.am): Likewise.
96207         * modules/filemode (Makefile.am): Likewise.
96208         * modules/filenamecat (Makefile.am): Likewise.
96209         * modules/fnmatch (Makefile.am): Likewise.
96210         * modules/fopen-safer (Makefile.am): Likewise.
96211         * modules/fpending (Makefile.am): Likewise.
96212         * modules/fprintftime (Makefile.am): Likewise.
96213         * modules/free (Makefile.am): Likewise.
96214         * modules/fsusage (Makefile.am): Likewise.
96215         * modules/ftruncate (Makefile.am): Likewise.
96216         * modules/fts (Makefile.am): Likewise.
96217         * modules/gc-arcfour (Makefile.am): Likewise.
96218         * modules/gc-des (Makefile.am): Likewise.
96219         * modules/gc-hmac-md5 (Makefile.am): Likewise.
96220         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
96221         * modules/gc-md4 (Makefile.am): Likewise.
96222         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96223         * modules/gc-sha1 (Makefile.am): Likewise.
96224         * modules/gc (Makefile.am): Likewise.
96225         * modules/getaddrinfo (Makefile.am): Likewise.
96226         * modules/getcwd (Makefile.am): Likewise.
96227         * modules/getdelim (Makefile.am): Likewise.
96228         * modules/getdomainname (Makefile.am): Likewise.
96229         * modules/getgroups (Makefile.am): Likewise.
96230         * modules/gethostname (Makefile.am): Likewise.
96231         * modules/gethrxtime (Makefile.am): Likewise.
96232         * modules/getline (Makefile.am): Likewise.
96233         * modules/getloadavg (Makefile.am): Likewise.
96234         * modules/getlogin_r (Makefile.am): Likewise.
96235         * modules/getndelim2 (Makefile.am): Likewise.
96236         * modules/getopt (Makefile.am): Likewise.
96237         * modules/getpagesize (Makefile.am): Likewise.
96238         * modules/getpass-gnu (Makefile.am): Likewise.
96239         * modules/getpass (Makefile.am): Likewise.
96240         * modules/getsubopt (Makefile.am): Likewise.
96241         * modules/gettime (Makefile.am): Likewise.
96242         * modules/gettimeofday (Makefile.am): Likewise.
96243         * modules/getugroups (Makefile.am): Likewise.
96244         * modules/getusershell (Makefile.am): Likewise.
96245         * modules/glob (Makefile.am): Likewise.
96246         * modules/group-member (Makefile.am): Likewise.
96247         * modules/hard-locale (Makefile.am): Likewise.
96248         * modules/hash (Makefile.am): Likewise.
96249         * modules/hmac-md5 (Makefile.am): Likewise.
96250         * modules/hmac-sha1 (Makefile.am): Likewise.
96251         * modules/human (Makefile.am): Likewise.
96252         * modules/idcache (Makefile.am): Likewise.
96253         * modules/imaxabs (Makefile.am): Likewise.
96254         * modules/imaxdiv (Makefile.am): Likewise.
96255         * modules/inet_ntop (Makefile.am): Likewise.
96256         * modules/inet_pton (Makefile.am): Likewise.
96257         * modules/intprops (Makefile.am): Likewise.
96258         * modules/inttostr (Makefile.am): Likewise.
96259         * modules/inttypes (Makefile.am): Likewise.
96260         * modules/isapipe (Makefile.am): Likewise.
96261         * modules/javaversion (Makefile.am): Likewise.
96262         * modules/lchmod (Makefile.am): Likewise.
96263         * modules/lchown (Makefile.am): Likewise.
96264         * modules/localcharset (Makefile.am): Likewise.
96265         * modules/long-options (Makefile.am): Likewise.
96266         * modules/lstat (Makefile.am): Likewise.
96267         * modules/malloc (Makefile.am): Likewise.
96268         * modules/mathl (Makefile.am): Likewise.
96269         * modules/mbchar (Makefile.am): Likewise.
96270         * modules/md2 (Makefile.am): Likewise.
96271         * modules/md4 (Makefile.am): Likewise.
96272         * modules/md5 (Makefile.am): Likewise.
96273         * modules/memcasecmp (Makefile.am): Likewise.
96274         * modules/memchr (Makefile.am): Likewise.
96275         * modules/memcmp (Makefile.am): Likewise.
96276         * modules/memcoll (Makefile.am): Likewise.
96277         * modules/memcpy (Makefile.am): Likewise.
96278         * modules/memmem (Makefile.am): Likewise.
96279         * modules/memmove (Makefile.am): Likewise.
96280         * modules/mempcpy (Makefile.am): Likewise.
96281         * modules/memrchr (Makefile.am): Likewise.
96282         * modules/memset (Makefile.am): Likewise.
96283         * modules/memxor (Makefile.am): Likewise.
96284         * modules/mkancesdirs (Makefile.am): Likewise.
96285         * modules/mkdir-p (Makefile.am): Likewise.
96286         * modules/mkdir (Makefile.am): Likewise.
96287         * modules/mkdtemp (Makefile.am): Likewise.
96288         * modules/mkstemp (Makefile.am): Likewise.
96289         * modules/mktime (Makefile.am): Likewise.
96290         * modules/modechange (Makefile.am): Likewise.
96291         * modules/mountlist (Makefile.am): Likewise.
96292         * modules/nanosleep (Makefile.am): Likewise.
96293         * modules/obstack (Makefile.am): Likewise.
96294         * modules/openat (Makefile.am): Likewise.
96295         * modules/pagealign_alloc (Makefile.am): Likewise.
96296         * modules/pathmax (Makefile.am): Likewise.
96297         * modules/physmem (Makefile.am): Likewise.
96298         * modules/poll (Makefile.am): Likewise.
96299         * modules/posixtm (Makefile.am): Likewise.
96300         * modules/posixver (Makefile.am): Likewise.
96301         * modules/putenv (Makefile.am): Likewise.
96302         * modules/quote (Makefile.am): Likewise.
96303         * modules/quotearg (Makefile.am): Likewise.
96304         * modules/raise (Makefile.am): Likewise.
96305         * modules/read-file (Makefile.am): Likewise.
96306         * modules/readline (Makefile.am): Likewise.
96307         * modules/readlink (Makefile.am): Likewise.
96308         * modules/readtokens (Makefile.am): Likewise.
96309         * modules/readutmp (Makefile.am): Likewise.
96310         * modules/realloc (Makefile.am): Likewise.
96311         * modules/regex (Makefile.am): Likewise.
96312         * modules/rename-dest-slash (Makefile.am): Likewise.
96313         * modules/rename (Makefile.am): Likewise.
96314         * modules/rijndael (Makefile.am): Likewise.
96315         * modules/rmdir (Makefile.am): Likewise.
96316         * modules/rpmatch (Makefile.am): Likewise.
96317         * modules/safe-read (Makefile.am): Likewise.
96318         * modules/safe-write (Makefile.am): Likewise.
96319         * modules/same-inode (Makefile.am): Likewise.
96320         * modules/same (Makefile.am): Likewise.
96321         * modules/save-cwd (Makefile.am): Likewise.
96322         * modules/savedir (Makefile.am): Likewise.
96323         * modules/setenv (Makefile.am): Likewise.
96324         * modules/settime (Makefile.am): Likewise.
96325         * modules/sha1 (Makefile.am): Likewise.
96326         * modules/sig2str (Makefile.am): Likewise.
96327         * modules/snprintf (Makefile.am): Likewise.
96328         * modules/stat-macros (Makefile.am): Likewise.
96329         * modules/stat-time (Makefile.am): Likewise.
96330         * modules/stdbool (Makefile.am): Likewise.
96331         * modules/stdint (Makefile.am): Likewise.
96332         * modules/stdlib-safer (Makefile.am): Likewise.
96333         * modules/stpcpy (Makefile.am): Likewise.
96334         * modules/stpncpy (Makefile.am): Likewise.
96335         * modules/strcase (Makefile.am): Likewise.
96336         * modules/strcasestr (Makefile.am): Likewise.
96337         * modules/strchrnul (Makefile.am): Likewise.
96338         * modules/strcspn (Makefile.am): Likewise.
96339         * modules/strdup (Makefile.am): Likewise.
96340         * modules/strerror (Makefile.am): Likewise.
96341         * modules/strftime (Makefile.am): Likewise.
96342         * modules/strndup (Makefile.am): Likewise.
96343         * modules/strnlen (Makefile.am): Likewise.
96344         * modules/strpbrk (Makefile.am): Likewise.
96345         * modules/strsep (Makefile.am): Likewise.
96346         * modules/strstr (Makefile.am): Likewise.
96347         * modules/strtod (Makefile.am): Likewise.
96348         * modules/strtoimax (Makefile.am): Likewise.
96349         * modules/strtok_r (Makefile.am): Likewise.
96350         * modules/strtol (Makefile.am): Likewise.
96351         * modules/strtoll (Makefile.am): Likewise.
96352         * modules/strtoul (Makefile.am): Likewise.
96353         * modules/strtoull (Makefile.am): Likewise.
96354         * modules/strtoumax (Makefile.am): Likewise.
96355         * modules/strverscmp (Makefile.am): Likewise.
96356         * modules/sys_socket (Makefile.am): Likewise.
96357         * modules/sys_stat (Makefile.am): Likewise.
96358         * modules/sysexits (Makefile.am): Likewise.
96359         * modules/time_r (Makefile.am): Likewise.
96360         * modules/timegm (Makefile.am): Likewise.
96361         * modules/timespec (Makefile.am): Likewise.
96362         * modules/tmpfile-safer (Makefile.am): Likewise.
96363         * modules/trim (Makefile.am): Likewise.
96364         * modules/unistd-safer (Makefile.am): Likewise.
96365         * modules/unlinkdir (Makefile.am): Likewise.
96366         * modules/unlocked-io (Makefile.am): Likewise.
96367         * modules/userspec (Makefile.am): Likewise.
96368         * modules/utime (Makefile.am): Likewise.
96369         * modules/utimecmp (Makefile.am): Likewise.
96370         * modules/utimens (Makefile.am): Likewise.
96371         * modules/vasnprintf (Makefile.am): Likewise.
96372         * modules/vasprintf (Makefile.am): Likewise.
96373         * modules/vsnprintf (Makefile.am): Likewise.
96374         * modules/xalloc (Makefile.am): Likewise.
96375         * modules/xgetcwd (Makefile.am): Likewise.
96376         * modules/xnanosleep (Makefile.am): Likewise.
96377         * modules/xreadlink (Makefile.am): Likewise.
96378         * modules/xstrtod (Makefile.am): Likewise.
96379         * modules/xstrtol (Makefile.am): Likewise.
96380         * modules/xstrtold (Makefile.am): Likewise.
96381         * modules/yesno (Makefile.am): Likewise.
96382         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
96384 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96386         * modules/error (Makefile.am): Distribute files through
96387         EXTRA_DIST, not lib_SOURCES.
96389 2006-10-12  Eric Blake  <ebb9@byu.net>
96391         * modules/error (Makefile.am): Distribute files in /lib.
96392         * modules/obstack (Makefile.am): Likewise.
96394 2006-10-12  Bruno Haible  <bruno@clisp.org>
96396         * modules/acl (Makefile.am): Distribute all files in lib/ through
96397         EXTRA_DIST.
96398         * modules/arcfour (Makefile.am): Likewise.
96399         * modules/arctwo (Makefile.am): Likewise.
96400         * modules/argmatch (Makefile.am): Likewise.
96401         * modules/argz (Makefile.am): Likewise.
96402         * modules/atexit (Makefile.am): Likewise.
96403         * modules/backupfile (Makefile.am): Likewise.
96404         * modules/c-strtod (Makefile.am): Likewise.
96405         * modules/c-strtold (Makefile.am): Likewise.
96406         * modules/calloc (Makefile.am): Likewise.
96407         * modules/canon-host (Makefile.am): Likewise.
96408         * modules/canonicalize (Makefile.am): Likewise.
96409         * modules/chdir-long (Makefile.am): Likewise.
96410         * modules/chdir-safer (Makefile.am): Likewise.
96411         * modules/check-version (Makefile.am): Likewise.
96412         * modules/chown (Makefile.am): Likewise.
96413         * modules/cloexec (Makefile.am): Likewise.
96414         * modules/close-stream (Makefile.am): Likewise.
96415         * modules/closeout (Makefile.am): Likewise.
96416         * modules/crc (Makefile.am): Likewise.
96417         * modules/cycle-check (Makefile.am): Likewise.
96418         * modules/des (Makefile.am): Likewise.
96419         * modules/dirfd (Makefile.am): Likewise.
96420         * modules/dirname (Makefile.am): Likewise.
96421         * modules/dup2 (Makefile.am): Likewise.
96422         * modules/euidaccess (Makefile.am): Likewise.
96423         * modules/exclude (Makefile.am): Likewise.
96424         * modules/exitfail (Makefile.am): Likewise.
96425         * modules/fcntl-safer (Makefile.am): Likewise.
96426         * modules/file-type (Makefile.am): Likewise.
96427         * modules/fileblocks (Makefile.am): Likewise.
96428         * modules/filemode (Makefile.am): Likewise.
96429         * modules/filenamecat (Makefile.am): Likewise.
96430         * modules/fnmatch (Makefile.am): Likewise.
96431         * modules/fopen-safer (Makefile.am): Likewise.
96432         * modules/fpending (Makefile.am): Likewise.
96433         * modules/fprintftime (Makefile.am): Likewise.
96434         * modules/free (Makefile.am): Likewise.
96435         * modules/fsusage (Makefile.am): Likewise.
96436         * modules/ftruncate (Makefile.am): Likewise.
96437         * modules/fts (Makefile.am): Likewise.
96438         * modules/gc (Makefile.am): Likewise.
96439         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
96440         * modules/getaddrinfo (Makefile.am): Likewise.
96441         * modules/getcwd (Makefile.am): Likewise.
96442         * modules/getdelim (Makefile.am): Likewise.
96443         * modules/getdomainname (Makefile.am): Likewise.
96444         * modules/getgroups (Makefile.am): Likewise.
96445         * modules/gethostname (Makefile.am): Likewise.
96446         * modules/gethrxtime (Makefile.am): Likewise.
96447         * modules/getline (Makefile.am): Likewise.
96448         * modules/getloadavg (Makefile.am): Likewise.
96449         * modules/getlogin_r (Makefile.am): Likewise.
96450         * modules/getopt (Makefile.am): Likewise.
96451         * modules/getpass (Makefile.am): Likewise.
96452         * modules/getpass-gnu (Makefile.am): Likewise.
96453         * modules/getsubopt (Makefile.am): Likewise.
96454         * modules/gettime (Makefile.am): Likewise.
96455         * modules/gettimeofday (Makefile.am): Likewise.
96456         * modules/getugroups (Makefile.am): Likewise.
96457         * modules/getusershell (Makefile.am): Likewise.
96458         * modules/glob (Makefile.am): Likewise.
96459         * modules/group-member (Makefile.am): Likewise.
96460         * modules/hard-locale (Makefile.am): Likewise.
96461         * modules/hash (Makefile.am): Likewise.
96462         * modules/hmac-md5 (Makefile.am): Likewise.
96463         * modules/hmac-sha1 (Makefile.am): Likewise.
96464         * modules/human (Makefile.am): Likewise.
96465         * modules/idcache (Makefile.am): Likewise.
96466         * modules/imaxabs (Makefile.am): Likewise.
96467         * modules/imaxdiv (Makefile.am): Likewise.
96468         * modules/inet_ntop (Makefile.am): Likewise.
96469         * modules/inet_pton (Makefile.am): Likewise.
96470         * modules/inttostr (Makefile.am): Likewise.
96471         * modules/isapipe (Makefile.am): Likewise.
96472         * modules/lchown (Makefile.am): Likewise.
96473         * modules/long-options (Makefile.am): Likewise.
96474         * modules/lstat (Makefile.am): Likewise.
96475         * modules/malloc (Makefile.am): Likewise.
96476         * modules/mathl (Makefile.am): Likewise.
96477         * modules/mbchar (Makefile.am): Likewise.
96478         * modules/md2 (Makefile.am): Likewise.
96479         * modules/md4 (Makefile.am): Likewise.
96480         * modules/md5 (Makefile.am): Likewise.
96481         * modules/memcasecmp (Makefile.am): Likewise.
96482         * modules/memchr (Makefile.am): Likewise.
96483         * modules/memcmp (Makefile.am): Likewise.
96484         * modules/memcoll (Makefile.am): Likewise.
96485         * modules/memcpy (Makefile.am): Likewise.
96486         * modules/memmem (Makefile.am): Likewise.
96487         * modules/memmove (Makefile.am): Likewise.
96488         * modules/mempcpy (Makefile.am): Likewise.
96489         * modules/memrchr (Makefile.am): Likewise.
96490         * modules/memset (Makefile.am): Likewise.
96491         * modules/memxor (Makefile.am): Likewise.
96492         * modules/mkancesdirs (Makefile.am): Likewise.
96493         * modules/mkdir (Makefile.am): Likewise.
96494         * modules/mkdir-p (Makefile.am): Likewise.
96495         * modules/mkdtemp (Makefile.am): Likewise.
96496         * modules/mkstemp (Makefile.am): Likewise.
96497         * modules/mktime (Makefile.am): Likewise.
96498         * modules/modechange (Makefile.am): Likewise.
96499         * modules/mountlist (Makefile.am): Likewise.
96500         * modules/nanosleep (Makefile.am): Likewise.
96501         * modules/openat (Makefile.am): Likewise.
96502         * modules/pagealign_alloc (Makefile.am): Likewise.
96503         * modules/physmem (Makefile.am): Likewise.
96504         * modules/poll (Makefile.am): Likewise.
96505         * modules/posixtm (Makefile.am): Likewise.
96506         * modules/posixver (Makefile.am): Likewise.
96507         * modules/putenv (Makefile.am): Likewise.
96508         * modules/quote (Makefile.am): Likewise.
96509         * modules/quotearg (Makefile.am): Likewise.
96510         * modules/raise (Makefile.am): Likewise.
96511         * modules/read-file (Makefile.am): Likewise.
96512         * modules/readline (Makefile.am): Likewise.
96513         * modules/readlink (Makefile.am): Likewise.
96514         * modules/readtokens (Makefile.am): Likewise.
96515         * modules/readutmp (Makefile.am): Likewise.
96516         * modules/realloc (Makefile.am): Likewise.
96517         * modules/regex (Makefile.am): Likewise.
96518         * modules/rename (Makefile.am): Likewise.
96519         * modules/rename-dest-slash (Makefile.am): Likewise.
96520         * modules/rijndael (Makefile.am): Likewise.
96521         * modules/rmdir (Makefile.am): Likewise.
96522         * modules/rpmatch (Makefile.am): Likewise.
96523         * modules/safe-read (Makefile.am): Likewise.
96524         * modules/safe-write (Makefile.am): Likewise.
96525         * modules/same (Makefile.am): Likewise.
96526         * modules/save-cwd (Makefile.am): Likewise.
96527         * modules/savedir (Makefile.am): Likewise.
96528         * modules/setenv (Makefile.am): Likewise.
96529         * modules/settime (Makefile.am): Likewise.
96530         * modules/sha1 (Makefile.am): Likewise.
96531         * modules/sig2str (Makefile.am): Likewise.
96532         * modules/snprintf (Makefile.am): Likewise.
96533         * modules/stdlib-safer (Makefile.am): Likewise.
96534         * modules/stpcpy (Makefile.am): Likewise.
96535         * modules/stpncpy (Makefile.am): Likewise.
96536         * modules/strcase (Makefile.am): Likewise.
96537         * modules/strcasestr (Makefile.am): Likewise.
96538         * modules/strchrnul (Makefile.am): Likewise.
96539         * modules/strcspn (Makefile.am): Likewise.
96540         * modules/strdup (Makefile.am): Likewise.
96541         * modules/strerror (Makefile.am): Likewise.
96542         * modules/strftime (Makefile.am): Likewise.
96543         * modules/strndup (Makefile.am): Likewise.
96544         * modules/strnlen (Makefile.am): Likewise.
96545         * modules/strpbrk (Makefile.am): Likewise.
96546         * modules/strsep (Makefile.am): Likewise.
96547         * modules/strstr (Makefile.am): Likewise.
96548         * modules/strtod (Makefile.am): Likewise.
96549         * modules/strtoimax (Makefile.am): Likewise.
96550         * modules/strtok_r (Makefile.am): Likewise.
96551         * modules/strtol (Makefile.am): Likewise.
96552         * modules/strtoll (Makefile.am): Likewise.
96553         * modules/strtoul (Makefile.am): Likewise.
96554         * modules/strtoull (Makefile.am): Likewise.
96555         * modules/strtoumax (Makefile.am): Likewise.
96556         * modules/strverscmp (Makefile.am): Likewise.
96557         * modules/time_r (Makefile.am): Likewise.
96558         * modules/timegm (Makefile.am): Likewise.
96559         * modules/tmpfile-safer (Makefile.am): Likewise.
96560         * modules/unistd-safer (Makefile.am): Likewise.
96561         * modules/unlinkdir (Makefile.am): Likewise.
96562         * modules/userspec (Makefile.am): Likewise.
96563         * modules/utime (Makefile.am): Likewise.
96564         * modules/utimecmp (Makefile.am): Likewise.
96565         * modules/utimens (Makefile.am): Likewise.
96566         * modules/vasnprintf (Makefile.am): Likewise.
96567         * modules/vasprintf (Makefile.am): Likewise.
96568         * modules/vsnprintf (Makefile.am): Likewise.
96569         * modules/xalloc (Makefile.am): Likewise.
96570         * modules/xgetcwd (Makefile.am): Likewise.
96571         * modules/xnanosleep (Makefile.am): Likewise.
96572         * modules/xreadlink (Makefile.am): Likewise.
96573         * modules/xstrtod (Makefile.am): Likewise.
96574         * modules/xstrtol (Makefile.am): Likewise.
96575         * modules/xstrtold (Makefile.am): Likewise.
96576         * modules/yesno (Makefile.am): Likewise.
96578 2006-10-12  Jim Meyering  <jim@meyering.net>
96580         * m4/getloadavg.m4: Revert the change below.
96582         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
96583         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
96584         fail with a symlink, which is what coreutils' ./bootstrap now
96585         creates by default.
96587 2006-10-12  Bruno Haible  <bruno@clisp.org>
96589         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
96590         mingw.
96591         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
96592         MSVC and mingw explicitly.
96594 2006-10-11  Simon Josefsson  <jas@extundo.com>
96595             Bruno Haible  <bruno@clisp.org>
96597         Add support for multiple gnulib-tool invocations in the scope of a
96598         single configure.ac file.
96599         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
96600         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
96601         with the same contents as the _LIBADD variable.
96602         (func_emit_initmacro_start, func_emit_initmacro_end,
96603         func_emit_initmacro_done): New functions.
96604         (func_import, func_create_testdir): Invoke them. Allow the identifiers
96605         gl_LIBOBJS and gl_LTLIBOBJS.
96607 2006-10-11  Bruno Haible  <bruno@clisp.org>
96609         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
96610         (func_create_testdir): Don't create po/Makefile.am, don't invoke
96611         autoreconf. Instead, invoke autopoint explicitly but move back the
96612         *.m4 files from gnulib.
96614 2006-10-11  Bruno Haible  <bruno@clisp.org>
96616         * gnulib-tool (func_usage): Make module names after --create-testdir
96617         optional.
96618         (func_create_testdir): If no module was specified, use nearly all
96619         modules.
96621 2006-10-12  Jim Meyering  <jim@meyering.net>
96623         Big performance improvement for fts-based tools that use FTS_NOSTAT.
96624         Avoid spurious inode-mismatch problems on non-POSIX file systems.
96625         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
96626         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
96627         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
96628         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
96629         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
96630         (fts_set_stat_required): New function.
96631         (fts_open): Defer the calls to fts_stat, if possible or requested.
96632         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
96633         into fts_stat itself.
96634         (fts_read): Perform any required (deferred) fts_stat call.
96635         (fts_build): Likewise, for the directory we're about to open and read.
96636         In the readdir loop, carefully decide whether each entry will require
96637         an eventual call to fts_stat, using dirent.d_type info if available.
96638         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
96639         a command line argument into this function.  Update all callers.
96640         Map a return value of FTS_DOT to FTS_D for a command line argument.
96641         * modules/fts (Depends-on): Add d-type.  Alphabetize.
96642         Thanks to Miklos Szeredi for his tenacity and for the initial
96643         bug report about "find" failing on a FUSE-based file system.
96645         * lib/fts.c (fts_open): Use consistent indentation.
96647 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
96649         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
96650         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
96651         reported by Jim Meyering.  All uses of cache variables renamed
96652         to match Autoconf's.
96653         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
96654         the other one.
96656         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
96657         Fix misspelling in diagnostic.
96659 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96661         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
96662         defined.  Problem reported by Matthew Woehlke.
96664         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
96665         Add support for Tandem NonStop R series.
96666         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
96667         Use new macro.
96669         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
96670         (has_trailing_slash): Omit size arg; all callers changed.
96671         Omit 'inline', since it doesn't help performance and we'd
96672         need to configure it.
96673         Don't count //, ///, etc. as having a trailing slash.
96674         As a side effect, this removes a C99ism reported by Matthew Woehlke.
96675         (rpl_rename_dest_slash): On failure, use rename's errno rather
96676         than (in some cases) an incorrect or junk errno.
96677         Simplify code by removing need to compute length; this does
96678         cause it to make two passes instead of one over the file name,
96679         but it's worth it.
96681         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
96682         change, since Autoconf's version may no longer be appropriate now
96683         that we are using CVS Autoconf's version.  Add support for Tandem.
96685 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
96686             Bruno Haible  <bruno@clisp.org>
96688         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
96689         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
96690         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
96691         gl_AC_TYPE_LONG_LONG.
96693         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
96694         instead of HAVE_LONG_LONG.
96695         * lib/printf-args.c (printf_fetchargs): Likewise.
96696         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
96697         * lib/vasnprintf.c (VASNPRINTF): Likewise.
96698         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
96699         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
96700         gl_AC_TYPE_LONG_LONG.
96702 2006-10-11  Bruno Haible  <bruno@clisp.org>
96704         * m4/longlong.m4: Add comments.
96705         * m4/ulonglong.m4: Likewise.
96707 2006-10-10  Bruno Haible  <bruno@clisp.org>
96709         Make it possible to #define stpcpy, strdup to aliases.
96710         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
96711         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
96713 2006-10-10  Bruno Haible  <bruno@clisp.org>
96715         Make it possible to #define gcd to an alias.
96716         * lib/gcd.c: Include config.h.
96718 2006-10-10  Bruno Haible  <bruno@clisp.org>
96720         Make it possible to #define c_isascii to an alias.
96721         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
96722         defined. Undefine the macros before defining them, to avoid gcc
96723         warnings.
96724         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
96725         define NO_C_CTYPE_MACROS early.
96727 2006-10-10  Bruno Haible  <bruno@clisp.org>
96729         Make it possible to #define set_program_name to an alias.
96730         * lib/progname.c: Don't undefine set_program_name; instead, undefine
96731         ENABLE_RELOCATABLE early.
96733 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
96735         Port to Tandem NSK OSS, which has 64-bit signed int but at most
96736         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
96737         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
96738         More generally, don't assume that 64-bit signed int is available
96739         if unsigned int is, and vice versa.
96740         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
96741         unsigned symbols, not on their signed counterparts.
96742         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
96743         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
96744         (UINT64_C, UINTMAX_C):
96745         Likewise.
96746         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
96747         unsigned counterparts.
96748         (Have_long_long, Unsigned): New macros.
96749         (Int): Renamed from INT.
96750         (strtoimax): Use the new macros.
96751         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
96752         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
96753         * modules/inttypes (inttypes.h): Substitute
96754         HAVE_UNSIGNED_LONG_LONG_INT.
96755         * modules/stdint (stdint.h): Likewise.
96756         (Files): Add m4/ulonglong.m4.
96758 2006-10-10  Bruno Haible  <bruno@clisp.org>
96760         Fix a gcc -Wshadow warning.
96761         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
96762         to 'bucket'.
96763         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
96764         gl_linked_indexof_from_to): Likewise.
96765         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
96766         Likewise.
96767         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
96768         Likewise.
96769         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
96770         Reported by Eric Blake.
96772 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
96774         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
96775         for NetBSD.  Problem reported by Bruno Haible.
96777 2006-10-09  Jim Meyering  <jim@meyering.net>
96779         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
96780         Patch from Bruno Haible.
96782 2006-10-09  Jim Meyering  <jim@meyering.net>
96784         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
96785         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
96786         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
96788 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
96790         Don't include <config.h> twice; this doesn't work in some cases,
96791         e.g., when config.h has "#define intmax_t long long int" and
96792         we include <config.h>, <inttypes.h>, <config.h> in that order.
96793         Problem reported by Matthew Woehlke in:
96794         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
96795         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
96796         * lib/fts-cycle.c: Don't include config.h.
96797         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
96798         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
96799         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
96800         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
96801         inttypes.h.
96802         * lib/xstrtoumax.c: Likewise.
96803         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
96804         __strtol and the like, so that this module is more like its siblings.
96805         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
96806         Remove; no longer needed now that we assume gnulib inttypes.h.
96808 2006-10-08  Bruno Haible  <bruno@clisp.org>
96810         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
96811         option.
96813 2006-10-07  Jim Meyering  <jim@meyering.net>
96815         * modules/inttypes (inttypes.h): Revert what seems to have been
96816         an inadvertent part of today's change: use "|", not "/" in the
96817         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
96819 2006-10-07  Bruno Haible  <bruno@clisp.org>
96821         * modules/sublist: New file.
96823 2006-10-07  Bruno Haible  <bruno@clisp.org>
96825         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
96826         * modules/argz (argz.h): Likewise.
96827         * modules/arpa_inet (arpa/inet.h): Likewise.
96828         * modules/byteswap (byteswap.h): Likewise.
96829         * modules/configmake (configmake.h): Likewise.
96830         * modules/fcntl (fcntl.h): Likewise.
96831         * modules/fnmatch (fnmatch.h): Likewise.
96832         * modules/getopt (getopt.h): Likewise.
96833         * modules/glob (glob.h): Likewise.
96834         * modules/inttypes (inttypes.h): Likewise.
96835         * modules/netinet_in (netinet/in.h): Likewise.
96836         * modules/poll (poll.h): Likewise.
96837         * modules/stdbool (stdbool.h): Likewise.
96838         * modules/stdint (stdint.h): Likewise.
96839         * modules/sys_select (sys/select.h): Likewise.
96840         * modules/sys_socket (sys/socket.h): Likewise.
96841         * modules/sys_stat (sys/stat.h): Likewise.
96842         * modules/sysexits (sysexits.h): Likewise.
96843         * modules/unistd (unistd.h): Likewise.
96844         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
96845         Add a "DO NOT EDIT" comment to the generated file.
96846         (func_import): Likewise for gnulib-comp.m4.
96848 2006-10-07  Bruno Haible  <bruno@clisp.org>
96850         * lib/gl_sublist.h: New file.
96851         * lib/gl_sublist.c: New file.
96853 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
96855         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
96856         name (relative to the original working directory) and the file
96857         name component (relative to the temporary working directory).  All
96858         callers changed.
96859         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
96860         * lib/mkdir-p.c (make_dir_parents): Likewise.
96861         * lib/mkdir-p.h (make_dir_parents): Likewise.
96863 2006-10-06  Eric Blake  <ebb9@byu.net>
96865         Define several macros for use by the clean-temp module.
96866         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
96867         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
96868         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
96870         * lib/clean-temp.h (close_stream_temp): New declaration.
96871         * lib/clean-temp.c (includes): Pull in headers according to what
96872         other modules are in use.
96873         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
96875 2006-10-06  Bruno Haible  <bruno@clisp.org>
96877         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
96878         instead of fopen, fwriteerror.
96880 2006-10-06  Bruno Haible  <bruno@clisp.org>
96882         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
96883         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
96884         int.
96885         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
96886         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
96887         Return an error indicator.
96888         Suggested by Eric Blake.
96890 2006-10-06  Bruno Haible  <bruno@clisp.org>
96892         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
96893         Reported by Eric Blake.
96895 2006-10-06  Bruno Haible  <bruno@clisp.org>
96897         * modules/closeout (Description): Mention stderr too.
96899 2006-10-06  Bruno Haible  <bruno@clisp.org>
96900         and Paul Eggert  <eggert@cs.ucla.edu>
96902         * lib/closeout.c (close_stdout): Also close stderr.
96903         * lib/closeout.h: Update comment.
96905 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
96907         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
96908         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
96909         * lib/dirchownmod.c: Include lchown.h.
96910         * lib/lchown.c: Don't include files that lchown.h now includes.
96911         Don't declare chown, since lchown.h now does that.
96912         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
96913         (lchown): Define to rpl_chown if lchown is declared but
96914         does not exist.  Declare using a prototype if lchown is not
96915         declared.  Add a copyright notice.
96916         * lib/mkstemp.h: Include <unistd.h>.
96917         * lib/openat.c: Include lchown.h.
96919         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
96920         we now test for that separately.
96921         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
96922         rather than O_NOFOLLOW, when testing whether it's possible to
96923         avoid a race condition reliably.
96924         * lib/savewd.c (savewd_chdir): Likewise.
96926         Remove macros that are no longer needed now that stdint.h is
96927         reliable.
96928         * lib/fsusage.c (UINTMAX_MAX): Remove.
96929         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
96930         * lib/utimecmp.c (SIZE_MAX): Remove.
96932         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
96934         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
96935         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
96936         O_NOATIME works.
96938 2006-10-05  Bruno Haible  <bruno@clisp.org>
96940         * lib/gl_list.h (gl_sortedlist_search_from_to,
96941         gl_sortedlist_indexof_from_to): New declarations.
96942         (gl_list_implementation): New fields sortedlist_search_from_to,
96943         sortedlist_indexof_from_to.
96944         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
96945         inline functions.
96946         * lib/gl_list.c (gl_sortedlist_search_from_to,
96947         gl_sortedlist_indexof_from_to): New functions.
96948         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
96949         function.
96950         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
96951         (gl_array_sortedlist_search_from_to): New function.
96952         (gl_array_list_implementation): Update.
96953         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
96954         function.
96955         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
96956         (gl_carray_sortedlist_search_from_to): New function.
96957         (gl_carray_list_implementation): Update.
96958         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
96959         gl_linked_sortedlist_indexof_from_to): New functions.
96960         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
96961         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
96962         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
96963         gl_tree_sortedlist_indexof_from_to): New functions.
96964         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
96965         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
96966         Update.
96967         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
96968         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
96969         Update.
96971 2006-10-05  Bruno Haible  <bruno@clisp.org>
96973         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
96974         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
96975         (struct gl_list_implementation): Add fields search_from_to,
96976         indexof_from_to. Remove fields search, indexof.
96977         (gl_list_search): Use the search_from_to method.
96978         (gl_list_search_from, gl_list_search_from_to): New functions.
96979         (gl_list_indexof): Use the indexof_from_to method.
96980         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96981         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
96982         (gl_list_search_from, gl_list_search_from_to): New functions.
96983         (gl_list_indexof): Use the indexof_from_to method.
96984         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
96985         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
96986         gl_array_indexof. Add start_index, end_index arguments.
96987         (gl_array_search_from_to): Renamed from gl_array_search. Add
96988         start_index, end_index arguments.
96989         (gl_array_remove, gl_array_list_implementation): Update.
96990         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
96991         gl_carray_indexof. Add start_index, end_index arguments.
96992         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
96993         start_index, end_index arguments.
96994         (gl_carray_remove, gl_carray_list_implementation): Update.
96995         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
96996         gl_linked_search. Add start_index, end_index arguments.
96997         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
96998         start_index, end_index arguments.
96999         (gl_linked_remove): Update.
97000         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97001         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97002         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
97003         field to 'size_t'.
97004         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
97005         gl_tree_search. Add start_index, end_index arguments.
97006         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
97007         start_index, end_index arguments.
97008         (gl_tree_remove): Update.
97009         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97010         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97011         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
97012         function.
97013         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
97014         gl_tree_search. Add start_index, end_index arguments.
97015         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
97016         start_index, end_index arguments.
97017         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97018         Update.
97019         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97021 2006-10-05  Bruno Haible  <bruno@clisp.org>
97023         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
97025         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
97026         fwriteerror_temp): New declarations.
97027         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
97028         (descriptors): New variable.
97029         (cleanup): First, close the descriptors.
97030         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
97031         fclose_temp, fwriteerror_temp): New functions.
97033 2006-10-04  Jim Meyering  <jim@meyering.net>
97035         * lib/fts.c (fts_open): Tiny comment change.
97037 2006-10-04  Bruno Haible  <bruno@clisp.org>
97039         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
97040         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
97041         gl_LOCK_BODY.
97042         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
97043         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
97044         gl_LOCK_EARLY_BODY.
97045         (gl_LOCK): Require gl_LOCK_BODY.
97047 2006-10-04  Bruno Haible  <bruno@clisp.org>
97049         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
97050         (gl_oset_search_atleast): New declaration.
97051         (struct gl_oset_implementation): Add field 'search_atleast'.
97052         (gl_oset_search_atleast): New inline function.
97053         * lib/gl_oset.c (gl_oset_search_atleast): New function.
97054         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
97055         (gl_array_oset_implementation): Update.
97056         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
97057         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
97058         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
97060 2006-10-04  Bruno Haible  <bruno@clisp.org>
97062         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
97064 2006-10-03  Bruno Haible  <bruno@clisp.org>
97066         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
97067         from gl_avltreehash_list_implementation.
97069 2006-10-03  Bruno Haible  <bruno@clisp.org>
97071         * lib/gl_oset.c (gl_oset_add): Fix return type.
97073 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
97075         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
97077 2006-10-02  Eric Blake  <ebb9@byu.net>
97079         * modules/strnlen (Depends-on): Add extensions.
97081 2006-10-02  Eric Blake  <ebb9@byu.net>
97083         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
97084         definition in 2.60+.
97086 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
97088         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
97089         checks.
97091 2006-10-02  Bruno Haible  <bruno@clisp.org>
97093         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
97094         to the AUTOMAKE_OPTIONS.
97095         Reported by Jim Meyering.
97097 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
97099         Work around bug in Solaris 10 /proc file system:
97100         /proc/self/fd/NNN/.. isn't the parent directory of
97101         the directory whose file descriptor is NNN.  This needs to
97102         be worked around at run time, not compile time, since a
97103         program might be built on Solaris 8, where things work, and
97104         run on Solaris 10.
97105         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
97106         to use the following interface instead:
97107         (OPENAT_BUFFER_SIZE): New macro.
97108         (openat_proc_name): New function.
97109         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
97110         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
97111         Likewise.
97112         * lib/openat-proc.c: New file.
97113         * modules/openat (Files): Add lib/openat-proc.c.
97114         (Depends-on): Add same-inode, stdbool.
97115         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
97117 2006-09-29  Bruno Haible  <bruno@clisp.org>
97119         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
97120         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
97121         argument. Set stdout_closed before testing for ferror, not after.
97122         (fwriteerror, fwriteerror_no_ebadf): New functions.
97124 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97126         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
97128 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
97130         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
97131         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
97133 2006-09-28  Jim Meyering  <jim@meyering.net>
97135         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
97136         Include <unistd.h>.
97138 2006-09-28  Bruno Haible  <bruno@clisp.org>
97140         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
97141         * modules/linkedhash-list (Depends-on): Likewise.
97142         * modules/rbtreehash-list (Depends-on): Likewise.
97144 2006-09-28  Bruno Haible  <bruno@clisp.org>
97146         * lib/strndup.h: Simplify the redefinition of strndup.
97147         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
97148         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
97150 2006-09-28  Bruno Haible  <bruno@clisp.org>
97152         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
97153         * lib/gl_linkedhash_list.c: Likewise.
97154         * lib/gl_rbtreehash_list.c: Likewise.
97156 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
97158         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
97159         getaddrinfo.
97161         * lib/__fpending.h: Don't include <stdio_ext.h> unless
97162         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
97163         it causes <stdio_ext.h> to cause a compile-time error.
97164         Problem reported by Nelson H. F. Beebe.
97165         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
97166         of HAVE_DECL___PENDING.
97168         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
97169         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
97170         declaration.
97172 2006-09-27  Jim Meyering  <jim@meyering.net>
97174         This file could end up with a definition for a function
97175         named __strndup, rather than rpl_strndup on a system with
97176         incomplete weak_alias support.
97177         * lib/strndup.c (strndup): Rename from __strndup.
97178         Remove #defines that used to map __strndup to strndup.
97179         Don't use K&R prototypes.
97180         Remove LIBC-related code, since this file is not sync'd with glibc.
97181         * lib/strndup.h: Revamp, accordingly.
97182         * m4/strndup.m4: Modernize.
97184 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
97186         * modules/savewd (Depends-on): Add 'raise'.
97187         * lib/savewd.c: Include <signal.h>, for 'raise'.
97189 2006-09-26  Jim Meyering  <jim@meyering.net>
97191         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
97192         when we detect Darwin 8.7.0's acl_get_file bug.
97193         Rearrange to perform the new (below) run-test while $LIBS
97194         contains any acl-related library.  Set USE_ACL at the end.
97195         (gl_ACL_GET_FILE): New function.
97197 2006-09-26  Eric Blake  <ebb9@byu.net>
97199         * lib/verror.c: Include <config.h> unconditionally.
97201 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
97203         * modules/clock-time (Maintainer): Add self.
97204         * modules/getlogin_r (Depends-on): Add extensions.
97206 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97208         * modules/clock-time: New module.
97209         * modules/nanosleep (Depends-on): Add clock-time.
97210         * modules/gethrxtime (Depends-on): Likewise.
97211         * modules/gettime (Depends-on): Likewise.
97212         * modules/settime (Depends-on): Likewise.
97214         * modules/fts-lgpl: Depend on openat.
97215         * modules/mkancesdirs: Depend on savewd.
97216         * modules/mkdir-p: Likewise.
97218 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97220         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
97222         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
97223         `gl_have_arbitrary_file_name_length_limit' to
97224         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
97225         actually works between configure runs.
97227 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97228             Bruno Haible  <bruno@clisp.org>
97230         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
97232 2006-09-25  Jim Meyering  <jim@meyering.net>
97234         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
97235         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
97237 2006-09-25  Eric Blake  <ebb9@byu.net>
97239         * gnulib-tool (func_import, func_create_testdir): Fix typos in
97240         exec's in 2006-09-18 patch when shuffling fds.
97242 2006-09-25  Bruno Haible  <bruno@clisp.org>
97244         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
97245         Reported by Jim Meyering.
97247 2006-09-24  Jim Meyering  <jim@meyering.net>
97249         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
97250         compare a pointer against a literal "0".  That caused failures with
97251         at least HP-UX's hpcc.
97253 2006-09-22  Simon Josefsson  <jas@extundo.com>
97255         * modules/gc-sha1:
97256         * modules/gc-md4:
97257         * modules/gc-hmac-sha1:
97258         * modules/gc-hmac-md5:
97259         * modules/gc-des:
97260         * modules/gc-arcfour: Distribute more files.
97262 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97264         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
97265         (gl_linked_iterator_from_to): Initialize struct completely.
97266         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
97267         (gl_tree_iterator_from_to): Likewise
97268         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
97269         * lib/gl_array_list.c [lint] (gl_array_iterator)
97270         (gl_array_iterator_from_to): Likewise.
97271         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
97272         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
97273         (gl_carray_iterator_from_to): Likewise.
97275         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
97276         * lib/md4.c (md4_process_block): Remove unused variable.
97277         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
97278         parentheses for clarity.
97280 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97282         * modules/bison-i18n (Depends-on): Add gettext.
97284 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97286         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
97287         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
97288         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
97289         also add missing comma that caused broken test.
97290         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
97291         stdlib.h, for `abort'.
97292         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
97293         variables.
97294         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
97295         include unistd.h if present, for `rmdir'.
97296         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
97297         variables.
97298         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
97299         in the process include standard headers for prototypes.
97300         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
97301         gets declared on GNU/Linux.
97302         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
97303         unistd.h, for `rmdir'.
97304         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
97306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
97307         always true.
97308         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
97310         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
97312 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97314         * gnulib-tool (func_version): Create output all at once.  This
97315         may help avoid triggering unnecessary SIGPIPEs, and at any
97316         rate it doesn't hurt.
97318 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97319             Bruno Haible  <bruno@clisp.org>
97321         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
97322         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
97323         * m4/signed.m4 (bh_C_SIGNED): Likewise.
97325         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
97326         (gl_FUNC_VASPRINTF): Invoke it.
97328 2006-09-22  Bruno Haible  <bruno@clisp.org>
97330         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
97331         getloadavg.c as first argument.
97333 2006-09-22  Bruno Haible  <bruno@clisp.org>
97335         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
97336         at the beginning of the gl_INIT macro.
97337         * modules/getloadavg (configure.ac): Pass $gl_source_base to
97338         gl_GETLOADAVG.
97340 2006-09-22  Bruno Haible  <bruno@clisp.org>
97342         * gnulib-tool (func_create_megatestdir): Don't include the config-h
97343         module.
97344         Suggested by Ralf Wildenhues.
97346 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
97348         Import this patch from libc:
97350         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
97352         * lib/regex_internal.c (re_string_reconstruct): Handle
97353         offset < pstr->valid_raw_len && pstr->offsets_needed case.
97354         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
97355         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
97356         re_string_context_at.
97358         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
97359         now requires it.
97360         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
97361         gl_REGEX now does it for us.
97362         (gl_REGEX): Add test taken from
97363         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
97365         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
97366         Check that large offsets work.  Modernize Autoconf usages.
97367         Prefer "yes" to mean a good thing rather than a bad.
97368         Don't put "#define mkstemp" in config.h, as this might interfere
97369         with standard system headers that "#define mkstemp mkstemp64".
97371         * modules/mkstemp (Depends-on): Add extensions, so that
97372         mkstemp is visible on some platforms.
97373         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
97374         (Include): Change to "mkstemp.h" from <stdlib.h>.
97375         (Files): Add mkstemp.h.
97377         * lib/mkstemp.h: New file, since some standard headers
97378         #define mkstemp.
97379         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
97380         Include "mkstemp.h".
97381         Make the _LIBC code resemble glibc original more,
97382         e.g., use K&R style.
97383         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
97384         (mkstemp): Remove, since mkstemp.h does this for us.
97385         * lib/stdlib--.h: Include mkstemp.h.
97387         Import this patch from libc:
97389         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97391         * lib/tempname.c (__gen_tempname): Change attempts_min
97392         into a macro.  Use preprocessor to decide how to initialize
97393         attempts [Coverity CID 67].
97395 2006-09-20  Bruno Haible  <bruno@clisp.org>
97397         * lib/mkdtemp.c: Import from libc.
97398         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
97399                 * sysdeps/posix/tempname.c (__gen_tempname): Change
97400                 attempts_min into a macro.  Use preprocessor to decide how to
97401                 initialize attempts [Coverity CID 67].
97402         2001-11-27  Paul Eggert  <eggert@twinsun.com>
97403                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
97404                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
97406 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97408         * gnulib-tool (func_exit): New function, to allow to pass the
97409         exit status portably through the trap.  Use everywhere.
97410         (--help, --version): Signal a write error.
97411         (trap): catch SIGPIPE, for write errors.
97412         Exit at the end of the trap, with the correct exit status.
97414 2006-09-19  Karl Berry  <karl@gnu.org>
97416         * doc/gnulib.texi: note about the license texinfo files.
97418 2006-09-19  Eric Blake  <ebb9@byu.net>
97420         * gnulib-tool: Avoid space-tab.
97422 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97424         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
97425         that prevented coreutils 6.1 from building.  Problem reported
97426         by Petter Reinholdtsen.
97428 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
97430         * gnulib-tool (avoidlist): Fix typo that broke options like
97431         --avoid=lock that are used by coreutils bootstrap.
97433 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
97435         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
97436         more systematically.
97438 2006-09-18  Jim Meyering  <jim@meyering.net>
97440         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
97442 2006-09-18  Bruno Haible  <bruno@clisp.org>
97444         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
97446 2006-09-18  Bruno Haible  <bruno@clisp.org>
97448         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
97449         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
97450         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
97451         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
97452         * m4/gettext.m4: Require autoconf >= 2.52.
97453         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
97454         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
97455         of gl_cv_header_inttypes_h.
97457 2006-09-18  Bruno Haible  <bruno@clisp.org>
97459         * lib/javaversion.c: Include configmake.h.
97461 2006-09-18  Bruno Haible  <bruno@clisp.org>
97463         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
97464         avoid that the while loops be executed in a subshell.
97466 2006-09-18  Bruno Haible  <bruno@clisp.org>
97468         * MODULES.html.sh (func_module): Break long lines.
97469         Suggested by Bruce Korb <bkorb@gnu.org>.
97471 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97473         Speed up by a factor of 1.12.
97474         * gnulib-tool (nl): New variable.
97475         (func_import): Rewrite include directive extraction to only read each
97476         directive once.
97478 2006-09-17  Bruno Haible  <bruno@clisp.org>
97480         * modules/javaversion (Makefile.am): Remove DEFS setting.
97481         (Depends-on): Add configmake, for PKGDATADIR definition.
97483 2006-09-17  Bruno Haible  <bruno@clisp.org>
97485         * gnulib-tool (func_create_testdir): Rewrite all files at once.
97487 2006-09-17  Bruno Haible  <bruno@clisp.org>
97489         * gnulib-tool (func_append): New function, stolen from libtool.m4.
97490         (func_modules_transitive_closure, func_modules_add_dummy,
97491         func_modules_to_filelist, func_import, func_create_testdir,
97492         func_create_megatestdir, ...): Use it wherever possible.
97493         Suggested by Ralf Wildenhues.
97495 2006-09-16  Karl Berry  <karl@gnu.org>
97497         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
97498         to avoid sectioning errors.
97499         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
97500         [ifinfo]: blank line after @center-ed titles.
97501         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
97502         Spell FSF address consistently with others.
97503         (These changes approved by rms.)
97505 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97507         Speed up by a factor of 1.61.
97508         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
97509         already checked module names again.
97511 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97513         Speed up by a factor of 1.13.
97514         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
97515         for new_files, and the input to func_add_or_update.
97517 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97519         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
97520         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
97522 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97524         * modules/mkancesdirs (Depends-on): Add fcntl.
97525         * modules/savewd: New file.
97526         * MODULES.html.sh (File system functions): Add savewd.
97528         * modules/configmake (Makefile.am): Add support for the
97529         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
97531 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97533         * m4/savewd.m4: New file.
97535 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
97537         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
97538         (dirchownmod): New arg FD.  All callers changed.
97539         Use FD rather than opening the directory ourself, as opening is
97540         now the caller's responsibility.
97541         * lib/dirchownmod.h: Likewise.
97542         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
97543         hosts that require <sys/types.h> before <sys/stat.h>.  Include
97544         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
97545         (test_dir): Remove.
97546         (mkancesdirs): Return length of prefix of FILE that has already
97547         been made, or -2 if there is a child doing the work.  Redo
97548         algorithm so that it is O(N) rather than O(N**2).  Optimize away
97549         ".", and treat ".." specially since it might stray back into
97550         already-created areas.  Use a subprocess if necessary.  New arg
97551         WD; all users changed.  MAKE_DIR function should now return 1
97552         if it creates a directory that is not readable.  Return -2 if
97553         a child process is spun off.
97554         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
97555         Adjust signature to match code.
97556         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
97557         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
97558         all users changed.
97559         * lib/savewd.c, lib/savewd.h: New files.
97561 2006-09-15  Jim Meyering  <jim@meyering.net>
97563         * modules/rename-dest-slash: New module.
97564         * MODULES.html.sh (posix_compat): Add it here.
97566         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
97568 2006-09-15  Jim Meyering  <jim@meyering.net>
97570         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
97571         file.
97573         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
97575 2006-09-15  Jim Meyering  <jim@meyering.net>
97577         * lib/rename-dest-slash.c (has_trailing_slash): Use
97578         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
97579         (rpl_rename_dest_slash): Perform the cheaper trailing slash
97580         test before testing whether SRC is a directory.
97581         Suggestions from Bruno Haible.
97583         Avoid a warning about an unused variable.
97584         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
97585         into the #ifdef block where it's used.
97587         * lib/rename-dest-slash.c: New file.
97589 2006-09-14  Bruno Haible  <bruno@clisp.org>
97591         * lib/allocsa.c: Include <config.h> unconditionally.
97592         * lib/asnprintf.c: Likewise.
97593         * lib/asprintf.c: Likewise.
97594         * lib/c-strcasecmp.c: Likewise.
97595         * lib/c-strcasestr.c: Likewise.
97596         * lib/c-strncasecmp.c: Likewise.
97597         * lib/c-strstr.c: Likewise.
97598         * lib/classpath.c: Likewise.
97599         * lib/clean-temp.c: Likewise.
97600         * lib/concatpath.c: Likewise.
97601         * lib/copy-file.c: Likewise.
97602         * lib/csharpcomp.c: Likewise.
97603         * lib/csharpexec.c: Likewise.
97604         * lib/execute.c: Likewise.
97605         * lib/fatal-signal.c: Likewise.
97606         * lib/findprog.c: Likewise.
97607         * lib/fwriteerror.c: Likewise.
97608         * lib/gl_array_list.c: Likewise.
97609         * lib/gl_array_oset.c: Likewise.
97610         * lib/gl_avltree_list.c: Likewise.
97611         * lib/gl_avltree_oset.c: Likewise.
97612         * lib/gl_avltreehash_list.c: Likewise.
97613         * lib/gl_carray_list.c: Likewise.
97614         * lib/gl_linked_list.c: Likewise.
97615         * lib/gl_linkedhash_list.c: Likewise.
97616         * lib/gl_list.c: Likewise.
97617         * lib/gl_oset.c: Likewise.
97618         * lib/gl_rbtree_list.c: Likewise.
97619         * lib/gl_rbtree_oset.c: Likewise.
97620         * lib/gl_rbtreehash_list.c: Likewise.
97621         * lib/imaxabs.c: Likewise.
97622         * lib/imaxdiv.c: Likewise.
97623         * lib/javacomp.c: Likewise.
97624         * lib/javaexec.c: Likewise.
97625         * lib/javaversion.c: Likewise.
97626         * lib/linebreak.c: Likewise.
97627         * lib/localcharset.c: Likewise.
97628         * lib/lock.c: Likewise.
97629         * lib/mbchar.c: Likewise.
97630         * lib/mbswidth.c: Likewise.
97631         * lib/mkdtemp.c: Likewise.
97632         * lib/pipe.c: Likewise.
97633         * lib/printf-args.c: Likewise.
97634         * lib/printf-parse.c: Likewise.
97635         * lib/progname.c: Likewise.
97636         * lib/progreloc.c: Likewise.
97637         * lib/readlink.c: Likewise.
97638         * lib/sh-quote.c: Likewise.
97639         * lib/stpcpy.c: Likewise.
97640         * lib/stpncpy.c: Likewise.
97641         * lib/strcasecmp.c: Likewise.
97642         * lib/strcasestr.c: Likewise.
97643         * lib/strcspn.c: Likewise.
97644         * lib/striconv.c: Likewise.
97645         * lib/strncasecmp.c: Likewise.
97646         * lib/strnlen1.c: Likewise.
97647         * lib/strstr.c: Likewise.
97648         * lib/strtok_r.c: Likewise.
97649         * lib/tls.c: Likewise.
97650         * lib/tmpdir.c: Likewise.
97651         * lib/unicodeio.c: Likewise.
97652         * lib/unsetenv.c: Likewise.
97653         * lib/vasnprintf.c: Likewise.
97654         * lib/vasprintf.c: Likewise.
97655         * lib/wait-process.c: Likewise.
97656         * lib/xallocsa.c: Likewise.
97657         * lib/xsetenv.c: Likewise.
97658         * lib/xstriconv.c: Likewise.
97660 2006-09-13  Simon Josefsson  <jas@extundo.com>
97662         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
97663         that internally, suggested by Ralf Wildenhues
97664         <Ralf.Wildenhues@gmx.de>.
97666 2006-09-13  Simon Josefsson  <jas@extundo.com>
97668         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
97669         @LIBOBJS@.
97670         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97672 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
97674         * lib/_fpending.c: Include <config.h> unconditionally, since we no
97675         longer worry about uses that don't define HAVE_CONFIG_H.
97676         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
97677         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
97678         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
97679         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
97680         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
97681         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
97682         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
97683         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
97684         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
97685         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
97686         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
97687         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
97688         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
97689         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
97690         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
97691         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
97692         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
97693         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
97694         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
97695         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
97696         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
97697         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
97698         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
97699         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
97700         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
97701         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
97702         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
97703         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
97704         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
97705         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
97706         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
97707         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
97708         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
97709         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
97710         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
97711         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
97712         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
97713         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
97714         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
97715         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
97716         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
97717         Likewise.
97719 2006-09-13  Eric Blake  <ebb9@byu.net>
97721         * lib/getopt.c: Fix typo in last commit.
97723 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
97725         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
97726         dgettext.
97728 2006-09-12  Jim Meyering  <jim@meyering.net>
97730         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
97731         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
97732         Reported by Nelson H. F. Beebe.
97734 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
97736         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
97737         program_invocation_name and program_invocation_short_name are
97738         initialized.
97739         * lib/argp-namefrob.h: Move declarations of program_invocation_name
97740         and program_invocation_short_name to argp.h, so they are visible
97741         to user programs.
97742         * lib/argp.h: Likewise
97744 2006-09-10  Bruno Haible  <bruno@clisp.org>
97746         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
97747         m4/inttypes_h.m4, m4/uintmax_t.m4.
97749 2006-09-10  Bruno Haible  <bruno@clisp.org>
97751         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
97752         gl_AC_TYPE_UINTMAX_T.
97754 2006-09-10  Bruno Haible  <bruno@clisp.org>
97756         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
97758 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
97760         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
97761         convention.  Text proposed by Bruno Haible.
97762         (struct argp_option): Document the use of N_() wrappers.
97764         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
97765         '\v', and translate the two parts separately, instead of feeding
97766         the whole string to gettext.  This allows to exclude
97767         '\v' from the strings visible to the translator by writing doc
97768         strings as N_("..") "\v" N_("..").
97770 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
97772         * config/srclist.txt: Undo latest change; the bug was fixed.
97774 2006-09-09  Bruno Haible  <bruno@clisp.org>
97776         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
97777         assignments if building a library without libtool.
97778         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
97779         in func_emit_lib_Makefile_am.
97780         (func_import): When building a static library libfoo.a, arrange to
97781         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
97782         (func_create_testdir): Likewise.
97783         * modules/gc (configure.ac, Makefile.am): If building statically,
97784         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
97785         * modules/iconvme (configure.ac, Makefile.am): Likewise.
97786         * modules/striconv (configure.ac, Makefile.am): Likewise.
97787         Based on a suggestion by Ralf Wildenhues.
97789 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97791         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
97792         Check for unistd.h too, since Autoconf doesn't assume POSIX.
97793         Also:
97795         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97796         Add year_2050_test to catch glibc bug 2821
97797         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97799         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
97800         Prefer #ifdef to #if.
97802         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
97803         Return from 'main' instead of calling 'exit'.
97805 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97807         * lib/mktime.c (guess_time_tm): Fix bug where mktime
97808         returned the maximum time_t value rather than (time_t) -1.
97809         Problem originally reported by William Bardwell
97810         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
97812         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97813         Moved to here ...
97814         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
97815         ... from here.
97817 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
97819         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
97820         2821 is fixed.
97822 2006-09-08  Jim Meyering  <jim@meyering.net>
97824         Don't make generated files read-only.  That would bother too many
97825         people.  However, do retain the ability to work when targets are
97826         read-only: remove the destination and temporary files before writing
97827         them (when generated via sed or echo), or by using the -f option for
97828         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
97829         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97830         * modules/byteswap, modules/configmake, modules/fcntl:
97831         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97832         * modules/localcharset, modules/netinet_in, modules/poll:
97833         * modules/stdbool, modules/stdint, modules/sys_select:
97834         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97836 2006-09-08  Jim Meyering  <jim@meyering.net>
97838         Avoid new build failure on FreeBSD 6.0.
97839         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
97840         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
97841         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
97843 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97845         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
97847 2006-09-07  Jim Meyering  <jim@meyering.net>
97849         Fix global typo in last change: use chmod u-w, not chmod u-x.
97850         Spotted by Paul Eggert and Bruce Korb.
97851         * modules/alloca-opt, modules/argz, modules/arpa_inet:
97852         * modules/byteswap, modules/configmake, modules/fcntl:
97853         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
97854         * modules/localcharset, modules/netinet_in, modules/poll:
97855         * modules/stdbool, modules/stdint, modules/sys_select:
97856         * modules/sys_socket, modules/sys_stat, modules/sysexits:
97858 2006-09-06  Jim Meyering  <jim@meyering.net>
97860         Make generated files be read-only.
97861         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
97862         Ensure that each generated file is now read-only.
97863         * modules/argz: Likewise.
97864         * modules/arpa_inet: Likewise.
97865         * modules/byteswap: Likewise.
97866         * modules/configmake: Likewise.
97867         * modules/fcntl: Likewise.
97868         * modules/fnmatch: Likewise.
97869         * modules/getopt: Likewise.
97870         * modules/glob: Likewise.
97871         * modules/inttypes: Likewise.
97872         * modules/netinet_in: Likewise.
97873         * modules/poll: Likewise.
97874         * modules/stdbool: Likewise.
97875         * modules/stdint: Likewise.
97876         * modules/sys_select: Likewise.
97877         * modules/sys_socket: Likewise.
97878         * modules/sys_stat: Likewise.
97879         * modules/sysexits: Likewise.
97880         * modules/localcharset: Same as above, but continue using temporary
97881         file named "t-$@" (why different?) rather than the "$@-t" used
97882         everywhere else.
97884         * modules/sysexits (Makefile.am): Replace literal occurrences
97885         of "sysexit.h" more readable, and more consistent, "$@".
97887 2006-09-06  Bruno Haible  <bruno@clisp.org>
97889         * modules/striconv: New file.
97890         * modules/xstriconv: New file.
97891         * MODULES.html.sh (Internationalization functions): Add striconv,
97892         xstriconv.
97894 2006-09-06  Bruno Haible  <bruno@clisp.org>
97896         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
97897         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
97898         not using libtool correctly.
97900 2006-09-06  Bruno Haible  <bruno@clisp.org>
97902         * lib/striconv.h: New file.
97903         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
97904         iconvstring.c.
97905         * lib/xstriconv.h: New file.
97906         * lib/xstriconv.c: New file.
97908 2006-09-06  Bruno Haible  <bruno@clisp.org>
97910         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
97911         lib_..._LDFLAGS.
97913 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97915         * lib/argz_.h: Sync from Libtool.
97917         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
97918                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
97920         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
97922 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97924         * modules/trim: New file.
97926 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
97928         * lib/trim.h: New file.
97929         * lib/trim.c: New file.
97931 2006-09-05  Bruno Haible  <bruno@clisp.org>
97933         * MODULES.html.sh (String handling): Add trim.
97935 2006-09-04  Karl Berry  <karl@gnu.org>
97937         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
97938         until next release.
97940 2006-09-03  Bruno Haible  <bruno@clisp.org>
97942         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
97943         correctly.
97945 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97947         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
97948         not gl_GETLOADAVG.  Omit unneeded semicolons.
97949         Problems reported by Ralf Wildenhues in
97950         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97951         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
97952         at the end, which is the usual gnulib style.
97954         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
97955         of doing all the work ourselves.
97956         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
97957         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
97959 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97961         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
97962         Problem reported by Ralf Wildenhues in
97963         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
97965         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
97966         HAVE_STRUCT_STATFS_F_FSTYPENAME.
97968 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
97970         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
97971         yesterday's patch by changing test -n to test -z.
97973 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97975         * modules/getloadavg (Files): Add m4/getloadavg.m4.
97976         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
97977         the former is now obsolescent.
97979         * modules/chdir-long (Depends-on): Add fcntl.
97981 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97983         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
97984         obsolescent, and programs should use gnulib instead.
97985         * m4/getloadavg.m4: New file, with contents taken from Autoconf
97986         but with prefixes changed.
97988 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
97990         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
97991         or stdbool.h, because they might not exist while configuring.
97993         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
97994         Don't include unistd.h or limits.h; not needed, since chdir-long.h
97995         does that for us.
97996         (O_DIRECTORY): Remove.
97998 2006-08-31  Eric Blake  <ebb9@byu.net>
98000         * gnulib-tool: Don't let emacs change spaces to TAB.
98002 2006-08-31  Bruno Haible  <bruno@clisp.org>
98004         * gnulib-tool: When calling func_import more than once, do it in a
98005         subshell.
98006         Reported by Eric Blake <ebb9@byu.net>.
98008 2006-08-31  Bruno Haible  <bruno@clisp.org>
98010         * gnulib-tool (nl): Remove variable.
98011         (sed_transform_lib_file): Use more robust test for config-h module.
98012         (func_import): Fix typo in 2006-08-25 patch.
98014 2006-08-31  Bruno Haible  <bruno@clisp.org>
98016         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
98017         specified, augment Makefile.am variables instead of assigning them.
98019 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
98021         Work around a bug in both the Linux and SunOS 64-bit kernels:
98022         nanosleep mishandles sleeps for longer than 2**31 seconds.
98023         Problem reported by Frank v Waveren in
98024         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
98025         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
98026         Check for nanosleep bug.
98027         (LIB_NANOSLEEP): Append clock_gettime library if needed.
98029 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
98031         Work around a bug in both the Linux and SunOS 64-bit kernels:
98032         nanosleep mishandles sleeps for longer than 2**31 seconds.
98033         Problem reported by Frank v Waveren in
98034         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
98035         * lib/nanosleep.c (BILLION): New constant.
98036         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
98037         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
98038         implementation.
98040 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
98042         * modules/nanosleep (Depends-on): Add gettime.
98044 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
98045         and Simon Josefsson  <jas@extundo.com>
98046         and Oskar Liljeblad  <oskar@osk.mine.nu>
98048         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
98049         * gnulib-tool (func_import): New license type 'unmodifiable license
98050         text'.
98051         * modules/fdl: Use it.  Longer description.
98052         * module/gpl, module/lgpl: New files.
98054 2006-08-30  Jim Meyering  <jim@meyering.net>
98056         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
98057         shadowing the parameter.
98059 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98061         Sync from Libtool:
98063         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98065         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
98066         sharing with gnulib.  Report by Eric Blake.
98068 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
98070         * modules/isapipe: New file.
98071         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
98073 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
98075         * modules/configmake (Makefile.am): Add a comment, and omit
98076         the CONFIGMAKE_ prefix from generated macro names.  Suggested
98077         by Bruno Haible.
98079 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
98081         * m4/isapipe.m4: New file.
98083 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
98085         * lib/isapipe.c, lib/isapipe.h: New files.
98087 2006-08-29  Jim Meyering  <jim@meyering.net>
98089         * modules/configmake (Makefile.am): Make configmake.h depend on
98090         Makefile.  Otherwise, a stale configmake.h could hang around.
98092 2006-08-29  Eric Blake  <ebb9@byu.net>
98094         * lib/error.c (error_at_line, print_errno_message): Match libc, after
98095         resolution of upstream bug 3044.
98097 2006-08-29  Bruno Haible  <bruno@clisp.org>
98099         * modules/localcharset (Depends-on): Add configmake.
98100         (Makefile.am): Remove setting of LIBDIR through DEFS.
98102 2006-08-29  Bruno Haible  <bruno@clisp.org>
98104         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
98105         defined.
98107 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98109         * modules/fcntl: New file.
98110         * modules/chdir-safer (Depends-on): Add fcntl.
98111         * modules/fts: Likewise.
98112         * modules/mkdir-p: Likewise.
98114         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
98115         This undoes the most recent change, since we're now addressing the
98116         problem in a different way.
98118         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
98119         into output, since the output might be called Makefile.am even
98120         if $makefile_name is something different.
98121         (func_import): Use $makefile_am rather than
98122         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
98123         empty.
98125         * modules/inttypes (Files): Add m4/inttypes-h.m4.
98127 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98129         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
98130         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
98131         recent change to stdint.m4, since we're now addressing the problem in a
98132         different way.
98134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98136         * m4/fcntl_h.m4: New file.
98138 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
98140         * lib/fcntl_.h: New file.
98141         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
98142         the fcntl module.
98143         * lib/dirchownmod.c: Likewise.
98144         * lib/fts.c: Likewise.
98146         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
98147         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
98148         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
98149         just before including <inttypes.h>, to avoid circular inclusion.
98151 2006-08-28  Jim Meyering  <jim@meyering.net>
98153         * doc/visibility.texi: Actually read and correct the grammar of the
98154         sentence affected by yesterday's change.
98156 2006-08-28  Eric Blake  <ebb9@byu.net>
98158         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
98159         needs wrapper.
98161 2006-08-28  Eric Blake  <ebb9@byu.net>
98163         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
98165 2006-08-28  Eric Blake  <ebb9@byu.net>
98167         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
98169 2006-08-28  Bruno Haible  <bruno@clisp.org>
98171         * modules/c-strstr: New file, from GNU gettext.
98172         * MODULES.html.sh (String handling): Add c-strstr.
98174 2006-08-28  Bruno Haible  <bruno@clisp.org>
98176         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
98177         macros.
98178         Reported by Eric Blake.
98180 2006-08-28  Bruno Haible  <bruno@clisp.org>
98182         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
98183         (VASNPRINTF): Return a string of length > INT_MAX without failing.
98184         * lib/vasprintf.c: Include errno.h, limits.h.
98185         (EOVERFLOW): New fallback definition.
98186         (vasprintf): Test here whether the string length is > INT_MAX.
98187         * lib/vsnprintf.c: Include errno.h, limits.h.
98188         (EOVERFLOW): New fallback definition.
98189         (vsnprintf): Fix bug when generated string was too long for the buffer.
98190         Test here whether the string length is > INT_MAX.
98192 2006-08-28  Bruno Haible  <bruno@clisp.org>
98194         * lib/inttypes_.h (SCNX*): Remove definitions.
98195         Reported by Eric Blake.
98197 2006-08-28  Bruno Haible  <bruno@clisp.org>
98199         * lib/c-strstr.h: New file, from GNU gettext.
98200         * lib/c-strstr.c: New file, from GNU gettext.
98202 2006-08-28  Bruno Haible  <bruno@clisp.org>
98204         * gnulib-tool: Reorder some statements.
98206 2006-08-28  Bruno Haible  <bruno@clisp.org>
98208         * gnulib-tool: New option --makefile-name.
98209         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
98210         $makefile_name.
98211         (func_import): Write $makefile_name to the cache file, and read it from
98212         there unless explicitly specified. Use $makefile_name as file name
98213         instead of Makefile.am. Adjust the recommendations accordingly.
98215 2006-08-28  Bruno Haible  <bruno@clisp.org>
98217         * gnulib-tool (func_verify_module): Check against misapplying patch.
98219 2006-08-28  Bruno Haible  <bruno@clisp.org>
98221         * gnulib-tool (func_relativize, func_relconcat): New functions.
98222         Give an error if --local-dir is given with --update.
98223         Remove trailing slashes from $local_gnulib_dir.
98224         (func_import): Store the relativized $local_gnulib_dir in
98225         gnulib-cache.m4, and read it from there if not specified explicitly.
98227 2006-08-28  Bruno Haible  <bruno@clisp.org>
98229         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
98230         is the current directory. Respect also $local_gnulib_dir.
98232 2006-08-28  Bruno Haible  <bruno@clisp.org>
98233             Simon Josefsson  <jas@extundo.com>
98235         BeOS portability.
98236         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
98238 2006-08-27  Jim Meyering  <jim@meyering.net>
98240         * doc/visibility.texi: Remove duplicate word: "pointer".
98242 2006-08-26  Bruno Haible  <bruno@clisp.org>
98244         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
98245         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
98246         (Makefile.am): Create inttypes.h from inttypes_.h.
98247         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
98249         * modules/imaxabs: New file.
98251         * modules/imaxdiv: New file.
98253 2006-08-26  Bruno Haible  <bruno@clisp.org>
98255         * m4/inttypes.m4: New file.
98256         * m4/_inttypes_h.m4: Remove file.
98257         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
98258         PRI_MACROS_BROKEN.
98259         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
98261         * m4/imaxabs.m4: New file.
98263         * m4/imaxdiv.m4: New file.
98265 2006-08-26  Bruno Haible  <bruno@clisp.org>
98267         * lib/inttypes_.h: New file.
98268         * lib/inttypes.h: Remove file.
98269         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
98271         * lib/imaxabs.c: New file.
98273         * lib/imaxdiv.c: New file.
98275 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98277         New config-h module, so that "make" output needn't be cluttered
98278         by -DHAVE_CONFIG_H.
98279         * MODULES.html.sh (Support for building libraries and executables):
98280         Add config-h.
98281         * modules/config-h: New file.
98282         * gnulib-tool (nl, sed_transform_lib_file): New vars.
98283         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
98284         the config-h module is used.
98286         New configmake module, so that "make" output needn't be cluttered
98287         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
98288         * MODULES.html.sh (Support for building libraries and executables):
98289         Add configmake.
98290         * modules/configmake: New file.
98292 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
98294         * m4/config-h.m4: New file.
98296 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98298         * config/srclist.txt: Add elisp-comp.
98300 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
98302         * MODULES.html.sh (Support for building libraries and executables):
98303         Add elisp-comp.
98304         * build-aux/elisp-comp: New file.
98305         * modules/elisp-comp: New file.
98307 2006-08-24  Bruno Haible  <bruno@clisp.org>
98309         * gnulib-tool (func_create_testdir): Use non-default values of
98310         sourcebase and m4base.
98312 2006-08-24  Bruno Haible  <bruno@clisp.org>
98314         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
98315         HTML structure.
98317 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
98319         * modules/openat (Depends-on): Add lchown.
98321 2006-08-23  Bruno Haible  <bruno@clisp.org>
98323         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
98324         of gl_LOCK_EARLY instead of gl_LOCK.
98326 2006-08-23  Bruno Haible  <bruno@clisp.org>
98328         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
98329         on OSF/1 to no.
98330         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
98332 2006-08-23  Bruno Haible  <bruno@clisp.org>
98334         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
98335         as unusable.
98337         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
98338         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
98339         (gl_LOCK): New macro.
98341 2006-08-22  Simon Josefsson  <jas@extundo.com>
98343         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
98344         to md5 module.
98346 2006-08-22  Simon Josefsson  <jas@extundo.com>
98348         * MODULES.html.sh: Add "Support for maintaining and release
98349         projects".
98351         * build-aux/gnupload: New file, from coreutils.
98353 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98355         Avoid the need for AC_LIBSOURCES in m4 macros.
98356         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
98357         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
98358         * modules/check-version (EXTRA_DIST): Add check-version.h.
98359         * modules/crc (EXTRA_DIST): Add crc.h.
98360         * modules/des (EXTRA_DIST): Add des.h.
98361         * modules/gc (EXTRA_DIST): Add gc.h.
98362         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
98363         * modules/getline (EXTRA_DIST): Add getline.h.
98364         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
98365         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
98366         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
98367         * modules/md2 (EXTRA_DIST): Add md2.h.
98368         * modules/md4 (EXTRA_DIST): Add md4.h.
98369         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
98370         * modules/read-file (EXTRA_DIST): Add read-file.h.
98371         * modules/readline (EXTRA_DIST): Add readline.h.
98372         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
98373         rijndael-api-fst.h.
98375 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98377         * m4/rijndael.m4 (gl_ARCFOUR):
98378         * m4/arctwo.m4 (gl_ARCTWO):
98379         * m4/check-version.m4 (gl_CHECK_VERSION):
98380         * m4/crc.m4 (gl_CRC):
98381         * m4/des.m4 (gl_DES):
98382         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
98383         * m4/gc.m4 (gl_GC):
98384         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
98385         * m4/getline.m4 (gl_FUNC_GETLINE):
98386         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
98387         * m4/hmac-md5.m4 (gl_HMAC_MD5):
98388         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
98389         * m4/md2.m4 (gl_MD2):
98390         * m4/md4.m4 (gl_MD4):
98391         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
98392         * m4/read-file.m4 (gl_FUNC_READ_FILE):
98393         * m4/readline.m4 (gl_FUNC_READLINE):
98394         * m4/rijndael.m4 (gl_RIJNDAEL):
98395         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98396         to get the necessary .h files and whatnot.
98398 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
98400         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
98401         gnulib rather than the other way around.
98402         * config/srclistvars.sh (COREUTILS): Remove.
98404 2006-08-22  Jim Meyering  <jim@meyering.net>
98406         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
98408         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
98410 2006-08-22  Eric Blake  <ebb9@byu.net>
98412         * modules/regexprops-generic: New file.
98413         * MODULES.html.sh (Support for building documentation): List it.
98415 2006-08-22  Eric Blake  <ebb9@byu.net>
98417         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
98418         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
98419         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
98420         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
98422 2006-08-22  Bruno Haible  <bruno@clisp.org>
98424         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
98425         and lib_LTLIBRARIES like the other lib_* variables.
98427 2006-08-22  Bruno Haible  <bruno@clisp.org>
98429         * build-aux/x-to-1.in: New file, from GNU gettext.
98431 2006-08-22  Bruno Haible  <bruno@clisp.org>
98433         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
98434         <utmpx.h> exists.
98436 2006-08-22  Bruno Haible  <bruno@clisp.org>
98438         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
98439         <utmpx.h> exists.
98441 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98443         BeOS portability.
98444         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
98445         exist.
98446         Problem reported by Bruno Haible.
98448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98450         Avoid the need for AC_LIBSOURCES in m4 macros.
98451         * modules/acl (EXTRA_DIST): Add acl.h.
98452         * modules/argmatch (Files): Add m4/argmatch.m4.
98453         (configure.ac): Add gl_ARGMATCH.
98454         (EXTRA_DIST): Renamed from lib_SOURCES, for
98455         consistency with the other modules.  Remove argmatch.c.
98456         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
98457         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
98458         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
98459         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
98460         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
98461         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
98462         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
98463         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
98464         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
98465         * modules/closeout (EXTRA_DIST): Add closeout.h.
98466         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
98467         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
98468         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
98469         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
98470         dirname.h; remove basename.c and stripslash.c.
98471         * modules/exclude (EXTRA_DIST): Add exclude.h.
98472         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
98473         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
98474         * modules/file-type (EXTRA_DIST): Add file-type.h.
98475         * modules/filemode (EXTRA_DIST): Add filemode.h.
98476         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
98477         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98478         * modules/fpending (EXTRA_DIST): Add __fpending.h.
98479         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
98480         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
98481         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
98482         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
98483         * modules/getdate (EXTRA_DIST): Add getdate.c.
98484         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
98485         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
98486         * modules/getpass (EXTRA_DIST): Add getpass.h.
98487         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
98488         * modules/group-member (EXTRA_DIST): Add group-member.h.
98489         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
98490         * modules/hash (EXTRA_DIST): Add hash.h.
98491         * modules/human (EXTRA_DIST): Add human.h.
98492         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
98493         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
98494         * modules/lchown (EXTRA_DIST): Add lchown.h.
98495         * modules/long-options (EXTRA_DIST): Add long-options.h.
98496         * modules/lstat (EXTRA_DIST): Add lstat.h.
98497         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
98498         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
98499         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
98500         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
98501         * modules/memxor (EXTRA_DIST): Add memxor.h.
98502         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
98503         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
98504         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
98505         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
98506         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
98507         * modules/physmem (EXTRA_DIST): Add physmem.h.
98508         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
98509         * modules/posixver (EXTRA_DIST): Add posixver.h.
98510         * modules/quote (EXTRA_DIST): Add quote.h.
98511         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
98512         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
98513         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
98514         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
98515         regex_internal.h regexec.c.
98516         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
98517         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
98518         * modules/same (EXTRA_DIST): Add same.h.
98519         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
98520         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
98521         * modules/savedir (EXTRA_DIST): Add savedir.h.
98522         * modules/sha1 (EXTRA_DIST): Add sha1.h.
98523         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
98524         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
98525         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
98526         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
98527         * modules/strdup (EXTRA_DIST): Add strdup.h.
98528         * modules/strftime (EXTRA_DIST): Add strftime.h.
98529         * modules/strndup (EXTRA_DIST): Add strndup.h.
98530         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
98531         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
98532         * modules/time_r (EXTRA_DIST): Add time_r.h.
98533         * modules/timespec (EXTRA_DIST): Add timespec.h.
98534         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
98535         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
98536         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
98537         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
98538         * modules/userspec (EXTRA_DIST): Add userspec.h.
98539         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
98540         * modules/utimens (EXTRA_DIST): Add utimens.h.
98541         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
98542         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
98543         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
98544         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
98545         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
98546         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
98547         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
98548         * modules/yesno (EXTRA_DIST): Add yesno.h.
98550 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
98552         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
98554         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
98555         * m4/dev-ino.m4, same-inode.m4: Remove.
98557         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
98558         * m4/acl.m4 (AC_FUNC_ACL):
98559         * m4/backupfile.m4 (gl_BACKUPFILE):
98560         * m4/c-strtod.m4 (gl_C99_STRTOLD):
98561         * m4/canon-host.m4 (gl_CANON_HOST):
98562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
98563         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
98564         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
98565         * m4/cloexec.m4 (gl_CLOEXEC):
98566         * m4/close-stream.m4 (gl_CLOSE_STREAM):
98567         * m4/closeout.m4 (gl_CLOSEOUT):
98568         * m4/dirfd.m4 (gl_FUNC_DIRFD):
98569         * m4/dirname.m4 (gl_DIRNAME):
98570         * m4/exclude.m4 (gl_EXCLUDE):
98571         * m4/exitfail.m4 (gl_EXITFAIL):
98572         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
98573         * m4/file-type.m4 (gl_FILE_TYPE):
98574         * m4/filemode.m4 (gl_FILEMODE):
98575         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
98576         * m4/fpending.m4 (gl_FUNC_FPENDING):
98577         * m4/fprintftime.m4 (gl_FPRINTFTIME):
98578         * m4/fts.m4 (gl_FUNC_FTS):
98579         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
98580         * m4/getdate.m4 (gl_GETDATE):
98581         * m4/gethrxtime.m4 (gl_GETHRXTIME):
98582         * m4/getpagesize.m4 (gl_GETPAGESIZE):
98583         * m4/getpass.m4 (gl_FUNC_GETPASS):
98584         * m4/gettime.m4 (gl_GETTIME):
98585         * m4/getugroups.m4 (gl_GETUGROUPS):
98586         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
98587         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
98588         * m4/hard-locale.m4 (gl_HARD_LOCALE):
98589         * m4/hash.m4 (gl_HASH):
98590         * m4/idcache.m4 (gl_IDCACHE):
98591         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
98592         * m4/lchown.m4 (gl_FUNC_LCHOWN):
98593         * m4/long-options.m4 (gl_LONG_OPTIONS):
98594         * m4/lstat.m4 (gl_FUNC_LSTAT):
98595         * m4/md5.m4 (gl_MD5):
98596         * m4/memcasecmp.m4 (gl_MEMCASECMP):
98597         * m4/memcoll.m4 (gl_MEMCOLL):
98598         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
98599         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
98600         * m4/memxor.m4 (gl_MEMXOR):
98601         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
98602         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
98603         * m4/modechange.m4 (gl_MODECHANGE):
98604         * m4/mountlist.m4 (gl_MOUNTLIST):
98605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
98606         * m4/openat.m4 (gl_FUNC_OPENAT):
98607         * m4/pathmax.m4 (gl_PATHMAX):
98608         * m4/physmem.m4 (gl_PHYSMEM):
98609         * m4/posixtm.m4 (gl_POSIXTM):
98610         * m4/posixver.m4 (gl_POSIXVER):
98611         * m4/quote.m4 (gl_QUOTE):
98612         * m4/quotearg.m4 (gl_QUOTEARG):
98613         * m4/readtokens.m4 (gl_READTOKENS):
98614         * m4/readutmp.m4 (gl_READUTMP):
98615         * m4/regex.m4 (gl_REGEX):
98616         * m4/safe-read.m4 (gl_SAFE_READ):
98617         * m4/safe-write.m4 (gl_SAFE_WRITE):
98618         * m4/same.m4 (gl_SAME):
98619         * m4/save-cwd.m4 (gl_SAVE_CWD):
98620         * m4/savedir.m4 (gl_SAVEDIR):
98621         * m4/settime.m4 (gl_SETTIME):
98622         * m4/sha1.m4 (gl_SHA1):
98623         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
98624         * m4/stat-macros.m4 (gl_STAT_MACROS):
98625         * m4/stat-time.m4 (gl_STAT_TIME):
98626         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
98627         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
98628         * m4/strdup.m4 (gl_FUNC_STRDUP):
98629         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
98630         * m4/strndup.m4 (gl_FUNC_STRNDUP):
98631         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
98632         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
98633         * m4/time_r.m4 (gl_TIME_R):
98634         * m4/timespec.m4 (gl_TIMESPEC):
98635         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
98636         * m4/unlinkdir.m4 (gl_UNLINKDIR):
98637         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
98638         * m4/userspec.m4 (gl_USERSPEC):
98639         * m4/utimecmp.m4 (gl_UTIMECMP):
98640         * m4/utimens.m4 (gl_UTIMENS):
98641         * m4/xalloc.m4 (gl_XALLOC):
98642         * m4/xgetcwd.m4 (gl_XGETCWD):
98643         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
98644         * m4/xreadlink.m4 (gl_XREADLINK):
98645         * m4/xstrtod.m4 (gl_XSTRTOD):
98646         * m4/yesno.m4 (gl_YESNO):
98647         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
98648         to get the necessary .h files and whatnot.
98650 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
98651             Bruno Haible  <bruno@clisp.org>
98653         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
98654         /bin/sh understanding of '!' conditional negation.
98656 2006-08-21  Jim Meyering  <jim@meyering.net>
98658         * modules/openat (Depends-on): Really alphabetize.
98660         * modules/acl (Depends-on): Add error and quote.
98662         * check-module (find_included_lib_files): Add at-func.c to the
98663         ok-to-include-more-than-once white list.
98665         * modules/openat (Depends-on): Add lstat.  Alphabetize.
98667 2006-08-21  Bruno Haible  <bruno@clisp.org>
98669         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
98670         Emit a pkgdata_DATA variable only if some snippets add contents to it.
98671         Reported by Martin Lambers <marlam@marlam.de>.
98673 2006-08-21  Bruno Haible  <bruno@clisp.org>
98675         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
98676         specify an installation location, don't emit a noinst_LIBRARIES or
98677         noinst_LTLIBRARIES assignment.
98679 2006-08-21  Bruno Haible  <bruno@clisp.org>
98681         BeOS portability.
98682         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
98683         BeOS has mbrtowc() but no <wctype.h>.
98685 2006-08-21  Bruno Haible  <bruno@clisp.org>
98687         BeOS portability.
98688         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
98689         exist.
98691 2006-08-21  Bruno Haible  <bruno@clisp.org>
98693         BeOS portability.
98694         * lib/mbchar.h: Include <wctype.h> only if it exists.
98696 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98698         Remove files that are no longer needed by their respective modules.
98699         * m4/obstack.m4: Remove.
98700         * m4/strerror_r.m4: Remove.
98701         * m4/uint32_t.m4: Remove.
98702         * m4/uintptr_t.m4: Remove.
98703         * m4/ullong_max.m4: Remove.
98704         * m4/xstrtoimax.m4: Remove.
98705         * m4/xstrtoumax.m4: Remove.
98707         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
98708         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
98709         dependencies now capture this.
98711         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
98712         Do not use AC_LIBSOURCES, since gnulib modules now do this.
98713         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
98714         * m4/human.m4 (gl_HUMAN): Likewise.
98715         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
98716         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
98718         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
98720         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
98721         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
98722         stdint.
98723         * m4/human.m4 (gl_HUMAN): Likewise.
98724         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
98725         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
98726         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98727         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98728         * m4/xstrtol (gl_XSTRTOL): Likewise.
98730         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
98731         AC_TYPE_LONG_LONG_INT.
98732         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
98733         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
98734         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
98735         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
98737         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
98738         on stdbool.
98740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
98741         (gl_PREREQ_XSTRTOUL): Remove.
98743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
98745         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
98746         mode.
98748 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98750         Add and change modules to make it easier for coreutils to use
98751         gnulib-tool.
98752         * modules/backupfile (Files): Remove m4/d-ino.m4.
98753         (Depends-on): Add d-ino.
98754         * modules/cycle-check (Depends-on): Add stdint.
98755         (lib_SOURCES): Add cycle-check.h.
98756         * modules/d-ino: New module.
98757         * modules/d-type: New module.
98758         * modules/error (Files): Remove m4/strerror_r.m4.
98759         * modules/filemode (Files): Add m4/st_dm_mode.m4.
98760         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
98761         m4/inttypes_h.m4, m4/uintmax_t.m4.
98762         (Depends-on): Add stdint.
98763         (lib_SOURCES): Add fsusage.h.
98764         * modules/getcwd (Files): Remove d-ino.m4.
98765         (Depends-on): Add d-ino.
98766         * modules/getndelim2 (Depends-on): Add stdint.
98767         * modules/glob (Files): Remove m4/d-type.m4.
98768         (Depends-on): Add d-type.
98769         * modules/host-os: New module.
98770         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
98771         m4/inttypes_h.m4, m4/uintmax_t.m4.
98772         * Depends-on: Add stdint.
98773         (lib_SOURCES): Add human.h.
98774         * modules/inttostr (Files): Remove m4/intmax_t.m4,
98775         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
98776         m4/uintmax_t.m4, m4/ulonglong.m4.
98777         (Depends-on): Add stdint.
98778         (EXTRA_DIST): Add inttostr.h.
98779         * modules/lchmod: New module.
98780         * modules/link-follow: New module.
98781         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
98782         (Depends-on): Add lchmod.
98783         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
98784         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
98785         (Depends-on): Add stdint.
98786         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
98787         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
98788         (Depends-on): Add stdint.
98789         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
98790         * modules/perl: New module.
98791         * modules/regex (Depends-on): Add stdint.
98792         * modules/rmdir-errno: New module.
98793         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98794         m4/intmax_t.m4.
98795         (Depends-on): Add stdint.
98796         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
98797         m4/uintmax_t.m4.
98798         (Depends-on): Add stdint.
98799         * modules/unlink-busy: New module.
98800         * modules/utimecmp (Depends-on): Add stdint.
98801         * modules/uptime: New module.
98802         * modules/winsz-ioctl: New module.
98803         * modules/winsz-termios: New module.
98804         * modules/xnanosleep (Depends-on): Add nanosleep.
98805         * modules/ullong_max: Remove.
98806         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
98807         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
98808         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
98809         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
98810         (Depends-on): Add inttypes.
98811         (lib_SOURCES): Add xstrtol.h.
98812         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
98813         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
98814         * MODULES.html.sh: Move 'assert' into the assert section.
98815         Move 'dummy' into the linking section.
98816         Remove ullong_max.
98817         Add section for compatibility checks for POSIX:2001 functions,
98818         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
98819         winsz-ioctl, and winsz-termios into it.
98820         Add lchmod.
98821         Add top-level Misc section and put host-os, perl, and uptime
98822         into it.
98824 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
98826         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
98827         now assume the stdint module.  Do not include inttypes.h.
98828         * lib/fsusage.h: Likewise.
98829         * lib/getndelim2.c: Likewise.
98830         * lib/human.h: Likewise.
98831         * lib/inttostr.h: Likewise.
98832         * lib/obstack.c: Likewise.
98833         * lib/regex_internal.h: Likewise.
98834         * lib/tempname.c: Likewise.
98835         * lib/utimecmp.c: Likewise.
98836         * lib/xstrtol.h: Likewise.
98838         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
98840         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
98841         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
98842         * lib/xtime.h: Likewise.
98844 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98846         * modules/openat (Files): Add lib/fchmodat.c.
98847         Fixes problem reported by Jay Youngman.
98849 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
98851         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
98852         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
98854 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
98855             Bruno Haible  <bruno@clisp.org>
98857         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
98858         and is a script that invokes bison. Tighten the code. Add comments.
98860 2006-08-18  Jim Meyering  <jim@meyering.net>
98862         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
98863         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
98864         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
98865         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
98867 2006-08-18  Bruno Haible  <bruno@clisp.org>
98869         * modules/bison-i18n: New file.
98870         * MODULES.html.sh (Internationalization functions): Add it.
98872 2006-08-18  Bruno Haible  <bruno@clisp.org>
98874         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
98875         sys/statvfs.h. When getmntinfo was found, check its declaration and
98876         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
98878 2006-08-18  Bruno Haible  <bruno@clisp.org>
98880         * m4/bison-i18n.m4: New file, from bison.
98882 2006-08-18  Bruno Haible  <bruno@clisp.org>
98884         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
98885         (ME_DUMMY): Treat "kernfs" as a dummy.
98886         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
98888 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98890         Update from coreutils.
98892         2006-08-15  Jim Meyering  <jim@meyering.net>
98894         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
98896         2006-01-17  Jim Meyering  <jim@meyering.net>
98898         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
98900         2006-01-11  Jim Meyering  <jim@meyering.net>
98902         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
98903         Check for the lchmod function.
98905 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
98907         Update from coreutils.
98909         * lib/__fpending.h: Add copyright notice.
98910         * lib/fprintftime.h: Likewise.
98911         * lib/savedir.c: Use (C) in copyright notice.
98912         * lib/savedir.h: Likewise.
98914         2006-08-15  Jim Meyering  <jim@meyering.net>
98916         * lib/at-func.c: New file, with the logic of all emulated at-functions.
98917         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
98918         in support of the EXPECTED_ERRNO macro.
98919         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
98920         definitions.  Instead, define the appropriate symbols and include
98921         "at-func.c".
98922         * lib/mkdirat.c (mkdirat): Likewise.
98923         * lib/fchmodat.c (fchmodat): Likewise.
98924         (ENOSYS): Remove definition.
98925         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
98926         it.  Don't include "unistd--.h" -- it wasn't ever used.
98928         2006-01-17  Jim Meyering  <jim@meyering.net>
98930         Rewrite fts.c not to change the current working directory,
98931         by using openat, fstatat, fdopendir, etc..
98933         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
98934         (HAVE_OPENAT_SUPPORT): Define.
98935         [_LIBC] (fchdir): Don't undef or define; no longer used.
98936         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
98937         Now, this `function' always succeeds, and consumes its file descriptor
98938         parameter -- so callers must not close such FDs.  Update callers.
98939         (diropen_fd, opendirat, cwd_advance_fd): New functions.
98940         (diropen): Add parameter, SP.  Adjust all callers.
98941         Implement using diropen_fd, rather than open.
98942         (fts_open): Initialize new member, fts_cwd_fd.
98943         Remove fts_rft-setting code.
98944         (fts_close): Close fts_cwd_fd, if necessary.
98945         (__opendir2): Define in terms of opendir or opendirat,
98946         depending on whether the FST_NOCHDIR flag is set.
98947         (fts_build): Since fts_safe_changedir consumes its FD, and since
98948         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
98949         and close the dup'd file descriptor upon failure.
98950         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
98951         (fts_safe_changedir): Tweak semantics to reflect that this function
98952         now calls cwd_advance_fd and hence consumes its FD argument.
98953         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
98954         [struct FTS] (fts_rft): Remove now-unused member.
98955         [struct FTS] (fts_cycle.state): Improve comment.
98957         * lib/openat.c (openat_needs_fchdir): New function.
98958         * lib/openat.h (openat_needs_fchdir): Declare it.
98960 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
98962         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
98963         Problem and fix reported by Pádraig Brady in
98964         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
98966 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98968         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
98970 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98972         * lib/memcoll.c (memcoll): Optimize for the common case where the
98973         arguments are bytewise equal.
98975 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
98977         * doc/regexprops-generic.texi: Add a copyright notice.
98979 2006-08-15  Bruno Haible  <bruno@clisp.org>
98981         * modules/tmpdir (License): Change to LGPL.
98983 2006-08-15  Bruno Haible  <bruno@clisp.org>
98985         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
98986         module.
98988 2006-08-14  Simon Josefsson  <jas@extundo.com>
98990         * config/srclist.txt: Add gnupload.
98992 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
98994         Change copyright notice from LGPL 2 to GPL 2, since that's the
98995         standard form used in the gnulib repository.
98996         * tests/test-lock.c: Likewise.
98997         * tests/test-stdint.c: Likewise.
98998         * tests/test-tls.c: Likewise.
99000         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
99001         prelude-manager.  User shorter URLs for GNU projects, without '?'.
99002         Add copyright notice.
99004         * check-module: Add copyright notice.  Output a copyright
99005         notice if "--version" is specified.
99006         * modules/COPYING: New file.
99007         * tests/test-getaddrinfo.c: Add copyright notice.
99008         * tests/test-verify.c: Likewise.
99010 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99012         Change copyright notice from LGPL 2 to GPL 2, since that's the
99013         standard form used in the gnulib repository.
99014         * lib/lock.c: LGPL -> GPL.
99015         * lib/lock.h: Likewise.
99016         * lib/strnlen1.c: Likewise.
99017         * lib/strnlen1.h: Likewise.
99018         * lib/tls.c: Likewise.
99019         * lib/tls.h: Likewise.
99020         * lib/tmpdir.c: Likewise.
99022         * lib/TODO: Remove; this belongs only in coreutils.
99024 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99026         Add copyright notices to long-enough files that lack them, since
99027         otherwise the files aren't clearly free.  Use the same notice that
99028         getdate.texi already uses.
99029         * doc/alloca-opt.texi: Add copyright notice.
99030         * doc/alloca.texi: Likewise.
99031         * doc/ctime.texi: Likewise.
99032         * doc/functions.texi: Likewise.
99033         * doc/gcd.texi: Likewise.
99034         * doc/gnulib-tool.texi: Likewise.
99035         * doc/inet_ntoa.texi: Likewise.
99036         * doc/visibility.texi: Likewise.
99038         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
99039         * doc/quote.texi: Add copyright notice.
99041         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
99042         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
99043         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
99044         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
99045         is now obsolete, and give a pointer to the Sun list.
99046         Add copyright notice.
99048 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
99050         * config/srclistvars.sh: Add copyright notice.
99052 2006-08-14  Eric Blake  <ebb9@byu.net>
99054         Import the following change from libc:
99056         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
99058         Upstream bug 2997.
99059         * lib/misc/error.c: Add space between program name and message if file
99060         name is missing.
99062 2006-08-12  Karl Berry  <karl@gnu.org>
99064         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
99065         remove, these originate in gnulib now.
99067 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99069         * doc/Makefile (standards.info standards.html standards.dvi):
99070         Also depend on make-stds.texi.
99072 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
99074         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
99075         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
99077         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
99078         in wchar_t.  Problem reported by Eric Blake.
99080         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
99081         LEN is smaller than SIZE.  Suggested by Bruno Haible.
99082         Also, help the compiler to keep LEN in a register.
99084 2006-08-11  Eric Blake  <ebb9@byu.net>
99086         * users.txt: Sort.  Add tar.
99088 2006-08-11  Bruno Haible  <bruno@clisp.org>
99090         * users.txt: New file.
99092 2006-08-11  Bruno Haible  <bruno@clisp.org>
99094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
99095         before <wchar.h>. Needed for OSF/1 and BSD/OS.
99097 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99099         * modules/snprintf (Depends-on): Remove minmax.
99100         (Maintainer): Add self and Bruno.
99102 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
99104         * lib/.cppi-disable: Add snprintf.h, socket_.h.
99105         * lib/snprintf.c: Include <errno.h> and <limits.h>.
99106         (EOVERFLOW): Define if the system does not.
99107         Do not include "minmax.h"; it wasn't used.
99108         (snprintf): Don't assume size_t promotes to an unsigned type.
99109         Fix bug when generated string was too long for the buffer: the
99110         buffer's contents are supposed to be the initial prefix of the
99111         output.  Don't assume vasnprintf returns EOVERFLOW if the size
99112         exceeds INT_MAX; do the check ourselves.
99114         Import the following changes from libc:
99116         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
99118         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
99119         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
99120         set wc to the byte which couldn't be converted.
99121         (re_string_reconstruct): Don't clear valid_raw_len before calling
99122         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
99123         tip_context using re_string_context_at.
99125         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
99127         * lib/posix/regex.h: g++ still cannot handled [restrict].
99129         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
99131         * lib/posix/regex.h: Remove special handling for VMS.
99133 2006-08-10  Jim Meyering  <jim@meyering.net>
99135         * modules/same-inode: New module.
99136         * modules/dev-ino: New module.
99137         * modules/cycle-check: Depend on these modules, rather than simply
99138         including their .h files.
99139         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
99140         required via m4/cycle-check.m4.
99141         * modules/same: Depend on new same-inode module, rather than
99142         including same-inode.h.
99143         * modules/chdir-safer: New file.
99145         * modules/chown (Depends-on): Add stat-macros.
99147 2006-08-10  Jim Meyering  <jim@meyering.net>
99149         * m4/cycle-check.m4: New file.
99150         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
99151         * m4/dev-ino.m4, m4/same-inode.m4: New files.
99153 2006-08-10  Eric Blake  <ebb9@byu.net>
99155         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
99156         in from original proposal.
99158 2006-08-10  Eric Blake  <ebb9@byu.net>
99159         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
99161         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
99162         namespace.
99164 2006-08-10  Bruno Haible  <bruno@clisp.org>
99166         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
99167         as well.
99169 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99171         Sync from coreutils.
99173         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
99175         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
99176         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
99178 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99180         * modules/restrict: Remove; no longer needed now that we assume
99181         Autoconf 2.59 or later.
99182         * MODULES.html.sh: Remove 'restrict'.
99183         * modules/argp (Depends-on): Remove 'restrict'.
99184         * modules/base64 (Depends-on): Likewise.
99185         * modules/gc (Depends-on): Likewise.
99186         * modules/getaddrinfo (Depends-on): Likewise.
99187         * modules/glob (Depends-on): Likewise.
99188         * modules/inet_ntop (Depends-on): Likewise.
99189         * modules/inet_pton (Depends-on): Likewise.
99190         * modules/memxor (Depends-on): Likewise.
99191         * modules/regex (Depends-on): Likewise.
99192         * modules/strtok_r (Depends-on): Likewise.
99193         * modules/time_r (Depends-on): Likewise.
99195 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
99197         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
99198         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
99199         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
99200         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
99201         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
99202         * m4/memxor.m4 (gl_MEMXOR): Likewise.
99203         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
99204         gl_C_RESTRICT replaced by AC_C_RESTRICT.
99206         Merge from coreutils.
99207         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
99208         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
99209         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
99210         * m4/time_r.m4 (gl_TIME_R): Likewise.
99212 2006-08-09  Karl Berry  <karl@gnu.org>
99214         * config/srclist.txt: no more gettext-tools, per Bruno.
99216 2006-08-08  Eric Blake  <ebb9@byu.net>
99218         * modules/verror: New module.
99219         * MODULES.html.sh: Document it.
99221 2006-08-08  Eric Blake  <ebb9@byu.net>
99223         * lib/verror.h, lib/verror.c: New files.
99225 2006-08-08  Eric Blake  <ebb9@byu.net>
99227         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
99228         verror_at_line output complies with GNU Coding Standards even when
99229         file is NULL.
99231 2006-08-07  Bruno Haible  <bruno@clisp.org>
99233         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
99234         versions of AIX.
99235         Reported by Ralf Wildenhues.
99237 2006-08-07  Bruno Haible  <bruno@clisp.org>
99239         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
99240         in an AC_DEFUN. Needed so that the autoconf snippets can use
99241         AC_REQUIRE.
99243 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99245         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99246         Initialize pkgdata_DATA.
99247         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
99248         overriding it.
99250 2006-08-06  Eric Blake  <ebb9@byu.net>
99252         * lib/error.h: Fold in some upstream changes from glibc.
99253         * lib/error.c: Likewise.
99255 2006-08-04  Bruno Haible  <bruno@clisp.org>
99257         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99258         Make the mostlyclean-local rule depend on mostlyclean-generic.
99259         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
99261 2006-07-31  Bruno Haible  <bruno@clisp.org>
99263         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
99264         <stdlib.h>, <string.h>.
99266 2006-07-30  Bruno Haible  <bruno@clisp.org>
99268         * modules/readlink (License): Change to LGPL.
99270 2006-07-30  Bruno Haible  <bruno@clisp.org>
99272         * modules/javaversion (Makefile.am): Distribute javaversion.java and
99273         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
99274         set PKGDATADIR to point to it.
99276 2006-07-30  Bruno Haible  <bruno@clisp.org>
99278         * modules/csharpexec (configure.ac): Comment out macro invocation.
99279         * modules/javaexec (configure.ac): Likewise.
99280         * modules/javacomp-script (configure.ac): Likewise.
99282         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
99284 2006-07-30  Bruno Haible  <bruno@clisp.org>
99286         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
99287         linked-list.
99289 2006-07-30  Bruno Haible  <bruno@clisp.org>
99291         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
99293 2006-07-30  Bruno Haible  <bruno@clisp.org>
99295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
99296         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
99297         get removed.
99299 2006-07-29  Bruno Haible  <bruno@clisp.org>
99301         Make it possible for gnulib-tool to work with locally modified or
99302         augmented gnulib repositories.
99303         * gnulib-tool (func_usage): Document --local-dir option.
99304         (local_gnulib_dir): New variable.
99305         Handle --local-dir option.
99306         (func_lookup_file): New function.
99307         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
99308         (func_get_description, func_get_filelist, func_get_description,
99309         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
99310         func_get_automake_snippet, func_get_include_directive,
99311         func_get_license, func_get_maintainer): Use func_lookup_file.
99312         (func_import, func_create_testdir): Use func_lookup_file.
99314 2006-07-29  Bruno Haible  <bruno@clisp.org>
99316         * modules/setenv (Depends-on): Add unistd.
99318 2006-07-29  Bruno Haible  <bruno@clisp.org>
99320         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
99322 2006-07-29  Bruno Haible  <bruno@clisp.org>
99324         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
99326 2006-07-29  Bruno Haible  <bruno@clisp.org>
99328         * gnulib-tool (import, update): If there is no Makefile.am, look at
99329         aclocal.m4, instead of bailing out.
99331 2006-07-29  Bruno Haible  <bruno@clisp.org>
99333         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
99334         Categorize the options by when they are useful.
99336 2006-07-29  Bruno Haible  <bruno@clisp.org>
99338         * gnulib-tool (func_usage): Document option --no-libtool.
99339         Handle option --no-libtool.
99340         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
99341         for changed semantics of $libtool variable.
99342         (func_import): Likewise. If libtool is not used, show this through
99343         an option --no-libtool.
99344         (func_create_testdir): Update.
99346 2006-07-29  Bruno Haible  <bruno@clisp.org>
99348         * gnulib-tool (func_import): Extend error message about missing
99349         --doc-base.
99351 2006-07-29  Bruno Haible  <bruno@clisp.org>
99353         * gnulib-tool (func_import): Don't create the $docbase directory if
99354         there is no file to store there.
99356 2006-07-29  Bruno Haible  <bruno@clisp.org>
99358         * gnulib-tool (autoconf_minversion): If a --dir option is given and
99359         relevant, look for configure.ac there, not in the current directory.
99360         Also use a simple search for AC_PREREQ, not "autoconf --trace".
99362 2006-07-29  Bruno Haible  <bruno@clisp.org>
99364         * gnulib-tool (SORT): New variable.
99365         (func_usage): Undocument --assume-autoconf option.
99366         Remove --assume-autoconf option handling.
99367         (autoconf_minversion): Determine from the contents of configure.ac.
99368         (func_import): Remove autoconf_minversion handling.
99369         Suggested by Eric Blake.
99371 2006-07-29  Bruno Haible  <bruno@clisp.org>
99373         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
99375 2006-07-29  Bruno Haible  <bruno@clisp.org>
99377         * config/srclist.txt (*setenv.[ch]): Remove rules.
99379 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99381         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
99383 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99385         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
99386         arpa/inet.h.
99388 2006-07-28  Simon Josefsson  <jas@extundo.com>
99390         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
99391         * modules/inet_pton (Depends-on): Likewise.
99393 2006-07-28  Simon Josefsson  <jas@extundo.com>
99395         * m4/netinet_in_h.m4: New file.
99397 2006-07-28  Simon Josefsson  <jas@extundo.com>
99399         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
99400         #include's.
99402 2006-07-28  Simon Josefsson  <jas@extundo.com>
99404         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
99405         #include's.
99407 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
99409         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
99410         setgid on directories only if they set these bits.
99411         * lib/modechange.h: Remove obsolete comment about masks.
99413 2006-07-28  Eric Blake  <ebb9@byu.net>
99415         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
99416         macro expansion.
99418 2006-07-28  Bruno Haible  <bruno@clisp.org>
99420         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
99422 2006-07-28  Bruno Haible  <bruno@clisp.org>
99424         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
99426 2006-07-28  Bruno Haible  <bruno@clisp.org>
99428         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
99429         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
99430         Define fallbacks.
99431         Avoids link error on FreeBSD 4.x.
99432         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
99434         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
99435         encoding.
99436         * lib/mbswidth.c (iswcntrl): Likewise.
99438 2006-07-27  Bruno Haible  <bruno@clisp.org>
99440         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
99441         test.
99443 2006-07-27  Bruno Haible  <bruno@clisp.org>
99445         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
99446         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
99447         defined.
99449 2006-07-26  Eric Blake  <ebb9@byu.net>
99451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
99453 2006-07-26  Eric Blake  <ebb9@byu.net>
99455         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
99456         like mingw that lack mkstemp.
99457         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
99458         avoid compilation warning on mingw.
99460 2006-07-26  Bruno Haible  <bruno@clisp.org>
99462         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
99463         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
99464         INT_FAST*_MIN, INTPTR_MIN.
99466 2006-07-25  Bruno Haible  <bruno@clisp.org>
99468         * modules/version-etc (Depends-on): Add stdarg.
99470 2006-07-25  Bruno Haible  <bruno@clisp.org>
99472         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
99473         complex commands.
99475 2006-07-25  Bruno Haible  <bruno@clisp.org>
99477         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
99478         defined in <stdarg.h> or config.h.
99480 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99482         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
99483         (gl_STDIO_SAFER): Remove.
99485 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
99487         * MODULES.html.sh (File stream based Input/Output):
99488         Add fopen-safer, tmpfile-safer; remove stdio-safer.
99489         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
99490         * modules/fopen-safer, modules/tmpfile-safer: New files.
99491         * modules/stdio-safer: Remove.
99493 2006-07-24  Bruno Haible  <bruno@clisp.org>
99495         * modules/tmpdir: New file.
99496         * MODULES.html.sh (File system functions): Add it.
99498 2006-07-24  Bruno Haible  <bruno@clisp.org>
99500         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
99501         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
99503 2006-07-24  Bruno Haible  <bruno@clisp.org>
99505         * modules/clean-temp: New file.
99507 2006-07-24  Bruno Haible  <bruno@clisp.org>
99509         * m4/tmpdir.m4: New file, from GNU gettext.
99511 2006-07-24  Bruno Haible  <bruno@clisp.org>
99513         * lib/tmpdir.h: New file, from GNU gettext.
99514         * lib/tmpdir.c: New file, from GNU gettext.
99516 2006-07-24  Bruno Haible  <bruno@clisp.org>
99518         * lib/clean-temp.h: New file, from GNU gettext.
99519         * lib/clean-temp.c: New file, from GNU gettext.
99521 2006-07-23  Eric Blake  <ebb9@byu.net>
99523         * modules/stdio-safer (Files): Add tmpfile-safer.c.
99524         (Depends-on): Add binary-io.
99526 2006-07-23  Eric Blake  <ebb9@byu.net>
99528         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
99530 2006-07-23  Eric Blake  <ebb9@byu.net>
99532         * lib/tmpfile-safer.c: New file.
99533         * lib/stdio-safer.h (fopen_safer): Add prototype.
99534         * lib/stdio--.h (tmpfile): Make safer.
99536 2006-07-23  Bruno Haible  <bruno@clisp.org>
99538         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
99539         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
99540         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
99541         gl_linked_remove_at): Use it.
99543 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
99544         and Simon Josefsson <jas@extundo.com>
99546         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
99548         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
99550 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99552         * modules/close-stream: New file.
99553         * modules/closeout (Description): Make it clear that it exits
99554         with a diagnostic on error.
99555         (Depends-on): Add close-stream.  Remove fpending, stdbool.
99556         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
99558 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99560         * m4/close-stream.m4: New file.
99562 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
99564         * lib/close-stream.c, lib/close-stream.h: New files.
99566 2006-07-22  Bruno Haible  <bruno@clisp.org>
99568         Merge from GNU gettext 0.15.
99570         2006-05-01  Bruno Haible  <bruno@clisp.org>
99572                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
99574         2006-07-22  Bruno Haible  <bruno@clisp.org>
99576                 * modules/javaversion: New file.
99577                 * MODULES.html.sh (Java): Add javaversion.
99579         2006-03-12  Bruno Haible  <bruno@clisp.org>
99581                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
99583         2005-12-04  Bruno Haible  <bruno@clisp.org>
99585                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
99586                 (untested).
99588         2006-06-21  Bruno Haible  <bruno@clisp.org>
99590                 Avoid warnings from recent versions of mcs.
99591                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
99592                 -o, -L, -r any more. Use options documented since mcs-1.0
99593                 instead. Similarly for -g.
99595         2005-12-04  Bruno Haible  <bruno@clisp.org>
99597                 * build-aux/csharpcomp.sh.in: Suffix for resources is
99598                 .resources, not .resource.
99600         2005-07-09  Bruno Haible  <bruno@clisp.org>
99602                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
99603                 add a .dll suffix.
99604                 Reported by Mark Junker <mjscod@gmx.de>.
99606         2006-07-22  Bruno Haible  <bruno@clisp.org>
99608                 * modules/gettext: Upgrade to gettext-0.15.
99609                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
99610                 m4/visibility.m4.
99611                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
99613 2006-07-22  Bruno Haible  <bruno@clisp.org>
99615         Merge from GNU gettext 0.15.
99617         2006-03-25  Bruno Haible  <bruno@clisp.org>
99619                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
99621         2006-07-21  Bruno Haible  <bruno@clisp.org>
99623                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
99624                 "1.1".
99626         2006-05-09  Bruno Haible  <bruno@clisp.org>
99628                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
99629                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
99630                 for the conftestver execution.
99632         2006-05-01  Bruno Haible  <bruno@clisp.org>
99634                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
99635                 optional target-version argument. Verify that the compiler
99636                 groks source of the specified source-version, or add -source
99637                 option as necessary. Verify that the compiler produces
99638                 bytecode in the specified target-version, or add -target and
99639                 -source options as necessary. Make the result of the test
99640                 available as variable CONF_JAVAC. Also log error output in
99641                 config.log.
99643         2006-03-11  Bruno Haible  <bruno@clisp.org>
99645                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
99647         2006-05-09  Bruno Haible  <bruno@clisp.org>
99649                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
99650                 CLASSPATH_SEPARATOR to a semicolon.
99652         2006-03-12  Bruno Haible  <bruno@clisp.org>
99654                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
99655                 available as variable CONF_JAVA, for subsequent autoconf
99656                 tests. Also log error output in config.log.
99658         2006-07-19  Bruno Haible  <bruno@clisp.org>
99660                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
99661                 that getline works on glibc2 systems. Needed to avoid trouble
99662                 in relocatable.c.
99663                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
99665         2005-12-04  Bruno Haible  <bruno@clisp.org>
99667                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
99668                 launcher (untested).
99670         2005-12-04  Bruno Haible  <bruno@clisp.org>
99672                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
99674         2006-07-22  Bruno Haible  <bruno@clisp.org>
99676                 * gettext.m4: Update from GNU gettext-0.15.
99677                 * nls.m4: Likewise.
99678                 * po.m4: Likewise.
99679                 * inttypes-pri.m4: Likewise.
99680                 * inttypes-h.m4: Renamed from inttypes.m4.
99681                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
99683 2006-07-22  Bruno Haible  <bruno@clisp.org>
99685         Merge from GNU gettext 0.15.
99687         2005-07-05  Bruno Haible  <bruno@clisp.org>
99689                 * printf-args.c (printf_fetchargs): Work around broken
99690                 definition of wint_t on mingw.
99692         2005-02-12  Bruno Haible  <bruno@clisp.org>
99694                 * xallocsa.h: Add extern "C" for C++.
99696         2006-05-17  Bruno Haible  <bruno@clisp.org>
99698                 Cygwin portability.
99699                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
99701         2006-04-30  Bruno Haible  <bruno@clisp.org>
99703                 * progreloc.c: Include <mach-o/dyld.h> if available.
99704                 (find_executable): Use _NSGetExecutablePath when possible.
99706         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
99708                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
99709                 function.
99711         2005-12-29  Bruno Haible  <bruno@clisp.org>
99713                 * progreloc.c (set_program_name_and_installdir): Fix
99714                 compilation error.
99716         2005-12-04  Bruno Haible  <bruno@clisp.org>
99718                 Cygwin portability.
99719                 * progreloc.c: Include <windows.h> also on Cygwin.
99720                 (find_executable): Add support for Cygwin.
99721                 (set_program_name_and_installdir): Handle also platforms with
99722                 nonempty EXEEXT.
99724         2006-07-11  Bruno Haible  <bruno@clisp.org>
99726                 * javacomp.c: Fix a comment.
99727                 Reported by Jim Meyering.
99729         2006-04-30  Bruno Haible  <bruno@clisp.org>
99731                 * javacomp.h (compile_java_class): Add source_version,
99732                 target_version arguments.
99733                 * javacomp.c: Rewritten to choose only a compiler that
99734                 respects the specified source_version and target_version.
99736         2006-06-27  Bruno Haible  <bruno@clisp.org>
99738                 Assume correct S_ISDIR macro.
99739                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
99741         2006-07-22  Bruno Haible  <bruno@clisp.org>
99743                 * javaversion.h: New file, from GNU gettext.
99744                 * javaversion.c: New file, from GNU gettext.
99745                 * javaversion.java: New file, from GNU gettext.
99746                 * javaversion.class: New file, from GNU gettext.
99748         2006-05-17  Bruno Haible  <bruno@clisp.org>
99750                 Cygwin portability.
99751                 * javaexec.c (execute_java_class): Test for jview program
99752                 also on Cygwin.
99754         2006-04-09  Bruno Haible  <bruno@clisp.org>
99756                 * fatal-signal.c: Don't include string.h.
99757                 (at_fatal_signal): Use a copying loop instead of memcpy.
99759         2005-12-04  Bruno Haible  <bruno@clisp.org>
99761                 * csharpexec.c: Add support for 'clix' launcher (untested).
99762                 (execute_csharp_using_sscli): New function.
99763                 (execute_csharp_program): Call it.
99765         2006-06-21  Bruno Haible  <bruno@clisp.org>
99767                 Avoid warnings from recent versions of mcs.
99768                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
99769                 -o, -L, -r any more. Use options documented since mcs-1.0
99770                 instead. Similarly for -g.
99772         2005-07-09  Bruno Haible  <bruno@clisp.org>
99774                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
99775                 add a .dll suffix.
99776                 Reported by Mark Junker <mjscod@gmx.de>.
99778         2006-06-17  Bruno Haible  <bruno@clisp.org>
99780                 * config.charset: Update for NetBSD 3.0.
99782         2006-05-17  Bruno Haible  <bruno@clisp.org>
99784                 Cygwin portability.
99785                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
99787         2006-05-16  Bruno Haible  <bruno@clisp.org>
99789                 * localcharset.c [CYGWIN]: Include <windows.h>.
99790                 (get_charset_aliases): For Cygwin, return the same CPxxx
99791                 aliases list as under WIN32.
99792                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
99793                 the environment variables. Fall back to GetACP().
99795         2006-04-05  Bruno Haible  <bruno@clisp.org>
99797                 * config.charset: Update Juan Manuel Guerrero's address.
99799         2005-02-12  Bruno Haible  <bruno@clisp.org>
99801                 * allocsa.h: Add extern "C" for C++.
99803         2005-02-10  Bruno Haible  <bruno@clisp.org>
99805                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
99806                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
99808         2006-07-22  Bruno Haible  <bruno@clisp.org>
99810                 * gettext.h: Update to GNU gettext-0.15.
99812 2006-07-22  Bruno Haible  <bruno@clisp.org>
99814         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
99815         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
99816         lib-prefix.m4, longdouble.m4, ssize_t.m4.
99818 2006-07-21  Eric Blake  <ebb9@byu.net>
99820         * modules/stdlib-safer: New file.
99821         * MODULES.html.sh (File stream based Input/Output): Add
99822         stdlib-safer.
99824 2006-07-21  Eric Blake  <ebb9@byu.net>
99826         * lib/stdlib-safer.h: New file from coreutils, required by
99827         stdlib--.h.
99829 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
99831         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
99833 2006-07-20  Bruno Haible  <bruno@clisp.org>
99835         * gnulib-tool: Recognize new option --assume-autoconf.
99836         (autoconf_minversion): New variable.
99837         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
99839 2006-07-20  Bruno Haible  <bruno@clisp.org>
99841         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
99843 2006-07-19  Derek R. Price  <derek@ximbiot.com>
99845         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
99846         Reindent and repaginate.
99848 2006-07-19  Derek Price  <derek@ximbiot.com>
99850         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
99851         Correct grammar.
99853 2006-07-17  Bruno Haible  <bruno@clisp.org>
99855         * modules/list: New file.
99856         * modules/array-list: New file.
99857         * modules/carray-list, modules/carray-list-tests: New files.
99858         * modules/linked-list, modules/linked-list-tests: New files.
99859         * modules/avltree-list, modules/avltree-list-tests: New files.
99860         * modules/rbtree-list, modules/rbtree-list-tests: New files.
99861         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
99862         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
99863         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
99864         * modules/oset: New file.
99865         * modules/array-oset: New file.
99866         * modules/avltree-oset, modules/avltree-oset-tests: New files.
99867         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
99868         * tests/test-carray_list.c: New file.
99869         * tests/test-linked_list.c: New file.
99870         * tests/test-avltree_list.c: New file.
99871         * tests/test-rbtree_list.c: New file.
99872         * tests/test-linkedhash_list.c: New file.
99873         * tests/test-avltreehash_list.c: New file.
99874         * tests/test-rbtreehash_list.c: New file.
99875         * tests/test-avltree_oset.c: New file.
99876         * tests/test-rbtree_oset.c: New file.
99877         * MODULES.html.sh (Container data structures): New section.
99879 2006-07-17  Bruno Haible  <bruno@clisp.org>
99881         * m4/gl_list.m4: New file.
99883 2006-07-17  Bruno Haible  <bruno@clisp.org>
99885         * lib/gl_list.h: New file.
99886         * lib/gl_list.c: New file.
99887         * lib/gl_array_list.h: New file.
99888         * lib/gl_array_list.c: New file.
99889         * lib/gl_carray_list.h: New file.
99890         * lib/gl_carray_list.c: New file.
99891         * lib/gl_linked_list.h: New file.
99892         * lib/gl_linked_list.c: New file.
99893         * lib/gl_anylinked_list1.h: New file.
99894         * lib/gl_anylinked_list2.h: New file.
99895         * lib/gl_avltree_list.h: New file.
99896         * lib/gl_avltree_list.c: New file.
99897         * lib/gl_anyavltree_list1.h: New file.
99898         * lib/gl_anyavltree_list2.h: New file.
99899         * lib/gl_rbtree_list.h: New file.
99900         * lib/gl_rbtree_list.c: New file.
99901         * lib/gl_anyrbtree_list1.h: New file.
99902         * lib/gl_anyrbtree_list2.h: New file.
99903         * lib/gl_anytree_list1.h: New file.
99904         * lib/gl_anytree_list2.h: New file.
99905         * lib/gl_linkedhash_list.h: New file.
99906         * lib/gl_linkedhash_list.c: New file.
99907         * lib/gl_anyhash_list1.h: New file.
99908         * lib/gl_anyhash_list2.h: New file.
99909         * lib/gl_avltreehash_list.h: New file.
99910         * lib/gl_avltreehash_list.c: New file.
99911         * lib/gl_rbtreehash_list.h: New file.
99912         * lib/gl_rbtreehash_list.c: New file.
99913         * lib/gl_anytreehash_list1.h: New file.
99914         * lib/gl_anytreehash_list2.h: New file.
99916         * lib/gl_oset.h: New file.
99917         * lib/gl_oset.c: New file.
99918         * lib/gl_array_oset.h: New file.
99919         * lib/gl_array_oset.c: New file.
99920         * lib/gl_avltree_oset.h: New file.
99921         * lib/gl_avltree_oset.c: New file.
99922         * lib/gl_rbtree_oset.h: New file.
99923         * lib/gl_rbtree_oset.c: New file.
99924         * lib/gl_anytree_oset.h: New file.
99926 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99928         * m4/mkancesdirs.m4: New file.
99929         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
99930         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
99931         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
99932         it.
99934 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99936         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
99937         * lib/mkancesdirs.h: New files.
99938         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
99939         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
99940         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
99941         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
99942         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
99943         callers changed.  Revamp internals significantly, by not
99944         attempting to create directories that are temporarily more
99945         permissive than the final results.  Do not attempt to use
99946         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
99947         This removes some race conditions, fixes some bugs, and simplifies
99948         things.  Use new dirchownmod function to do owner and mode changes.
99949         * lib/mkdir-p.h: Likewise.
99950         * lib/modechange.c (octal_to_mode): New function.
99951         (struct mode_change): New member mentioned.
99952         (make_node_op_equals): New arg mentioned.  All callers changed.
99953         (mode_compile): Keep track of which mode bits the user has explicitly
99954         mentioned.
99955         (mode_adjust): New arg DIR, so that we implement the X op correctly.
99956         New arg PMODE_BITS, to keep track of which mode bits the user
99957         mentioned; it treats S_ISUID and S_ISGID speciall.
99958         All callers changed.
99959         * lib/modechange.h: Likewise.
99961 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
99963         * MODULES.html.sh: Add mkancestors.
99964         * modules/mkancesdirs: New module.
99965         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
99966         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
99967         The chdir-safer and afs files are now orphans; I'll remove them
99968         unless someone speaks up.
99969         Add lib/dirchownmod.c, lib/dirchownmod.h.
99970         (Depends-on): Remove alloca, chown, save-cwd, dirname.
99971         Add lchown, mkancesdirs.
99972         (Maintainer): Add self.
99974 2006-07-15  Karl Berry  <karl@gnu.org>
99976         * gnulib-tool: help message wording/arrangement.
99978 2006-07-14  Simon Josefsson  <jas@extundo.com>
99980         * doc/gnulib.texi (Libtool and Windows): New section.
99982 2006-07-12  Simon Josefsson  <jas@extundo.com>
99984         * modules/gendocs (License): Fix license, approved by Karl.
99986 2006-07-12  Eric Blake  <ebb9@byu.net>
99988         * MODULES.html.sh: Add gendocs.
99990 2006-07-11  Eric Blake  <ebb9@byu.net>
99992         * modules/fdl: New module, to install doc/fdl.texi.
99993         * MODULES.html.sh: Add new section for documentation modules.
99994         * gnulib-tool: Avoid space-tab.
99995         (--doc-base): New option, to manage files from doc.
99997 2006-07-11  Eric Blake  <ebb9@byu.net>
99999         * m4/absolute-header.m4: Fix comments to match recent change.
100001 2006-07-11  Eric Blake  <ebb9@byu.net>
100003         * gnulib-tool: List --doc-base before --tests-base.
100005 2006-07-11  Derek R. Price  <derek@ximbiot.com>
100007         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
100009 2006-07-11  Bruno Haible  <bruno@clisp.org>
100011         * README: Mention where to put documentation.
100013 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100015         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
100017 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
100019         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
100020         to stdint.m4.
100022 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
100024         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
100025         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
100026         "no/such/file/stdint.h" when there is no such file, so that
100027         the resulting C code can be parsed by dodgy compilers.
100028         Problems reported by Bob Proulx.
100030 2006-07-10  Derek R. Price  <derek@ximbiot.com>
100032         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
100033         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
100034         macros into the GNU _D_EXACT_NAMLEN.
100035         * lib/savedir.c:  Likewise.
100036         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
100038 2006-07-10  Derek R. Price  <derek@ximbiot.com>
100039         and Paul Eggert  <eggert@cs.ucla.edu>
100041         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
100042         * m4/savedir.m4:
100043         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
100044         macros into the GNU _D_EXACT_NAMLEN.
100046 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100048         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
100049         around the absolute name, to work around a problem with the HP-UX
100050         11.23 native C compiler, reported by Bob Proulx.
100052 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100054         * doc/maintain.texi, make-stds.texi: Sync from
100055         <http://savannah.gnu.org/projects/gnustandards>.
100057 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
100059         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
100061 2006-07-09  Jim Meyering  <jim@meyering.net>
100063         * m4/glob.m4: Remove a doubled word in a comment.
100065 2006-07-09  Jim Meyering  <jim@meyering.net>
100067         * lib/argp-pv.c: Remove a doubled word in a comment.
100068         * lib/check-version.c (check_version): Likewise.
100069         * lib/javacomp.c (compile_java_class): Likewise.
100071 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
100073         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
100074         for the benefit of people using Autoconf 2.60.  If you want to
100075         support older Autoconf versions you can copy m4/onceonly_2_57.m4
100076         (or m4/onceonly.m4, if pre-2.57) manually.
100078 2006-07-08  Jim Meyering  <jim@meyering.net>
100080         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
100081         comment.
100082         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
100083         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
100084         comment.
100086 2006-07-08  Jim Meyering  <jim@meyering.net>
100088         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
100090 2006-07-07  Simon Josefsson  <jas@extundo.com>
100092         * tests/test-crc.c: Change expected crc value, the test vector
100093         were probably computed using the old broken crc.c?
100095 2006-07-06  Simon Josefsson  <jas@extundo.com>
100097         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
100098         now the canonical place for the M4 file).
100100         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
100101         from the sys_socket dependency now.
100103         * modules/inet_pton (Files): Ditto.
100105         * modules/inet_ntop (Files): Ditto.
100107 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
100109         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
100110         not gl_PREREQ_GETUSERSHELL.
100112 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100114         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
100115         with only one argument, for Autoconf 2.60.
100116         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
100117         expand to nothing, so add a shell command to avoid syntax error.
100118         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
100120 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100122         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
100124 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100126         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
100127         no longer needed.  Check for isblank decl.
100128         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
100129         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
100130         of existence.
100132 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100134         * lib/getloadavg.c: Use __VMS, not VMS.
100135         * lib/getopt.c: Likewise.
100136         * lib/getpagesize.h: Likewise.
100137         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
100138         and probably does not work.
100140 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
100142         * lib/.cppi-disable: Add wcwidth.
100143         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
100144         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
100145         (ISGRAPH): Remove.  All uses changed to isgraph.
100146         (FOLD) [!defined _LIBC]: Remove special case.
100147         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
100148         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
100149         HAVE_ISBLANK.
100150         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
100151         case.
100153 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100155         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
100156         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
100157         brackets.  Other minor changes to suppress some compiler
100158         warnings.
100160 2006-07-06  Derek R. Price  <derek@ximbiot.com>
100161         and Paul Eggert  <eggert@cs.ucla.edu>
100163         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
100164         of invoking obsolescent AC_HEADER_DIRENT macro.
100165         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
100166         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
100167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
100168         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
100169         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
100170         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
100171         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
100172         * m4/readdir.m4: Remove; no longer needed.
100174 2006-07-06  Derek R. Price  <derek@ximbiot.com>
100175         and Paul Eggert  <eggert@cs.ucla.edu>
100177         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
100178         Don't worry about this obsolete case any more.
100179         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
100180         directories.
100181         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
100182         worry about this obsolete case any more.
100183         * lib/fts.c: Likewise.
100184         * lib/getcwd.c: Likewise.
100185         * lib/glob.h: Likewise.
100186         * lib/savedir.c: Likewise.
100188 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100190         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
100191         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
100192         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
100193         needed.
100194         All uses removed.
100195         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100196         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
100197         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
100198         needed.
100199         * m4/getdate.m4 (gl_GETDATE): Likewise.
100200         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
100201         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
100202         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
100203         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100204         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
100205         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
100206         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
100207         needed.
100209 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
100211         * lib/memcasecmp.c: Include <limits.h>.
100212         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
100213         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
100214         Don't assume isdigit succeeds only on '0' through '9'.
100216 2006-07-05  Eric Blake  <ebb9@byu.net>
100218         * modules/getaddrinfo (Depends-on): Add snprintf.
100220 2006-07-05  Eric Blake  <ebb9@byu.net>
100222         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
100223         to avoid 'header present but could not be compiled' on cygwin.
100225 2006-07-05  Eric Blake  <ebb9@byu.net>
100227         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
100228         missing from netdb.h.
100229         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
100231 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100233         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
100234         no longer needed.
100235         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
100236         * m4/getdate.m4 (gl_GETDATE): Likewise.
100237         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
100238         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
100239         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
100240         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
100241         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
100243 2006-07-05  Derek R. Price  <derek@ximbiot.com>
100245         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
100246         All uses of is_space replaced by isspace.
100247         * lib/exit.h: Don't talk about STDC_HEADERS.
100248         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
100249         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
100250         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
100251         replaced by isprint etc.
100252         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
100253         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100254         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
100255         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
100256         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
100257         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
100259 2006-07-05  Bruno Haible  <bruno@clisp.org>
100261         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
100262         the function exists, before testing against AIX.
100263         Reported by Martin Lambers <marlam@marlam.de>.
100265 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100267         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
100268         From Mark D. Baushke.
100270 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
100272         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
100273         to the absolute name, not just one, to bypass Sun C 5.8's
100274         "warning: #include of /usr/include/... may be non-portable".
100276 2006-07-04  Eric Blake  <ebb9@byu.net>
100278         * modules/dirname-tests: New test module.
100279         * tests/test-dirname.c: New file, replacing dirname.c
100280         TEST_DIRNAME section that was recently deleted.
100282 2006-07-04  Bruno Haible  <bruno@clisp.org>
100284         Assume ANSI C header files and <ctype.h> functions.
100285         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
100286         (mbsnwidth): Use isprint, iscntrl instead.
100288 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100290         Merge from coreutils.
100291         * MODULES.html.sh: Add xstrtold.
100292         * modules/xstrtold: New file.
100293         * modules/cycle-check (Files): Add lib/same-inode.h.
100294         * modules/dirname (Files): Add m4/double-slash-root.m4.
100295         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
100296         * modules/mkdir-p (Files): Add lib/same-inode.h.
100297         * modules/same (Files): Add lib/same-inode.h.
100299 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100301         * m4/absolute-header.m4: Renamed from full-header-path.m4.
100302         This is to keep the terminology clean; POSIX talks about
100303         "absolute pathnames", not "full pathnames", but the GNU
100304         Coding Standards say to use "path" for something else;
100305         so use "absolute" to keep both sides happy.
100306         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
100307         Set gl_absolute_header, not gl_full_header_path.
100308         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
100309         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
100310         All uses changed.
100312         Merge from coreutils.
100314         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100316         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
100317         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
100318         want to require the building of c-strtod.o.
100319         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
100320         needs -lm directly.
100321         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
100323         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100325         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
100326         --as-needed option if available.  Problem reported by Albert Chin in
100327         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
100328         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
100329         cc merely issues a bunch of annoying warnings for --as-needed
100330         (this problem was reported by Bob Proulx).  Also, try linking with
100331         -lm to detect a bug in binutils 2.16 (this problem was reported
100332         by Ralf Wildenhues).
100334         2006-06-18  Jim Meyering  <jim@meyering.net>
100336         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
100337         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
100338         macro.
100339         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
100340         also check for glibc-2.4's abort-inducing bug.
100342         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
100343         Low-probability clean-up should be to use rmdir to get rid of
100344         the just-created directory, not unlink.
100346         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
100347         configure fail, and request a bug report to inform us about it.
100348         Add a comment that, barring reports to the contrary, in 2007 we'll
100349         assume ftruncate is universally available.
100351         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100353         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
100355         2006-03-12  Jim Meyering  <jim@meyering.net>
100357         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
100358         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
100359         * m4/same.m4 (gl_SAME): Likewise.
100360         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
100362         2006-03-11  Eric Blake  <ebb9@byu.net>
100364         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
100365         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
100366         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
100367         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
100369 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
100371         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
100372         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
100373         reported by Mark D. Baushke, one in
100374         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
100376         Merge from coreutils.
100378         * lib/.cppi-disable: Add stdint_.h.
100379         * lib/.cvsignore: Add stdint.h.
100381         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
100383         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
100384         both double and long double versions.
100385         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
100386         * lib/xstrtold.c: New file.
100387         * lib/xstrtod.h (xstrtold): New decl.
100389         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
100391         * lib/filemode.c (setst): Remove.
100392         (strmode): Rewrite to avoid setst.  This makes the code shorter,
100393         (arguably) clearer, and the generated code is a bit smaller on my
100394         Debian GNU/Linux stable x86 host.
100396         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
100398         * lib/filemode.c: Include "filemode.h" first, to test the interface.
100399         Assume that filemode.h includes sys/types.h and sys/stat.h.
100400         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
100401         (ftypelet): Reorder to put common cases first, for efficiency.
100402         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
100403         to do 'M'.
100404         (strmode): Renamed from mode_string, and now stores 12 bytes instead
100405         of 10, for compatibility with FreeBSD.  All callers changed.
100406         (filemodestring): Now stores 12 bytes instead of 10, and sets file
100407         types that can't be deduced solely from st_mode.  First arg is now a
100408         const pointer.
100409         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
100410         (strmode): Renamed from mode_string.
100411         (filemodestring): New decl.
100412         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
100413         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
100414         needed.
100415         (S_ISPORT, S_ISWHT): New macros, if not already defined.
100417         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
100419         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
100420         fsusage.h now does that.  Include fsusage.h first, to test interface.
100421         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
100422         at most one method (the old code could have generated decls that
100423         didn't conform to C89, not that this was ever exercised).
100424         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
100426         2006-03-19  Jim Meyering  <jim@meyering.net>
100428         Work even in a chroot where d_ino values for entries in "/"
100429         don't match the stat.st_ino values for the same names.
100430         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
100431         number, iterate through all entries again, using lstat instead.
100432         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
100433         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
100435         * lib/getcwd.c (__getcwd): Clarify a comment.
100436         Use memcpy in place of a call to strcpy.
100438         2006-03-12  Jim Meyering  <jim@meyering.net>
100440         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
100441         matches that of the current directory (which we're about to chdir ".."
100442         out of), then save the dev-ino of the parent, instead.
100444         * lib/same-inode.h (SAME_INODE): New file/macro.
100445         * lib/chdir-safer.c (SAME_INODE): Remove definition.
100446         Include "same-inode.h", instead.
100447         * lib/same.c: Likewise.
100448         * lib/cycle-check.h: Include "same-inode.h".
100449         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
100450         * lib/cycle-check.c (SAME_INODE): Remove definition.
100451         * lib/root-dev-ino.h: Include "same-inode.h".
100453         2006-03-11  Eric Blake  <ebb9@byu.net>
100455         * lib/same.c (same_name): s/base_name/last_component/
100456         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
100457         * lib/filenamecat.c (file_name_concat): Likewise.
100459         2006-03-11  Eric Blake  <ebb9@byu.net>,
100460                     Paul Eggert  <eggert@cs.ucla.edu>
100462         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
100463         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
100464         drive prefix.
100465         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
100466         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
100467         (last_component): New method.
100468         * lib/dirname.c (dir_len): Determine when drive letters need a
100469         subsequent slash.  Preserve // when it is special.
100470         (dir_name): Don't append dot when drive letter is absolute.
100471         [TEST_DIRNAME]: Move into a full-blown gnulib test.
100472         * lib/basename.c (base_name): New semantics - malloc the result.
100473         Preserve // when it is special.  Preserve relative files that look
100474         like drive letters.
100475         (base_len): Preserve // when it is special.
100476         (last_component): New method, similar to old base_name semantics.
100477         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
100478         base_name.  Strip redundant slashes from ///.
100480 2006-07-03  Jim Meyering  <jim@meyering.net>
100482         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
100483         macro is used before the first cycle_check call.
100485 2006-07-03  Eric Blake  <ebb9@byu.net>
100487         * modules/dirname (Depends-on): Add xstrndup.
100489 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100491         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
100492         test cases, so that config.log is a bit easier to follow.
100494 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
100496         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
100497         both are 64 bits, since this seems to be the tradition, and this
100498         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
100499         we ever run into a host that prefers long long to long in this
100500         case, we'll need another configure-time test.  Problem reported by
100501         Jim Meyering.
100503 2006-07-02  Eric Blake  <ebb9@byu.net>
100505         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
100507 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100509         * modules/inttypes (Depends-on): No longer depends on stdint.
100510         * modules/stdint (Description): Say more about assumptions.
100511         Say that the fast types might differ.  Say macros are used.
100512         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
100513         (Makefile.am): Revise list of substituted symbols to match
100514         new stdint.m4.
100515         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
100516         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
100517         * tests/test-stdint.c (verify_same_types)
100518         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
100519         the code conforms to C99/C89.
100520         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
100521         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
100523 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100525         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
100526         but fix a bug, by requiring at least 64 bits.
100527         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100528         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
100529         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
100530         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
100532         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
100533         changes.  Make 2.59 a prerequisite.  Check and substitute for
100534         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
100535         inttypes.h.  Do not use special include files; just use the
100536         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
100537         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
100538         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
100539         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
100540         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
100541         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
100542         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
100543         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
100544         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
100545         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
100546         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
100547         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
100548         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
100549         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
100550         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
100551         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
100552         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
100553         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
100554         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
100555         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
100556         WINT_MAX.  Check for C99 conformance more strictly, by detecting
100557         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
100558         not check for things that C99 does not require, e.g., int8_t.  If
100559         a test isn't needed unless <stdint.h> isn't working, and is
100560         unlikely to be needed for any other reason, then don't do it
100561         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
100562         size_t, since we assume C89 freestanding at least.  Do not check
100563         for sig_atomic_t, wchar_t, or wint_t, since the code now does
100564         the right thing even if the types are not defined.  Instead use:
100565         (gl_STDINT_TYPE_PROPERTIES): New macro.
100566         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
100567         testing whether <sys/types.h> clashes, as Autoconf does this for
100568         us now.  All uses removed.
100569         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
100570         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
100571         (gl_CHECK_TYPE_SAME):
100572         Remove; no longer needed.
100573         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
100574         exists, since we'll return 0 anyway in that case.
100575         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
100577 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
100579         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
100580         possible collision with system files.
100581         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
100582         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
100583         WCHAR_MIN and WCHAR_MAX in this case.
100584         (<stddef.h>): Do not include; no longer needed.
100585         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
100586         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
100587         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
100588         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
100589         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
100590         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
100591         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
100592         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
100593         !defined(__c99))]: Include in this case too, since it's harmless
100594         now.
100595         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
100596         dangerous to do so.
100597         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
100598         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
100599         (_STDINT_MIN, _STDINT_MAX): New macros.
100600         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
100601         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
100602         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
100603         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
100604         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
100605         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
100606         macros, not typedefs; this simplifies things quite a bit.
100607         Use long int for all types narrower than int64_t.
100608         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
100609         Define in terms of long long int or int64_t or long int,
100610         not int64_t or int32_t.  This saves some compile-time testing.
100611         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
100612         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
100613         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
100614         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
100615         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
100616         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
100617         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
100618         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
100619         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
100620         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
100621         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100622         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100623         undef any previous version and define our own version, for
100624         simplicity and consistency with the new macros for types.
100625         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
100626         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
100627         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
100628         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
100629         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
100630         @WINT_T_SUFFIX@ to keep things simple here.
100631         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
100632         Simplify by assuming typical 8/16/32/64 host, since we're
100633         already doing that elsewhere anyway.
100634         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
100635         and assume long long int is 64 bits if available.  This
100636         speeds up 'configure'.
100638 2006-07-01  Eric Blake  <ebb9@byu.net>
100640         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
100641         Reported by Andreas Buening.
100643 2006-07-01  Eric Blake  <ebb9@byu.net>
100645         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
100647 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
100649         * lib/getaddrinfo.c: fixed typo
100651 2006-06-29  Jim Meyering  <jim@meyering.net>
100653         * modules/strftime (Maintainer): Add my name, since with the
100654         FPRINTFTIME changes strftime.c has forked from glibc.
100656 2006-06-29  Eric Blake  <ebb9@byu.net>
100658         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
100660 2006-06-29  Eric Blake  <ebb9@byu.net>
100662         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
100664 2006-06-29  Eric Blake  <ebb9@byu.net>
100666         * lib/stat_.h: New file.
100668 2006-06-29  Eric Blake  <ebb9@byu.net>
100670         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
100671         unused static function.
100673 2006-06-29  Eric Blake  <ebb9@byu.net>
100675         * doc/functions.texi (Function Portability): Document missing lstat
100676         on mingw.
100678 2006-06-29  Eric Blake  <ebb9@byu.net>
100680         * MODULES.html.sh: Add sys_stat.
100681         * modules/sys_stat: New module.
100682         * modules/mkstemp (Depends-on): Add sys_stat.
100684 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100686         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
100688 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100690         * m4/c-bs-a.m4: Removed.
100692 2006-06-29  Derek R. Price  <derek@ximbiot.com>
100694         * lib/strftime.c: Assume strftime() exists.
100696 2006-06-29  Derek Price  <derek@ximbiot.com>
100698         * modules/c-bs-a: Removed - \a is C89.
100699         * MODULES.html.sh: Remove c-bs-a.
100701 2006-06-29  Bruno Haible  <bruno@clisp.org>
100703         * modules/wcwidth (License): Change to LGPL.
100705 2006-06-28  Simon Josefsson  <jas@extundo.com>
100707         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
100708         on _WIN32.
100710         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
100711         getnameinfo.
100713 2006-06-28  Simon Josefsson  <jas@extundo.com>
100715         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
100717 2006-06-28  Simon Josefsson  <jas@extundo.com>
100719         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
100720         functions there.  It will succeed on Windows XP, but on Windows
100721         2000 and (presumably) earlier, it will fail, and use the internal
100722         re-implementation.
100723         (use_win32_p): New function.
100724         (getaddrinfo): Use strtoul on servname, to support numeric ports.
100725         Support AI_NUMERICSERV to disable getservbyname.
100726         (getnameinfo): New function, only supports
100727         NI_NUMERICHOST|NI_NUMERICSERV for now.
100729         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
100730         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
100731         getnameinfo.
100733 2006-06-28  Eric Blake  <ebb9@byu.net>
100735         * modules/wcwidth: New file.
100736         * modules/mbchar (Depends-on): Add wcwidth.
100737         * modules/mbswidth (Depends-on): Add wcwidth.
100738         * MODULES.html.sh: Add wcwidth.
100740 2006-06-28  Eric Blake  <ebb9@byu.net>
100742         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
100743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
100745 2006-06-28  Eric Blake  <ebb9@byu.net>
100747         * lib/xvasprintf.h: Fix comments.
100749 2006-06-28  Eric Blake  <ebb9@byu.net>
100751         * lib/mbchar.h (wcwidth): Include wcwidth.h.
100752         * lib/mbswidth.c (wcwidth): Move from here...
100753         * lib/wcwidth.h: ...to this new file.
100755 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100757         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
100759         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
100760         it's obsolete.
100761         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
100763 2006-06-28  Derek R. Price  <derek@ximbiot.com>
100765         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
100766         Autoconf 2.60 says this stuff was obsolete.
100768 2006-06-28  Bruno Haible  <bruno@clisp.org>
100770         * modules/wcwidth (Files): Add m4/wchar_t.m4.
100772 2006-06-28  Bruno Haible  <bruno@clisp.org>
100774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
100775         gt_TYPE_WCHAR_T.
100777 2006-06-28  Bruno Haible  <bruno@clisp.org>
100779         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
100780         declaration for wcwidth.
100781         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
100783 2006-06-28  Bruno Haible  <bruno@clisp.org>
100785         * lib/mkdtemp.c [MINGW]: Include <io.h>.
100786         (mkdir): Define using _mkdir.
100788 2006-06-28  Bruno Haible  <bruno@clisp.org>
100790         * lib/getaddrinfo.h: Fix POSIX URL.
100791         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
100792         _WIN32.
100793         (use_win32_p): Make static.
100794         (getaddrinfo): Reject service name if it is empty or does not consist
100795         solely of decimal digits, or if its value is > 65535.
100796         (getnameinfo): Remove useless casts.
100798 2006-06-27  Simon Josefsson  <jas@extundo.com>
100800         * modules/sys_select: New file, suggested by Bruno Haible, Paul
100801         Eggert and Martin Lambers.
100803 2006-06-27  Simon Josefsson  <jas@extundo.com>
100805         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
100806         Eggert and Martin Lambers.
100808 2006-06-27  Bruno Haible  <bruno@clisp.org>
100810         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
100811         result to 0, not to empty.
100812         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
100814 2006-06-27  Bruno Haible  <bruno@clisp.org>
100816         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
100818 2006-06-26  Simon Josefsson  <jas@extundo.com>
100820         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
100821         present.
100823 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
100825         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
100826         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
100827         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
100829 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
100831         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
100833 2006-06-26  Bruno Haible  <bruno@clisp.org>
100835         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
100837 2006-06-26  Bruno Haible  <bruno@clisp.org>
100839         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
100841 2006-06-26  Bruno Haible  <bruno@clisp.org>
100843         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
100844         SGI C compiler in pre-C99 mode.
100845         Suggested by Mark D. Baushke and Larry Jones.
100847 2006-06-26  Bruno Haible  <bruno@clisp.org>
100849         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
100850         WCHAR_MAX.
100851         Reported by Mark D. Baushke and Larry Jones.
100853 2006-06-26  Bruno Haible  <bruno@clisp.org>
100855         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
100856         in pre-C99 mode.
100857         Suggested by Mark D. Baushke and Larry Jones.
100859 2006-06-23  Simon Josefsson  <jas@extundo.com>
100860             Bruno Haible  <bruno@clisp.org>
100862         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
100863         Emit mostlyclean-local rule.
100864         (func_emit_tests_Makefile_am): Likewise.
100865         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
100867 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
100869         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
100871 2006-06-23  Bruno Haible  <bruno@clisp.org>
100873         * tests/test-stdint.c: Update to match ISO C 99 Technical
100874         Corrigendum 1.
100876 2006-06-23  Bruno Haible  <bruno@clisp.org>
100878         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
100880 2006-06-23  Bruno Haible  <bruno@clisp.org>
100882         * lib/stdint_.h: Treat IRIX like OpenBSD.
100884 2006-06-23  Bruno Haible  <bruno@clisp.org>
100886         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
100887         ISO C 99 Technical Corrigendum 1.
100889 2006-06-22  Simon Josefsson  <jas@extundo.com>
100891         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
100892         MinGW.
100894 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
100896         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
100897         needed.  Some compiler complained about some of them.  Problem reported
100898         by Larry Jones in
100899         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
100901 2006-06-21  Simon Josefsson  <jas@extundo.com>
100903         * tests/test-getaddrinfo.c: New file.
100905         * modules/getaddrinfo-tests: New file.
100907         * MODULES.html.sh: Add inet_pton.
100909         * modules/inet_pton: New file.
100911 2006-06-21  Simon Josefsson  <jas@extundo.com>
100913         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
100914         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
100915         of using the (limited) gnulib implementation on Windows XP.
100917         * m4/inet_pton.m4: New file.
100919 2006-06-21  Simon Josefsson  <jas@extundo.com>
100921         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
100922         variable.
100924         * lib/socket_.h: Don't define WINVER.
100926         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
100927         slightly modified to work in gnulib.
100929 2006-06-21  Simon Josefsson  <jas@extundo.com>
100931         * doc/gnulib.texi (Windows sockets): Add.
100933 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
100935         * lib/read-file.c (fread_file): Start with buffer allocation of
100936         0 bytes rather than 1 byte; this simplifies the code.
100937         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
100938         code to free buffer and save/restore errno.
100939         (internal_read_file): Remove unused local.
100941 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
100943         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
100944         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
100945         Problem reported by Denis Excoffier in
100946         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
100948 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
100950         * modules/sys_socket, modules/socklen: Include sys/types since
100951         FreeBSD 4.x's sys/socket.h needs it.
100953 2006-06-19  Simon Josefsson  <jas@extundo.com>
100955         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
100957 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
100959         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
100961 2006-06-19  Bruno Haible  <bruno@clisp.org>
100963         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
100964         and FULL_PATH_INTTYPES_H in angle brackets.
100965         Reported by Mark D. Baushke <mdb@gnu.org>.
100967 2006-06-17  Eric Blake  <ebb9@byu.net>
100969         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
100970         errno.
100972 2006-06-17  Bruno Haible  <bruno@clisp.org>
100974         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
100975         <sys/inttypes.h>.
100977 2006-06-17  Bruno Haible  <bruno@clisp.org>
100979         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
100980         whether errno is declared. Assume <errno.h> declares errno.
100982 2006-06-17  Bruno Haible  <bruno@clisp.org>
100984         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
100986 2006-06-17  Bruno Haible  <bruno@clisp.org>
100988         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
100989         problem on Solaris 2.5.1.
100991 2006-06-16  Eric Blake  <ebb9@byu.net>
100993         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
100994         * lib/unicodeio.c [!defined errno]: Likewise.
100995         * lib/strtol.c [!defined errno]: Likewise.
100996         * lib/strtod.c [!defined errno]: Likewise.
100998 2006-06-15  Eric Blake  <ebb9@byu.net>
101000         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
101002 2006-06-15  Eric Blake  <ebb9@byu.net>
101004         * config/srclist.txt (ssize_t.m4): Lose sync.
101006 2006-06-15  Bruno Haible  <bruno@clisp.org>
101008         * modules/stdint (Files): Include m4/full-header-path.m4,
101009         m4/size_max.m4, m4/wchar_t.m4.
101010         (Makefile.am): Many more substitutions.
101011         * modules/stdint-tests: New file.
101012         * tests/test-stdint.c: New file.
101014 2006-06-15  Bruno Haible  <bruno@clisp.org>
101016         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
101017         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
101018         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
101019         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
101020         gl_CHECK_TYPE_SAME): New macros.
101022 2006-06-15  Bruno Haible  <bruno@clisp.org>
101024         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
101026 2006-06-15  Bruno Haible  <bruno@clisp.org>
101028         * lib/stdint_.h: Rewritten to be fully auto-configured.
101029         Fixes bug on HP-UX/IA64.
101031 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
101033         * lib/getdate.y (__attribute__): Don't define if already defined.
101034         Problem reported by Larry Jones.
101035         * lib/utimens.c (__attribute__): Likewise.
101037 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
101039         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
101040         reported by Andreas Schwab.
101042 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101043             Bruno Haible  <bruno@clisp.org>
101045         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
101046         check for the declaration of strnlen and a run test that exposes the
101047         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
101048         rpl_strndup.
101050 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101051             Bruno Haible  <bruno@clisp.org>
101053         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
101055 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101057         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
101058         compile test, for Tru64 4.0D.
101060 2006-05-28  Karl Berry  <karl@gnu.org>
101062         * config/srclist.txt (printf-args.c): lose sync.
101064 2006-05-26  Martin Lambers  <marlam@marlam.de>
101066         * lib/getpass.c: Updates the test for the native W32 API, and adds
101067         missing includes, thus fixing compilation warnings.
101069 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
101071         * lib/exclude.c (exclude_fnmatch): New function.
101072         (excluded_file_name): Call exclude_fnmatch.
101073         * lib/exclude.h (excluded_file_name): New prototype
101075 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
101077         * lib/tempname.c (small_open, large_open): New macros.
101078         (__open, __open64) [!_LIBC]: Remove.
101079         (__gen_tempname): Use small_open and large_open instead of __open
101080         and __open64.  This fixes a portability bug on HP-UX 11.11i
101081         reported by Simon Wing-Tang in
101082         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
101084 2006-05-24  Bruno Haible  <bruno@clisp.org>
101086         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
101087         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
101088         Reported by Thorsten Maerz <torte@netztorte.de> via
101089         Aaron Stone <aaron@serendipity.cx>.
101091 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101093         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
101094         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
101095         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
101096         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
101097         not really conditional on the cache.
101098         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
101100 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
101102         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
101103         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
101104         (my_usleep): Don't mishandle maximum value.
101106 2006-05-19  Jim Meyering  <jim@meyering.net>
101108         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
101110 2006-05-17  Bruno Haible  <bruno@clisp.org>
101112         Cygwin portability.
101113         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
101115 2006-05-17  Bruno Haible  <bruno@clisp.org>
101117         * lib/stdint_.h: Fix recognition of Cygwin.
101119 2006-05-15  Bruno Haible  <bruno@clisp.org>
101121         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
101122         on libtool patch by Ralf Wildenhues.
101124 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
101126         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
101127         test for C99 conformance; (bool) 0.5 is an integer constant
101128         expression, but (bool) -0.5 is not.  Problem reported by Fedor
101129         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
101131 2006-05-11  Simon Josefsson  <jas@extundo.com>
101133         * m4/xvasprintf.m4: Fix obvious typo.
101135 2006-05-11  Jim Meyering  <jim@meyering.net>
101137         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
101138         James Lemley.
101140 2006-05-10  Simon Josefsson  <jas@extundo.com>
101142         * lib/md4.c: Typo fix, update copyright years.
101143         (K1, K2): Don't use L because it turn computations into 64-bit on
101144         64-bit platforms.
101146 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
101148         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
101149         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
101150         unwanted sign propagation, e.g., on hosts with 64-bit int.
101151         There still are some problems with reeelly weird theoretical hosts
101152         (e.g., 33-bit int) but it's not worth worrying about now.
101153         * lib/sha1.c (rol): Likewise.
101154         (K1, K2, K3, K4): Remove unnecessary L suffix.
101156 2006-05-10  Bruno Haible  <bruno@clisp.org>
101158         * lib/des.c: Cast to avoid warnings.
101160 2006-05-09  Bruno Haible  <bruno@clisp.org>
101162         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
101163         (Depends-on): Depend also on xsize, stdarg.
101164         (configure.ac): Add gl_XVASPRINTF.
101166 2006-05-09  Bruno Haible  <bruno@clisp.org>
101168         * m4/xvasprintf.m4: New file.
101170 2006-05-09  Bruno Haible  <bruno@clisp.org>
101172         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
101173         (EOVERFLOW): Define fallback value.
101174         (xstrcat): New function.
101175         (xvasprintf): Recognize the special case of a string concatenation.
101177 2006-05-08  Eric Blake  <ebb9@byu.net>
101179         * gnulib-tool (func_version): Base copyright year on CVS date.
101180         (func_emit_copyright_notice): New function.
101181         (func_emit_lib_Makefile_am): Use it.
101182         (func_emit_tests_Makefile_am): Likewise.
101183         (func_import): Likewise.
101185 2006-05-08  Bruno Haible  <bruno@clisp.org>
101187         * modules/stdarg: New file.
101188         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
101190 2006-05-08  Bruno Haible  <bruno@clisp.org>
101192         * m4/stdarg.m4: New file, from GNU gettext.
101194 2006-05-08  Bruno Haible  <bruno@clisp.org>
101196         * config/srclist.txt (build-aux/config.rpath): different from latest
101197         release.
101199 2006-05-08  Bruno Haible  <bruno@clisp.org>
101201         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
101203 2006-05-05  Jim Meyering  <jim@meyering.net>
101205         * m4/warning.m4: New file, derived from bison's file by the same name.
101207 2006-05-03  Bruno Haible  <bruno@clisp.org>
101209         * lib/stdint_.h: Shorter URL.
101210         * lib/inttypes.h: Likewise.
101212 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101214         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
101216 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101218         * lib/verify.h: Document the internals better.  Most of this change
101219         was written by Bruno Haible.
101221 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
101223         * doc/verify.texi: New file, partly based on a proposal by
101224         Bruno Haible.
101226 2006-05-02  Bruno Haible  <bruno@clisp.org>
101228         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
101229         test from here...
101230         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
101232 2006-04-29  Bruno Haible  <bruno@clisp.org>
101234         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
101235         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
101237 2006-04-29  Bruno Haible  <bruno@clisp.org>
101239         * gnulib-tool: Make --update option actually work.
101241 2006-04-29  Bruno Haible  <bruno@clisp.org>
101243         * doc/gcd.texi: New file.
101244         * doc/gnulib.texi: Include it.
101246 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
101248         * lib/getdate.y (get_date): When adding relative date, start with the
101249         initial time, not with the result of the first mktime call.
101251 2006-04-25  Bruno Haible  <bruno@clisp.org>
101253         * gnulib-tool (func_import): Output the include directives in three
101254         blocks, sorted separately.
101255         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101257 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101259         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
101260         to define main with arguments, for C++.  Reported by Eric Blake.
101261         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
101262         Prefer 'int main ()' to 'int main (void)', for C++.
101263         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
101264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
101265         for 'main', for C99 and C++.
101267 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
101269         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
101270         Don't assume that exit status -1 is valid.
101271         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
101273         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
101274         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
101275         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
101276         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
101277         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
101278         functions can be used without declaring them, or that you can
101279         exit with status -1.
101280         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
101282 2006-04-24  Karl Berry  <karl@gnu.org>
101284         * config/srclist.txt (longdouble.m4): sync lost.
101286 2006-04-24  Eric Blake  <ebb9@byu.net>
101288         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
101290 2006-04-24  Bruno Haible  <bruno@clisp.org>
101292         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
101293         poll() implementation in AIX.
101294         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101296 2006-04-24  Bruno Haible  <bruno@clisp.org>
101298         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
101299         assigned exactly once.
101301 2006-04-23  Claudio Fontana  <claudio@gnu.org>
101302             Bruno Haible  <bruno@clisp.org>
101304         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
101305         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
101306         for AM_CPPFLAGS.
101308 2006-04-23  Bruno Haible  <bruno@clisp.org>
101310         * modules/copy-file: Depend on unistd.
101311         * modules/execute: Likewise.
101312         * modules/fatal-signal: Likewise.
101313         * modules/findprog: Likewise.
101314         * modules/mkdtemp : Likewise.
101315         * modules/pipe: Likewise.
101316         * modules/wait-process: Likewise.
101318 2006-04-23  Bruno Haible  <bruno@clisp.org>
101320         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
101321         condition was already detected.
101322         Reported by Ben Pfaff <blp@cs.stanford.edu>.
101324 2006-04-23  Bruno Haible  <bruno@clisp.org>
101326         * lib/copy-file.c: Include <unistd.h> unconditionally.
101327         * lib/execute.c: Likewise.
101328         * lib/fatal-signal.c: Likewise.
101329         * lib/findprog.c: Likewise.
101330         * lib/mkdtemp.c: Likewise.
101331         * lib/pipe.h: Likewise.
101332         * lib/pipe.c: Likewise.
101333         * lib/wait-process.h: Likewise.
101335 2006-04-23  Bruno Haible  <bruno@clisp.org>
101337         * gnulib-tool (func_usage): Fix --import description. Document
101338         --update.
101339         (func_import): Create temporary file in a temporary directory, if
101340         --dry-run is specified. Silence errors from 'grep' when there are no
101341         m4 files in $m4dir.
101342         (func_create_testdir): Silence errors from 'grep' when there are no
101343         m4 files in $m4dir.
101344         Reported by Karl Berry <karl@freefriends.org>.
101346 2006-04-20  Bruno Haible  <bruno@clisp.org>
101348         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
101349         one argument, so that the code will be portable to Autoconf 2.60.
101350         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
101351         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
101352         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
101354 2006-04-19  Derek Price  <derek@ximbiot.com>
101355             Eric Blake  <ebb9@byu.net>
101357         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
101358         rather than "/full/path.h".  Update comment to match.  Shorten &
101359         generalize m4_translit call via AS_TR_CPP.
101361 2006-04-19  Derek Price  <derek@ximbiot.com>
101362             Eric Blake  <ebb9@byu.net>
101364         * lib/inttypes.h: Correct grammar in comment.
101366 2006-04-18  Derek Price  <derek@ximbiot.com>
101367             Paul Eggert  <eggert@cs.ucla.edu>
101369         * modules/inttypes: New file.
101370         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
101372 2006-04-18  Derek Price  <derek@ximbiot.com>
101373             Paul Eggert  <eggert@cs.ucla.edu>
101375         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
101376         New files.
101378 2006-04-18  Derek Price  <derek@ximbiot.com>
101379             Paul Eggert  <eggert@cs.ucla.edu>
101381         * lib/inttypes.h: New file.
101382         * lib/strtoimax.c: Assume <inttypes.h>.
101384 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
101386         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
101387         isn't mounted.  Problem reported by Kir Kolyshkin.
101389 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
101391         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
101392         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
101393         Derek R. Price.
101394         * lib/regex.h (RE_DUP_MAX): Update comment to match current
101395         implementation.
101397 2006-04-12  Eric Blake  <ebb9@byu.net>
101399         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
101400         is now done automatically by the corresponding Autoconf macro.
101402 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
101404         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
101405         time_r.h.
101407 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101409         Merge regex changes from libc, removing some of our
101410         POSIX-conformance changes that were rejected and redoing them in a
101411         less-intrusive way.
101413         * lib/regcomp.c (re_compile_internal, init_dfa):
101414         Length arg is now size_t, not Idx.  All uses changed.
101415         (peek_token): Forward decl now says internal_function.
101416         (__re_error_msgid, __re_error_msgid_idx):
101417         Now static rather than extern with attribute_hidden.
101418         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
101419         For some reason libc prefers K&R style defns for external functions.
101420         (regerror) [!defined _LIBC]: Likewise.
101421         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
101422         (seek_collating_symbol_entry, lookup_collation_sequence_value):
101423         (build_range_exp, build_collating_symbol):
101424         Use K&R-style defn.
101425         (re_compile_fastmap): Use '\0' to memset, not 0.
101426         (utf8_sb_map): Make the calculations more obvious.
101427         (init_dfa, parse_bracket_exp, build_charclass_op):
101428         Call calloc and cast result, as glibc does.
101429         (init_word_char, fetch_token, peek_token, peek_token_bracket):
101430         (build_range_exp, build_collating_symbol):
101431         Now internal functions.
101433         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
101435         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
101436         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
101437         Don't depend on VMS; depend on __VMS instead, for POSIX
101438         namespace cleanness.
101439         (regoff_t): Define to ssize_t, not long int.
101441         Remove the REG_ macros named below.  Instead, make the old names
101442         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
101443         __USE_GNU_REGEX.
101444         (REG_BACKSLASH_ESCAPE_IN_LISTS):
101445         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
101446         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
101447         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
101448         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
101449         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
101450         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
101451         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
101452         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
101453         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
101454         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
101455         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
101456         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
101457         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
101458         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
101459         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
101460         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
101461         (REG_NREGS):
101462         Remove.  All uses replaced by the old RE_* names.
101463         (RE_BACKSLASH_ESCAPE_IN_LISTS):
101464         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
101465         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
101466         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
101467         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
101468         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
101469         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
101470         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
101471         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
101472         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
101473         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
101474         Don't bother having these macros be independent of each others'
101475         values, since they no longer exist in the POSIX name space.
101477         Rename the following member names back to their old names,
101478         unless !__USE_GNU_REGEX.  All uses changed back.
101479         (buffer): Renamed from re_buffer.
101480         (allocated): Renamed from re_allocated.
101481         (used): Renamed from re_used.
101482         (syntax): Renamed from re_syntax.
101483         (fastmap): Renamed from re_fastmap.
101484         (translate): Renamed from re_translate.
101485         (can_be_null): Renamed from re_can_be_null.
101486         (regs_allocated): Renamed from re_regs_allocated.
101487         (fastmap_accurate): Renamed from re_fastmap_accurate.
101488         (no_sub): Renamed from re_no_sub.
101489         (not_bol): Renamed from re_not_bol.
101490         (not_eol): Renamed from re_not_eol.
101491         (newline_anchor): Renamed from re_newline_anchor.
101492         (num_regs): Renamed from rm_num_regs.
101493         (start): Renamed from rm_start.
101494         (end): Renamed from rm_end.
101496         (free_state): Move up a bit.
101498         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
101499         #define to be empty.
101500         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
101501         when that is what is intended.
101502         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
101503         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
101504         (MAX): New macro.
101505         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
101506         All uses changed back to re_malloc, etc.  It's now the caller's
101507         responsibility to check for overflow; all callers changed.
101508         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
101509         (re_x2nrealloc): Remove.
101510         (free_state): Remove decl.
101512         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
101513         (re_set_registers, re_exec):
101514         Use K&R-style defn.
101516         2006-01-31  Roland McGrath  <roland@redhat.com>
101518         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
101519         Reported by Mike Frysinger <vapier@gentoo.org>.
101521         2006-01-15  Andreas Jaeger  <aj@suse.de>
101523         [BZ #1950]
101524         * lib/regex_internal.c (re_string_reconstruct): Adjust for
101525         build_wcs_upper_buffer change.
101526         (build_wcs_upper_buffer): Change return type.
101528         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
101530         * lib/regex_internal.h: Include <stdint.h> if available.
101532         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
101534         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
101536         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
101538         * lib/regcomp.c: Adjust for changed secondary hash function.
101540         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
101542         * lib/regex.h: Pretty printing.
101543         Clean up namespace a bit.
101545         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
101547         * lib/regexec.c (update_cur_sifted_state, check_arrival,
101548         check_arrival_add_next_nodes): Avoid using uninitialized variable.
101550         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
101551                     Ulrich Drepper  <drepper@redhat.com>
101553         [BZ #1302]
101554         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
101555         changed.
101556         (bitset_word_t): Renamed from bitset_word.  All uses changed.
101558         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
101560         [BZ #281]
101561         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
101562         * lib/regcomp.c: Remove unnecessary uses of
101563         unsigned RE_TRANSLATE_TYPE.
101564         * lib/regex_internal.h: Likewise.
101565         * lib/regex_internal.c: Likewise.
101566         * lib/regexec.c: Likewise.
101567         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
101569         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
101571         * lib/regexec.c (find_recover_state): Remove unnecessary
101572         initialization.
101573         (transit_state_bkref): Make DFA a const pointer.
101574         (get_subexp): Likewise.
101575         (check_arrival): Likewise.
101576         (update_cur_sifted_state): Likewise.
101577         (re_search_internal): Likewise.
101578         (prune_impossible_nodes): Likewise.
101579         (acquire_init_state_context): Likewise.
101580         (proceed_next_node): Likewise.
101581         (set_regs): Likewise.
101582         (free_fail_stack_return): Likewise.
101583         (check_arrival_expand_ecl): Mark DFA parameter as const.
101584         (check_arrival_expand_ecl_sub): Likewise.
101585         (check_subexp_limits): Likewise.
101586         (sub_epsilon_src_nodes):  Likewise.
101587         (add_epsilon_src_nodes):  Likewise.
101588         (merge_state_array): Likewise.
101589         (update_regs): Likewise.
101590         (build_trtable): Likewise.
101591         (sift_states_backward): Mark MCTX parameter as const.
101592         (build_sifted_states): Likewise.
101593         (update_cur_sifted_state): Likewise.
101594         (sift_states_mkref): Likewise.
101595         (check_arrival_expand_ecl): Mark eclosure as const.
101596         (check_dst_limits_calc_pos_1): Likewise.
101597         * lib/regex_internal.h (re_match_context_t): Make dfa a const
101598         pointer.
101600         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
101602         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
101603         (transit_state_sb): Likewise.
101604         (transit_state_mb): Likewise.
101605         (sift_states_iter_mb): Likewise.
101606         (check_arrival_add_next_nodes): Likewise.
101607         (check_node_accept_bytes): Change first parameter to pointer-to-const.
101608         [_LIBC] (re_search_2_stub): Use mempcpy.
101610         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
101611         mbrtowc for very simple UTF-8 case.
101613         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
101614         a pointer-to-const.
101615         (re_acquire_state_context): Likewise.
101616         * lib/regex_internal.h: Adjust prototypes.
101618         * lib/regex.c: Prevent using C++ compilers.
101620         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
101621         (re_acquire_state_context): Likewise.
101623 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101625         * modules/regex (Depends-on): Add ssize_t.
101627 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101629         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
101630         translation table.
101632 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
101634         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
101636 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
101637             Bruno Haible  <bruno@clisp.org>
101639         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
101640         <sys/types.h> and <inttypes.h>.
101642 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101644         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
101645         `__error_t_defined', so argp.h will not typedef the former.
101647 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
101649         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
101650         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
101651         glibc names.  Even if glibc is changed to conform to POSIX, the
101652         traditional names will be available anyway, since regex depends on
101653         the extensions module.  Also, fix a longstanding typo in the
101654         implementation of Spencer ERE test #75 from grep 2.3.  Problems
101655         reported by Emanuele Giaquinta.  Also, change sense of cached
101656         variable, so that the message makes sense.
101658 2006-03-24  Simon Josefsson  <jas@extundo.com>
101660         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
101661         including some doc fixes.
101662         (base64_encode_alloc): Fix +1 bug on allocation failures.
101664 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101666         * lib/base64.c (base64_encode): Do not read past end of array with
101667         unsanitized input on systems with CHAR_BIT > 8.
101669 2006-03-24  Eric Blake  <ebb9@byu.net>
101671         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
101673 2006-03-22  Karl Berry  <karl@gnu.org>
101675         * config/srclist.txt (*setenv.[ch]): get from coreutils.
101676         * config/srclistvars.sh (COREUTILS): new var.
101678 2006-03-17  Jim Meyering  <jim@meyering.net>
101680         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
101681         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
101683 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101685         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
101686         no longer needs it.  Instead, check that regoff_t is as least
101687         as wide as ptrdiff_t.
101689         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
101690         so that our regex.h stays compatible with the installed regex.
101691         This is helpful for installers who configure --without-included-regex.
101692         Problem reported by Emanuele Giaquinta.
101694 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
101696         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
101697         Typedef to long int, not to off_, as POSIX will likely change
101698         in that direction.
101700 2006-03-15  Eric Blake  <ebb9@byu.net>
101702         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
101704 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101706         * lib/argp-help.c (validate_uparams): Fix typo
101707         * lib/argp-parse.c (argp_default_options): Consistently begin help
101708         messages with a lowercase letter.
101710 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
101712         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
101713         overrun buffers and shouldn't be used (much as gets shouldn't be
101714         used).
101715         * lib/time_r.c (asctime_r, ctime_r): Likewise.
101717 2006-03-08  Simon Josefsson  <jas@extundo.com>
101719         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
101720         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101722 2006-03-08  Simon Josefsson  <jas@extundo.com>
101724         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
101725         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101727 2006-03-08  Simon Josefsson  <jas@extundo.com>
101729         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
101730         signal that configure disabled the device.
101732 2006-03-08  Simon Josefsson  <jas@extundo.com>
101734         * build-aux/maint.mk: Fix refresh-po, to handle no translated
101735         languages.
101737 2006-03-07  Simon Josefsson  <jas@extundo.com>
101739         * modules/getopt (Depends-on): Add unistd.
101741         * modules/unistd: New file.
101743 2006-03-07  Simon Josefsson  <jas@extundo.com>
101745         * modules/gc-random: New file.
101747 2006-03-07  Simon Josefsson  <jas@extundo.com>
101749         * m4/unistd_h.m4: New file.
101751 2006-03-07  Simon Josefsson  <jas@extundo.com>
101753         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
101754         test to be side-effect free by storing the result in the cache
101755         variable gl_cv_lib_readline, and moving the assignment of
101756         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
101757         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
101759 2006-03-07  Simon Josefsson  <jas@extundo.com>
101761         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
101762         error on missing devices (the functions will return an error).
101764         * m4/gc.m4: Move random stuff to gc-random.m4
101766 2006-03-07  Simon Josefsson  <jas@extundo.com>
101768         * lib/unistd_.h: New file.
101770 2006-03-07  Simon Josefsson  <jas@extundo.com>
101772         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
101774 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101776         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
101777         Problem reported by Juan Manuel Guerrero.
101779 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101781         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
101782         the unistd module.
101783         * lib/getlogin_r.c: Likewise.
101784         * lib/getlogin_r.h: Likewise.
101785         * lib/glob.c: Likewise.
101786         * lib/pagealign_alloc.c: Likewise.
101787         * lib/unistd_.h: Remove; no longer needed.
101789 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
101791         * MODULES.html.sh (Support for systems lacking POSIX:2001):
101792         Add unistd.
101793         * modules/c-stack (Depends-on): Add unistd.
101794         * modules/getlogin_r: Likewise.
101795         * modules/glob: Likewise.
101796         * modules/pagealign_alloc: Likewise.
101797         * modules/unistd (Files): Remove lib/unistd_.h.
101798         (EXTRA_DIST): Remove.
101799         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
101800         need unistd_.h.
101801         (MOSTLYCLEANFILES): Remove unistd.h-t.
101803 2006-03-03  Simon Josefsson  <jas@extundo.com>
101805         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
101807 2006-03-03  Simon Josefsson  <jas@extundo.com>
101809         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
101810         libidn and bison.
101812 2006-03-03  Simon Josefsson  <jas@extundo.com>
101814         * build-aux/maint.mk: Add indent target.
101816 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
101818         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
101819         our replacement poll.h in any case, to avoid a differing
101820         declaration from a system header.  Seen on AIX.
101822 2006-03-01  Simon Josefsson  <jas@extundo.com>
101824         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
101825         <kasal@ucw.cz>.
101827 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101829         * modules/gettime (Depends-on): Add extensions module.
101830         * modules/nanosleep (Depends-on): Likewise.
101831         * modules/settime (Depends-on): Likewise.
101833 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
101835         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
101836         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
101837         pedantically.
101838         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
101839         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
101841         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
101842         not "==".  Reported by Ralf Wildenhues.
101844 2006-03-01  Karl Berry  <karl@gnu.org>
101846         * doc/Copyright/request-*: new files, synced from gnuorg.
101848 2006-03-01  Karl Berry  <karl@gnu.org>
101850         * config/srclist.txt (Copyright/*): new entries.
101852 2006-02-28  Simon Josefsson  <jas@extundo.com>
101854         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
101856 2006-02-27  Simon Josefsson  <jas@extundo.com>
101858         * lib/base64.h: Indent #define's.  From Jim Meyering
101859         <jim@meyering.net>.
101861 2006-02-27  Jim Meyering  <jim@meyering.net>
101863         Revert the change of 2006-02-24, so these files can continue
101864         to be sync'd from gettext.
101865         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
101866         of `config.h'.
101868 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
101870         * modules/intprops: New file.
101871         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
101872         Add intprops.
101873         * modules/getloadavg (Files): Remove lib/intprops.h.
101874         (Depends-on): Add intprops.
101875         * modules/human: Likewise.
101876         * modules/inttostr: Likewise.
101877         * modules/openat: Likewise.
101878         * modules/sig2str: Likewise.
101879         * modules/userspec: Likewise.
101880         * modules/utimecmp: Likewise.
101881         * modules/xnanosleep: Likewise.
101882         * modules/xstrtol: Likewise.
101884 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
101886         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
101887         * modules/lock-tests (TESTS): Use $(EXEEXT).
101888         * modules/tls-tests: Likewise.
101889         * modules/argp-tests: Likewise.
101890         (check_PROGRAMS): New var, replacing...
101891         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
101893 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101895         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
101896         `config.h'.
101898 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
101900         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
101902 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
101904         Sync from coreutils.
101905         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
101906         gl_CHDIR_SAFER.
101908 2006-02-22  Jim Meyering  <jim@meyering.net>
101910         Sync from coreutils.
101911         * m4/chdir-safer.m4: New file.
101913 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
101915         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
101916         AT_FDCWD exceeds INT_MAX.
101917         * lib/openat.h (AT_FDCWD): Likewise.
101919 2006-02-17  Eric Blake  <address@hidden>
101921         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
101923 2006-02-16  Simon Josefsson  <jas@extundo.com>
101925         * modules/getaddrinfo (Depends-on): Add sys_socket.
101927 2006-02-15  Simon Josefsson  <jas@extundo.com>
101929         * build-aux/maint.mk: Add dsyntax-check rule.
101931 2006-02-15  Eric Blake  <ebb9@byu.net>
101933         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
101934         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
101935         'present but cannot compile' warnings on cygwin.
101936         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
101937         use ws2tcpip.h if sys/socket.h works.
101938         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
101939         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
101941 2006-02-14  Simon Josefsson  <jas@extundo.com>
101943         * modules/maintainer-makefile (Files): Rename.
101945         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
101946         and (the local) Makefile.cfg to maint-cfg.mk.
101948         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
101949         to the latter.
101951         * modules/maintainer-makefile: New module.
101953         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
101954         severaly stripped to make it possible to build it up from scratch
101955         with reliable tests.
101957         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
101958         fixes to permit overriding the default actions when configure and
101959         makefile are not available.
101961 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
101963         Sync from coreutils.
101964         * modules/lstat (Depends-on): Don't depend on xalloc.
101965         (License): Change from GPL to LGPL, since this is now simply a
101966         replacement for a libc function.
101968 2006-02-14  Jim Meyering  <jim@meyering.net>
101970         Sync from coreutils.
101972         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
101973         failure on deficient systems, and simplify gnulib lgpl dependencies.
101974         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
101975         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
101977         * lib/xalloc-die.c: Remove unused definition of N_.
101979 2006-02-14  Jim Meyering  <jim@meyering.net>
101981         Sync from coreutils.
101982         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
101983         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
101984         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
101985         double-quote uses of that variable, to accommodate the rare case in
101986         which getmntent is available in none of the libraries checked.  This
101987         happens at least on FreeBSD 5.0.
101989 2006-02-13  Simon Josefsson  <jas@extundo.com>
101991         * gnulib-tool (Usage): Fix --import, from
101992         karl@freefriends.org (Karl Berry).
101994 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
101996         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
101998 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
102000         * lib/argp-namefrob.h: Restore changes accidentally lost during the
102001         "autoupdate" on 2005-12-12.
102003 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
102005         * modules/closeout (Depends-on): Remove atexit.
102007 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
102009         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
102010         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
102012 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
102014         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
102015         __EXTENSIONS__ if this causes compilation to fail.  Problem
102016         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
102017         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
102019 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
102021         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
102022         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
102023         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
102024         All uses changed.
102026 2006-01-26  Simon Josefsson  <jas@extundo.com>
102028         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
102029         prototype is visible on mingw32.
102031         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
102032         for mingw32.
102034         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
102035         mingw32).
102037 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
102039         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
102040         attempt to open for write; this always fails, at least on POSIX
102041         hosts.  This reinstates the 2006-01-09 change, which was
102042         inadvertently removed.
102044 2006-01-26  Bruno Haible  <bruno@clisp.org>
102046         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
102047         Reported by Paul Eggert.
102049 2006-01-26  Bruno Haible  <bruno@clisp.org>
102050             Paul Eggert  <eggert@cs.ucla.edu>
102052         * lib/stdbool_.h (_Bool)
102053         [(! (defined __cplusplus || defined __BEOS__)
102054           && !defined __GNUC__
102055           && !(defined __HP_cc || defined __xlc__
102056                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
102057                || defined __sgi))]:
102058         #define to signed char in these cases too; this simplifies
102059         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
102060         etc., separately) and makes it more conservative.
102062 2006-01-25  Simon Josefsson  <jas@extundo.com>
102064         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
102065         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
102066         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
102068 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
102070         * lib/argp-namefrob.h: Bugfix. Remove stray #
102072 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
102074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
102075         so that we test the test.
102076         Check for yet another HP-UX cc bug involving *bool |= bool.
102078 2006-01-25  Karl Berry  <karl@gnu.org>
102080         * config/srclist.txt (vasnprintf.c): sync lost.
102082 2006-01-25  Jim Meyering  <jim@meyering.net>
102084         Sync from the stable (b5) branch of coreutils:
102086         * lib/fts.c (fts_children): Don't let close() clobber errno from
102087         failed fchdir().
102089         * lib/fts.c (fts_stat): When following a symlink-to-directory,
102090         don't necessarily interpret stat-fails+lstat-succeeds as indicating
102091         a dangling symlink.  That can also happen at least for ELOOP.
102092         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
102093         FYI, this bug predates the inclusion of fts.c in coreutils.
102095         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
102096         in their own block, so pre-c99 compilers don't object.
102098         Avoid the double-free (first in fts_read, second in fts_close) that
102099         would occur when an `active' directory is made inaccessible (e.g.,
102100         via chmod a-x) during a traversal.
102101         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102102         before returning.  Reproduce this failure by
102103         mkdir -p a/b; cd a; chmod a-x . b
102104         Reported by Stavros Passas.
102106 2006-01-25  Jim Meyering  <jim@meyering.net>
102108         * lib/fileblocks.c: Remove more useless parentheses.
102109         * lib/readutmp.h: Likewise.
102111 2006-01-25  Bruno Haible  <bruno@clisp.org>
102113         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
102114         warnings.
102115         Reported by Paul Eggert.
102117 2006-01-25  Bruno Haible  <bruno@clisp.org>
102119         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
102120         rid of a trap command. For Solaris sh.
102121         Reported by Mark D. Baushke <mdb@gnu.org>.
102123 2006-01-24  Simon Josefsson  <jas@extundo.com>
102125         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
102126         Bruno.
102128 2006-01-24  Karl Berry  <karl@gnu.org>
102130         * config/srclist.txt (argp-namefrob.h): sync lost.
102132 2006-01-24  Jim Meyering  <jim@meyering.net>
102134         * modules/openat (Files): Add lib/intprops.h.
102135         From Mark D. Baushke.
102137 2006-01-24  Jim Meyering  <jim@meyering.net>
102139         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
102140         Reported by Mark D. Baushke.
102142 2006-01-24  Jim Meyering  <jim@meyering.net>
102144         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
102146 2006-01-24  Bruno Haible  <bruno@clisp.org>
102148         * modules/strnlen (Maintainer): Change from glibc to all.
102150 2006-01-24  Bruno Haible  <bruno@clisp.org>
102152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
102153         Patch by Paul Eggert.
102155 2006-01-24  Bruno Haible  <bruno@clisp.org>
102157         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
102158         already has it.
102159         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
102160         2005-11-26.
102162         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
102163         'signed char' to avoid problems with the built-in _Bool type.
102164         Reported by Paul Eggert on 2005-11-26.
102166 2006-01-24  Bruno Haible  <bruno@clisp.org>
102168         * gnulib-tool (func_import): Avoid constructing complicated sed
102169         expressions inside backquote.
102170         Report and solution by Mark D. Baushke <mdb@gnu.org>.
102172 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
102174         These changes imported from libc.
102175         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
102176         test and two separate function calls.
102177         * lib/strndup.c (__strndup): Add libc_hidden_def.
102179 2006-01-23  Simon Josefsson  <jas@extundo.com>
102181         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
102182         Remove the test_*_SOURCES variable: automake infers it by default.
102183         * modules/tls-tests: Likewise.
102185 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102187         Work around porting bugs reported by Dieter in
102188         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
102189         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
102190         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
102191         Include "getopt.h" first, to check interface.
102192         (getenv): Declare only if defined HAVE_DECL_GETENV &&
102193         !HAVE_DECL_GETENV.
102194         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
102195         (__strndup): Revert to K&R-style function dfns, the glibc style.
102196         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
102197         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
102198         Include strnlen.h first, to get prototype properly.
102199         (strnlen): Renamed from __strnlen.
102200         Remove weak alias.
102202 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102204         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
102206 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
102208         * config/srclist.txt: Adjust to reflect glibc reorganization.
102209         This affects only comments.
102211 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
102213          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
102214          Reported by Bruce Korb <bkorb@gnu.org>.
102216 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
102218         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
102219         to pacify gcc -Wswitch-default.
102221 2006-01-22  Bruno Haible  <bruno@clisp.org>
102223         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
102224         temporary buffer for sprintf, take into account the precision also
102225         for 'd', 'i', 'u', 'o', 'x', 'X'.
102227 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102229         * modules/argp-tests: New module
102230         * tests/test-argp.c: New file
102231         * tests/test-argp-2.sh: New file
102233 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
102235         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
102236         (__argp_base_name): Removed
102237         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
102238         typo.
102239         (__argp_base_name): Provide macro definition or extern declaration
102240         depending on the configuration
102242 2006-01-20  Simon Josefsson  <jas@extundo.com>
102244         * modules/inet_ntop (Depends-on): Depend on sys_socket.
102246 2006-01-20  Simon Josefsson  <jas@extundo.com>
102248         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
102250 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
102252         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
102253         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
102254         Suggested by Bruno Haible.
102256 2006-01-20  Karl Berry  <karl@gnu.org>
102258         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
102259         until changes propagate, I guess.
102261 2006-01-19  Simon Josefsson  <jas@extundo.com>
102263         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
102265 2006-01-19  Simon Josefsson  <jas@extundo.com>
102267         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
102269 2006-01-19  Simon Josefsson  <jas@extundo.com>
102271         * gnulib-tool: Set check_PROGRAMS.
102273         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102274         modules/des-tests, modules/gc-arcfour-tests,
102275         modules/gc-arctwo-tests, modules/gc-des-tests,
102276         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102277         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102278         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102279         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102280         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102281         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
102282         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
102283         test_*_SOURCES.
102285 2006-01-18  Simon Josefsson  <jas@extundo.com>
102287         * modules/socklen (Depends-on): Depend on sys_socket.
102289 2006-01-18  Simon Josefsson  <jas@extundo.com>
102291         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
102292         modules/des-tests, modules/gc-arcfour-tests,
102293         modules/gc-arctwo-tests, modules/gc-des-tests,
102294         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
102295         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
102296         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
102297         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
102298         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
102299         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
102300         $(EXEEXT) to automake TESTS variable, for mingw32.
102302 2006-01-17  Simon Josefsson  <jas@extundo.com>
102304         * modules/socklen (Include): Need sys/socket.h.
102306 2006-01-17  Bruno Haible  <bruno@clisp.org>
102308         * modules/ssize_t (Include): Add <sys/types.h>.
102310 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
102312         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
102313         it's not portable and it doesn't work with cross-compiles.
102314         Problem reported by Bruno Haible.  Fix missing-$ typo in
102315         'test "gl_cv_ignore_unused_libraries" ...' that prevented
102316         -zignore from being used with Sun's C compiler.
102318 2006-01-12  Simon Josefsson  <jas@extundo.com>
102320         * lib/base64.c: Fix warning, reported by Bruno Haible
102321         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
102323 2006-01-12  Bruno Haible  <bruno@clisp.org>
102325         * modules/ldd: New file.
102326         * build-aux/ldd.sh.in: New file.
102327         * MODULES.html.sh (Support for building libraries and executables): Add
102328         ldd.
102330 2006-01-12  Bruno Haible  <bruno@clisp.org>
102332         * m4/ldd.m4: New file.
102334 2006-01-12  Bruno Haible  <bruno@clisp.org>
102336         * gnulib-tool (func_import, func_create_testdir): Don't go into an
102337         endless loop while replacing $auxdir with build-aux.
102339 2006-01-11  Simon Josefsson  <jas@extundo.com>
102341         * lib/stdint_.h (SIZE_MAX): Add missing (.
102343 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
102345         Sync from coreutils.
102346         * lib/md5.c: Fix commentary typos.
102347         (alignof, UNALIGNED_P): No need for a GCC-specific version.
102348         * lib/md5.h (__attribute__): Remove; unused.
102349         * lib/sha1.c: Fix commentary to match md5 better.
102350         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
102351         so that we don't need to worry about alignment.  All uses changed.
102352         This merges the 2005-10-28 md5 change into sha1.
102354 2006-01-11  Jim Meyering  <jim@meyering.net>
102356         Sync from coreutils.
102357         * lib/md5.c (OP): Fix spacing.
102359 2006-01-11  Bruno Haible  <bruno@clisp.org>
102361         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102362         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
102363         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
102365 2006-01-11  Bruno Haible  <bruno@clisp.org>
102367         Ensure automatic ordering between gl_LOCK and gl_ARGP.
102368         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
102369         the "early" section as well.
102371 2006-01-11  Bruno Haible  <bruno@clisp.org>
102373         Avoid "ar: no archive members specified" error on MacOS X.
102374         * gnulib-tool (func_modules_add_dummy): New function.
102375         (func_import, func_create_testdir): Invoke it.
102377 2006-01-11  Bruno Haible  <bruno@clisp.org>
102379         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
102380         with $auxdir in AC_CONFIG_FILES statements.
102382 2006-01-11  Bruno Haible  <bruno@clisp.org>
102384         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
102385         Initialize also noinst_HEADERS to empty.
102387 2006-01-11  Bruno Haible  <bruno@clisp.org>
102389         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
102390         variables.
102391         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
102392         autoreconf.
102394 2006-01-11  Bruno Haible  <bruno@clisp.org>
102396         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
102397         overridable by the user.
102398         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
102400 2006-01-10  Simon Josefsson  <jas@extundo.com>
102402         * modules/sys_socket: New file.
102404 2006-01-10  Simon Josefsson  <jas@extundo.com>
102406         * m4/sys_socket_h.m4: New file.
102408 2006-01-10  Simon Josefsson  <jas@extundo.com>
102410         * lib/socket_.h: New file.
102412 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102414         * modules/readutmp (Maintainer): Add myself.
102416 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102418         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
102419         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
102420         People who are still concerned with buggy memcmp implementations
102421         can invoke gl_FUNC_MEMCMP themselves.
102423 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
102425         * lib/regex_internal.h (BITSET_WORD_BITS):
102426         Work around a bug in 64-bit PGC (before version 6.1-2), where the
102427         preprocessor mishandles large unsigned values as if they were signed.
102428         Problem reported by Claudio Fontana in
102429         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
102431 2006-01-10  Jim Meyering  <jim@meyering.net>
102433         Avoid the double-free (first in fts_read, second in fts_close) that
102434         would occur when an `active' directory is made inaccessible (e.g.,
102435         via chmod a-x) during a traversal.
102436         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
102437         before returning.  Reproduce this failure by
102438         mkdir -p a/b; cd a; chmod a-x . b
102439         Reported by Stavros Passas.
102441         Sync from coreutils.
102442         * lib/sha1.c: Tweak grammar in a comment.
102444 2006-01-10  Jim Meyering  <jim@meyering.net>
102446         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
102447         Patch by Joerg Sonnenberger.
102449 2006-01-10  Bruno Haible  <bruno@clisp.org>
102451         * modules/readutmp: Depend on module free.
102452         * modules/strtok_r: Depend on module restrict.
102454 2006-01-10  Bruno Haible  <bruno@clisp.org>
102456         * modules/gettext (configure.ac): Add an invocation of
102457         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
102459 2006-01-10  Bruno Haible  <bruno@clisp.org>
102461         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
102462         Reported by Werner Lemberg <wl@gnu.org>.
102464 2006-01-10  Bruno Haible  <bruno@clisp.org>
102466         * lib/localcharset.c: Update from GNU gettext.
102468 2006-01-10  Bruno Haible  <bruno@clisp.org>
102470         * lib/argp.h (__const): Remove macro. Use const instead.
102471         * lib/argp-fmtstream.h (__const): Likewise.
102472         * lib/glob_.h (__const): Remove macro.
102473         * lib/glob-libc.h: Use const instead of __const.
102475 2006-01-10  Bruno Haible  <bruno@clisp.org>
102477         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
102478         variable.
102479         Needed to avoid an automake error regarding the 'gettext' module.
102481 2006-01-09  Simon Josefsson  <jas@extundo.com>
102483         * modules/inet_ntop (Depends-on): Add restrict.
102485 2006-01-09  Simon Josefsson  <jas@extundo.com>
102487         * modules/gc-rijndael-tests (License): Put under LGPL.
102489         * modules/gc-des-tests (License): Likewise.
102491         * modules/gc-arcfour-tests (License): Likewise.
102493         * modules/gc-arctwo-tests (License): Likewise.
102495         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
102497         * modules/gc-hmac-sha1-tests (Files): Likewise.
102499         * modules/gc-hmac-md5-tests (License): Likewise.
102501         * modules/gc-sha1-tests (License): Likewise.
102503         * modules/gc-md5-tests (License): Likewise.
102505         * modules/gc-md4-tests (License): Likewise.
102507         * modules/gc-md2-tests (License): Likewise.
102509         * modules/gc-tests (License): Likewise.
102511         * modules/des-tests (License): Likewise.
102513         * modules/md4-tests (License): Likewise.
102515         * modules/md2-tests (License): Likewise.
102517 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102519         Sync from coreutils:
102521         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
102522         * modules/lib-ignore: New file.
102523         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
102524         chdir-safer.m4, lchmod.m4.
102525         * modules/openat: Add mkdirat.c, openat-priv.h.
102527 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102529         Sync from coreutils.
102530         * m4/lib-ignore.m4: New file.
102531         * m4/lchmod.m4: New file.
102533 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102535         Sync from coreutils.
102536         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
102537         for write access: POSIX says that must fail.
102538         * lib/fts.c (diropen): Likewise.
102539         * lib/save-cwd.c (save_cwd): Likewise.
102540         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
102541         well, for minor improvements on hosts that lack O_DIRECTORY.
102542         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
102543         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
102544         Fall back on chown if open failed with EACCES.
102546         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
102547         Report an error at compile-time if only a 1-second nominal clock
102548         resolution is found.
102550         * lib/lchmod.h: New file.
102551         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
102552         (make_dir_parents): Use lchown rather than chown, and
102553         lchmod rather than chmod.
102555         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
102556         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
102557         "proc" reported by n0dalus.
102559         * lib/mountlist.c: Include <limits.h>.
102560         (dev_from_mount_options)
102561         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
102562         New function.  It no longer assumes "dev=" has the System V meaning
102563         on Linux (since it doesn't).  It also parses "dev=" more carefully.
102564         (read_file_system_list)
102565         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
102566         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
102567         dev= in that case.
102569         * lib/posixtm.h (PDS_PRE_2000): New macro.
102570         * lib/posixtm.c (year): Arg is now syntax_bits rather than
102571         allow_century.  All usages changed.  Reject dates outside the range
102572         1969-1999 if PDS_PRE_2000 is used.
102574 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
102576         Sync from coreutils.
102577         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
102578         (Time of day items): Mention the possibility of leap seconds.
102579         Problem reported by Dr. David Alan Gilbert.
102581 2006-01-09  Jim Meyering  <jim@meyering.net>
102583         Sync from coreutils.
102585         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
102587         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
102589         * lib/modechange.c (mode_compile): Reject an invalid mode string
102590         that starts with an octal digit.  From Andreas Gruenbacher.
102592         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
102593         and dup to open_safer and dup_safer, respectively.
102594         (openat_permissive): Fix typo in comment.
102596         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
102597         "gettext.h"; either no longer needed or are guaranteed by openat.h.
102598         (_): Remove; no longer needed.
102599         (openat): Renamed from rpl_openat; no need for rpl_openat
102600         since openat.h renames openat for us.
102601         Replace most of the body with a call to openat_permissive,
102602         to avoid duplicate code.
102603         Port to (probably hypothetical) environments were mode_t is
102604         wider than int.
102605         (openat_permissive): Require mode arg, so that we can check
102606         types better.  Put it just after flags.  Change cwd failure
102607         indicator from pointer-to-bool to pointer-to-errno-value.
102608         All callers changed.
102609         Invoke openat_save_fail and/or openat_restore_fail if
102610         cwd_errno is null, so that openat can call us.
102611         (openat_permissive, fdopendir, fstatat, unlinkat):
102612         Simplify errno handling to avoid some duplicate code,
102613         as it's OK to set errno on success.
102614         * lib/openat.h: Revamp code so that function macros depend on
102615         __OPENAT_PREFIX only, not also on AT_FDCWD.
102616         (openat_ro): Remove.  Caller changed to use openat_permissive.
102617         (openat_permissive): Now a macro, if not a function.
102618         (openat_restore_fail, openat_save_fail): Now always functions,
102619         since mkdirat needs them even if __OPENAT_PREFIX is defined.
102621         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
102622         and openat.c.
102623         * lib/mkdirat.c: Include openat-priv.h.
102624         Remove definitions of macros defined therein.
102625         * lib/openat.c: Likewise.
102627         * lib/mkdirat.c (mkdirat): New file and function.
102628         * lib/openat.h (mkdirat): Declare.
102630         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
102632         * lib/openat.h (openat_permissive): Declare.
102633         (openat_ro): Define.
102635         * lib/openat.c (EXPECTED_ERRNO): New macro.
102636         (openat_permissive): New function -- used in remove.c rewrite.
102637         (all functions): Set errno just before returning, only if there
102638         was an actual failure.
102639         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
102641         Emulate openat-family functions using Linux's procfs, if possible.
102642         Idea and some code based on Ulrich Drepper's glibc changes.
102644         * lib/openat.c: (BUILD_PROC_NAME): New macro.
102645         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
102646         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
102647         before falling back on save_cwd and restore_cwd.
102648         (fdopendir, fstatat, unlinkat): Likewise.
102650         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
102651         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
102653         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
102654         as second argument to va_arg.  Otherwise, some versions of gcc
102655         warn that `if this code is reached, the program will abort'.
102657 2006-01-09  Jim Meyering  <jim@meyering.net>
102659         Sync from coreutils.
102660         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
102661         Require openat-priv.h.
102663 2006-01-09  Bruno Haible  <bruno@clisp.org>
102665         * modules/strnlen (Include): Use strnlen.h.
102667 2006-01-09  Bruno Haible  <bruno@clisp.org>
102669         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
102671 2006-01-09  Bruno Haible  <bruno@clisp.org>
102673         * lib/sysexit_.h (EX_OK): New macro.
102674         Suggested by Martin Lambers <marlam@marlam.de>.
102676 2006-01-09  Bruno Haible  <bruno@clisp.org>
102678         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
102679         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
102681 2006-01-09  Bruno Haible  <bruno@clisp.org>
102683         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
102684         numbers.
102686 2006-01-09  Bruno Haible  <bruno@clisp.org>
102688         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
102689         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
102690         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
102691         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
102693 2006-01-09  Bruno Haible  <bruno@clisp.org>
102695         * build-aux/javacomp.sh.in: New file, moved from lib/.
102696         * modules/javacomp-script (Files): Update.
102697         (configure.ac): Add AC_CONFIG_FILES invocation.
102698         (EXTRA_DIST): Remove variable.
102700         * build-aux/javaexec.sh.in: New file, moved from lib/.
102701         * modules/javaexec (Files): Update.
102702         (configure.ac): Add AC_CONFIG_FILES invocation.
102703         (EXTRA_DIST): Remove javaexec.sh.in.
102705         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
102706         * modules/csharpcomp-script (Files): Update.
102707         (configure.ac): Add AC_CONFIG_FILES invocation.
102708         (EXTRA_DIST): Remove variable.
102710         * build-aux/csharpexec.sh.in: New file, moved from lib/.
102711         * modules/csharpexec (Files): Update.
102712         (configure.ac): Add AC_CONFIG_FILES invocation.
102713         (EXTRA_DIST): Remove csharpexec.sh.in.
102715 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102717         Sync from coreutils.
102719         Add POSIX ACL support
102720         * lib/acl.h (copy_acl, set_acl): Add declarations.
102721         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
102722         systems other than Linux.
102723         (chmod_or_fchmod): New function: use fchmod when possible,
102724         and chmod otherwise.
102725         (file_has_acl): Add a POSIX ACL implementation, with a
102726         Linux-specific subcase.
102727         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
102728         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
102729         acls are unsupported.
102730         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
102731         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
102732         are unsupported.
102734 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
102736         Sync from coreutils.
102737         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
102739 2006-01-07  Bruno Haible  <bruno@clisp.org>
102741         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
102742         gl_EARLY.
102744 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102746         * lib/strftime.c (tzname): Don't declare if it is already #defined.
102747         Problem reported for Mingw by Mark Junker.
102749 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
102751         * README: Gnulib normally doesn't generate a tarball.
102753 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
102755         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
102756         long int, not int, for nanosecond counts, so that people who are
102757         used to POSIX struct timespec won't be surprised.  Reported by Jim
102758         Meyering.
102760 2005-12-28  Bruno Haible  <bruno@clisp.org>
102762         * build-aux/config.rpath: Update from GNU gettext.
102764 2005-12-16  Jim Meyering  <jim@meyering.net>
102766         * modules/fprintftime: New module.
102767         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
102769 2005-12-16  Jim Meyering  <jim@meyering.net>
102771         * m4/fprintftime.m4: New file.
102773 2005-12-16  Jim Meyering  <jim@meyering.net>
102775         * lib/fprintftime.c, lib/fprintftime.h: New files.
102777 2005-12-15  Simon Josefsson  <jas@extundo.com>
102779         * modules/socklen (configure.ac): Fix M4 macro name, to align with
102780         new m4/socklen.m4.
102782 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102784         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
102785         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
102787 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
102789         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
102790         * lib/argp-help.c (fill_in_uparams): Check if the constructed
102791         struct uparams is valid. Fall back to the default values if it is
102792         not.
102794 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102796         * modules/argp (Files): Add argp-pin.c
102797         (Depends-on): dirname
102798         (lib_SOURCES): Add argp-pin.c
102800 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102802         * m4/argp.m4:  Check if program_invocation_name and
102803         program_invocation_short_name are declared and define appropriate
102804         macros if they are not.
102806 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
102808         * lib/argp-help.c (__argp_base_name): New function
102809         (__argp_short_program_name): Rewrite using __argp_base_name
102810         * lib/argp-namefrob.h: Define program_invocation_name and
102811         program_invocation_short_name if requested
102812         (__argp_base_name): Add prototype
102813         * lib/argp-parse.c (argp_def): Use gettext wrappers
102814         (argp_default_parser): Use __argp_base_name
102815         * lib/argp-pin.c: New file. Defines program_invocation_name and
102816         program_invocation_short_name on systems that lack them.
102818 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102820         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
102821         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102822         porting problem reported by Georg Schwarz in
102823         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102825 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
102827         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
102828         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
102829         porting problem reported by Georg Schwarz in
102830         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
102832 2005-12-05  Bruno Haible  <bruno@clisp.org>
102834         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
102835         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
102836         Reported by Mark Junker <mjscod@gmx.de>.
102838 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
102840         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
102841         Use implementation from Albert Chin, with some
102842         comments/corrections by Stepan Kasal and myself.
102844 2005-12-02  Bruno Haible  <bruno@clisp.org>
102846         * gnulib-tool (func_import): Accept GPLed build tool modules when
102847         --lgpl is given.
102848         * modules/csharpcomp-script: New file.
102849         * modules/csharpcomp: Depend on it.
102850         * modules/javacomp-script: New file.
102851         * modules/javacomp: Depend on it.
102852         Suggested by Simon Josefsson.
102854 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
102856         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
102857         statement, to work around an HP-UX 10.20 compiler bug reported by
102858         Peter O'Gorman.
102860 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102862         * modules/savedir (Depends-on): Add openat.
102864 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
102866         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
102867         (uintmax_t) [defined uintmax_t]: Do not declare.
102868         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
102869         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
102870         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
102871         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
102872         sake of portability to weird hosts that C allows (though we don't
102873         know of any practical examples).
102875         * lib/savedir.h (fdsavedir): New decl.
102876         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
102877         contains most of the former guts of savedir.
102878         (savedir): Use savedirstream.
102879         Include "openat.h".
102881 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
102883         * modules/obstack (Files): Add m4/ulonglong.m4.
102884         Problem reported by Davide Angelocola.
102886 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
102888         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
102889         coreutils no longer futzes with rounding modes.
102891 2005-11-14  Jim Meyering  <jim@meyering.net>
102893         * lib/mkstemp-safer.c: Include <config.h>, required for possible
102894         replacement of mkstemp.
102896 2005-11-10  Simon Josefsson  <jas@extundo.com>
102898         * lib/readline.c: Remove EOL.
102900 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102902         * modules/gethrxtime (Depends-on): Add gettime.
102904 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102906         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
102907         or gettimeofday; no longer needed.
102909 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
102911         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
102912         time business.
102913         (gethrxtime) [! (HAVE_NANOUPTIME
102914         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
102915         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
102916         our own approximation.
102918 2005-11-08  Eric Blake  <ebb9@byu.net>
102920         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102922 2005-11-08  Eric Blake  <ebb9@byu.net>
102924         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
102926 2005-11-04  Bruno Haible  <bruno@clisp.org>
102928         * gnulib-tool: Implement --update mode.
102930 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102932         Fix porting problem reported by Theodoros V. Kalamatianos.
102933         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
102934         Don't assume that futimes failing means we must fail.
102936 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
102938         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
102939         variables to suggest the intended function of the PATH_MAX check.
102941 2005-10-30  Kean Johnston  <jkj@sco.com>
102943         Trivial changes to support SCO systems.
102944         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
102945         as PATH_MAX.
102946         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
102947         where __ptr is null when no I/O is pending.
102949 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
102951         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
102952         leave errno alone.  Problem reported by Dmitry V. Levin.
102954 2005-10-28  Simon Josefsson  <jas@extundo.com>
102956         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
102957         Test more.
102959         * tests/test-gc-md2.c, tests/test-md2.c: New files.
102961         * modules/md2, modules/md2-tests: New files.
102963 2005-10-28  Simon Josefsson  <jas@extundo.com>
102965         * m4/inet_ntop.m4: More tests.
102967         * m4/gc-md2.m4, md2.m4: New file.
102969 2005-10-28  Simon Josefsson  <jas@extundo.com>
102971         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
102972         "restrict" keywords, as per POSIX.  Protect the function
102973         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
102974         Don't use K&R prototypes.  Check the sprintf return values.
102975         Re-define EAFNOSUPPORT if not present.  Indent.
102977         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
102978         suggested by Bruno Haible <bruno@clisp.org>.
102980         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
102982         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
102984         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
102985         libgcrypt).
102987         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
102989         * lib/md2.h, lib/md2.c: New files.
102991 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
102993         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
102994         errno alone.  Problem reported by Frederic Jolliton.
102996 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
102998         * modules/verify (License): Change from GPL to LGPL.  This is a
102999         tiny module and there are apparently near-equivalents that are
103000         under the BSD license.
103002 2005-10-24  Simon Josefsson  <jas@extundo.com>
103004         * modules/sha1: Relicense to LGPL.
103006 2005-10-24  Simon Josefsson  <jas@extundo.com>
103008         * lib/md4.h: Shrink buffer size, now that we changed the type.
103010 2005-10-23  Simon Josefsson  <jas@extundo.com>
103012         * gnulib-tool (func_import): Fix --tests-base.
103014 2005-10-22  Simon Josefsson  <jas@extundo.com>
103016         * modules/arcfour (Depends-on): Need stdint.
103018 2005-10-22  Simon Josefsson  <jas@extundo.com>
103020         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
103021         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
103023 2005-10-22  Simon Josefsson  <jas@extundo.com>
103025         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
103026         suggested by Bruno Haible <bruno@clisp.org>.
103028 2005-10-22  Simon Josefsson  <jas@extundo.com>
103030         * lib/crc.h: Include stddef.h, for size_t.
103032 2005-10-22  Simon Josefsson  <jas@extundo.com>
103034         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
103035         arcfour_context struct (simplify test vector testing in GNU
103036         Shishi).
103038 2005-10-21  Simon Josefsson  <jas@extundo.com>
103040         * modules/des, modules/des-tests: New files.
103042         * modules/gc-des, modules/gc-des-tests: New files.
103044         * tests/test-des.c, tests/test-gc-des.c: New file.
103046 2005-10-21  Simon Josefsson  <jas@extundo.com>
103048         * modules/arctwo, modules/arctwo-tests: New files.
103050         * tests/test-arctwo.c: New file.
103052         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
103054         * tests/test-gc-arctwo.c: New file.
103056 2005-10-21  Simon Josefsson  <jas@extundo.com>
103058         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
103059         Bruno Haible <bruno@clisp.org>.
103061         * m4/gc-des.m4: New file.
103063 2005-10-21  Simon Josefsson  <jas@extundo.com>
103065         * m4/arctwo.m4: New file.
103067         * m4/gc-arctwo.m4: New file.
103069 2005-10-21  Simon Josefsson  <jas@extundo.com>
103071         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
103072         block.
103074 2005-10-21  Simon Josefsson  <jas@extundo.com>
103076         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
103077         <bruno@clisp.org>.
103079         * lib/hmac-sha1.c (hmac_sha1): Likewise.
103081         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
103082         Bruno Haible <bruno@clisp.org>.
103084         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
103085         <bruno@clisp.org>.
103087 2005-10-21  Simon Josefsson  <jas@extundo.com>
103089         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
103091 2005-10-21  Simon Josefsson  <jas@extundo.com>
103093         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
103095 2005-10-21  Simon Josefsson  <jas@extundo.com>
103097         * lib/des.h, lib/des.c: New files.
103099         * lib/gc-gnulib.c: Support DES.c
103101 2005-10-21  Simon Josefsson  <jas@extundo.com>
103103         * lib/arctwo.h, lib/arctwo.c: New files.
103105         * lib/gc-gnulib.c: Support ARCTWO.
103107 2005-10-21  Simon Josefsson  <jas@extundo.com>
103109         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
103110         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
103112 2005-10-21  Simon Josefsson  <jas@extundo.com>
103114         * gnulib-tool (func_import, func_create_testdir): Define automake
103115         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
103116         Makefile.am snippet),
103117         suggested by Bruno Haible <bruno@clisp.org>.
103119         * modules/gc (Makefile.am): Use it.
103121 2005-10-21  Bruno Haible  <bruno@clisp.org>
103123         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
103124         patch.
103126 2005-10-19  Simon Josefsson  <jas@extundo.com>
103128         * tests/test-gc-rijndael.c: New file.
103130         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
103132 2005-10-19  Simon Josefsson  <jas@extundo.com>
103134         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
103135         interface too.
103137 2005-10-19  Simon Josefsson  <jas@extundo.com>
103139         * tests/test-gc-arcfour.c: New file.
103141         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
103143 2005-10-19  Simon Josefsson  <jas@extundo.com>
103145         * modules/gc-md4, modules/gc-md4-tests: New file.
103147         * tests/test-gc-md4.c: New file.
103149 2005-10-19  Simon Josefsson  <jas@extundo.com>
103151         * m4/gc-md4.m4: New file.
103153 2005-10-19  Simon Josefsson  <jas@extundo.com>
103155         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
103156         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
103157         <kasal@ucw.cz>.
103159 2005-10-19  Simon Josefsson  <jas@extundo.com>
103161         * m4/gc-arcfour.m4: New file.
103163         * m4/gc-rijndael.m4: New file.
103165 2005-10-19  Simon Josefsson  <jas@extundo.com>
103167         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
103169 2005-10-19  Simon Josefsson  <jas@extundo.com>
103171         * lib/gc-gnulib.c: Support ARCFOUR.
103173 2005-10-19  Simon Josefsson  <jas@extundo.com>
103175         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
103176         support.
103178         * lib/gc.h: Add ECB enum type.
103180         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
103182 2005-10-18  Simon Josefsson  <jas@extundo.com>
103184         * tests/test-md5.c: New file.
103186         * modules/md5-tests: New file.
103188 2005-10-18  Simon Josefsson  <jas@extundo.com>
103190         * tests/test-md4.c: New file.
103192         * modules/md4, modules/md4-tests: New files.
103194 2005-10-18  Simon Josefsson  <jas@extundo.com>
103196         * m4/md4.m4: New file.
103198 2005-10-18  Simon Josefsson  <jas@extundo.com>
103200         * lib/md4.h, lib/md4.c: New files, based on md5.?.
103202 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
103204         * gnulib-tool (func_create_testdir): Omit the second check whether
103205         BUILT_SOURCES in nonempty.
103207 2005-10-17  Simon Josefsson  <jas@extundo.com>
103209         * tests/test-rijndael.c: New file.
103211 2005-10-17  Simon Josefsson  <jas@extundo.com>
103213         * modules/sha1: Depend on stdint instead of md5.
103215         * modules/md5: Depend on stdint, remove uint32_t.
103217 2005-10-17  Simon Josefsson  <jas@extundo.com>
103219         * modules/gc-sha1-tests: New file.
103221         * tests/test-gc-sha1.c: New file.
103223 2005-10-17  Simon Josefsson  <jas@extundo.com>
103225         * m4/md5.m4: Remove call to uint32_t.m4.
103227 2005-10-17  Simon Josefsson  <jas@extundo.com>
103229         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
103231         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
103232         md5.h.
103234         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
103236         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
103238 2005-10-17  Simon Josefsson  <jas@extundo.com>
103240         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
103242 2005-10-17  Simon Josefsson  <jas@extundo.com>
103244         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
103246 2005-10-17  Simon Josefsson  <jas@extundo.com>
103248         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
103250         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
103252 2005-10-17  Bruno Haible  <bruno@clisp.org>
103254         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
103255         that it can also be used in a test.
103257 2005-10-16  Bruno Haible  <bruno@clisp.org>
103259         * gnulib-tool (func_emit_tests_Makefile_am): Also define
103260         TESTS_ENVIRONMENT, so that individual tests can augment it.
103262         * gnulib-tool (func_create_testdir): Use an intermediate target for
103263         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
103264         macros, like $(ALLOCA_H), which cannot be passed through the command
103265         line.
103267 2005-10-15  Simon Josefsson  <jas@extundo.com>
103269         * modules/rijndael-tests: New file.
103271         * modules/rijndael: New file.
103273 2005-10-15  Simon Josefsson  <jas@extundo.com>
103275         * m4/rijndael.m4: New file.
103277 2005-10-15  Simon Josefsson  <jas@extundo.com>
103279         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
103281         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
103283 2005-10-14  Simon Josefsson  <jas@extundo.com>
103285         * tests/test-arcfour.c: New file.
103287         * modules/arcfour, modules/arcfour-tests: New files.
103289 2005-10-14  Simon Josefsson  <jas@extundo.com>
103291         * m4/arcfour.m4: New file.
103293 2005-10-14  Simon Josefsson  <jas@extundo.com>
103295         * lib/arcfour.h, lib/arcfour.c: New files.
103297 2005-10-14  Roland McGrath  <roland@redhat.com>
103299         Import from libc.  [BZ #1331]
103300         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
103301         macro argument.
103302         Reported by Matej Vela <vela@debian.org>.
103304 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103306         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
103307         include <wchar.h>; no longer needed.
103309 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
103311         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
103313 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
103314         and  Ulrich Drepper  <drepper@redhat.com>
103316         Import from libc.
103317         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
103318         instead of inline stream orientation test and two separate
103319         function calls.  Pay no attention to USE_IN_LIBIO.
103321 2005-10-13  Simon Josefsson  <jas@extundo.com>
103323         * modules/gc-hmac-md5-tests: New file.
103325         * tests/test-gc-hmac-sha1.c: New file.
103327         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
103329         * modules/gc-hmac-md5-tests: New file.
103331         * tests/test-gc-md5.c: New file.
103333         * modules/gc-md5-tests: New file.
103335 2005-10-13  Simon Josefsson  <jas@extundo.com>
103337         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
103338         Move memory allocation outside of loop.
103340 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
103342         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
103343         intermediate directory is in a read-only file system.  Problem
103344         reported by Eric Blake.
103346 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
103348         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
103350 2005-10-12  Simon Josefsson  <jas@extundo.com>
103352         * tests/test-hmac-sha1.c: New file.
103354         * modules/hmac-sha1-tests: New file.
103356         * modules/hmac-sha1: New file.
103358 2005-10-12  Simon Josefsson  <jas@extundo.com>
103360         * modules/gc-sha1: New file.
103362 2005-10-12  Simon Josefsson  <jas@extundo.com>
103364         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
103366         * tests/test-gc-pbkdf2-sha1.c: New file.
103368 2005-10-12  Simon Josefsson  <jas@extundo.com>
103370         * modules/gc-md5, modules/gc-hmac-md5: New files.
103372         * modules/gc (Files): Remove md5, memxor and hmac files.
103374 2005-10-12  Simon Josefsson  <jas@extundo.com>
103376         * m4/gc-pbkdf2-sha1.m4: New file.
103378         * m4/gc-hmac-sha1.m4: New file.
103380         * m4/gc-sha1: New file.
103382         * m4/hmac-sha1.m4: New file.
103384 2005-10-12  Simon Josefsson  <jas@extundo.com>
103386         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
103388         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
103390 2005-10-12  Simon Josefsson  <jas@extundo.com>
103392         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
103393         suggested by Bruno Haible <bruno@clisp.org>.
103395 2005-10-12  Simon Josefsson  <jas@extundo.com>
103397         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
103399 2005-10-12  Simon Josefsson  <jas@extundo.com>
103401         * lib/gc-pbkdf2-sha1.c: New file.
103403         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
103405 2005-10-12  Simon Josefsson  <jas@extundo.com>
103407         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
103409         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
103411 2005-10-12  Simon Josefsson  <jas@extundo.com>
103413         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
103414         GC_USE_HMAC_MD5, respectively.
103416         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
103417         (gc_md5): Fix typo.
103419         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
103421         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
103423         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
103425 2005-10-12  Bruno Haible  <bruno@clisp.org>
103427         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
103428         Reported by Stepan Kasal <kasal@ucw.cz>.
103430 2005-10-11  Simon Josefsson  <jas@extundo.com>
103432         * tests/test-crc.c: New file.
103434         * modules/crc, modules/crc-tests: New files.
103436 2005-10-11  Simon Josefsson  <jas@extundo.com>
103438         * m4/crc.m4: New file.
103440 2005-10-11  Simon Josefsson  <jas@extundo.com>
103442         * lib/gc.h: Add gc_hash and gc_hash_buffer.
103444         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
103446         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
103448 2005-10-11  Simon Josefsson  <jas@extundo.com>
103450         * lib/crc.h, lib/crc.c: New files.
103452         * lib/gc.h (gc_hash_buffer): Add doc.
103454 2005-10-11  Bruno Haible  <bruno@clisp.org>
103456         * modules/c-strcasestr: New file.
103457         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
103459 2005-10-11  Bruno Haible  <bruno@clisp.org>
103461         * modules/c-strcase: New file.
103462         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
103464 2005-10-11  Bruno Haible  <bruno@clisp.org>
103466         * lib/strcasecmp.c: Include limits.h.
103467         (strcasecmp): Avoid integer overflow on exotic platforms.
103468         * lib/strncasecmp.c: Include limits.h.
103469         (strncasecmp): Avoid integer overflow on exotic platforms.
103470         Reported by Paul Eggert.
103472 2005-10-11  Bruno Haible  <bruno@clisp.org>
103474         * lib/c-strcasestr.h: New file, from GNU gettext.
103475         * lib/c-strcasestr.c: New file, from GNU gettext.
103477 2005-10-11  Bruno Haible  <bruno@clisp.org>
103479         * lib/c-strcase.h: New file, from GNU gettext.
103480         * lib/c-strcasecmp.c: New file, from GNU gettext.
103481         * lib/c-strncasecmp.c: New file, from GNU gettext.
103483 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
103485         * modules/mempcpy (License): GPL -> LGPL.
103486         * modules/strchrnul (License): Likewise.
103487         * modules/sysexits (License): Likewise.
103489 2005-10-08  Simon Josefsson  <jas@extundo.com>
103491         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
103493 2005-10-07  Simon Josefsson  <jas@extundo.com>
103495         * m4/memxor.m4: Remove gl_C_RESTRICT call.
103497 2005-10-06  Simon Josefsson  <jas@extundo.com>
103499         * tests/test-hmac-md5.c: New file.
103501         * modules/hmac-md5-tests: New file.
103503         * modules/hmac-md5: New file.
103505 2005-10-06  Simon Josefsson  <jas@extundo.com>
103507         * m4/hmac-md5.m4: New file.
103509         * m4/memxor.m4: Require gl_C_RESTRICT.
103511 2005-10-06  Simon Josefsson  <jas@extundo.com>
103513         * lib/memxor.c (memxor): Avoid casts and warnings.
103515 2005-10-06  Simon Josefsson  <jas@extundo.com>
103517         * lib/hmac-md5.c: New file.
103519         * lib/hmac.h: New file.
103521 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
103523         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
103524         promotes to int, not unsigned int, to catch the AIX 5.3
103525         compiler bug.
103527 2005-10-05  Simon Josefsson  <jas@extundo.com>
103529         * modules/memxor: New file.
103531         * modules/iconv (Files): Move config.rpath to havelib, it is used
103532         there.
103534         * modules/havelib (Files): Add config.rpath.
103536 2005-10-05  Simon Josefsson  <jas@extundo.com>
103538         * m4/memxor.m4: New file.
103540 2005-10-05  Simon Josefsson  <jas@extundo.com>
103542         * lib/memxor.c (memxor): Fix compiler error.
103544         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
103545         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
103547         * lib/memxor.h, lib/memxor.c: New files.
103549         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
103550         we assume all systems have it, suggested by Jim Meyering
103551         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
103552         any systems lack sys/socket.h; mingw32 is known to lack it, but we
103553         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
103554         same reasons.
103556 2005-10-05  Simon Josefsson  <jas@extundo.com>
103558         * config/srclist.txt: Add glibc bug 1423 for md5.h.
103560 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
103562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
103563         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
103564         needed, since the source code now assumes these .h files.
103566 2005-10-05  Derek Price  <derek@ximbiot.com>
103568         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
103570 2005-10-05  Bruno Haible  <bruno@clisp.org>
103572         * modules/stdint (License): Change to LGPL.
103574 2005-10-04  Simon Josefsson  <jas@extundo.com>
103576         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
103577         D. Baushke" <mdb@gnu.org>.
103579 2005-10-04  Bruno Haible  <bruno@clisp.org>
103581         * lib/verify.h (verify_true): Provide alternative definition for C++.
103583 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
103585         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
103586         (SSIZE_MAX): New macro, if not already defined.
103587         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
103588         than 2 GiB.
103590 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103592         Sync from coreutils.
103593         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
103594         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
103595         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
103596         ULLONG_MAX doesn't work with 2.7.2.1.
103598 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103600         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
103601         From Ben Pfaff.
103603         * modules/exclude (Depends-on): Depend on verify.
103604         * modules/strtoimax (Depends-on): Likewise.
103605         * modules/utimecmp (Depends-on): Likewise.
103607 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
103609         * lib/exclude.c: Include verify.h.
103610         (verify): Remove.  All callers changed to use verify.h's version.
103611         * lib/strtoimax.c: Likewise.
103612         * lib/utimecmp.c: Likewis.e
103614         Sync from coreutils.
103615         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
103616         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
103617         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
103618         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
103619         bother returning ENOSYS if settimeofday or stime fails; just let
103620         them return whatever errno they want to return.
103621         * lib/utimens.c: Include unistd.h, for dup2.
103622         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
103623         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
103625 2005-10-02  Jim Meyering  <jim@meyering.net>
103627         Sync from coreutils.
103628         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
103629         from glibc-2.2.5 that fails for read-only files.
103631 2005-10-02  Jim Meyering  <jim@meyering.net>
103633         Sync from coreutils.
103634         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
103635         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
103636         `#if HAVE_CONFIG_H'.
103637         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
103638         Remove AT_FDCWD test.
103639         Do not consume the fd unless successful.
103640         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
103641         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
103642         block, so that we don't even try to compile it if settimeofday is
103643         available.  This works around a compilation failure on OSF1 V5.1,
103644         due to stime requiring a `long int*' while tv_sec is `int'.
103646 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
103648         Sync from coreutils.
103649         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
103650         against `yes', rather than just testing for nonempty.
103652 2005-10-01  Simon Josefsson  <jas@extundo.com>
103654         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
103655         and Darwin.
103657         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
103658         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
103659         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
103660         freeaddrinfo and gai_strerror are declared by the POSIX headers.
103661         Check if struct addrinfo is declared.
103663 2005-10-01  Simon Josefsson  <jas@extundo.com>
103665         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
103666         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
103667         AI_* and EAI_* definitions.  Protect function declarations.
103669 2005-10-01  Jim Meyering  <jim@meyering.net>
103671         Sync from coreutils.
103673         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
103674         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
103675         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
103676         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103677         in the inet and nsl libraries.  Required on Solaris 5.7.
103679 2005-10-01  Jim Meyering  <jim@meyering.net>
103681         Sync from coreutils.
103682         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
103683         in the inet and nsl libraries.  Required on Solaris 5.7.
103685 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
103687         * lib/getdelim.c (getdelim): Remove unused variables.
103689 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
103691         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
103692         so that the code works even with ancient cpp.  Portability problem
103693         with GCC 2.7.2.1 reported by Thomas M.Ott.
103695 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
103697         * modules/regex (Depends-on): Add strcase.
103699         * modules/gethostname (Licence): Change from GPL to LGPL, since
103700         gethostname.c is a trivial implementation of a standard library
103701         function.
103702         * modules/poll (License): Change from GPL to LGPL, since it's
103703         derived from LGPL code.
103705 2005-09-27  Jim Meyering  <jim@meyering.net>
103707         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
103708         HAVE_CONFIG_H.
103710         * lib/intprops.h (signed_type_or_expr__): Define.
103711         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
103712         for unsigned types.
103714 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
103716         * lib/verify.h (verify_expr): Remove, replacing with:
103717         (verify_true): New macro that returns true instead of void.
103718         (verify_type__): Remove.
103719         (verify): Use verify_true rather than verify_type__.
103721 2005-09-26  Bruno Haible  <bruno@clisp.org>
103723         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
103724         is necessary.
103725         (lib_SOURCES): Remove mbchar.c.
103726         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
103727         (Files): Add m4/mbrtowc.m4.
103728         * modules/mbiter: Likewise.
103729         * modules/mbuiter: Likewise.
103731 2005-09-26  Bruno Haible  <bruno@clisp.org>
103733         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
103734         compile mbchar.c if they are not both present.
103735         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
103736         * m4/mbiter.m4 (gl_MBITER): Likewise.
103737         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
103738         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
103739         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
103741 2005-09-25  Jim Meyering  <jim@meyering.net>
103743         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
103744         also uses socklen_t.
103746 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
103748         * lib/utimens.c (ENOSYS): Define if not already defined.
103749         (futimens): Support having a null PATH if the file descriptor
103750         is nonnegative.
103752         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
103753         Remove.
103754         (__attribute): Define to empty unless GCC 3.1 or later.
103755         This works around a core dump on OpenBSD 3.4, which has GCC
103756         2.95.3, which dumps core when given __attribute__(()).  It also
103757         simplifies other tests, since we really don't want to bother with
103758         worrying about which ancient version of GCC supported what.
103759         Original problem reported by Yoann Vandoorselaere, with part of
103760         the fix suggested by Derek Price.
103762 2005-09-24  Jim Meyering  <jim@meyering.net>
103764         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
103765         so we can once again use a positive bitfield width of 1 -- now we
103766         don't have to explain why we were using a bitfield width of 2.
103768 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103770         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
103771         and similarly for the other external symbols.  Problem reported
103772         by James Gallager.
103774         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
103775         bug reported by Jim Meyering.
103777         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
103778         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
103779         not needed, since socklen is a prerequisite module.
103781 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
103783         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
103784         Problem reported by Eric Blake.
103785         (getaddrinfo): Initialize se so that it's not garbage.
103786         Redo internal storage allocation so that it doesn't make unportable
103787         assumptions about alignment.
103788         Fix a memory leak.
103790         * lib/utimens.c (futimens): Use futimesat if available.
103791         Prefer it to futimes since it doesn't have the futimes bug.
103793         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
103794         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
103795         Instead, declare a function that returns a pointer to an array,
103796         and use verify_type__ to declare the size of the array.
103797         Problem and germ of a solution reported by Bruno Haible.
103798         (verify_type__): Use 2, not 1, for bitfield size, to avoid
103799         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
103801 2005-09-23  Jim Meyering  <jim@meyering.net>
103803         Sync from coreutils.
103804         Correct build failure (socklen_t not defined) on at least
103805         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
103806         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
103808 2005-09-23  Jim Meyering  <jim@meyering.net>
103810         * modules/getaddrinfo (Depends-on): Add socklen.
103812 2005-09-23  Bruno Haible  <bruno@clisp.org>
103814         * tests/test-verify.c: New file.
103816 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103818         Sync from coreutils.
103820         * modules/argmatch (Depends-on): Add verify.
103821         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
103822         unistd-safer.
103823         * modules/save-cwd (Depends-on): Likewise.
103825         * modules/openat (Files): Add lib/openat-die.c.
103826         (Depends-on): Remove error, exitfail.
103827         Add dirname.
103829         * modules/verify: New file.
103830         * MODULES.html.sh (Diagnostics <assert.h>): New section,
103831         with "verify" module.
103833 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103835         Sync from coreutils.
103837         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
103838         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
103839         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
103840         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
103841         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
103842         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
103843         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
103844         Don't bother checking for string.h, stdlib.h, unistd.h.
103845         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
103846         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
103847         module's job.
103848         * m4/jm-macros.m4 (gl_MACROS): Likewise.
103849         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
103851         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
103852         (gl_GETDATE): Use it.
103854         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
103856 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103858         Sync from coreutils.
103860         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
103861         stat-time.h.
103862         * lib/argmatch.h: Include verify.h
103863         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
103864         (ARGMATCH_ASSERT): Remove; unused.
103865         * lib/canonicalize.c: Assume STDC_HEADERS.
103866         * lib/exclude.c: Include "strcase.h".
103867         * lib/regex_internal.h [!defined _LIBC]: Likewise.
103868         * lib/getusershell.c: Include stdio--.h rather than stdio.h
103869         and stdio-safer.h.
103870         (getusershell): Call fopen, not fopen_safer.
103871         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
103872         Do not include unistd-safer.h.
103873         (save_cwd): Don't call fd_safer; no longer needed
103874         now that we include fcntl--.h.
103876         * lib/getdate.y (relative_time): New type.
103877         (RELATIVE_TIME_0): New constant.
103878         (parser_control): Use relative_time instead of doing it ourselves.
103879         (%union): Add new relative_time rel member.
103880         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
103881         Now typeless.
103882         (relunit, relunit_snumber): Now of type rel.
103883         (zone, rel, relunit, get_date): Adjust to above changes.
103885         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
103886         Do not include unistd-safer.h.
103887         (getloadavg): Don't call fd_safer; no longer needed
103888         now that we include fcntl--.h.
103890         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
103891         (make_dir_parents): Treat ENOSYS like EEXIST.
103893         Improve quality of diagnostics on restore_cwd failure.
103894         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
103895         (make_dir_parents): Last arg is now int * (for errno), not bool *.
103896         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
103897         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
103898         each time through the loop.  Do not diagnose restore_cwd failure;
103899         that is the caller's job (and perhaps the caller does not care).
103901         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
103902         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
103903         If the file already exists but is not a directory, don't bother
103904         to try to make its parents.
103905         Close potential file descriptor leak if we can't chdir("/") (!).
103906         Don't always return true if chdir($PWD) fails; return true only
103907         if the requested action was done successfully (except for the
103908         chdir($PWD)).
103909         Don't log final directory unless we actually made it.
103910         Refactor to avoid duplicate code to fix up permissions.
103911         Don't attempt to fix up parent permissions if chdir($PWD) fails.
103913         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
103914         to make it a bit faster and (I hope) clearer.
103915         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
103916         Fix bug in formats like %2N.
103918         * lib/verify.h: New file.
103920 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
103922         Sync from coreutils.
103923         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
103925 2005-09-22  Jim Meyering  <jim@meyering.net>
103927         Sync from coreutils.
103929         * m4/lstat.m4 (gl_FUNC_LSTAT):
103930         Use AC_LIBSOURCES to require lstat.c and lstat.h.
103931         Remove obsolete comment.
103932         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
103933         * m4/xstrtod.m4: Likewise.
103935         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
103937 2005-09-22  Jim Meyering  <jim@meyering.net>
103939         Sync from coreutils.
103941         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
103943         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
103944         the .tm_year member, since otherwise gcc-4.0 would now warn about
103945         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
103947         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
103948         order to avoid an unsuppressible warning from gcc on 64-bit systems.
103950         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
103951         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
103952         when run in a time zone for which daylight savings time is in effect
103953         for the starting date.
103955         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
103956         stop us from restricting permissions of just-created absolute-named
103957         directories.
103958         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
103959         to restore initial working directory.
103960         * lib/mkdir-p.c (make_dir_parents): New parameter:
103961         different_working_dir, to tell caller if/when we change the working
103962         directory and are unable to return to the initial one.
103963         * lib/mkdir-p.h (make_dir_parents): Update prototype.
103964         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
103965         `return false'.  This fixes a bug introduced on 2004-07-30.
103967         * lib/openat.c (fdopendir): Be sure to close the supplied
103968         file descriptor before returning.  This makes our replacement
103969         implementation a little closer to Solaris's, where fdopendir
103970         ties the file descriptor to the returned DIR* pointer.
103971         * lib/openat.c (unlinkat): New function.
103972         * lib/openat.h (unlinkat): Add prototype.
103973         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
103974         (openat_restore_fail): Rename from openat_restore_die.
103975         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
103977         Provide an alternative to exiting immediately upon save_cwd or
103978         restore_cwd failure.  Now, an application can arrange e.g.,
103979         to perform a longjump in that case.
103980         * lib/openat.c: Include dirname.h.
103981         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
103982         (rpl_openat, fdopendir, fstatat): Call openat_save_die
103983         and openat_restore_die rather than calling error directly.
103984         Don't include "error.h" or "exitfail.h"; they're no longer needed.
103986         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
103987         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
103988         define.
103990         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
103991         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
103992                             int utc, int nanoseconds);
103993         Background:
103994         date should not have to allocate a megabyte of virtual memory to
103995         handle a format argument like +%1048575T.  When implemented with
103996         strftime, it must allocate such a buffer, use strftime to fill it
103997         in, print it, then free it.
103998         With fprintftime, it simply prints everything and exits.
103999         With no need for memory allocation, that's one fewer way to fail.
104000         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
104001         optional field width, not before, so we accept %9:z, not %:9z.
104002         (my_strftime): Be sure to use L_('x') for literals.
104004         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
104005         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
104006         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
104007         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
104008         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
104009         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
104010         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
104011         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
104012         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
104013         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
104014         * lib/xgethostname.c, lib/xreadlink.c:
104015         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
104017         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
104018         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
104019         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
104020         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
104021         and don't include <sys/file.h>).
104023 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
104025         Sync from coreutils.
104027         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
104028         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
104029         [!LDAV_DONE]: Avoid unused variable warning.
104031 2005-09-21  Bruno Haible  <bruno@clisp.org>
104033         * lib/unicodeio.h (unicode_to_mb): New declaration.
104035 2005-09-20  Derek Price  <derek@ximbiot.com>
104037         * lib/getaddrinfo.c: Don't include <netdb.h> included from
104038         getaddrinfo.h.
104040 2005-09-20  Bruno Haible  <bruno@clisp.org>
104042         * gnulib-tool: Remove trailing slashes from the values specified for
104043         --source-base, --m4-base, --tests-base, --aux-dir.
104044         Suggested by Simon Josefsson <jas@extundo.com>.
104046 2005-09-20  Bruno Haible  <bruno@clisp.org>
104048         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
104049         func_modules_to_filelist, func_import, func_create_testdir): Make all
104050         sorting results locale-independent, so that gnulib-cache.m4 doesn't
104051         change when gnulib-tool is invoked in a different locale.
104053 2005-09-19  Simon Josefsson  <jas@extundo.com>
104055         * m4/socklen.m4: Fix typo.
104057 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104059         Use a consistent style for including <config.h>.
104060         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
104061         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
104062         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
104063         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
104064         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
104065         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
104066         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
104067         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
104068         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
104069         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
104070         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
104071         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
104072         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
104073         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
104074         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
104075         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
104076         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
104077         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
104078         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
104079         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
104080         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
104081         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
104082         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
104083         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
104084         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
104085         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
104086         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
104087         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
104088         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
104089         lib/xstrtoumax.c, lib/yesno.c:
104090         Standardize inclusion of config.h.
104091         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
104092         lib/inttostr.h:  Removed inclusion of config.h from header files.
104093         * lib/inttostr.c:  Adjusted in-tree users.
104094         * lib/timespec.h: Remove superfluous warning to include config.h.
104095         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
104096         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
104097         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
104098         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
104099         config.h with HAVE_CONFIG_H.
104101 2005-09-19  Jim Meyering  <jim@meyering.net>
104103         * modules/pathmax (License): Change to LGPL.
104105 2005-09-19  Derek Price  <derek@ximbiot.com>
104107         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
104109 2005-09-19  Bruno Haible  <bruno@clisp.org>
104111         * gnulib-tool (import): Provide default for --tests-base.
104113 2005-09-19  Bruno Haible  <bruno@clisp.org>
104115         * doc/quote.texi: New file, extracted from gnulib.texi.
104116         * doc/ctime.texi: New file, extracted from gnulib.texi.
104117         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
104118         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
104119         * doc/gnulib.texi: Include them.
104121 2005-09-18  Bruno Haible  <bruno@clisp.org>
104123         Portability fix.
104124         * gnulib-tool (func_readlink): New function.
104125         (func_ln_if_changed): Use it.
104127 2005-09-18  Bruno Haible  <bruno@clisp.org>
104129         * gnulib-tool: Support --with-tests also with --import.
104130         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
104131         (func_import): Use variables $testsbase and $inctests. Emit a
104132         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
104133         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
104134         SUBDIRS += $testsdir.
104135         (func_create_testdir): Update.
104137 2005-09-18  Bruno Haible  <bruno@clisp.org>
104139         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
104140         instead of $dry_run.
104141         (func_cp_if_changed, func_mv_if_changed): Remove functions.
104142         (func_ln_if_changed): Don't handle dry-run here.
104143         (func_import): In dry-run mode, detect more precisely which actions
104144         would be performed, and don't use "...ing" verbs.
104146 2005-09-18  Bruno Haible  <bruno@clisp.org>
104148         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
104149         (func_import): Use join on two temporary files instead of three nested
104150         loops, in order to determine which files are new or old.
104152 2005-09-18  Bruno Haible  <bruno@clisp.org>
104154         * gnulib-tool (func_import): Comment out code that spits out the
104155         new files with --dry-run.
104157 2005-09-18  Bruno Haible  <bruno@clisp.org>
104159         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
104161 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104163         * lib/stat-time.h: New file.
104164         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
104165         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
104166         in a different way.
104167         (timespec_cmp): New function.
104168         * lib/utimecmp.c: Include stat-time.h.
104169         (SYSCALL_RESOLUTION): Depend on whether various struct stat
104170         members exist, not on the obsolescent ST_MTIM_NSEC.
104171         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
104173 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104175         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
104177 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
104179         * MODULES.html.sh (File system functions): Add stat-time.
104180         * modules/stat-time: New file.
104181         * modules/timespec (Files): Remove m4/st_mtim.m4; this
104182         is now done in a different way, by the stat-time module.
104183         * modules/utimecmp (Depends-on): Add stat-time.
104185 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
104187         * m4/st_mtim.m4: Remove.  Superseded by...
104188         * m4/stat-time.m4: New file.
104189         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
104190         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
104192 2005-09-15  Derek Price  <derek@ximbiot.com>
104194         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
104196 2005-09-15  Derek Price  <derek@ximbiot.com>
104198         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
104199         * lib/regex_internal.c: Ditto, using this...
104200         (__GNUC_PREREQ): ...new macro.
104201         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
104202         using...
104203         (__GNUC_PREREQ): ...this new macro.
104205         * lib/strstr.h: Include string.h. Define strstr as a macro here.
104207 2005-09-15  Derek Price  <derek@ximbiot.com>
104208             Paul Eggert  <eggert@cs.ucla.edu>
104210         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
104211         changes, consolidating in...
104212         * lib/regex_internal.h: ...this file.
104214 2005-09-13  Jim Meyering  <jim@meyering.net>
104216         * lib/canon-host.c: Filter through gnu indent and reword comments
104217         slightly.
104218         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
104220 2005-09-13  Derek Price  <derek@ximbiot.com>
104222         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
104223         failure.
104224         Reported by Jim Meyering  <jim@meyering.net>.
104226 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
104228         * lib/base64.c: Typo.
104229         (base64_encode): Put b64str in initialized data section.
104231 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
104233         Merge glibc and coreutils changes into gnulib, plus a few
104234         extra fixes.
104235         * lib/md5.c: Use #error rather than a string.
104236         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
104237         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
104238         (__attribute__): Define to empty for non recent-GCC.
104239         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
104240         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
104241         Renamed from their non-__ counterparts, with new macros replacing
104242         them if not _LIBC.  Add __THROW attribute.
104243         (rol): Remove.
104244         (struct md5_ctx): Align buffer if using GCC.
104245         * lib/sha1.h (struct sha1_ctx): Likewise.
104246         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
104247         The old name was backwards.
104248         (NOTSWAP): Remove; not used.
104249         (rol): New macro, moved here from md5.h.
104250         (sha1_process_block): Remove a FIXME that doesn't make sense.
104252 2005-09-12  Derek Price  <derek@ximbiot.com>
104254         Return usable errors from canon-host.
104255         * lib/canon-host.h: New file.
104256         * lib/canon-host.c (canon_host): Wrap...
104257         (canon_host_r): ...this new function, which now relies exclusively on
104258         getaddrinfo.
104259         (ch_strerror): New function.
104260         (last_cherror): New global.
104261         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
104262         interface.
104263         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
104264         void *.
104265         (freeaddrinfo): Free ai->ai_canonname when set.
104267 2005-09-12  Derek Price  <derek@ximbiot.com>
104269         Make canon-host require getaddrinfo.
104270         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
104271         AC_LIBSOURCE canon-host.h.  Call...
104272         (gl_PREREQ_CANON_HOST): ...this new function, which requires
104273         gl_GETADDRINFO.
104274         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
104276 2005-09-12  Derek Price  <derek@ximbiot.com>
104278         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
104279         LGPL.
104280         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
104282 2005-09-12  Derek Price  <derek@ximbiot.com>
104284         * lib/gai_strerror.c: Include config.h when available.  Include
104285         getaddrinfo.h before other headers to test interface.
104286         Reported by Larry Jones <lawrence.jones@ugs.com>.
104288 2005-09-12  Derek Price  <derek@ximbiot.com>
104289             Paul Eggert  <eggert@cs.ucla.edu>
104291         * modules/glob (Files): Add glob-libc.h.
104293 2005-09-12  Derek Price  <derek@ximbiot.com>
104294             Paul Eggert  <eggert@cs.ucla.edu>
104296         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
104297         glob_.h, glob-libc.h.
104298         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
104300 2005-09-12  Derek Price  <derek@ximbiot.com>
104301             Paul Eggert  <eggert@cs.ucla.edu>
104303         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
104304         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
104305         protecting things that should be done only in gnulib contexts.
104306         * lib/glob_.h: New file, containing only the glob things needed for
104307         gnulib.
104308         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
104309         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
104310         (glob, globfree, glob_pattern_p): Now defined simply in terms of
104311         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
104312         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
104313         and to respect the namespace rules better.
104315 2005-09-08  Simon Josefsson  <jas@extundo.com>
104317         * modules/socklen: New file.
104319 2005-09-08  Simon Josefsson  <jas@extundo.com>
104321         * m4/socklen.m4: New file.
104323 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104325         * modules/utimens (Files): Add m4/utimbuf.m4, since
104326         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
104327         Reported by Sergey Poznyakoff.
104329 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104331         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
104332         definitions, since that's the preferred style in glibc.
104333         Fix a minor spacing issue, and update copyright notice to match
104334         glibc's.
104336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
104338         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
104340 2005-09-06  Simon Josefsson  <jas@extundo.com>
104342         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
104343         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
104345 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104347         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
104348         warning.
104350 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
104352         * config/srclist.txt: Add glibc bug 1302.
104354 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
104356         Change bitset word type from unsigned int to unsigned long int,
104357         as this has better performance on typical 64-bit hosts.
104358         Port bitset code to hosts with unusual word sizes.
104359         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
104360         (build_collating_symbol):
104361         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
104362         argument is a bitset.  This is merely a style issue, but it makes
104363         it clearer that an entire array is expected.
104364         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
104365         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
104366         Port to the case where bitset_word is not the same as unsigned int.
104367         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104368         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
104369         Likewise.
104370         * lib/regexec.c (check_dst_limits_calc_pos_1,
104371         check_subexp_matching_top):
104372         (build_trtable, group_nodes_into_DFAstates):
104373         Likewise.
104374         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
104375         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
104376         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
104377         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
104378         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
104379         * lib/regcomp.c (optimize_subexps, lower_subexp):
104380         Work even if bitset_word has holes in its bitwise representation.
104381         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
104382         * lib/regexec.c (check_dst_limits_calc_pos_1,
104383         check_subexp_matching_top):
104384         Likewise.
104385         * lib/regex_internal.c (re_string_reconstruct):
104386         Don't assume UCHAR_MAX == 255.
104387         * lib/regex_internal.h (bitset_set_all): Likewise.
104388         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
104389         All uses changed.
104390         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
104391         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
104392         All uses changed.
104393         (BITSET_WORD_MAX): New macro.
104394         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
104395         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
104396         (bitset_empty, bitset_copy):
104397         Prefer sizeof (bitset) to multiplying it out ourselves.
104398         (bitset_not_merge): Remove; unused.
104399         (bitset_contain): Return bool, not unsigned int with one bit on.
104400         All callers changed.
104401         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
104402         alignment than re_node_set; do this by defining a new internal
104403         type struct dests_alloc and using it to allocate memory.
104405 2005-09-05  Bruno Haible  <bruno@clisp.org>
104407         * gnulib-tool (func_import): Fix comparison in handling of symbolic
104408         links.
104410 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
104412         * modules/size_max (Makefile.am): Add size_max.h
104414 2005-09-04  Derek Price  <derek@ximbiot.com>
104416         * gnulib-tool (func_import): Fix reversed $symbolic logic.
104418 2005-09-03  Simon Josefsson  <jas@extundo.com>
104420         * gnulib-tool: Fix typo.
104422 2005-09-03  Simon Josefsson  <jas@extundo.com>
104424         * config/srclist.txt: Add glibc bug 1293.
104426 2005-09-03  Derek Price  <derek@ximbiot.com>
104428         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
104429         From Larry Jones <lawrence.jones@ugs.com>.
104431 2005-09-02  Simon Josefsson  <jas@extundo.com>
104433         * modules/socklen: New file.
104435 2005-09-02  Simon Josefsson  <jas@extundo.com>
104437         * modules/havelib: New module.
104439         * modules/gettext, modules/iconv, modules/lock, modules/readline:
104440         Use havelib.
104442 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104444         Check for arithmetic overflow when calculating sizes, to prevent
104445         some buffer-overflow issues.  These patches are conservative, in the
104446         sense that when I couldn't determine whether an overflow was possible,
104447         I inserted a run-time check.
104448         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
104449         macros.
104450         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
104451         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
104452         (re_xnrealloc, re_x2nrealloc): New inline functions.
104453         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
104454         parse_bracket_exp):
104455         (build_equiv_class, build_charclass): Check for arithmetic overflow
104456         in size expression calculations.
104457         * lib/regex_internal.c (re_string_realloc_buffers):
104458         (build_wcs_upper_buffer, re_node_set_add_intersect):
104459         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
104460         (re_dfa_add_node, register_state): Likewise.
104461         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
104462         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
104463         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
104464         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
104466 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
104468         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
104469         m4/ulonglong.m4.  Problem reported by Martin Lambers.
104471 2005-09-02  Bruno Haible  <bruno@clisp.org>
104473         Support for lib vs. lib64 distinction on biarch platforms.
104474         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
104475         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
104476         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
104478 2005-09-02  Bruno Haible  <bruno@clisp.org>
104480         * gnulib-tool (import): In the other first-use case, provide defaults
104481         as well.
104483 2005-09-02  Bruno Haible  <bruno@clisp.org>
104485         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
104486         patches not yet found in the latest gettext release.
104488 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104490         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
104491         to avoid a collision with bits/local_lim.h in glibc.
104492         All uses changed.  Problem reported by Dmitry V. Levin in
104493         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
104495         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
104496         bugs in int versus size_t comparisons.
104497         (re_string_context_at): Fix bug where the code assumed that
104498         Idx is signed.
104500         Use bool where appropriate.
104501         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
104502         All callers changed.
104503         (calc_eclosure_iter): Likewise, for ROOT arg.
104504         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
104505         (build_charclass_op): Likewise, for NON_MATCH arg.
104506         * lib/regex_internal.c (re_string_allocate, re_string_construct):
104507         (re_string_construct_common): Likewise, for ICASE arg.
104508         * lib/regexec.c (re_search_2_stub, re_search_stub):
104509         Likewise, for RET_LEN arg.
104510         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
104511         (set_regs): Likewise, for FL_BACKTRACK arg.
104512         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
104513         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
104514         (calc_eclosure_iter, parse_bracket_exp):
104515         Use bool for internal variables that are booleans.
104516         * lib/regexec.c (re_search_internal, check_matching,
104517         proceed_next_node):
104518         (set_regs, build_sifted_states, sift_states_bkref):
104519         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
104520         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
104521         (find_collation_sequence_value):
104522         Likewise.
104523         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
104524         (re_node_set_compare):
104525         Return bool, not int. All callers changed.
104526         * lib/regexec.c (check_halt_node_context, check_dst_limits):
104527         (build_trtable, check_node_accept): Likewise.
104528         * lib/regex_internal.h: Include stdbool.h.
104530         Fix bugs uncovered when converting to bool.
104531         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
104532         failure instead of charging ahead blindly.
104533         * lib/regex_internal.c (register_state): Likewise.
104534         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
104535         for freeing internal storage.
104536         (group_nodes_into_DFA_states): Use unsigned int, not int, for
104537         bitset pieces used as boolean, to avoid undefined behavior
104538         on hosts that do int overflow checking.
104540 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
104542         * config/srclist.txt: Add glibc bugs 1285-1287.
104544 2005-09-01  Jim Meyering  <jim@meyering.net>
104546         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
104547         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
104548         Require gl_STAT_MACROS, too.
104550 2005-09-01  Bruno Haible  <bruno@clisp.org>
104552         * gnulib-tool (import): In the first-use case, provide defaults.
104554 2005-09-01  Bruno Haible  <bruno@clisp.org>
104556         * gnulib-tool (func_import): Remove the .tmp files.
104558 2005-09-01  Bruno Haible  <bruno@clisp.org>
104560         * gnulib-tool (func_import): Fix handling of symbolic links.
104562 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104564         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
104565         old glibc regex code mishandles strings longer than 2**31 bytes.
104566         This patch fixes this when the regex code is used in gnulib
104567         (i.e., outside glibc).
104569         This patch should not affect the use of the regex code inside
104570         glibc.  No doubt this problem also needs to be handled for glibc
104571         as well, but the result will be an incompatible change to the
104572         glibc ABI, and the old ABI will have to be supported too.  That
104573         can be the subject for another patch.
104575         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
104576         governing whether the rest of this patch is active.  By default,
104577         the macro is disabled and the patch has no effect.
104578         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
104579         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
104580         (struct re_pattern_buffer, re_search, re_search_2, re_match):
104581         (re_match_2, re_set_registers): Use the new types.
104582         * lib/regex_internal.h (Idx, re_hashval_t): New types.
104583         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
104584         New macros.
104585         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
104586         (re_string_context_at, bin_tree_t, re_dfastate_t):
104587         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
104588         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
104589         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
104590         (re_string_char_size_at, re_string_wchar_at):
104591         (re_string_elem_size_at):
104592         Use the new types and macros to port to 64-bit hosts.
104593         Use unsigned types for internal values, so that the code
104594         mostly works even for arrays larger than SSIZE_MAX.
104595         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
104596         (search_duplicated_node, calc_eclosure_iter, fetch_number):
104597         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
104598         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
104599         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
104600         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
104601         (calc_inveclosure, parse_dup_op, build_range_exp):
104602         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
104603         (fetch_number, create_token_tree, mark_opt_subexp):
104604         Likewise.
104605         * lib/regex_internal.c (re_string_construct_common,
104606         create_ci_newstate):
104607         (create_cd_newstate, re_string_allocate, re_string_construct):
104608         (re_string_realloc_buffers, build_wcs_upper_buffer):
104609         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
104610         (re_string_reconstruct, re_string_peek_byte_case):
104611         (re_string_fetch_byte_case, re_string_context_at):
104612         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
104613         (re_node_set_init_copy, re_node_set_add_intersect):
104614         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104615         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104616         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
104617         (re_acquire_state, re_acquire_state_context, register_state):
104618         Likewise.
104619         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
104620         search_cur_bkref_entry):
104621         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
104622         (re_search_internal, re_search_2_stub, re_search_stub)
104623         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
104624         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
104625         (update_cur_sifted_state, check_dst_limits):
104626         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104627         (check_subexp_limits, sift_states_bkref, merge_state_array):
104628         (check_subexp_matching_top, get_subexp, get_subexp_sub):
104629         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
104630         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
104631         (expand_bkref_cache, check_node_accept_bytes):
104632         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
104633         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
104634         (acquire_init_state_context, check_halt_node_context):
104635         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
104636         (sift_states_backward, clean_state_log_if_needed):
104637         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
104638         (find_recover_state, transit_state_sb, transit_state_mb):
104639         (transit_state_bkref, build_trtable, match_ctx_clean):
104640         Likewise.
104641         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
104642         to work around an assumption that REG_MISSING is negative.
104644         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
104645         (seek_collating_symbol_entry) [defined _LIBC]:
104646         (lookup_collation_sequence_value) [defined _LIBC]:
104647         (build_range_exp, build_collating_symbol) [defined _LIBC]:
104648         Use prototypes rather than old-style function definitions.
104649         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
104650         (transit_state_sb) [0]:
104651         (find_collation_sequence_value) [defined _LIBC]: Likewise.
104653         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
104654         rm_eo.
104656         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
104657         (optimize_subexps, lower_subexp):
104658         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
104659         since the signed shift might overflow.  Use 1u<<31 instead.
104660         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
104661         Likewise.
104662         * lib/regexec.c (check_dst_limits_calc_pos_1,
104663         check_subexp_matching_top): Likewise.
104665         * lib/regcomp.c (optimize_subexps, lower_subexp):
104666         Use CHAR_BIT rather than 8, for clarity.
104667         * lib/regexec.c (check_dst_limits_calc_pos_1):
104668         (check_subexp_matching_top): Likewise.
104669         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
104670         have to worry about portability issues when shifting it left.
104671         Remove no-longer-needed test for table_size > 0.
104672         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
104673         in a word, as the resulting behavior is undefined.
104674         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
104675         in one case, a <= should have been an <, and in another case the
104676         whole test was missing.
104677         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
104678         the standard name CHAR_BIT.
104679         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
104680         this is not true on one's complement and signed-magnitude hosts.
104682         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
104683         next_last_offset.
104684         (struct re_dfa_t): Remove unused member states_alloc.
104685         * lib/regcomp.c (init_dfa): Don't initialize unused members.
104687 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104689         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
104690         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
104691         and large-file glibc and in 32-bit large-file Solaris.
104693 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104695         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
104696         lengths fit in regoff_t; this isn't true if regoff_t is the same
104697         width as size_t.
104698         * lib/regex.c (re_search_internal): 5th arg is LAST_START
104699         (= START + RANGE) instead of RANGE.  This avoids overflow
104700         problems when regoff_t is the same width as size_t.
104701         All callers changed.
104702         (re_search_2_stub): Check for overflow when adding the
104703         sizes of the two strings.
104704         (re_search_stub): Check for overflow when adding START
104705         to RANGE; if it occurs, substitute the extreme value.
104707 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
104709         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
104711 2005-08-31  Jim Meyering  <jim@meyering.net>
104713         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
104714         a pointer-to-const.
104715         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
104716         (register_state): Likewise.
104717         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
104718         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
104719         (group_nodes_into_DFAstates): Likewise.
104721 2005-08-31  Jim Meyering  <jim@meyering.net>
104723         * check-module: Add a FIXME comment.
104725 2005-08-31  Eric Blake  <ebb9@byu.net>
104727         * modules/unistd-safer (Files): Add unistd--.h.
104728         * modules/stdio-safer (Files): Add stdio--.h.
104730 2005-08-31  Derek Price  <derek@ximbiot.com>
104732         * lib/getdelim.c (getdelim): Return EOF on EOF.
104733         Reported by Larry Jones <lawrence.jones@ugs.com>.
104735 2005-08-31  Bruno Haible  <bruno@clisp.org>
104737         Avoid unnecessary diffs in the generated lib/Makefile.am.
104738         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
104739         the generated files.
104740         (func_import): Don't set cmd.
104742 2005-08-31  Bruno Haible  <bruno@clisp.org>
104744         * lib/strstr.c: Include <stddef.h>, for NULL.
104745         * lib/strcasestr.c: Likewise.
104746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
104748 2005-08-31  Bruno Haible  <bruno@clisp.org>
104750         * gnulib-tool: New option --macro-prefix.
104751         (func_import): Use macro_prefix.
104752         (import): Handle option --macro-prefix.
104754 2005-08-31  Bruno Haible  <bruno@clisp.org>
104756         * gnulib-tool (import): Rename most ac_* variables to cached_*.
104757         Also use new variables cached_lgpl, cached_libtool.
104759 2005-08-31  Bruno Haible  <bruno@clisp.org>
104761         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
104762         always instantiating them.
104764 2005-08-31  Bruno Haible  <bruno@clisp.org>
104766         * gnulib-tool (func_import): Read the previous cached settings
104767         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
104768         earlier added by gnulib but are now dropped. Warn when a gnulib file
104769         overwrites a non-gnulib file.
104771 2005-08-31  Bruno Haible  <bruno@clisp.org>
104773         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
104774         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
104775         projects that don't keep autogenerated files in CVS. Put into
104776         actioncmd only the specified modules, not the transitive closure.
104778 2005-08-31  Bruno Haible  <bruno@clisp.org>
104780         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
104781         Create directories that shall be filled.
104782         (import): Don't look for gl_* macros in configure.ac. Recurse across
104783         all directories containing a gnulib-cache.m4 files, if meaningful.
104785 2005-08-31  Bruno Haible  <bruno@clisp.org>
104787         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
104788         (import): Set seen_libtool when we see gl_LIBTOOL.
104790 2005-08-31  Bruno Haible  <bruno@clisp.org>
104792         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
104793         declaration macro definitions from generated gnulib.m4.
104795 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
104797         * lib/iconvme.h: Add prototype for iconv_alloc.
104799 2005-08-29  Simon Josefsson  <jas@extundo.com>
104801         * lib/iconvme.c: Fix errno.
104803 2005-08-29  Bruno Haible  <bruno@clisp.org>
104805         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
104806         that it works when the directory contains spaces.
104808 2005-08-29  Bruno Haible  <bruno@clisp.org>
104810         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
104812 2005-08-29  Bruno Haible  <bruno@clisp.org>
104814         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
104815         Emit more advice.
104817 2005-08-29  Bruno Haible  <bruno@clisp.org>
104818         and Stepan Kasal  <kasal@ucw.cz>
104820         * check-module: If more parameters are given, check each of them
104821         separately; add more exceptions, as noted by Jim Meyering.
104822         (check_module): New procedure.
104823         (%exempt_header): Now contains all exceptions.
104825 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
104827         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
104829 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
104831         * lib/iconvme.c: Split iconv_string into iconv_alloc.
104833 2005-08-28  Bruno Haible  <bruno@clisp.org>
104835         * m4/gnulib-tool.m4: New file.
104837 2005-08-27  Jim Meyering  <jim@meyering.net>
104839         * modules/unistd-safer (Files): Add pipe-safer.c.
104840         * modules/fcntl-safer (Files): Add creat-safer.c.
104842 2005-08-27  Jim Meyering  <jim@meyering.net>
104844         * m4/stdlib-safer.m4: New file.  From coreutils.
104845         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
104846         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
104847         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
104848         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
104849         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
104851 2005-08-27  Jim Meyering  <jim@meyering.net>
104853         * lib/fopen-safer.c: Merge minor changes from coreutils.
104854         * lib/dup-safer.c: Likewise.
104855         * lib/fd-safer.c: Likewise.
104857         Merge from coreutils.
104858         * lib/stdio--.h: New file.
104859         * lib/stdlib--.h: New file.
104860         * lib/mkstemp-safer.c: New file.
104862         GNU tar needs these.
104863         * lib/pipe-safer.c: New file.
104864         * lib/creat-safer.c: New file.
104865         * lib/fcntl--.h (creat): Define to creat_safer.
104866         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
104867         * lib/unistd--.h (pipe): Define to pipe_safer.
104868         * lib/unistd-safer.h: Declare pipe_safer.
104870 2005-08-26  Simon Josefsson  <jas@extundo.com>
104872         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
104873         Haible <bruno@clisp.org>.
104875 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
104877         * lib/regex_internal.h: Remove all references to
104878         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
104879         or better.
104880         (bitset_not, bitset_merge, bitset_not_merge):
104881         (bitset_mask, re_string_allocate, re_string_construct):
104882         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
104883         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
104884         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
104885         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
104886         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
104887         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
104888         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
104889         (re_acquire_state_context):
104890         Remove unnecessary forward decls.
104891         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
104892         Put __attribute at function definition,
104893         now that the function decl has been removed.
104894         * lib/regex_internal.c (re_string_peek_byte_case):
104895         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
104896         Likewise.
104898 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
104900         * m4/regex.m4: Add AC_PREREQ(2.50).
104901         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
104903 2005-08-25  Simon Josefsson  <jas@extundo.com>
104905         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
104906         __fsetlocking.
104908 2005-08-25  Simon Josefsson  <jas@extundo.com>
104910         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
104911         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
104912         GLIBC specific code.
104914 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104916         Make regex safe for g++.  This fixes one real bug (an "err"
104917         that should have been "*err").  g++ problem reported by
104918         Sam Steingold.
104919         * lib/regex_internal.h (re_calloc): New macro, consistent with
104920         re_malloc etc.  All callers of calloc changed to use re_calloc.
104921         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
104922         not int.  All callers changed.
104923         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
104924         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
104925         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
104926         (find_recover_state): Change "err" to "*err"; this fixes what
104927         appears to be a real bug.
104928         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
104929         versus int.
104931 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104933         * modules/regex (Depends-on): Add malloc, since the code
104934         assumes that !malloc(0) means failure.
104936 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104938         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
104940         alloca modernization/simplification for regex.
104941         * lib/regex.c: Remove portability cruft for alloca.  This no longer
104942         needs to be at the start of the file, and can be moved into
104943         regex_internal.h and simplified.
104944         * lib/regex_internal.h: Include <alloca.h>.
104945         (__libc_use_alloca) [!defined _LIBC]: New macro.
104946         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
104947         now works outside glibc.
104949 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
104951         * config/srclist.txt: Add glibc bugs 1241, 1245.
104953 2005-08-25  Jim Meyering  <jim@meyering.net>
104955         * lib/open-safer.c: Include <config.h>.
104956         Otherwise, we'd lose LARGEFILE support in any file using
104957         e.g. "fcntl--.h"
104959 2005-08-25  Bruno Haible  <bruno@clisp.org>
104961         * m4/minmax.m4: Require autoconf 2.52.
104962         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
104963         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
104964         alternatives of translit over the alphabet.
104965         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
104967 2005-08-24  Simon Josefsson  <jas@extundo.com>
104969         * tests/test-getpass.c: New file.
104971 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104973         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
104974         for GNU regex features.
104976 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
104978         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
104979         * lib/regex.h (regerror): Likewise.
104981         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
104982         requires this.  (The code never needed it.)
104984         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
104985         All uses of recently-renamed identifiers changed to use the new,
104986         POSIX-compliant names.  The code will build and run just fine
104987         without these changes, but it's better to eat our own dog food
104988         and use the standard-conforming names.
104990         * lib/regex.h: Fix a multitude of POSIX name space violations.
104991         These changes have an effect only for programs that define
104992         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
104993         do not change anything for programs compiled in the normal way.
104994         Also, there is no effect on the ABI.
104996         (_REGEX_SOURCE): New macro.
104997         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
104998         defined and _GNU_SOURCE is not; this fixes a name space violation.
105000         Rename the following macros to obey POSIX requirements.
105001         The old names are still visible as macros if _REGEX_SOURCE is defined.
105002         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
105003         RE_BACKSLASH_ESCAPE_IN_LISTS.
105004         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
105005         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
105006         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
105007         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
105008         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
105009         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
105010         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
105011         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
105012         (REG_INTERVALS): renamed from RE_INTERVALS.
105013         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
105014         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
105015         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
105016         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
105017         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
105018         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
105019         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
105020         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
105021         RE_UNMATCHED_RIGHT_PAREN_ORD.
105022         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
105023         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
105024         (REG_DEBUG): renamed from RE_DEBUG.
105025         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
105026         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
105027         unusual, since we can't clash with the POSIX REG_ICASE.
105028         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
105029         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
105030         (REG_NO_SUB): renamed from RE_NO_SUB.
105031         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
105032         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
105033         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
105034         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
105035         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
105036         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
105037         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
105038         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
105039         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
105040         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
105041         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
105042         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
105043         RE_SYNTAX_POSIX_MINIMAL_BASIC.
105044         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
105045         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
105046         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
105047         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
105048         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
105049         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
105050         (REG_FIXED): Renamed from REGS_FIXED.
105051         (REG_NREGS): Renamed from RE_NREGS.
105053         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
105054         of other REG_* macros, since POSIX says the user is allowed to
105055         #undef these macros selectively.
105057         (reg_errcode_t): Update comment stating what other tables need
105058         to be consistent.
105060         Rename the following enum values to obey POSIX requirements.
105061         The old names are still visible as macros.
105062         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
105063         is not defined, since GNU is supposed to be a superset of POSIX as
105064         much as possible, and since we want reg_errcode_t to be a signed
105065         type for implementation consistency.
105066         (_REG_NOERROR): Renamed from REG_NOERROR.
105067         (_REG_NOMATCH): Renamed from REG_NOMATCH.
105068         (_REG_BADPAT): Renamed from REG_BADPAT.
105069         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
105070         (_REG_ECTYPE): Renamed from REG_ECTYPE.
105071         (_REG_EESCAPE): Renamed from REG_EESCAPE.
105072         (_REG_ESUBREG): Renamed from REG_ESUBREG.
105073         (_REG_EBRACK): Renamed from REG_EBRACK.
105074         (_REG_EPAREN): Renamed from REG_EPAREN.
105075         (_REG_EBRACE): Renamed from REG_EBRACE.
105076         (_REG_BADBR): Renamed from REG_BADBR.
105077         (_REG_ERANGE): Renamed from REG_ERANGE.
105078         (_REG_ESPACE): Renamed from REG_ESPACE.
105079         (_REG_BADRPT): Renamed from REG_BADRPT.
105080         (_REG_EEND): Renamed from REG_EEND.
105081         (_REG_ESIZE): Renamed from REG_ESIZE.
105082         (_REG_ERPAREN): Renamed from REG_ERPAREN.
105083         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
105084         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
105085         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
105086         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
105088         (_REG_RE_NAME, _REG_RM_NAME): New macros.
105089         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
105090         changed.  But support the old name if the new one is not defined
105091         and if _REGEX_SOURCE.
105093         Change the following member names in struct re_pattern_buffer.
105094         The old names are still supported if !_REGEX_SOURCE.
105095         The new names are always supported, regardless of _REGEX_SOURCE.
105096         (re_buffer): Renamed from buffer.
105097         (re_allocated): Renamed from allocated.
105098         (re_used): Renamed from used.
105099         (re_syntax): Renamed from syntax.
105100         (re_fastmap): Renamed from fastmap.
105101         (re_translate): Renamed from translate.
105102         (re_can_be_null): Renamed from can_be_null.
105103         (re_regs_allocated): Renamed from regs_allocated.
105104         (re_fastmap_accurate): Renamed from fastmap_accurate.
105105         (re_no_sub): Renamed from no_sub.
105106         (re_not_bol): Renamed from not_bol.
105107         (re_not_eol): Renamed from not_eol.
105108         (re_newline_anchor): Renamed from newline_anchor.
105110         Change the following member names in struct re_registers.
105111         The old names are still supported if !_REGEX_SOURCE.
105112         The new names are always supported, regardless of _REGEX_SOURCE.
105113         (rm_num_regs): Renamed from num_regs.
105114         (rm_start): Renamed from start.
105115         (rm_end): Renamed from end.
105117         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
105118         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
105119         Prepend __ to parameter names.
105121         Undo yesterday's changes.
105123 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
105125         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
105126         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
105127         lib/regex.c.
105129 2005-08-24  Jim Meyering  <jim@meyering.net>
105131         Sync from coreutils.
105132         * m4/fcntl-safer.m4: New file.
105134         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
105135         and object files for this module.
105137 2005-08-24  Jim Meyering  <jim@meyering.net>
105139         Sync from coreutils.
105140         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
105142 2005-08-24  Jim Meyering  <jim@meyering.net>
105144         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
105145         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
105147 2005-08-24  Jim Meyering  <jim@meyering.net>
105149         * modules/fcntl-safer: New module.
105150         * modules/fts (Depends-on): Add fcntl-safer.
105151         * MODULES.html.sh (File descriptor based Input/Output):
105152         Add fcntl-safer.
105154 2005-08-24  Bruno Haible  <bruno@clisp.org>
105156         Support for unit test modules.
105157         * modules/README: Mention tests modules.
105158         * modules/TEMPLATE-TESTS: New file.
105159         * gnulib-tool: New options --extract-tests-module, --with-tests and
105160         --tests-base (unused for the moment).
105161         (testsbase, inctests): New variables.
105162         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
105163         (func_verify_module): Exclude TEMPLATE-TESTS.
105164         (func_verify_nontests_module, func_verify_tests_module): New functions.
105165         (func_get_dependencies): Add implicit dependency for tests modules.
105166         (func_get_tests_module): New function.
105167         (func_modules_transitive_closure): When --with-tests was specified,
105168         include the unit tests as well, unless explicitly avoided.
105169         (func_emit_lib_Makefile_am): Ignore the tests modules here.
105170         (func_emit_tests_Makefile_am): New function.
105171         (func_create_testdir): When --with-tests was specified, emit a
105172         tests/ directory.
105173         * MODULES.html.sh (Future developments): Update.
105175 2005-08-24  Bruno Haible  <bruno@clisp.org>
105177         * modules/tls-tests: New file.
105178         * tests/test-tls.c: New file, from GNU gettext.
105180 2005-08-24  Bruno Haible  <bruno@clisp.org>
105182         * modules/lock-tests: New file.
105183         * tests/test-lock.c: New file, from GNU gettext.
105185 2005-08-24  Bruno Haible  <bruno@clisp.org>
105187         * lib/lock.h: Add multiple inclusion guard.
105188         * lib/tls.h: Add multiple inclusion guard.
105190 2005-08-24  Bruno Haible  <bruno@clisp.org>
105192         * gnulib-tool: Add support for the --aux-dir option to
105193         --create-testdir, --create-megatestdir, --test, --megatest.
105194         (func_create_testdir, func_create_megatestdir): Optionally emit a
105195         AC_CONFIG_AUX_DIR directive.
105196         (create-testdir, create-megatestdir, test, megatest): Provide a
105197         default value for $auxdir.
105199 2005-08-24  Bruno Haible  <bruno@clisp.org>
105201         * gnulib-tool (import): Use compound statement instead of subshell
105202         where possible.
105204 2005-08-24  Bruno Haible  <bruno@clisp.org>
105206         * gnulib-tool (import): Change --aux-dir default to "build-aux".
105208 2005-08-24  Bruno Haible  <bruno@clisp.org>
105210         * gnulib-tool (func_version): Update.
105212 2005-08-24  Bruno Haible  <bruno@clisp.org>
105214         * gnulib-tool (func_import, func_create_testdir,
105215         func_create_megatestdir): Quote all autoconf macro arguments.
105217 2005-08-24  Bruno Haible  <bruno@clisp.org>
105219         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
105220         option --force, because --force causes the aclocal.m4 of each
105221         subdirectory to be newer than the corresponding config.h.in.
105223 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105225         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
105226         All contents moved to gl_REGEX.
105227         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
105228         assume that it does.
105230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105232         * lib/regex.h (REG_NOSYS)
105233         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
105234         Define, since POSIX requires it as of 2001.
105235         (_REG_ENOSYS)
105236         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
105237         New private symbol, used to keep the enum signed in all cases.
105238         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
105239         Youngman in
105240         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
105242         * lib/regex_internal.c (re_string_skip_chars, register_state):
105243         (calc_state_hash):
105244         Remove forward decls; no longer needed now that we use prototypes.
105245         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
105246         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
105247         (clean_state_log_if_needed): Likewise.
105249 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
105251         * config/srclist.txt: Add glibc bugs 1231-1233.
105253 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105255         Fix problems reported by Sam Steingold in
105256         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
105257         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
105258         assumed that reg_errcode_t is a signed type, which is not
105259         necessarily true if _XOPEN_SOURCE is not defined.
105260         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
105261         since some compilers warn about it otherwise.
105263 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105265         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
105266         (init_word_char, create_initial_state, duplicate_node_closure):
105267         (fetch_token, peek_token_bracket, build_range_exp):
105268         (build_collating_symbol): Remove forward decls; no longer needed
105269         now that we use prototypes.
105271         * lib/regcomp.c:
105272         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
105273         (re_compile_fastmap_iter, regcomp, regerror, regfree):
105274         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
105275         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
105276         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
105277         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
105278         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
105279         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
105280         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
105281         (build_range_exp, build_collating_symbol, parse_bracket_exp):
105282         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
105283         (build_charclass, build_charclass_op, fetch_number, create_tree):
105284         (create_token_tree, mark_opt_subexp, duplicate_tree):
105285         Use prototypes rather than old-style definitions.
105287         * lib/regex_internal.c:
105288         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
105289         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
105290         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
105291         (re_string_reconstruct, re_string_peek_byte_case):
105292         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
105293         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
105294         (re_node_set_init_copy, re_node_set_add_intersect):
105295         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
105296         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
105297         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
105298         (re_acquire_state, re_acquire_state_context, register_state):
105299         (create_ci_newstate, create_cd_newstate, free_state):
105300         Likewise.
105301         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
105302         re_search_2):
105303         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
105304         (re_search_internal, prune_impossible_nodes):
105305         (acquire_init_state_context, check_matching, static):
105306         (check_halt_node_context, check_halt_state_context, proceed_next_node):
105307         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
105308         (update_regs, sift_states_backward, build_sifted_states):
105309         (clean_state_log_if_needed, merge_state_array):
105310         (update_cur_sifted_state, add_epsilon_src_nodes):
105311         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
105312         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
105313         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
105314         (find_recover_state, check_subexp_matching_top, transit_state_mb):
105315         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
105316         (check_arrival, check_arrival_add_next_nodes):
105317         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
105318         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
105319         (check_node_accept_bytes, check_node_accept, extend_buffers):
105320         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
105321         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
105322         (sift_ctx_init):
105323         Likewise.
105325         * lib/regex_internal.h:
105326         (re_string_allocate, re_string_construct, re_string_reconstruct):
105327         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
105328         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
105329         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
105330         (re_string_context_at, re_string_peek_byte_case):
105331         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
105332         is defined, since we now use prototypes always.
105334         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
105335         C89 or better.  All uses removed.
105337 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
105339         * config/srclist.txt: Add glibc bugs 1220-1227.
105341 2005-08-20  Jim Meyering  <jim@meyering.net>
105343         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
105344         of unused local, dfa.
105346 2005-08-20  Bruno Haible  <bruno@clisp.org>
105348         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
105350 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105352         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
105353         (re_node_set_insert_last, re_dfa_add_node):
105354         Rename local variables to avoid GCC shadowing warnings.
105356 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105358         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
105359         [defined lint]: Suppress bogus uninitialized-variable warnings.
105361         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
105362         and let the caller return REG_ESPACE if out of space.  This
105363         removes an uninitialied-variable warning with GCC 4.0.1, and also
105364         avoids taking the address of a local variable.  All callers
105365         changed.
105367 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
105369         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
105370         $LIBCSRC/posix/regexec.c.
105371         Add glibc bug 1217 for regcomp.c.
105373 2005-08-19  Jim Meyering  <jim@meyering.net>
105375         * lib/regexec.c (proceed_next_node): Redo local variables to
105376         avoid GCC shadowing warnings.
105378 2005-08-18  Bruno Haible  <bruno@clisp.org>
105380         * lib/strstr.c (strstr): Fix return value in multibyte case.
105381         * lib/strcasestr.c (strcasestr): Likewise.
105383 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
105385         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
105387 2005-08-17  Jim Meyering  <jim@meyering.net>
105389         Make the %s format (seconds since the epoch) work for a negative
105390         number and when used with a zero-padded field width, e.g. %015s.
105392         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
105393         label so that it precedes the code to set `digits'.  Otherwise,
105394         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
105395         print `00-22'.  Now, it prints `-0022', as it should.
105397 2005-08-17  Bruno Haible  <bruno@clisp.org>
105399         * modules/strstr (Files): Add m4/mbrtowc.m4.
105400         (Depends-on): Add mbuiter.
105402 2005-08-17  Bruno Haible  <bruno@clisp.org>
105404         * modules/strcasestr: New file.
105405         * MODULES.html.sh (String handling, based on ANSI C 89): Add
105406         strcasestr.
105408 2005-08-17  Bruno Haible  <bruno@clisp.org>
105410         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
105412 2005-08-17  Bruno Haible  <bruno@clisp.org>
105414         * modules/mbuiter: New file.
105415         * MODULES.html.sh (Extended multibyte and wide character utilities):
105416         Add mbuiter.
105418 2005-08-17  Bruno Haible  <bruno@clisp.org>
105420         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
105421         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
105423 2005-08-17  Bruno Haible  <bruno@clisp.org>
105425         * m4/strcasestr.m4: New file.
105427 2005-08-17  Bruno Haible  <bruno@clisp.org>
105429         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
105430         * lib/strstr.c: Completely rewritten, with multibyte locale support.
105432 2005-08-17  Bruno Haible  <bruno@clisp.org>
105434         * lib/strcasestr.h: New file.
105435         * lib/strcasestr.c: New file.
105437 2005-08-17  Bruno Haible  <bruno@clisp.org>
105439         * lib/strcasecmp.c: Use mbuiter.h.
105441 2005-08-17  Bruno Haible  <bruno@clisp.org>
105443         * lib/mbuiter.h: New file.
105445 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
105447         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
105448         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
105449         and gl_GETOPT are both invoked via different paths (as happens
105450         with GNU tar CVS because it uses both argp and getopt), the former
105451         wins.
105453 2005-08-16  Bruno Haible  <bruno@clisp.org>
105455         * modules/tls: New file.
105456         * MODULES.html.sh (Multithreading): Add tls.
105458 2005-08-16  Bruno Haible  <bruno@clisp.org>
105460         * modules/strnlen1: New file.
105461         * MODULES.html.sh (String handling): Add strnlen1.
105463 2005-08-16  Bruno Haible  <bruno@clisp.org>
105465         * modules/strcase (Files): Add m4/mbrtowc.m4.
105466         (Depends-on): Add strnlen1, mbchar.
105468 2005-08-16  Bruno Haible  <bruno@clisp.org>
105470         * modules/mbiter: New file.
105471         * MODULES.html.sh (Extended multibyte and wide character utilities):
105472         Add mbiter.
105474 2005-08-16  Bruno Haible  <bruno@clisp.org>
105476         * modules/mbfile: New file.
105477         * MODULES.html.sh (Extended multibyte and wide character utilities):
105478         Add mbfile.
105480 2005-08-16  Bruno Haible  <bruno@clisp.org>
105482         * modules/mbchar: New file.
105483         * MODULES.html.sh (Extended multibyte and wide character utilities):
105484         New section.
105486 2005-08-16  Bruno Haible  <bruno@clisp.org>
105488         * m4/tls.m4: New file, from GNU gettext.
105490 2005-08-16  Bruno Haible  <bruno@clisp.org>
105492         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
105493         always.
105494         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
105496 2005-08-16  Bruno Haible  <bruno@clisp.org>
105498         * m4/mbiter.m4: New file.
105500 2005-08-16  Bruno Haible  <bruno@clisp.org>
105502         * m4/mbfile.m4: New file.
105504 2005-08-16  Bruno Haible  <bruno@clisp.org>
105506         * m4/mbchar.m4: New file.
105508 2005-08-16  Bruno Haible  <bruno@clisp.org>
105510         * lib/tls.h: New file, from GNU gettext.
105511         * lib/tls.c: New file, from GNU gettext.
105513 2005-08-16  Bruno Haible  <bruno@clisp.org>
105515         * lib/strnlen1.h: New file.
105516         * lib/strnlen1.c: New file.
105518 2005-08-16  Bruno Haible  <bruno@clisp.org>
105520         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
105521         (mbi_init): Update.
105522         (mbi_avail, mbi_advance): Let the iteration end before the terminating
105523         NUL byte, not after it.
105525 2005-08-16  Bruno Haible  <bruno@clisp.org>
105527         * lib/strcase.h (strcasecmp): Add note in comments.
105528         * lib/strncasecmp.c: Use code from strcasecmp.c.
105529         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
105530         (strcasecmp): Work correctly in multibyte locales.
105532 2005-08-16  Bruno Haible  <bruno@clisp.org>
105534         * lib/mbiter.h: New file.
105536 2005-08-16  Bruno Haible  <bruno@clisp.org>
105538         * lib/mbfile.h: New file.
105540 2005-08-16  Bruno Haible  <bruno@clisp.org>
105542         * lib/mbchar.h: New file.
105543         * lib/mbchar.c: New file.
105545 2005-08-16  Bruno Haible  <bruno@clisp.org>
105547         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
105548         the valid ones. Makes the comparison operations transitive:
105549         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
105550         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
105552 2005-08-15  Simon Josefsson  <jas@extundo.com>
105554         * modules/ssize_t (License): Change to 'unlimited'.
105556         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
105558 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
105560         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
105561         Add comments for each pending glibc patch.
105563 2005-08-15  Bruno Haible  <bruno@clisp.org>
105565         * lib/regex.h (__restrict_arr): Don't define to __restrict if
105566         __cplusplus is defined.
105568 2005-08-14  Jim Meyering  <jim@meyering.net>
105570         Sync from coreutils.
105572         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
105573         Use the hash-table-based cycle-detection code not just when
105574         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
105575         Reported by James Youngman in
105576         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
105577         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
105578         FTS_TIGHT_CYCLE_CHECK.
105579         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
105580         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
105581         once again.
105582         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
105583         * lib/fts.c (fd_safer): Remove decl.
105584         Include fcntl--.h rather than unistd-safer.h
105585         (fts_safe_changedir): Don't call fd_safer; no longer needed
105586         now that we include fcntl--.h.
105588 2005-08-12  Simon Josefsson  <jas@extundo.com>
105590         * modules/getndelim2: Use ssize_t module.
105591         * modules/getnline: Likewise.
105592         * modules/safe-read: Likewise.
105593         * modules/xreadlink: Likewise.
105595         * modules/ssize_t: New file.
105597 2005-08-12  Simon Josefsson  <jas@extundo.com>
105599         * m4/readline.m4: Look for termcap, curses or ncurses if required.
105601 2005-08-12  Simon Josefsson  <jas@extundo.com>
105603         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
105604         ssize_t.
105606 2005-08-12  Simon Josefsson  <jas@extundo.com>
105608         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
105609         readline, getdelim and check_version.
105610         (Support for systems lacking ISO C 99: Sizes of integer types):
105611         Add size_max.
105613 2005-08-12  Bruno Haible  <bruno@clisp.org>
105615         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
105617 2005-08-11  Simon Josefsson  <jas@extundo.com>
105619         * modules/readline: New file.
105621         * modules/strnlen (Files): Add strnlen.h.
105623 2005-08-11  Simon Josefsson  <jas@extundo.com>
105625         * m4/readline.m4: New file.
105627 2005-08-11  Simon Josefsson  <jas@extundo.com>
105629         * lib/readline.h, readline.c: New file.
105631 2005-08-11  Simon Josefsson  <jas@extundo.com>
105633         * doc/gnulib.texi (Initial import, Finishing touches): Mention
105634         gl_AVOID.
105636 2005-08-11  Bruno Haible  <bruno@clisp.org>
105638         * lib/strnlen.h (strnlen): Change parameter name to match comment.
105640 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
105642         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
105644 2005-08-10  Simon Josefsson  <jas@extundo.com>
105646         * tests/test-iconvme.c: New file.
105648 2005-08-10  Simon Josefsson  <jas@extundo.com>
105650         * m4/strnlen.m4: New file.
105652         * m4/strndup.m4: Don't check for strnlen declaration, done in
105653         strnlen.m4.
105655 2005-08-10  Simon Josefsson  <jas@extundo.com>
105657         * lib/strndup.c: Use strnlen.h.
105659         * lib/strnlen.h: New file.
105661 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
105663         * README: Typos.
105665 2005-08-02  Simon Josefsson  <jas@extundo.com>
105667         * modules/readline: New file.
105669 2005-08-02  Simon Josefsson  <jas@extundo.com>
105671         * modules/getdelim: New file.
105673         * modules/getline: Rewrite, don't use getndelim2.
105675 2005-08-02  Simon Josefsson  <jas@extundo.com>
105677         * m4/getline.m4: Separate out getdelim stuff into separate module.
105679         * m4/getdelim.m4: New file.
105681 2005-08-02  Simon Josefsson  <jas@extundo.com>
105683         * lib/getline.h, getline.c: Rewrite.
105685         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
105687 2005-07-31  Bruno Haible  <bruno@clisp.org>
105689         * lib/lock.h (gl_lock_initializer): New macro.
105690         (gl_lock_define_initialized): Use it.
105691         (gl_rwlock_initializer): New macro.
105692         (gl_rwlock_define_initialized): Use it.
105693         (gl_recursive_lock_initializer): New macro.
105694         (gl_recursive_lock_define_initialized): Use it.
105696 2005-07-30  Karl Berry  <karl@gnu.org>
105698         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
105699         Report from Ben Pfaff, regarding getopt.
105701 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
105703         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
105704         normal way.
105705         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
105706         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
105707         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
105708         (gl_GETOPT): Use the new macros.  Most of the implementation
105709         is moved to the new macros.  This is for programs like Emacs
105710         that don't want all the functionality of gl_GETOPT.
105712 2005-07-26  Bruno Haible  <bruno@clisp.org>
105714         * m4/lock.m4: Update from GNU gettext.
105716 2005-07-26  Bruno Haible  <bruno@clisp.org>
105718         * lib/lock.h: Update from GNU gettext.
105719         * lib/lock.c: Update from GNU gettext.
105721 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
105723         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
105724         obsolescent AC_TRY_RUN.  Include the default includes files, for
105725         'exit'.
105727 2005-07-24  Bruno Haible  <bruno@clisp.org>
105729         * modules/visibility: New file.
105730         * MODULES.html.sh (Misc): Add visibility.
105732 2005-07-24  Bruno Haible  <bruno@clisp.org>
105734         * m4/visibility.m4: New file.
105736 2005-07-24  Bruno Haible  <bruno@clisp.org>
105738         * doc/visibility.texi: New file.
105740 2005-07-22  Bruno Haible  <bruno@clisp.org>
105742         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
105743         $(ALLOCA_H), redundant through BUILT_SOURCES.
105744         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
105745         redundant through BUILT_SOURCES.
105746         * modules/byteswap (Makefile.am): Remove explicit dependency on
105747         $(BYTESWAP_H), redundant through BUILT_SOURCES.
105748         * modules/fnmatch (Makefile.am): Remove explicit dependency on
105749         $(FNMATCH_H), redundant through BUILT_SOURCES.
105750         * modules/getopt (Makefile.am): Remove explicit dependency on
105751         $(GETOPT_H), redundant through BUILT_SOURCES.
105752         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
105753         redundant through BUILT_SOURCES.
105754         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
105755         redundant through BUILT_SOURCES.
105756         * modules/stdbool (Makefile.am): Remove explicit dependency on
105757         $(STDBOOL_H), redundant through BUILT_SOURCES.
105758         * modules/stdint (Makefile.am): Remove explicit dependency on
105759         $(STDINT_H), redundant through BUILT_SOURCES.
105760         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
105761         Remove explicit dependency on $(SYSEXITS_H).
105762         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
105764 2005-07-18  Simon Josefsson  <jas@extundo.com>
105766         * lib/check-version.c (check_version): Accept identical versions too.
105768 2005-07-18  Bruno Haible  <bruno@clisp.org>
105770         * modules/lock: New file.
105771         * MODULES.html.sh (Multithreading): New section.
105773 2005-07-18  Bruno Haible  <bruno@clisp.org>
105775         * m4/lock.m4: New file, from GNU gettext.
105777 2005-07-18  Bruno Haible  <bruno@clisp.org>
105779         * lib/lock.h: New file, from GNU gettext.
105780         * lib/lock.c: New file, from GNU gettext.
105782 2005-07-18  Bruno Haible  <bruno@clisp.org>
105784         * lib/lock.h (gl_once_t): New type.
105785         (gl_once_define, gl_once): New macros.
105786         * lib/lock.c (fresh_once): New variable.
105787         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
105788         functions.
105790 2005-07-16  Simon Josefsson  <jas@extundo.com>
105792         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
105793         workaround, suggested by Bruno.
105795 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105797         * modules/xalloc (Depends-on): Add xalloc-die.
105798         * modules/xvasprintf (Depends-on): Add xalloc-die.
105800 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
105802         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
105803         with a minor change.
105805 2005-07-15  Bruno Haible  <bruno@clisp.org>
105807         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
105808         When using lib/poll.c, define poll as rpl_poll.
105810 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
105812         * modules/argp (Depends-on): Remove unlocked-io.
105814 2005-07-14  Derek Price  <derek@ximbiot.com>
105816         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
105817         for glob symlink bug.
105819 2005-07-14  Bruno Haible  <bruno@clisp.org>
105821         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
105822         Instead, test for *_unlocked function declarations directly.
105824 2005-07-11  Simon Josefsson  <jas@extundo.com>
105826         * modules/size_max: New file.
105828         * modules/xsize: Depend on size_max module for size_max.m4.
105830 2005-07-11  Simon Josefsson  <jas@extundo.com>
105832         * lib/size_max.h: New file.
105834 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
105836         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
105837         copyright symbol and the year.
105838         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
105839         (version_etc_va): Use parameterized copyright notice.
105840         Reword to conform to the current GNU coding standards.
105842 2005-07-11  Karl Berry  <karl@gnu.org>
105844         * doc/gnulib.texi (Quoting): new node.
105845         (Initial import): more info, from Patrice.
105847 2005-07-11  Bruno Haible  <bruno@clisp.org>
105849         * gnulib-tool (func_usage): Document option --avoid.
105850         (Command line options): Handle --avoid.
105851         (func_acceptable): New function.
105852         (func_modules_transitive_closure): Use it.
105854 2005-07-11  Bruno Haible  <bruno@clisp.org>
105856         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
105857         Reported by Jim Meyering.
105859 2005-07-10  Bruno Haible  <bruno@clisp.org>
105861         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
105862         Needed when size_t is smaller than 'unsigned int'.
105863         Reported by Paul Eggert.
105865 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105867         * modules/argp (Depends-on): Add unlocked-io
105869 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
105871         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
105872         block of defines.
105874 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
105876         * config/srclist.txt: Comment out regcomp.c, since we have a porting
105877         fix now.
105879 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
105880         and Paul Eggert  <eggert@cs.ucla.edu>
105882         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
105883         in wint_t, not wchar_t.  Remove now-unnecessary cast.
105885 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105887         * modules/regex (Files): Add lib/regex_internal.c,
105888         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
105889         (Depends-on): Add extensions.
105890         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
105892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105894         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
105895         pathconf.
105896         * m4/same.m4 (gl_SAME): Likewise.
105897         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
105899         * m4/regex.m4: Adjust to new libc regex implementation.
105900         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
105901         all the .c and .h parts of (the new) regex.
105902         Quote the m4 stuff better.
105903         Check for RE_ICASE bug of old gnulib.
105904         Check for REG_STARTEND of recent libc.
105905         Rename local variables from jm_* to gl_*.
105906         Quote operand of "test -f".
105907         Say "recent enough" version of libc, not "version 2".
105908         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
105909         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
105910         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
105911         Remove check for btowc, isascii.
105912         Require AM_LANGINFO_CODESET.
105914 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105916         * lib/regex.c, regex.h: Sync from libc.
105917         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
105918         * lib/regexec.c:
105919         New files, synced from libc, except that regex_internal.h
105920         currently has a small porting fix.
105922 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
105924         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
105925         regex_internal.c, regexec.c.
105926         Add regex_internal.h too, but as a comment, since the libc version
105927         is currently broken in gnulib mode.
105929 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
105931         Support programs like Emacs that use gnulib but not gettext.
105932         * MODULES.html.sh (Internationalization functions): Add gettext-h.
105933         * modules/gettext-h: New file.
105934         * modules/gettext (Files): Remove lib/gettext.h.
105935         (Depends-on): Add gettext-h.
105936         (Makefile.am): Remove lib_SOURCES.
105937         * modules/argmatch, modules/c-stack, modules/closeout:
105938         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
105939         * modules/execute, modules/file-type, modules/getaddrinfo:
105940         * modules/getopt, modules/human, modules/javacomp:
105941         * modules/javaexec, modules/mkdir-p, modules/obstack:
105942         * modules/openat, modules/pagealign_alloc, modules/pipe:
105943         * modules/quotearg, modules/regex, modules/rpmatch:
105944         * modules/unicodeio, modules/userspec, modules/version-etc:
105945         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
105946         * modules/xsetenv:
105947         Depend on gettext-h, not gettext.
105949 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
105951         * gnulib-tool (func_import): Add support for 'public domain' license.
105952         * modules/alloca, modules/atexit, modules/memmove:
105953         Now public domain, not GPL.
105954         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
105955         * modules/realloc, modules/strerror, modules/strtod:
105956         Now LGPL, not GPL.
105958 2005-07-05  Bruno Haible  <bruno@clisp.org>
105960         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
105961         autoconf CVS. Needed for mingw.
105963 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105965         Remove the dependency of the strftime module on the tzset module.
105966         * modules/strftime (Depends-on): Remove dependency on tzset.
105968 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105970         Remove the dependency of the strftime module on the tzset module.
105971         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
105972         gl_FUNC_TZSET_CLOBBER.
105974 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
105976         Remove the dependency of the strftime module on the tzset module.
105977         * lib/strftime.c (my_strftime)
105978         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
105979         Copy the input structure, to work around some of the bug with
105980         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
105981         Solaris releases, you should also use the tzset module, but we won't
105982         require it as a dependency any more since we don't want LGPLed code
105983         to depend on GPLed code.
105985 2005-07-02  Jim Meyering  <jim@meyering.net>
105987         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
105988         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
105989         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
105990         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
105992 2005-07-02  Jim Meyering  <jim@meyering.net>
105994         * lib/backupfile.c (backup_args): Change a `0' to NULL.
105996 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
105998         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
105999         declares only 'struct timespec;' (!).
106001 2005-07-01  Jim Meyering  <jim@meyering.net>
106003         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
106004         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
106005         * lib/save-cwd.c, tempname.c:
106006         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
106007         and don't include <sys/file.h>).
106009 2005-06-29  Jim Meyering  <jim@meyering.net>
106011         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
106012         type name.  Use the variable name instead.
106013         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
106014         Likewise.
106016 2005-06-28  Simon Josefsson  <jas@extundo.com>
106018         * modules/check-version (Files): Add check-version.m4.
106020 2005-06-28  Simon Josefsson  <jas@extundo.com>
106022         * m4/check-version.m4: New file, suggested by Jim Meyering
106023         <jim@meyering.net>.
106025 2005-06-28  Simon Josefsson  <jas@extundo.com>
106027         * lib/check-version.h, lib/check-version.c: New files.
106029 2005-06-28  Simon Josefsson  <jas@extundo.com>
106031         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
106032         collision with global variable.  Better indentation.  Don't
106033         increment buffer pointer beyond buffer end.  Based on comments
106034         from Paul Eggert <eggert@cs.ucla.edu>.
106036         * lib/base64.h: Indent.
106038 2005-06-28  Simon Josefsson  <jas@extundo.com>
106040         * doc/gnulib.texi (Library version handling): New section.
106042 2005-06-28  Jim Meyering  <jim@meyering.net>
106044         * check-module (find_included_lib_files): Hard-code another
106045         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
106046         but modules/fts-lgpl (correctly) does not list those files.
106048         * modules/canonicalize (Files): Add lib/pathmax.h.
106050 2005-06-25  Simon Josefsson  <jas@extundo.com>
106052         * modules/check-version: New file.
106054 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
106056         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
106057         initializer of struct addrinfo, as an indication that we don't
106058         care how many members the structure has.
106060 2005-06-24  Derek Price  <derek@ximbiot.com>
106061         and Bruno Haible  <bruno@clisp.org>
106063         Remove stat module & update lstat.
106064         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
106065         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
106066         * m4/stat.m4: Remove this file.
106068 2005-06-24  Derek Price  <derek@ximbiot.com>
106069         and Bruno Haible  <bruno@clisp.org>
106071         Remove stat module & update lstat.
106072         * lib/stat.c: Remove this file...
106073         (slash_aware_lstat): ...moving this content and its support...
106074         * lib/lstat.c (rpl_lstat): ...into here.
106075         * lib/lstat.h: New file.
106077 2005-06-24  Derek Price  <derek@ximbiot.com>
106078         and Bruno Haible  <bruno@clisp.org>
106080         Remove stat module & update lstat.
106081         * config/srclist.txt (libc sources): Remove stat.
106083 2005-06-24  Derek Price  <derek@ximbiot.com>
106084         and Bruno Haible  <bruno@clisp.org>
106086         Remove stat module & update lstat.
106087         * MODULES.html.sh (stat): Remove.
106088         * MODULES.html: Regenerated.
106089         * modules/lstat (Description): Correct function name.
106090         (Files): Add "lstat.h".
106091         (Depends-on): Remove stat, add xalloc, stat-macros.
106092         * modules/stat: Remove this file.
106093         (Include): Add "lstat.h", remove <sys/stat.h>.
106095 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
106097         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
106098         (ranged_convert): Don't save conversion in a temporary struct.
106099         This causes a warning with GCC 4.0.0, and anyway in the typical
106100         case it's not worth the extra 100 bytes or so of code.
106101         (ranged_convert, __mktime_internal): When calling a function via a
106102         pointer P, use P () rather than (*P) (), as we now assume C89 or
106103         better.
106105 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
106107         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
106108         "who -r" failed to give output.  Problem reported by Tim Waugh.
106110         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
106111         (xcalloc): Use it to avoid needless tests.
106112         Problem reported by Jim Meyering.
106114 2005-06-20  Derek Price  <derek@ximbiot.com>
106116         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
106117         unnecessary for Autoconfs > 2.59c.
106119 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106121         * lib/argp.h (__option_is_short): Check upper limit of
106122         __key. Isprint() requires its argument to have the value
106123         of an unsigned char or EOF.
106125 2005-06-16  Jim Meyering  <jim@meyering.net>
106127         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
106128         when either N or S is zero.
106130 2005-06-16  Derek Price  <derek@ximbiot.com>
106132         * m4/bison.m4: Declare YACC & YFLAGS precious.
106134 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
106136         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
106137         multibyte string or pattern, fall back on unibyte matching.
106138         Problem reported by James Youngman.
106140 2005-06-08  Bruno Haible  <bruno@clisp.org>
106142         * modules/csharpcomp: New file.
106143         * MODULES.html.sh (C#): Add csharpcomp.
106145 2005-06-08  Bruno Haible  <bruno@clisp.org>
106147         * m4/csharpcomp.m4: New file, from GNU gettext.
106149 2005-06-08  Bruno Haible  <bruno@clisp.org>
106151         * lib/csharpcomp.h: New file, from GNU gettext.
106152         * lib/csharpcomp.c: New file, from GNU gettext.
106153         * lib/csharpcomp.sh.in: New file, from GNU gettext.
106155 2005-06-08  Bruno Haible  <bruno@clisp.org>
106157         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
106158         warning on mingw.
106160 2005-06-07  Derek Price  <derek@ximbiot.com>
106162         Sync from CVS.
106163         * lib/glob_.h: Indent nested #ifdef.
106165 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106167         Sync from coreutils.
106168         Use "file name" when talking about file names, instead of "filename"
106169         or "path", as per the GNU coding standards.
106170         * lib/mkdir-p.c: Renamed from makepath.c.
106171         (make_dir_parents): Renamed from make_path.  All callers changed.
106172         * lib/mkdir-p.h: Likewise.  All includers changed.
106173         * lib/filenamecat.c: Renamed from path-concat.c.
106174         (file_name_concat): Renamed from path_concat.  All callers changed.
106175         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
106176         * lib/filenamecat.h: Likewise.  All includers changed.
106177         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
106178         in comments or local variable names.
106179         * lib/basename.c: Likewise.
106180         * lib/canonicalize.c, canonicalize.h: Likewise.
106181         * lib/dirname.c, dirname.h: Likewise.
106182         * lib/euidaccess.c: Likewise.
106183         * lib/exclude.c: Likewise
106184         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
106185         * lib/fsusage.c, fsuage.h: Likewise.
106186         * lib/fts.c, fts_.h: Likewise.
106187         * lib/getcwd.c: Likewise.
106188         * lib/getloadavg.c: Likewise.
106189         * lib/mkstemp.c: Likewise.
106190         * lib/mountlist.c, mountlist.h: Likewise.
106191         * lib/openat.c, openat.h: Likewise.
106192         * lib/readlink-stub.c: Likewise.
106193         * lib/readutmp.c, readutmp.h: Likewise.
106194         * lib/rename.c: Likewise.
106195         * lib/rmdir.c: Likewise.
106196         * lib/same.c: Likewise.
106197         * lib/savedir.c: Likewise.
106198         * lib/stripslash.c: Likewise.
106199         * lib/tempname.c: Likewise.
106200         * lib/xreadlink.c: Likewise.
106201         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
106202         All uses changed.
106203         * lib/exclude.h: Likewise.
106205         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
106206         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106207         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
106208         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106209         * lib/pathmax.h: Include <limits.h> unconditionally, since other
106210         files have been getting away with it for years (MORE/BSD 4.3
106211         is extinct now).
106212         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
106213         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
106215         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
106216         Define to 256, not 255, as per modern POSIX.
106218 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106220         Sync from coreutils.
106221         Use "file name" when talking about file names, instead of "filename"
106222         or "path", as per the GNU coding standards.
106223         * MODULES.html.sh: mkdir-p renamed from makepath.
106224         filenamecat renamed from path-concat.
106225         * modules/filenamecat: Renamed from modules/path-concat.
106226         (Files): filenamecat.h and filenamecat.c renamed from
106227         path-concat.h and path-concat.c.
106228         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
106229         (Include): filenamecat.h, not path-concat.h.
106230         * modules/mkdir-p: Renamed from modules/makepath.
106231         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
106232         makepath.c.
106233         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
106234         (Include): mkdir-p.h, not makepath.h.
106236 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
106238         Sync from coreutils.
106239         * m4/mkdir-p.m4: Renamed from makepath.m4.
106240         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
106241         Rename files from makepath.c to mkdir-p.c, and from
106242         makepath.h to mkdir-p.h.
106243         * m4/filenamecat.m4: Renamed from path-concat.m4.
106244         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
106245         Rename files from path-concat.c to filenamecat.c,
106246         and from path-concat.h to filenamecat.h.
106247         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
106248         "file name" in local variables or comments.
106249         * m4/rename.m4: Likewise.
106251 2005-06-01  Bruno Haible  <bruno@clisp.org>
106253         * modules/csharpexec: New file.
106254         * MODULES.html.sh (C#): New section.
106256 2005-06-01  Bruno Haible  <bruno@clisp.org>
106258         * m4/csharp.m4: New file, from GNU gettext.
106259         * m4/csharpexec.m4: New file, from GNU gettext.
106261 2005-06-01  Bruno Haible  <bruno@clisp.org>
106263         * lib/csharpexec.h: New file, from GNU gettext.
106264         * lib/csharpexec.c: New file, from GNU gettext.
106265         * lib/csharpexec.sh.in: New file, from GNU gettext.
106267 2005-05-31  Derek Price  <derek@ximbiot.com>
106268             Paul Eggert  <eggert@cs.ucla.edu>
106270         Sync from cvs.
106271         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106273 2005-05-31  Derek Price  <derek@ximbiot.com>
106274             Paul Eggert  <eggert@cs.ucla.edu>
106276         Sync from cvs.
106277         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
106279 2005-05-29  Derek Price  <derek@ximbiot.com>
106281         * config/srclist.txt (glob_.h, glob.c): Add these files.
106283 2005-05-29  Derek Price  <derek@ximbiot.com>
106285         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
106286         * modules/glob: New file.
106287         * modules/getlogin_r: Add link to POSIX spec in description.
106289 2005-05-29  Derek Price  <derek@ximbiot.com>
106290             Paul Eggert  <eggert@cs.ucla.edu>
106292         * m4/glob.m4: New file.
106294 2005-05-29  Derek Price  <derek@ximbiot.com>
106295             Paul Eggert  <eggert@cs.ucla.edu>
106297         * lib/glob_.h, lib/glob.c: New files.
106299 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106301         * modules/fts (Files): Remove m4/inttypes-pri.m4.
106302         * modules/fts-lgpl (Depends-on): Remove gettext.
106304 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106306         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
106307         and don't require gt_INTTYPES_PRI.
106309 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
106311         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
106313         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
106314         the configuration hassle isn't worth it.
106315         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
106316         (LONGEST_MODIFIER, PRIuMAX): Remove.
106318 2005-05-27  Bruno Haible  <bruno@clisp.org>
106320         * lib/getlogin_r.h: Remove second include of <stddef.h>.
106322 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
106324         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
106325         _POSIX_PTHREAD_SEMANTICS for Solaris.
106327 2005-05-25  Derek Price  <derek@ximbiot.com>
106329         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
106331 2005-05-25  Derek Price  <derek@ximbiot.com>
106332             Paul Eggert  <eggert@cs.ucla.edu>
106334         * modules/getlogin_r, m4/getlogin_r.m4: New files.
106335         * lib/getlogin_r.c, getlogin_r.h: New files.
106337 2005-05-25  Bruno Haible  <bruno@clisp.org>
106338             Derek Price  <derek@ximbiot.com>
106340         * lib/getlogin_r.h: Simplify API documentation.
106342 2005-05-23  Derek Price  <derek@ximbiot.com>
106344         * modules/minmax (Files): Add m4/minmax.m4.
106345         (configure.ac): Add gl_MINMAX.
106347 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
106349         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
106350         so that unistd-safer.h (GPL'ed code) need not be included.
106352 2005-05-22  Bruno Haible  <bruno@clisp.org>
106354         * m4/minmax.m4: New file.
106355         Based on a patch by Derek Price <derek@ximbiot.com>.
106357 2005-05-22  Bruno Haible  <bruno@clisp.org>
106359         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
106360         (INT64_MIN): Fix definition.
106361         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
106363         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
106364         NEED_SIGNED_INT_TYPES.
106366         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
106367         HAVE_SYSTEM_INTTYPES.
106369 2005-05-22  Bruno Haible  <bruno@clisp.org>
106371         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
106372         Also include <sys/param.h> if it defines MIN, MAX.
106373         Based on a patch by Derek Price <derek@ximbiot.com>.
106375 2005-05-21  Jim Meyering  <jim@meyering.net>
106377         * modules/fts (Files): Add m4/inttypes-pri.m4.
106378         (Depends-on): Add lstat and remove gettext.  Alphabetize.
106380 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106382         New fts module.
106383         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
106384         (setup_dir, free_dir): New functions.
106385         (enter_dir, leave_dir): Define trivial
106386         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
106387         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
106388         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
106389         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
106390         Move to fts-cycle.c.
106391         (fts_open): Use setup_dir.
106392         (fts_close): Use free_dir.
106393         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
106394         This adds a label and some gotos, but the alternatives were messier.
106395         Check for memory allocation failure when entering a dir.
106396         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
106397         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
106398         (FTS): New member fts_cycle, that is a union that contains the
106399         old active_dir_ht and cycle_state.  All uses changed to mention
106400         fts_cycle.ht and fts_cycle.state.
106401         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
106402         fts.c, with the following changes:
106403         (setup_dir, free_dir): New functions.
106404         (enter_dir): Now returns bool.  Return true if successful, false
106405         if memory exhausted.  All callers changed.
106406         Do not bother partly cleaning up on
106407         memory allocation failure; that is free_dir's job.
106408         However, free ad if hash_insert fails, to avoid memory leak.
106409         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
106410         fts->fts_options to see which union member to use.
106412 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106414         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
106415         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
106417 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
106419         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
106421 2005-05-20  Jim Meyering  <jim@meyering.net>
106423         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
106424         Now a macro, to pacify GCC.
106426 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106428         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
106429         of -1.
106431 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
106433         * lib/chown.c (rpl_chown): Return -1 on failure.
106435 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
106438         Don't check for stddef.h.
106439         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
106440         don't use its results.
106441         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
106442         since we include them unconditionally.  Don't require
106443         AM_STDBOOL_H, since stdbool is a prerequisite.
106444         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
106445         since we assume C89 or better.
106446         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
106447         as we don't use their results.
106448         Don't check for fchdir, memmove, memset, strrchr, as we use
106449         them unconditionally.
106450         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
106451         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
106453 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
106455         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
106456         Include <stddef.h> unconditionally, since we assume C89 now.
106457         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
106458         * lib/fts.c: Include fts_.h first, to check interface.
106459         Do not include intprops.h; no longer needed.
106460         Include cycle-check.h and hash.h, since fts_.h no longer does.
106461         Remove unnecessary casts of closedir to void.
106462         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
106463         decide whether to decrement nlinks.
106464         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
106465         (FTS): Use struct hash_table * instead of Hash_table, so that
106466         we no longer need to include hash.h here.
106468 2005-05-18  Jim Meyering  <jim@meyering.net>
106470         * modules/dirfd (License): Change to LGPL.  Most of the code
106471         is already in the public domain.
106473 2005-05-18  Jim Meyering  <jim@meyering.net>
106475         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
106476         Reported by Yoann Vandoorselaere.
106478 2005-05-17  Jim Meyering  <jim@meyering.net>
106480         * m4/fts.m4: New file, from coreutils.
106482 2005-05-17  Jim Meyering  <jim@meyering.net>
106484         * lib/fts.c, lib/fts_.h: New files, from coreutils.
106486 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106488         Sync from coreutils.
106489         * m4/unlinkdir.m4: New file.
106491 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106493         Sync from coreutils.
106494         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
106495         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
106496         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
106497         White space changes only.
106498         * lib/makepath.c (make_path): Port to hosts where leading "//" is
106499         special.
106500         * lib/yesno.c: Include getline.h, not ctype.h.
106501         (yesno): Don't remove leading white space; POSIX doesn't allow it.
106502         Use getline to remove arbitrary restriction on response length.
106504 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
106506         * config/srclist-update: Spell out "Street" in FSF postal
106507         mail address; this is the style the FSF seems to prefer.
106509         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
106510         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
106511         this updates FSF postal mail address.
106513         Sync from coreutils.
106514         * modules/unlinkdir: New file.
106515         * modules/yesno (Depends-on): Add getline.
106516         * MODULES.html.sh (File system functions): Add unlinkdir.
106518 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106520         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
106521         lib/strsep.h:
106522         Change the initial comment to refer to GPL, not LGPL.
106523         gnulib-tool will change it to LGPL as needed.
106525         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
106526         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
106527         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
106528         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
106529         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
106530         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
106531         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
106532         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
106533         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
106534         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
106535         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
106536         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
106537         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
106538         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
106539         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
106540         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
106541         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
106542         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
106543         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
106544         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
106545         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
106546         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
106547         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
106548         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
106549         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
106550         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
106551         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
106552         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
106553         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
106554         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
106555         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
106556         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
106557         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
106558         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
106559         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
106560         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
106561         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
106562         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
106563         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
106564         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
106565         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
106566         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
106567         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
106568         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
106569         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
106570         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
106571         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
106572         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
106573         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
106574         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
106575         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
106576         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
106577         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
106578         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
106579         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
106580         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
106581         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
106582         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
106583         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
106584         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
106585         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
106586         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
106587         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
106588         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
106589         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
106590         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
106591         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
106592         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
106593         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
106594         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
106595         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
106596         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
106597         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
106598         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
106599         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
106600         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
106601         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
106602         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
106603         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
106604         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
106605         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
106606         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
106607         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
106608         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
106609         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
106610         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
106611         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
106612         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
106613         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
106614         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
106615         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
106616         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
106617         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
106618         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
106619         lib/yesno.c, lib/yesno.h:
106620         Update FSF postal mail address.
106622 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
106624         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
106625         tests/test-memmem.c, tests/test-stpncpy.c:
106626         Update FSF postal mail address.
106628 2005-05-13  Bruno Haible  <bruno@clisp.org>
106630         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
106631         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
106632         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
106633         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
106634         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
106635         Add support for 64-bit integers in the MSVC compiler.
106637 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
106639         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
106641 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
106643         * gnulib-tool (func_import): Sort and uniquify recommended includes.
106645 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
106647         * doc/getdate.texi (General date syntax): Don't say that date
106648         date --iso-8601=ns generates acceptable dates; it doesn't yet.
106649         Problem reported by Nic Ferrier.
106651 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106653         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
106654         specified in ai_socktype. Fix invalid ai_protocol
106655         check. ai_protocol is usually set to 0 or depending on
106656         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
106657         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
106658         ai_socktype / ai_protocol in the returned addrinfo structure.
106660 2005-05-10  Simon Josefsson  <jas@extundo.com>
106662         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
106663         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
106665 2005-05-10  Karl Berry  <karl@gnu.org>
106667         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
106668         (from http://www.gnu.org/licenses).
106669         * doc/COPYING.LIB: also rename to COPYING.LESSER.
106670         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
106671         fdl.texi suffices.
106673 2005-05-10  Karl Berry  <karl@gnu.org>
106675         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
106676         (COPYING.DOC): remove.
106678         * config/srclist-update: new FSF address.
106680 2005-05-10  Derek Price  <derek@ximbiot.com>
106682         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
106683         possible.
106685 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106686             Bruno Haible  <bruno@clisp.org>
106688         * modules/inet_ntop: New file.
106689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
106690         inet_ntop.
106692 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106693             Bruno Haible  <bruno@clisp.org>
106695         * m4/inet_ntop.m4: New file.
106697 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
106698             Bruno Haible  <bruno@clisp.org>
106700         * lib/inet_ntop.h: New file.
106701         * lib/inet_ntop.c: New file, from glibc with modifications.
106703 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
106705         * modules/time_r (License): Change to LGPL.
106706         * modules/extensions (License): Change to LGPL.  Actually,
106707         the license is more permissive than that, but currently gnulib-tool
106708         doesn't know how to handle more-permissive licenses.
106710         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
106711         Problem reported by Dave Love.
106713 2005-05-08  Jim Meyering  <jim@meyering.net>
106715         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
106716         blank.
106718 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
106720         * modules/argmatch (Depends-on): Add stdbool.
106721         * modules/backupfile (Depends-on): Likewise.
106722         * modules/chdir-long (Depends-on): Likewise.
106723         * modules/closeout (Depends-on): Likewise.
106724         * modules/cycle-check (Depends-on): Likewise.
106725         * modules/dirname (Depends-on): Likewise.
106726         * modules/fnmatch (Depends-on): Likewise.
106727         * modules/fsusage (Depends-on): Likewise.
106728         * modules/fwriteerror (Depends-on): Likewise.
106729         * modules/getcwd (Depends-on): Likewise.
106730         * modules/getloadavg (Depends-on): Likewise.
106731         * modules/hard-locale (Depends-on): Likewise.
106732         * modules/makepath (Depends-on): Likewise.
106733         * modules/mountlist (Depends-on): Likewise.
106734         * modules/nanosleep (Depends-on): Likewise.
106735         * modules/posixtm (Depends-on): Likewise.
106736         * modules/quotearg (Depends-on): Likewise.
106737         * modules/readtokens (Depends-on): Likewise.
106738         * modules/readtokens0 (Depends-on): Likewise.
106739         * modules/readutmp (Depends-on): Likewise.
106740         * modules/save-cwd (Depends-on): Likewise.
106741         * modules/strftime (Depends-on): Likewise.
106742         * modules/userspec (Depends-on): Likewise.
106743         * modules/utimecmp (Depends-on): Likewise.
106744         * modules/xgetcwd (Depends-on): Likewise.
106745         * modules/xnanosleep (Depends-on): Likewise.
106746         * modules/xstrtod (Depends-on): Likewise.
106747         * modules/yesno (Depends-on): Likewise.
106749 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
106751         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
106752         needless checks.
106754 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106756         Merge from coreutils.  Among other things,
106757         add bulletproofing for cases where stdin, stdout, or stderr are closed.
106758         * lib/fd-safer.c: New file.
106759         * lib/fcntl-safer.h, open-safer.c: Remove.
106760         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
106761         * lib/dup-safer.c: Include unistd-safer.h first.
106762         Don't include errno.h.
106763         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
106764         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
106765         * lib/file-type.c: Rely on file-type.h change.
106766         * lib/getloadavg.c: Include unistd-safer.h.
106767         (getloadavg): Use safer open.
106768         * lib/getusershell.c: Include "stdio-safer.h".
106769         (getusershell): Use safer fopen.
106770         * lib/long-options.c (long_options): Use NULL rather than 0.
106771         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
106772         'free'.
106773         * lib/modechange.c: Likewise.
106774         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
106775         (MODE_DONE): New constant.
106776         (struct mode_change): Remove 'next' member.
106777         (make_node_op_equals): New function; like the old one of the
106778         same name, except it allocates an array.
106779         (mode_compile, mode_create_from_ref): Use it.
106780         (mode_compile): Allocate result as an array, not a linked list.
106781         Parse octal string ourself, so that we catch mistakes like "+0".
106782         (mode_adjust): Arg is an array, not a linked list.
106783         * lib/modechange.c: Include stat-macros.h, xalloc.h.
106784         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
106785         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
106786         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
106787         Remove.  This is now stat-macros.h's job.
106788         (talloc): Remove.  All callers replaced by xalloc, so that
106789         our invokers don't have to worry about reporting memory failures.
106790         (make_node_op_equals): Remove.
106791         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106792         New constants.
106793         (struct mode_change): Moved here from modechange.h.
106794         (mode_append_entry): Remove.
106795         (mode_compile): Remove MASKED_OPS arg, since it encouraged
106796         apps to have incorrect behavior.  Use simpler algorithm for head
106797         and tail.  Don't futz with umask; that's now the job of mode_adjust.
106798         Detect more invalid usages rather than having somewhat-random behavior.
106799         Don't insert an "a=" action, as that leads to incorrect behavior.
106800         (mode_compile, mode_create_from_ref): Return NULL on error instead
106801         of an enum, since now there's only one way to have an error.  All
106802         callers changed.
106803         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
106804         at the correct time.  Simplify calculation of "+u" and its ilk.
106805         Don't mishandle "+X".
106806         (mode_free): Remove "register" and localize decls.
106807         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
106808         (struct mode_change): Move to modechange.c; callers don't
106809         need to see this stuff.
106810         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
106811         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
106812         (mode_change, mode_adjust): Reflect the new signatures noted above.
106813         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
106814         that might redefine system include files.
106815         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
106816         (my_usleep): Use NULL rather than (void *) 0.
106817         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
106818         Use siginterrupt to specify that system calls should be interrupted.
106819         (rpl_nanosleep): Move initialization of suspended closer to call of
106820         my_usleep.
106821         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
106822         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
106823         (desirable_utmp_entry): New function.
106824         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
106825         using x2nrealloc, to simplify logic.
106826         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
106827         size calculation.  Do not assume utmp file is a regular file.
106828         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
106829         (READ_UTMP_CHECK_PIDS): New constant.
106830         * lib/save-cwd.c: Include unistd-safer.h.
106831         (save_cwd): Use fd_safer.
106832         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
106833         [!_LIBC] Include "stat-macros.h" instead.
106834         * lib/unistd-safer.h (fd_safer): New decl.
106836 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106838         * modules/getloadavg (Depends-on): Add unistd-safer.
106839         * modules/getusershell (Depends-on): Add stdio-safer.
106840         * modules/lstat (Depends-on): Remove xalloc.
106841         * modules/mkstemp (Depends-on): Add stat-macros.
106842         * modules/modechange (Depends-on): Remove xstrtol.
106843         Add stat-macros, xalloc.
106844         * modules/save-cwd (Depends-on): Add unistd-safer.
106845         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
106846         * modules/unistd-safer (Files): Add lib/fd-safer.c
106847         (Makefile.am): Remove lib_SOURCES.
106849         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
106850         Remove fcntl-safer; unistd-safer supersedes it.
106852 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106854         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
106855         AC_HEADER_STAT.
106856         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
106857         (gl_PREREQ_CHOWN): Remove.
106858         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
106859         it.  Don't require AC_HEADER_STAT.
106860         (gl_PREREQ_LSTAT): Remove.
106861         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
106862         Don't require AC_HEADER_STAT.
106863         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
106864         (gl_PREREQ_RMDIR): Remove.
106865         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
106866         mention stat-macros.h or AC_HEADER_STAT, since we'll make
106867         the stat-macros module a prerequisite.
106868         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
106869         * m4/filemode.m4 (gl_FILEMODE): Likewise.
106870         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
106871         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
106872         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
106873         variable names.
106874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
106875         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
106876         variable prefixes.
106877         * m4/fcntl-safer.m4: Remove.
106878         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
106879         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
106880         Invoke gl_PREREQ_FD_SAFER.
106881         (gl_PREREQ_FD_SAFER): New macro.
106882         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
106883         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
106884         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
106885         Remove duplicate call to AC_LIBOBJ(readutmp).
106886         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
106888         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
106889         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
106891 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
106893         * MODULES.html.sh (Misc): Add byteswap.
106895 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106897         * modules/getcwd (Depends-on): Add extensions.
106898         * modules/openat (Depends-on): Likewise.
106900 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106902         * modules/byteswap: New file.
106904 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106906         * m4/byteswap.m4: New file.
106908 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
106910         * lib/byteswap_.h: New file.
106912 2005-04-25  Karl Berry  <karl@gnu.org>
106914         * m4/gettext.m4: Update from GNU gettext 0.14.4.
106916 2005-04-25  Albert Chin  <china@thewrittenword.com>
106918         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
106919         Toolkit C bug.
106921 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
106923         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
106924         (func_ln_if_changed): Remove forcibly for no error message
106925         in case file does not exist.
106927 2005-04-19  Simon Josefsson  <jas@extundo.com>
106929         * gnulib-tool (Options): Make --symlink mean --symbolic.
106931 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
106933         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
106935 2005-04-16  Simon Josefsson  <jas@extundo.com>
106937         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
106939 2005-04-15  Simon Josefsson  <jas@extundo.com>
106941         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
106943 2005-04-15  Simon Josefsson  <jas@extundo.com>
106945         * gnulib-tool: Rename --symlink to --symbolic.
106947 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
106949         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
106950         symbolic links to files instead of copying/moving.  Add --aux-dir,
106951         specifying directory relative --dir where auxiliary build tools
106952         are placed.
106954 2005-04-14  Bruno Haible  <bruno@clisp.org>
106956         * modules/allocsa (License): Change to LGPL.
106957         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
106959 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
106961         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
106962         that "UTC +1 second" continues to work.  Problem reported
106963         by Dmitry V. Levin.
106964         (relunit_snumber): New rule.
106965         (relunit): Use it.
106967 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
106969         * lib/getdate.y (universal_time_zone_table): New constant.
106970         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
106971         universal_time_zone_table.
106972         (lookup_zone): Prefer universal_time_zone_table to
106973         local_time_zone_table, so that "GMT" time stamps are allowed in
106974         London during the summer.  Problem reported by Ian Abbott.
106976 2005-04-12  Jim Meyering  <jim@meyering.net>
106978         * lib/human.c (humblock): Set *options even when returning due to
106979         xstrtoumax conversion failure.  Thanks to a used-uninitialized
106980         warning from gcc-4.
106982 2005-04-09  Jim Meyering  <jim@meyering.net>
106984         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
106985         -Wuninitialized: initialize tm0.tm_year.
106987 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
106989         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
106990         count, since there's no maximum.  All uses changed.
106991         Add member dsts_seen.
106992         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
106993         not being INT_MAX.
106994         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
106995         Use pc_rels_seen to decide whether a date is absolute.
106997         * lib/getdate.y (number): Don't overwrite year.
106998         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
106999         check.
107001 2005-04-02  Simon Josefsson  <jas@extundo.com>
107003         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
107004         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
107006 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
107008         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
107009         where no absolute path name can be longer than PATH_MAX.
107011 2005-03-27  Jim Meyering  <jim@meyering.net>
107013         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
107015 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
107017         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
107018         "one's complement" -> "ones' complement" in comment, as per Knuth.
107019         "value of type" -> "type or expression" in comment.
107020         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
107022 2005-03-26  Jim Meyering  <jim@meyering.net>
107024         Comment nits.
107025         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
107026         Correct typos: s/or/of/.
107028 2005-03-26  Jim Meyering  <jim@meyering.net>
107030         * modules/check-include-files: Move to ../ and rename to...
107031         * check-module: ...this.
107033 2005-03-25  Jim Meyering  <jim@meyering.net>
107035         * modules/xvasprintf (Files): Add xalloc.h.
107037 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
107039         * modules/gettext (Files): config/config.rpath ->
107040         build-aux/config.rpath
107041         * modules/iconv (Files): Likewise.
107042         Problem reported by Oskar Liljeblad.
107044 2005-03-23  Jim Meyering  <jim@meyering.net>
107046         * modules/check-include-files: New script to check for
107047         missing dependencies, multiple includes, etc.
107049         * modules/c-strtold (Depends-on): Add xalloc.
107050         * modules/c-strtod (Depends-on): Add xalloc.
107051         * modules/hash (Depends-on): Add xalloc.
107052         (Files): Remove lib/xalloc.h.
107054         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
107055         * modules/userspec (Files): Add lib/inttostr.h.
107057 2005-03-23  Jim Meyering  <jim@meyering.net>
107059         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
107061 2005-03-22  Jim Meyering  <jim@meyering.net>
107063         * modules/stat-macros: New module.
107064         * modules/canonicalize, modules/euidaccess, modules/file-type,
107065         * modules/filemode, modules/lchown, modules/makepath,
107066         * modules/rmdir, modules/stat: Depend on new stat-macros module
107067         rather than listing lib/stat-macros.h manually.
107068         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
107070 2005-03-22  Jim Meyering  <jim@meyering.net>
107072         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
107074 2005-03-22  Bruno Haible  <bruno@clisp.org>
107076         * config/srclist.txt: Replace target directory 'config' with
107077         'build-aux'.
107078         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
107079         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
107080         ../build-aux/.
107082 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
107084         * modules/chdir-long (Depends-on): Add mempcpy.
107086         * modules/acl, modules/backupfile, modules/c-strtod,
107087         modules/c-strtold, modules/canon-host, modules/canonicalize,
107088         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
107089         modules/exclude, modules/exitfail, modules/file-type,
107090         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
107091         modules/getdate, modules/getline, modules/getpagesize,
107092         modules/getpass, modules/getugroups, modules/group-member,
107093         modules/hard-locale, modules/hash, modules/human, modules/idcache,
107094         modules/inttostr, modules/long-options, modules/makepath,
107095         modules/md5, modules/memcasecmp, modules/memcoll,
107096         modules/modechange, modules/mountlist, modules/path-concat,
107097         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
107098         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
107099         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
107100         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
107101         modules/strftime, modules/strndup, modules/strverscmp,
107102         modules/timespec, modules/unlocked-io, modules/userspec,
107103         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
107104         modules/yesno:
107105         Remove lib_SOURCES line from Makefile.am section, as this is now
107106         done automatically by the corresponding Autoconf macro.
107108 2005-03-21  Jim Meyering  <jim@meyering.net>
107110         Changes imported from coreutils.
107112         * lib/cycle-check.c: Don't include xalloc.h.
107114         * lib/path-concat.c: Don't include assert.h.
107115         (path_concat): Remove assertion that would have triggered
107116         for ABASE starting with more than one slash.
107117         Reported by Andreas Schwab.
107119         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
107120         properly when ABASE is an absolute file name.
107121         Correct the description of this function.
107122         Include <assert.h>.
107123         Add an assertion and a test driver.
107124         This fixes a bug introduced on 2004-07-02.
107125         Andreas Schwab reported the resulting failure of cp --parents:
107126         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
107128 2005-03-21  Jim Meyering  <jim@meyering.net>
107130         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
107131         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
107133 2005-03-21  Jim Meyering  <jim@meyering.net>
107134         and  Paul Eggert  <eggert@cs.ucla.edu>
107136         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
107137         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
107138         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
107139         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
107140         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
107141         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
107142         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
107143         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
107144         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
107145         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
107146         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
107147         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
107148         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
107149         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
107150         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
107151         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
107152         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
107153         for these modules.
107155 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
107157         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
107158         (which shouldn't happen), generate nothing instead of returning 0
107159         immediately, so that nstrftime (NULL, ...) doesn't return 0.
107161 2005-03-16  Bruno Haible  <bruno@clisp.org>
107163         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
107164         HAVE_LONGLONG_64BIT.
107166 2005-03-16  Bruno Haible  <bruno@clisp.org>
107168         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
107169         HAVE_LONGLONG_64BIT.
107171 2005-03-16  Bruno Haible  <bruno@clisp.org>
107173         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
107174         HAVE_LONGLONG_64BIT.
107176 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
107178         * lib/strftime.c (my_strftime): Prepend space to format so that we can
107179         reliably distinguish strftime failure from empty output on POSIX
107180         hosts.
107182 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
107184         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
107185         (iconv_string): Don't guess a size-zero buffer, as that might cause
107186         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
107187         result would be 'too large', where 'too large' is (heuristically)
107188         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
107189         overflow concerns.  This will prevent some unwanted malloc failures
107190         when the inputs are very large.
107192 2005-03-15  Karl Berry  <karl@gnu.org>
107194         * config/srclist.txt (config.rpath): from gettext.
107195         * config/config.rpath: update.
107197 2005-03-15  Bruno Haible  <bruno@clisp.org>
107199         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
107200         to 'negate'.
107202         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
107203         variable.
107205         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
107206         results.
107208 2005-03-14  Simon Josefsson  <jas@extundo.com>
107210         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
107211         <fx@gnu.org>.
107213 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
107215         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
107216         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
107217         intprops.h.
107218         * lib/strtol.c: Likewise.
107220 2005-03-14  Jim Meyering  <jim@meyering.net>
107222         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
107223         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
107224         to be nonzero so that we (and caller) can detect the difference
107225         between a valid zero-length expansion and an error return, even
107226         when the underlying strftime fails before writing anything into
107227         that location.
107229 2005-03-14  Bruno Haible  <bruno@clisp.org>
107231         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
107232         Update from GNU gettext 0.14.3.
107234 2005-03-10  Jim Meyering  <jim@meyering.net>
107236         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
107238 2005-03-10  Jim Meyering  <jim@meyering.net>
107240         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
107241         so that this module works on systems without fchdir.
107243 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
107245         Factor int-properties macros into a single file, except for
107246         glibc-related files.
107247         * lib/intprops.h: New file.
107248         * lib/getloadavg.c: Include it instead of limits.h.
107249         (INT_STRLEN_BOUND): Remove.
107250         * lib/human.c: Include intprops.h.
107251         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
107252         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
107253         302/1000.
107254         * lib/inttostr.h: Include intprops.h instead of limits.h.
107255         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
107256         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
107257         for consistency with intprops.h.
107258         (time_t_is_integer, twos_complement_arithmetic): Use them.
107259         * lib/sig2str.h: Include <signal.h>, intprops.h.
107260         (INT_STRLEN_BOUND): Remove.
107261         * lib/strftime.c (TYPE_SIGNED): Remove.
107262         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
107263         * lib/strtol.c: Adjust comments to match intprops.h.
107264         * lib/userspec.c: Include intprops.h.
107265         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
107266         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
107267         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
107268         instead of rolling our own expressions.
107269         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
107271         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
107272         instead of int.
107273         (my_strftime): Do not mishandle years close to INT_MAX, by doing
107274         the right thing even if adding 1900 would overflow.  Similarly
107275         for tm_mon + 1 and tm_yday + 1.
107276         Make %Y always equivalent to %C%y, and similarly for %G and %g.
107277         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
107278         (DO_SIGNED_NUMBER): New macro.
107279         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
107281 2005-03-07  Bruno Haible  <bruno@clisp.org>
107283         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
107285 2005-03-07  Bruno Haible  <bruno@clisp.org>
107287         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
107289 2005-03-04  Derek R. Price  <derek@ximbiot.com>
107291         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
107292         (func_import): Only replace files via --import when they have actually
107293         changed.
107295 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107297         * m4/mmap-anon.m4: New file.
107298         * m4/pagealign_alloc.m4: New file.
107300 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107301             Bruno Haible  <bruno@clisp.org>
107303         * modules/pagealign_alloc: New file.
107304         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
107306 2005-03-03  Derek R. Price  <derek@ximbiot.com>
107307             Bruno Haible  <bruno@clisp.org>
107309         * lib/pagealign_alloc.h: New file.
107310         * lib/pagealign_alloc.c: New file.
107312 2005-03-03  Bruno Haible  <bruno@clisp.org>
107314         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
107315         Use an all-permissive copyright notice, recommended by RMS.
107317 2005-03-02  Bruno Haible  <bruno@clisp.org>
107319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
107320         of AIX, the replacement has to be done only after <string.h> is
107321         included, therefore not in config.h. stpncpy.h does the replacement,
107322         and stpncpy.c uses it.
107324 2005-03-02  Bruno Haible  <bruno@clisp.org>
107326         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
107327         stpncpy.c uses it.
107329 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107331         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
107332         The workaround isn't strictly needed for POSIX conformance, and
107333         it's too much of a pain to configure and maintain.  We'll ask
107334         people to fix their kernels instead.
107335         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
107336         (NANOSLEEP_BUG_WORKAROUND): Remove.
107337         (xnanosleep): Remove the workaround.
107339 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107341         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
107342         Reported by Derek Price.
107343         (Include): Add "timespec.h".
107345         * modules/xnanosleep (Depends-on): Remove gethrxtime.
107347 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107349         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
107350         to detect nanosleep bug.
107352 2005-03-01  Bruno Haible  <bruno@clisp.org>
107354         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
107356 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
107358         * modules/gethrxtime: New file.
107359         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
107360         (Depends-on): Add gethrxtime.
107361         (configure.ac): Add gl_XNANOSLEEP.
107362         (Makefile.am): Remove lib_SOURCES line.
107364 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107366         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
107367         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
107369 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107371         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
107372         * lib/timespec.h (gettime): Return void, since it always
107373         succeeds now.  All uses changed.
107374         * lib/gettime.c (gettime): Likewise.
107375         [HAVE_NANOTIME]: Prefer nanotime.
107376         Assume gettimeofday succeeds, as POSIX requires.
107377         Assime time () succeeds, since other code already does.
107378         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
107379         (timespec_subtract): Remove.
107380         (NANOSLEEP_BUG_WORKAROUND): New constant.
107381         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
107382         things considerably.  Use it only on GNU/Linux hosts, since the
107383         workaround shouldn't be needed elsewhere.
107385 2005-02-24  Bruno Haible  <bruno@clisp.org>
107387         * modules/gettext (Files): Add m4/glibc2.m4.
107389 2005-02-24  Bruno Haible  <bruno@clisp.org>
107391         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
107392         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
107393         * m4/progtest.m4:
107394         Update from GNU gettext 0.14.2.
107395         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
107397 2005-02-24  Bruno Haible  <bruno@clisp.org>
107399         * lib/localcharset.c: Update from GNU gettext 0.14.2.
107400         * lib/config.charset: Update from GNU gettext 0.14.2.
107402 2005-02-24  Bruno Haible  <bruno@clisp.org>
107404         * lib/gettext.h: Update from GNU gettext 0.14.2.
107406 2005-02-23  Simon Josefsson  <jas@extundo.com>
107408         * m4/iconvme.m4: New file.
107410 2005-02-23  Jim Meyering  <jim@meyering.net>
107412         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
107413         change.
107414         Thanks to Bruno Haible for catching it.
107416 2005-02-22  Simon Josefsson  <jas@extundo.com>
107418         * modules/iconvme: New file.
107420         * MODULES.html.sh: Add iconvme.
107422 2005-02-22  Simon Josefsson  <jas@extundo.com>
107424         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
107426 2005-02-22  Simon Josefsson  <jas@extundo.com>
107428         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
107430 2005-02-22  Jim Meyering  <jim@meyering.net>
107432         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
107433         s/ifndef/ifdef/.
107435 2005-02-20  Neil Conway  <neilc@samurai.com>
107437         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
107438         returned by OSX/Darwin if the specified buffer is not large
107439         enough for the hostname.
107441 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107443         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
107444         pass it to _help, otherwise the latter coredumps trying to
107445         dereference state.root_argp.
107447 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107449         * modules/chdir-long (Depends-on): Add memrchr.
107450         * modules/memrchr (Files): Add lib/memrchr.h.
107451         (Include): "memrchr.h".
107453 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
107457 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
107459         * lib/memrchr.h: New file.
107460         * lib/chdir-long.c: Include it.
107461         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
107462         Don't bother including stddef.h.
107464 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
107466         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
107467         inclusion.
107468         Include <sys/types.h>, for dev_t.
107469         (ME_DUMMY, ME_REMOTE): Move from here....
107470         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
107471         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
107472         Dmitry V. Levin.
107473         Include mountlist.h first, to test the interface.
107475 2005-01-29  Bruno Haible  <bruno@clisp.org>
107477         * lib/progname.c (program_name): Initialize.
107478         Needed when linking statically on MacOS X.
107480 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107482         Sync from coreutils.
107483         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
107484         (Depends-on): Add c-strtod.
107485         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
107487 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
107489         Sync from coreutils.
107490         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
107492         Remove files that are specific to coreutils.
107493         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
107495 2005-01-28  Bruno Haible  <bruno@clisp.org>
107497         * modules/javacomp: New file.
107498         * MODULES.html.sh (Java): Add javacomp.
107500 2005-01-28  Bruno Haible  <bruno@clisp.org>
107502         * m4/javacomp.m4: New file, from GNU gettext.
107504 2005-01-28  Bruno Haible  <bruno@clisp.org>
107506         * lib/javacomp.sh.in: New file, from GNU gettext.
107507         * lib/javacomp.h: New file, from GNU gettext.
107508         * lib/javacomp.c: New file, from GNU gettext.
107510 2005-01-26  Simon Josefsson  <jas@extundo.com>
107512         * lib/gai_strerror.c: Use GPL in header.
107514 2005-01-26  Bruno Haible  <bruno@clisp.org>
107516         * modules/javaexec: New file.
107517         * MODULES.html.sh (Java): Add javaexec.
107519 2005-01-26  Bruno Haible  <bruno@clisp.org>
107521         * m4/javaexec.m4: New file, from GNU gettext.
107523 2005-01-26  Bruno Haible  <bruno@clisp.org>
107525         * lib/javaexec.sh.in: New file, from GNU gettext.
107526         * lib/javaexec.h: New file, from GNU gettext.
107527         * lib/javaexec.c: New file, from GNU gettext.
107529 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107531         * modules/lchown (Depends-on): Remove lchown.h
107533 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107535         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
107536         must be defined if the header file was not found, in order
107537         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
107539 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107541         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
107542         initializers for struct pentry_state.
107543         (__argp_error): Check return value of __asprintf
107544         (__argp_failure): Translate error message
107546         * lib/argp-parse.c: Removed braces around the expansion of N_()
107548 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
107550         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
107551         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
107552         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
107553         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
107554         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
107555         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
107556         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
107557         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
107558         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
107559         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
107560         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
107561         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
107562         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
107563         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
107564         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
107565         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
107566         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
107567         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
107568         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
107569         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
107570         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
107571         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
107572         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
107573         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
107574         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
107575         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
107576         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
107577         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
107578         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
107579         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
107580         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
107581         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
107582         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
107583         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
107584         xstrtol.m4, xstrtoumax.m4, yesno.m4:
107585         Use an all-permissive copyright notice, recommended by RMS.
107587 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
107589         * modules/chdir-long (Depends-on): Remove mempcpy.
107591 2005-01-21  Jim Meyering  <jim@meyering.net>
107593         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
107594         same value as for Solaris 9.
107596         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
107597         component length.  This included changing the parameter to be
107598         of type `char *' rather than `char const *'.
107599         * lib/chdir-long.h (chdir_long): Update prototype.
107601         * lib/openat.c (fdopendir, fstatat): New functions.
107602         * lib/openat.h: Include headers required for use of DIR and struct
107603         stat.
107604         [AT_SYMLINK_NOFOLLOW]: Define.
107605         (fdopendir, fstatat): Add prototypes.
107607 2005-01-21  Bruno Haible  <bruno@clisp.org>
107609         * modules/classpath: New file.
107610         * MODULES.html.sh (Java): Add classpath.
107612 2005-01-21  Bruno Haible  <bruno@clisp.org>
107614         * lib/classpath.h: New file, from GNU gettext.
107615         * lib/classpath.c: New file, from GNU gettext.
107617 2005-01-20  Simon Josefsson  <jas@extundo.com>
107619         * modules/version-etc-fsf: New file.
107621 2005-01-20  Simon Josefsson  <jas@extundo.com>
107623         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
107624         * lib/version-etc.c: Remove version_etc_copyright.
107625         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
107626         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
107628 2005-01-20  Simon Josefsson  <jas@extundo.com>
107630         * lib/base64.h (isbase64): Add.
107632         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
107633         using a unsigned prototype, don't inline.
107634         (base64_decode): Use it.
107636 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107638         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
107639         it.
107641 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107643         * lib/save-cwd.c (save_cwd): Remove code to support the case
107644         where fchdir is missing or flaky.
107646 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
107648         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
107650 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
107652         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
107653         AC_LIBSOURCES now does this.
107654         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
107655         with new ullong_max module.
107657 2005-01-19  Bruno Haible  <bruno@clisp.org>
107659         * modules/sh-quote: New file.
107660         * MODULES.html.sh (Executing programs): Add sh-quote.
107662 2005-01-19  Bruno Haible  <bruno@clisp.org>
107664         * lib/sh-quote.h: New file, from GNU gettext.
107665         * lib/sh-quote.c: New file, from GNU gettext.
107667 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107669         Merge from coreutils.
107670         * m4/ullong_max.m4: New file.
107671         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
107672         (gl_MACROS): Assume localeconv exists.
107674 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107676         Merge changes from coreutils, as described below in several
107677         changelogs dated today.
107679         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
107680         (O_DIRECTORY): Remove; not needed here, since "." must be
107681         a directory.  All uses removed.
107682         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
107683         universal on Suns, and we also need to test for IRIX.
107684         Revamp code to use 'if' rather than '#if'.
107685         Avoid unnecessary comparison of cwd->desc to 0.
107687         * lib/utimens.c (futimens): Robustify the previous patch, by checking
107688         for known valid error numbers rather than observed invalid ones.
107690 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
107692         * modules/ullong_max: New file.
107694         * modules/chdir-long, modules/openat: New files.
107695         * modules/save-cwd (Depends-on): Depend on chdir-long.
107696         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
107698 2005-01-18  Jim Meyering  <jim@meyering.net>
107700         Merge from coreutils.
107701         * m4/chdir-long.m4, m4/openat.m4: New files.
107702         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
107703         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
107704         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
107705         is sane and DOES follow symlinks.  Besides, testing 20 different
107706         systems found no broken chown implementations.
107707         Prompted by a change in rsync's copy of this macro.
107708         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
107710         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
107712         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
107713         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
107714         NULL-means-set-to-current-time semantics.
107715         Remove temporary file immediately, rather than waiting
107716         for configure's at-exit trap code to do it.
107718 2005-01-18  Jim Meyering  <jim@meyering.net>
107720         * lib/version-etc.c (version_etc_copyright): Update copyright date.
107722         * lib/utimens.c (futimens): Account for the fact that futimes
107723         can also fail with errno == ENOSYS or errno == ENOENT.
107724         Patch from Dmitry V. Levin.
107726         Change the name of the robust chdir function from chdir to chdir_long.
107727         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
107728         (restore_cwd): Use chdir_long, not chdir.
107729         * lib/chdir-long.c: Renamed from chdir.c.
107730         * lib/chdir-long.h: Renamed from chdir.h.
107731         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
107732         Hurd.
107734 2005-01-18  Bruno Haible  <bruno@clisp.org>
107736         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
107737         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
107738         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
107739         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
107740         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
107741         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
107742         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
107743         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
107744         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
107745         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
107746         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
107747         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
107748         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
107749         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
107750         Use an all-permissive copyright notice, recommended by RMS.
107752 2005-01-18  Bob Proulx  <bob@proulx.com>
107754         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
107755         simplify offsetof() macro construct to avoid compile failure with
107756         native HP-UX 11.0 ANSI C compiler.
107758 2005-01-17  Bruno Haible  <bruno@clisp.org>
107760         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
107761         redundant because stpncpy.m4 takes care of it.
107763 2005-01-17  Bruno Haible  <bruno@clisp.org>
107765         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
107767 2005-01-17  Bruno Haible  <bruno@clisp.org>
107769         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
107770         used.
107772 2005-01-17  Bruno Haible  <bruno@clisp.org>
107774         * lib/fwriteerror.h (fwriteerror): Change specification to include
107775         fclose.
107776         * lib/fwriteerror.c: Include <stdbool.h>.
107777         (fwriteerror): At the end, close the file stream. Record whether
107778         stdout was already closed.
107780 2005-01-17  Bruno Haible  <bruno@clisp.org>
107782         * lib/execute.c (environ): Declare if needed.
107783         * lib/pipe.c (environ): Likewise.
107784         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
107786 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107788         * modules/argp: Depend on vsnprintf
107790 2005-01-10  Jim Meyering  <jim@meyering.net>
107792         * modules/closeout (Depends-on): Add atexit.
107794 2005-01-06  Bruno Haible  <bruno@clisp.org>
107796         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
107798 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
107800         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
107801         definitions to be after all include files, to avoid collisions.
107802         Problem reported by Bob Proulx.
107804 2005-01-04  Jim Meyering  <jim@meyering.net>
107806         Changes imported from coreutils.
107807         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
107808         as the mkstemp template, use a temporary directory and an
107809         8.3-friendly template to avoid trouble on systems like DJGPP.
107810         Reported by Juan M. Guerrero via Stepan Kasal.
107811         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
107812         close. Remove the temporary directory right away, rather than waiting
107813         for configure's at-exit trap code to do it.
107814         Suggestion from Stepan Kasal.
107816 2005-01-01  Simon Josefsson  <jas@extundo.com>
107818         * gnulib-tool: Print #include directives when --import'ing.
107820 2004-12-28  Simon Josefsson  <jas@extundo.com>
107822         * tests/test-base64.c: Include required header files.  Remove
107823         unused variables.
107825 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107827         * modules/error (Depends-on): Remove gettext.
107829 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
107831         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
107832         not needed.  This removes a dependency on the gettext module.
107833         [defined _LIBC]: Do not include <libintl.h>; not needed.
107835 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107837         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
107838         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
107840 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
107842         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
107843         HAVE_DECL_STRTOLD.
107845 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107847         * modules/getdate (Depends-on): Remove alloca-opt.
107849 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107851         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
107853 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
107855         * lib/argp-parse.c: Include <stddef.h>.
107856         (alignof, alignto): New macros.
107857         (parser_init): Don't assume that void * is aligned sufficiently
107858         for struct option.
107860         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
107861         need to extend the stack.
107862         (YYINITDEPTH): New macro, so that the initial stack isn't overly
107863         large.
107865 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
107867         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
107869 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107871         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
107872         (2004-10-24) change.  Apparently this was a false alarm.
107874         * modules/getdate: Depend on alloca-opt, not alloca.
107876 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
107878         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
107879         Remove now-obsolete comment about AIX.
107880         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
107881         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
107882         (YYMAXDEPTH): New macro.
107884 2004-12-18  Simon Josefsson  <jas@extundo.com>
107886         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
107888 2004-12-18  Bruno Haible  <bruno@clisp.org>
107890         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
107892 2004-12-18  Bruno Haible  <bruno@clisp.org>
107894         * lib/fatal-signal.c (fatal_signals): Make non-const.
107895         (init_fatal_signals): New function.
107896         (uninstall_handlers, install_handlers): Ignore signals that were set to
107897         SIG_IGN.
107898         (at_fatal_signal): Call init_fatal_signals.
107899         (init_fatal_signal_set): Likewise. Ignore signals that were set to
107900         SIG_IGN.
107901         Reported by Paul Eggert.
107903 2004-12-18  Bruno Haible  <bruno@clisp.org>
107905         * doc/alloca.texi: New file.
107906         * doc/alloca-opt.texi: New file.
107908 2004-12-17  Jim Meyering  <jim@meyering.net>
107910         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
107911         Otherwise, install-sh could exit with improper exit status when
107912         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
107914 2004-12-16  Simon Josefsson  <jas@extundo.com>
107916         * tests/test-base64.c: Add license.
107918 2004-12-15  Stepan Kasal  <address@hidden>
107920         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
107922 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
107924         * modules/getcwd (Files): Add m4/d-ino.m4.
107925         Suggested by Mark D. Baushke.
107927 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107929         * lib/getdate.y (textint): New member "negative".
107930         (time_zone_hhmm): New function.
107931         Expect 14 shift-reduce conflicts, not 13.
107932         (o_colon_minutes): New rule.
107933         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
107934         (yylex): Set the "negative" member of signed numbers.
107936 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
107938         * doc/getdate.texi (Time of day items, Time zone items):
107939         Describe new formats +00:00, UTC+00:00.
107941 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
107943         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
107944         spurious "-l"s.  Problem reported by Stepan Kasal.
107946 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
107948         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
107949         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
107951 2004-12-04  Simon Josefsson  <jas@extundo.com>
107953         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
107954         Vandoorselaere <yoann@prelude-ids.org>.
107956 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107958         Changes imported from coreutils.
107959         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
107960         exist.
107961         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
107963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107965         Changes imported from coreutils.
107966         * lib/hard-locale.c: Assume <locale.h> exists.
107967         Include "strdup.h".
107968         (GLIBC_VERSION): New macro.
107969         (hard_locale): Assume setlocale exists.
107970         Rewrite to avoid #ifdef.
107971         Use strdup rather than malloc + strcpy.
107972         * lib/human.c: Assume <locale.h> exists.
107973         (human_readable): Assume localeconv exists.
107975 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
107977         * modules/hard-locale (Depends-on): Add strdup.
107979 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
107981         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
107982         convert T2, not T.  (Imported from libc.)
107984 2004-11-30  Simon Josefsson  <jas@extundo.com>
107986         * modules/restrict (License): Change to LGPL.
107988 2004-11-30  Simon Josefsson  <jas@extundo.com>
107990         * m4/restrict.m4: Add copyright and copying conditions.
107992 2004-11-30  Simon Josefsson  <jas@extundo.com>
107994         * m4/base64.m4: New file.
107996 2004-11-30  Simon Josefsson  <jas@extundo.com>
107998         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
107999         base64.
108001         * tests/test-base64.c: New file.
108003         * modules/base64: New file.
108005 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
108007         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
108008         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
108010         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
108012 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
108014         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
108015         (__getcwd.c): Don't restore errno; glibc doesn't.
108016         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
108017         first, falling back to our code only if its results look suspicious.
108018         Ensure that the resulting buffer is only as large as necessary.
108020         * lib/readutmp.c: Include readutmp.h first.
108021         Include <errno.h>, since readutmp.h no longer does that.
108022         * lib/readutmp.h: Don't include <errno.h>,
108023         <sys/param.h>, <time.h>; not needed to establish interface.
108024         (errno): Remove decl.
108025         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
108026         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
108027         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
108029 2004-11-28  Simon Josefsson  <jas@extundo.com>
108031         * lib/base64.h, base64.c: New file.
108033 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
108035         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
108037 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
108039         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
108040         (Depends-on): Remove pathmax, same.  Add mempcpy.
108041         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
108042         (Makefile.am): Append getcwd.h to lib_SOURCES.
108043         (Include): Add getcwd.h.
108044         (Maintainer): Change from Jim Meyering to "all, glibc",
108045         since getdate now uses intended-for-glibc code.
108046         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
108047         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
108049 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
108051         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
108052         HP's ANSI C compiler.
108053         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
108054         Declaring int functions causes warnings on some modern systems and
108055         shouldn't be needed to compile on ancient ones.
108056         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
108057         defined.
108059         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
108060         with the following changes.
108061         (__set_errno): Parenthesize properly.
108062         Include <stdbool.h>.
108063         (MIN, MAX, MATCHING_INO): New macros.
108064         (__getcwd): Define with prototype, not K&R form.
108065         Use heuristics to allocate default buffer on stack if possible.
108066         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
108067         behavior, and to avoid the PATH_MAX limit when computing
108068         ../../../../...
108069         Use MATCHING_INO to compare inode number to file.
108070         Check for arithmetic overflow in size calculations.
108071         Fix bug in reallocation of dot array that caused getcwd to fail
108072         on directories nested deeper than 75.
108073         Be more careful about saving errno on error.
108074         Do not use realloc; use only free+malloc, as this is a bit
108075         more flexible and avoids a needless copy operation.
108076         Do not inspect st_dev and st_ino for symbolic links; POSIX
108077         doesn't specify the latter.
108078         Check for closedir errors.
108079         Avoid needless casts.
108080         Use "#ifdef weak_alias" around weak_alias, to be like other
108081         glibc code.
108082         The following changes to getcwd.c have effect only when used in
108083         gnulib; they have no effect inside glibc proper.
108084         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
108085         as alloca isn't used.
108086         (alloca, __alloca): Likewise.
108087         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
108088         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
108089         unconditionally, as gnulib assumes C89 or better.
108090         Do not include <sys/param.h>.
108091         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
108092         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
108093         better.
108094         (NULL) [!defined NULL]: Remove; we assume C89 or better.
108095         Include <dirent.h> in a way that is compatible with modern Autoconf.
108096         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
108097         New macros, if not already defined.
108098         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
108099         Use "_LIBC", not "defined _LIBC", for consistency.
108100         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
108101         a mempcpy module.
108102         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
108103         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
108104         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
108105         credit only to Jim Meyering and adjust the copyright dates.
108106         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
108107         <stdlib.h>, <unistd.h>, "pathmax.h".
108108         Instead, include "xgetcwd.h" (first) and "getcwd.h".
108109         (INITIAL_BUFFER_SIZE): Remove.
108110         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
108112 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
108114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
108115         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
108116         Use the _ONCE methods, for efficiency.
108117         Check for fcntl.h.  In test program, include <errno.h>
108118         and <fcntl.h> if available.  Remove old K&R cruft from
108119         test program.  Check for common errors in GNU/Linux,
108120         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
108121         don't do AC_LIBOBJ, as that's getcwd.m4's job.
108122         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
108123         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
108124         name accordingly.
108125         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
108126         accommodate new getcwd.c.
108127         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
108128         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
108129         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
108130         that's all we need now.
108132 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108134         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
108135         argp-parse.c depends on getopt internals, that means we should
108136         always use our getopt, to be on the safe side.
108137         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
108138         order not to spoil the result of an eventual previous invocation
108139         of gl_GETOPT_SUBSTITUTE.
108141 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108143         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
108144         redefinition warnings. To avoid them, include the defines
108145         in `#if !defined __need_getopt ... #endif'. The only place
108146         where __getopt_argv_const is used is in definitions
108147         of getopt_long and getopt_long_only below, which are as well
108148         protected by `#ifndef __need_getopt'.
108149         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
108150         __need_getopt after including <stdio.h> and <unistd.h> These
108151         headers might have defined it.
108153 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
108155         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
108157 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
108159         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
108160         (futimens): New function, which uses futimes if available.
108161         (futimens, utimens): Support timespec==NULL, with same semantics
108162         as utime and utimens.
108163         * lib/utimens.h (futimens): New decl.
108165 2004-11-23  Jim Meyering  <jim@meyering.net>
108167         * lib/getopt_.h: Remove trailing blanks.
108169 2004-11-23  Jim Meyering  <jim@meyering.net>
108171         * lib/__fpending.c: Add comment.
108173 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
108175         * modules/canonicalize (Depends-on): Add xreadlink.
108176         Problem reported by James Youngman.
108178 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
108180         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
108181         New macros.
108182         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
108183         optopt): Use them instead of invoking ## directly; otherwise, the
108184         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
108186 2004-11-19  Bruno Haible  <bruno@clisp.org>
108188         * lib/strtok_r.c: Move comments from here...
108189         * lib/strtok_r.h: ... to here.
108191 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
108193         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
108194         implementations that mishandle size_t overflow.
108196 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
108198         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
108199         might fail.  Problem reported by Yoann Vandoorselaere.
108200         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
108201         implementations that mishandle size_t overflow.
108203 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108205         * modules/canon-host (Depends-on): Add strdup.
108207 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108209         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
108211 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108213         * lib/canon-host.c: Include "strdup.h".
108214         (canon_host): Use getaddrinfo if available, so that IPv6 works.
108215         Use strdup instead of malloc/strcpy to duplicate strings.
108217         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
108218         (human_space_before_unit): New constant.
108219         * lib/human.c (human_readable): Support it.
108221         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
108222         (xgetcwd): Set errno correctly when failing.
108223         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
108224         the failure is actually due to a PATH_MAX problem.
108226         Further getopt changes to make it more likely that glibc will
108227         buy the changes back.
108228         * lib/getopt.c (POSIXLY_CORRECT): New constant.
108229         (getopt): Use it, so to preserve glibc semantic
108230         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
108231         when compiling for libc.
108232         * lib/getopt_.h (__getopt_argv_const): Bring it back.
108233         (getopt_long, getopt_long_only): Use it.
108235         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108236         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
108237         (getopt): Argv is now char * const *, as per standard.
108238         (_getopt_internal_r, _getopt_internal): Argv is now char **,
108239         not char *__getopt_argv_const *.
108240         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108241         _getopt_long_only_r): Likewise.
108242         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
108243         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108244         _getopt_long_r, _getopt_long_only_r): Likewise.
108245         * lib/getopt_.h (__getopt_argv_const): Remove.
108246         (getopt): Argv is now char * const *, as per standard.
108248         * lib/getdate.y (tORDINAL): New token.
108249         (day, relunit): Allow it for relative times.
108250         (relative_time_table): Use tORDINAL for ordinals.
108252 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
108254         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
108255         Document that "second" isn't allowed as an ordinal number.
108257 2004-11-16  Jim Meyering  <jim@meyering.net>
108259         * modules/closeout (Depends-on): Add fpending.
108261 2004-11-15  Jim Meyering  <jim@meyering.net>
108263         * lib/closeout.c: Include "__fpending.h" once again.
108264         Include <stdbool.h>.
108265         (close_stdout): Don't fail just because stdout was closed initially,
108266         since some programs don't write to stdout in the normal course of
108267         operation (other than --version and --help), and we don't want this
108268         function to make e.g. `touch file >&-' fail.
108269         But do fail if it was closed and someone has tried to write to it.
108270         E.g., `printf foo >&-' must fail.
108272 2004-11-13  Jim Meyering  <jim@meyering.net>
108274         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
108276 2004-11-12  Simon Josefsson  <jas@extundo.com>
108278         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
108279         small doc fix is still pending.
108281 2004-11-11  Simon Josefsson  <jas@extundo.com>
108283         * modules/strtok_r: New file.
108285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108286         strtok_r.
108288 2004-11-11  Simon Josefsson  <jas@extundo.com>
108290         * m4/strtok_r.m4: New file.
108292         * m4/getopt.m4: Replace opterr.
108294 2004-11-11  Simon Josefsson  <jas@extundo.com>
108296         * lib/strtok_r.h, strtok_r.c: New file.
108298 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108300         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
108301         of replacing opterr, getopt, etc.  This should handle the
108302         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
108304 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
108306         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
108307         we can stop lying to compilers about the constness of argv when we
108308         are compiled outside glibc.
108309         (getopt, getopt_long, getopt_long_only): Use it.
108310         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
108311         _getopt_internal, getopt): Likewise.
108312         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
108313         _getopt_long_only_r): Likewise.
108314         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
108315         _getopt_long_r, _getopt_long_only_r): Likewise.
108317         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
108318         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
108319         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
108320         the other external symbols.
108321         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
108322         declaration, since the above renaming now works around collisions.
108324 2004-11-11  Jim Meyering  <jim@meyering.net>
108326         * lib/linebreak.c: Remove trailing blanks.
108327         * lib/alloca_.h: Likewise.
108328         * lib/acosl.c: Likewise.
108329         * lib/euidaccess.c: Likewise.
108330         * lib/allocsa.h: Likewise.
108332 2004-11-10  Simon Josefsson  <jas@extundo.com>
108334         * m4/getaddrinfo.m4: New file.
108336 2004-11-10  Simon Josefsson  <jas@extundo.com>
108338         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
108340 2004-11-10  Simon Josefsson  <jas@extundo.com>
108342         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
108343         getaddrinfo.
108345         * modules/getaddrinfo: New file.
108347 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108349         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
108351 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
108353         * lib/mktime.c (SHR): New macro, which is a portable
108354         substitute for >> that should work even on Crays.
108355         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
108356         Problem reported by Mark D. Baushke in
108357         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
108358         * lib/getdate.y (SHR): Likewise.
108359         (tm_diff): Use it.
108360         * lib/strftime.c (SHR): Likewise.
108361         (tm_diff): Use it.
108362         * lib/quotearg.c (struct quoting_options): Use unsigned int for
108363         quote_these_too, so that right shifts are well defined.  All uses
108364         changed.
108366 2004-11-10  Jim Meyering  <jim@meyering.net>
108368         Ensure that no close failure goes unreported.
108369         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
108370         return early when it seems there's nothing to flush.
108371         Don't include __fpending.h.
108373 2004-11-10  Jim Meyering  <jim@meyering.net>
108375         * modules/closeout (Depends-on): Remove fpending.
108377 2004-11-10  Jim Meyering  <jim@meyering.net>
108379         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
108381 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108383         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
108384         gl_FUNC_STRFTIME.
108385         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
108386         and AC_REQUIRE when possible, to avoid duplicate checks.
108387         Check for <wchar.h>.
108389 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
108391         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
108393 2004-11-09  Bruno Haible  <bruno@clisp.org>
108395         * m4/sockpfaf.m4: New file.
108397 2004-11-05  Bruno Haible  <bruno@clisp.org>
108399         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
108400         Reported by Mark D. Baushke <mdb@cvshome.org>.
108402 2004-11-04  Bruno Haible  <bruno@clisp.org>
108404         2004-09-11  Bruno Haible  <bruno@clisp.org>
108405                 * allocsa.valgrind: New file.
108406         2004-02-06  Bruno Haible  <bruno@clisp.org>
108407                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
108408                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
108409                 Reported by Christopher Seip <chris.seip@hp.com>.
108411 2004-11-04  Bruno Haible  <bruno@clisp.org>
108413         * modules/allocsa (Files): Add lib/allocsa.valgrind.
108414         (Makefile.am): Distribute it.
108416 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
108418         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
108419         with errno == ERANGE if the buffer is too small.
108420         Problem reported by Mark D. Baushke.
108422 2004-11-03  Albert Chin  <china@thewrittenword.com>
108423             Paul Eggert  <eggert@cs.ucla.edu>
108425         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
108426         equivalent, substitute $ac_type for equivalent type rather than
108427         blindly using uint32_t *always* which won't work if uint32_t is not
108428         available.  Define _UINT32_T to work around typedef of uint32_t if
108429         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
108430         2.5.1.
108432 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108434         * m4/jm-macros.m4: Sync from coreutils.
108435         (gl_MACROS): Check for mbrlen, for pathchk.
108436         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
108438 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108440         * lib/xreadlink.c (MAXSIZE): New macro.
108441         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
108442         size does not exceed MAXSIZE.  Avoid cast.
108443         As suggested by Mark D. Baushke in
108444         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
108445         if readlink fails with buffer size just under MAXSIZE, try again
108446         with MAXSIZE.
108448 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
108450         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
108452 2004-11-02  Derek R. Price  <derek@ximbiot.com>
108453         and  Paul Eggert  <eggert@cs.ucla.edu>
108455         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
108456         (get_date): Overparenthesize to avoid GCC warning.
108458 2004-11-02  Bruno Haible  <bruno@clisp.org>
108460         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
108461         returns void.
108463 2004-11-02  Bruno Haible  <bruno@clisp.org>
108465         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
108466         function returns void.
108468 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
108471         fflush_unlocked, flockfile, funlockfile, funlockfile,
108472         fputs_unlocked, putc_unlocked.
108474 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
108476         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108477         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
108478         already declared.
108480 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108482         * modules/getdate (Files): Add doc/getdate.texi.
108483         (Depends-on): Add setenv, xalloc.
108485 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108487         * lib/getdate.y: Add support for TZ="foo" within a date string.
108488         Fix some bugs near time_t boundaries.  Reject dates with
108489         out-of-range components, e.g., "Sept 31".
108490         Include <stdlib.h>, "setenv.h", "xalloc.h".
108491         (ISDIGIT_LOCALE): Remove; unused.
108492         Note that the TZ and time functions used here are not reentrant.
108493         (mktime_ok, get_tz): New functions.
108494         (TZBUFSIZE): New constant.
108495         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
108496         This requires that we sometimes generate our own TZ="XXX..." setting.
108498 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
108500         * doc/getdate.texi: New file, from coreutils with modifications for
108501         the new TZ parsing.
108503 2004-10-27  Derek R. Price  <derek@ximbiot.com>
108505         * lib/mktime.c (not_equal_tm): Remove redundant check.
108507 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108509         * modules/regex (lib_SOURCES): Add regex.c.
108510         Reported by James Youngman in
108511         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
108513 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
108515         * lib/getdate.y: Use Bison 1.875 features, and some minor
108516         code cleanups.  This change does not affect semantics.
108517         Don't include <stdlib.h>; no longer needed.
108518         Don't include unlocked-io.h; only the "#if TEST" code uses
108519         stdio, and performance isn't crucial there.
108520         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
108521         Bison 1.875 features as described below.
108522         All uses of "PC." replaced by "pc->".
108523         (YYSTYPE): Add a forward declaration.
108524         (yylex, yyerror): Use full prototypes in forward decls.
108525         Use "%pure-parser" rather than obsolescent "%pure_parser".
108526         Use %parse-param and %lex-param instead of obsolescent
108527         YYPARSE_PARAM and YYLEX_PARAM.
108528         (meridian_table, month_and_day_table, time_units_table,
108529         relative_time_table, time_zone_table, military_table,
108530         lookup_zone, lookup_word, get_date):
108531         Use NULL instead of 0 where appropriate.
108532         (to_hour): Avoid abort (), to avoid a dependency on
108533         stdlib.h.
108534         (yyerror, yylex): Now accepts parser_control * arg.
108535         (main) [TEST]: Use '\0' rather than 0 for char.
108537 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108539         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
108541 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
108543         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
108544         It's now the caller's responsibility to handle the case where
108545         !HAVE_GETPAGESIZE && !defined getpagesize.
108547         * lib/mktime.c (leapyear): Arg is long int, not int.
108549 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
108551         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
108553 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
108555         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
108556         missing.  Problem reported by James Youngman.
108558 2004-10-16  Simon Josefsson  <jas@extundo.com>
108560         * gnulib-tool: Fix comments.  Fix parse problem.
108561         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
108563 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
108565         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
108566         implementation of getopt_long.  Problem reported by Alexander Taler in:
108567         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
108569 2004-10-15  Bruno Haible  <bruno@clisp.org>
108571         * gnulib-tool: Untabify. Initialize supplied_libname.
108572         (func_usage): More homogenous output.
108573         (func_modules_transitive_closure, func_modules_to_filelist,
108574         func_emit_lib_Makefile_am): New functions.
108575         (func_import): New function, extracted from big case statement. Use
108576         func_get_license, func_modules_transitive_closure,
108577         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
108578         opt_lgpl. Don't use test -a, as it's not portable.
108579         (func_create_testdir): Use func_modules_transitive_closure,
108580         func_modules_to_filelist, func_emit_lib_Makefile_am.
108582 2004-10-15  Bruno Haible  <bruno@clisp.org>
108584         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
108586 2004-10-15  Bruno Haible  <bruno@clisp.org>
108588         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
108589         the portions belonging to each module.
108590         Suggested by Derek Robert Price <derek@ximbiot.com>.
108592 2004-10-12  Simon Josefsson  <jas@extundo.com>
108594         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
108595         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
108596         to real functions.
108598 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108600         * modules/vsnprintf: New file.
108602 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108604         * m4/vsnprintf.m4: New file.
108606 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108608         * lib/vsnprintf.h: New file.
108609         * lib/vsnprintf.c: New file.
108611 2004-10-11  Bruno Haible  <bruno@clisp.org>
108613         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
108614         vsnprintf.
108616 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
108618         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
108620 2004-10-07  Bruno Haible  <bruno@clisp.org>
108622         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
108623         fits into the provided buffer.
108625 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
108627         * lib/diacrit.c, diacrit.h: Add GPL notice.
108629         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
108630         notice.
108631         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
108632         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
108633         This avoids a potential constant-folding bug.
108635 2004-10-05  Bruno Haible  <bruno@clisp.org>
108637         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
108638         for the declaration of strsep.
108640 2004-10-05  Bruno Haible  <bruno@clisp.org>
108642         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
108644 2004-10-04  Simon Josefsson  <jas@extundo.com>
108646         * modules/memmem: New file.
108647         * tests/test-memmem.c: New file.
108648         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
108650 2004-10-04  Simon Josefsson  <jas@extundo.com>
108652         * m4/memmem.m4: New file.
108654 2004-10-04  Simon Josefsson  <jas@extundo.com>
108656         * lib/memmem.h: New file.
108657         * lib/memmem.c: New file, taken from glibc.
108659 2004-10-04  Simon Josefsson  <jas@extundo.com>
108661         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
108662         '#ifdef USE_UNLOCKED_IO'.
108664 2004-10-04  Simon Josefsson  <jas@extundo.com>
108666         * config/srclist.txt: Add memmem from glibc.
108668 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108670         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
108672         * modules/argmatch, modules/argp, modules/closeout, modules/error,
108673         modules/exclude, modules/getdate, modules/getline,
108674         modules/getndelim2, modules/getpass, modules/getpass-gnu,
108675         modules/getusershell, modules/linebuffer, modules/md5,
108676         modules/mountlist, modules/posixtm, modules/readtokens,
108677         modules/readutmp, modules/regex, modules/sha1,
108678         modules/version-etc, modules/yesno:
108679         Remove dependency on unlocked-io.
108681 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108683         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
108685         * m4/unlocked-io.m4: Add copyright notice.
108686         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
108688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108690         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
108691         * lib/xmalloc.c (xmemdup): Likewise.
108692         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
108693         XFREE): Remove these long-obsolescent macros.
108694         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
108695         * lib/xstrdup.c: Remove.
108697         * lib/regex.c (re_comp): Cast gettext return value to char *,
108698         Problem reported by Martin Neitzel via Mark D. Baushke.
108700 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
108702         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
108703         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
108704         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
108705         regex.c, sha1.c, version-etc.c, yesno.c:
108706         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
108707         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
108708         the includer's responsibility.
108710         Sync from coreutils.
108712         * lib/modechange.c (mode_compile): Don't decrement a pointer that
108713         points to the start of a string, as the C Standard says the
108714         resulting behavior is undefined.
108716         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
108717         simple -> simple_backups, numbered_existing ->
108718         numbered_existing_backups, numbered -> numbered_backups
108719         to avoid shadowing problems.  All uses changed.
108720         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
108721         * lib/backupfile.c (check_extension, numbered_backup):
108722         Rename locals to avoid shadowing 'basename'.
108723         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
108724         once.
108726         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
108727         * lib/.cvsignore: Add getopt.h.
108729 2004-10-04  Bruno Haible  <bruno@clisp.org>
108731         * modules/README: New file.
108732         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
108733         not a module.
108735 2004-10-02  Jim Meyering  <jim@meyering.net>
108737         * lib/dirfd.h, getpagesize.h: Add copyright notice.
108739 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108741         * modules/strsep: New file.
108743 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108745         * m4/strsep.m4: New file.
108747 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
108749         * lib/strsep.h: New file.
108750         * lib/strsep.c: New file.
108752 2004-10-01  Simon Josefsson  <jas@extundo.com>
108754         * lib/snprintf.c (snprintf): Handle size==0.
108756 2004-10-01  Simon Josefsson  <jas@extundo.com>
108757             Bruno Haible  <bruno@clisp.org>
108759         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
108760         (snprintf): Declare 'args'.
108762 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
108764         * lib/snprintf.c: Remove comments as to why each header is needed.
108766 2004-10-01  Bruno Haible  <bruno@clisp.org>
108768         * MODULES.html.sh: Add strsep.
108770 2004-09-30  Simon Josefsson  <jas@extundo.com>
108772         * modules/snprintf: New file.
108774 2004-09-30  Simon Josefsson  <jas@extundo.com>
108776         * m4/snprintf.m4: New file.
108778 2004-09-30  Simon Josefsson  <jas@extundo.com>
108780         * lib/snprintf.h, lib/snprintf.c: New files.
108782 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
108784         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
108785         (hol_entry_help): Never translate an empty string.
108786         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
108787         * lib/argp.h (OPTION_NO_TRANS): New option.
108789 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108791         * modules/argp (Maintainer): Replace Simon Josefsson
108792         by Sergey Poznyakoff.
108794 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108796         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
108797         changes merged back into glibc.
108799 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
108801         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
108803 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
108805         * lib/xvasprintf.c: Include xalloc.h.
108806         (xvasprintf): Use xalloc_die, not xmalloc_die.
108808 2004-09-29  Bruno Haible  <bruno@clisp.org>
108810         * modules/alloca-opt: New file, derived from modules/alloca.
108811         * modules/allocsa: Depend on alloca-opt instead of alloca.
108812         * modules/setenv: Likewise.
108813         * modules/vasnprintf: Likewise.
108814         * MODULES.html.sh: Add alloca-opt.
108816 2004-09-28  Simon Josefsson  <jas@extundo.com>
108818         * gnulib-tool: New parameter --lgpl, to asseert that modules are
108819         LGPL, and to replace license template from GPL to LGPL.
108821 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108823         * modules/dummy: Change license to LGPL.
108825 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
108827         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
108829 2004-09-24  Simon Josefsson  <jas@extundo.com>
108831         * modules/minmax (License): Change from GPL to LGPL.
108833 2004-09-23  Simon Josefsson  <jas@extundo.com>
108835         * gnulib-tool (--import): Typo.
108837 2004-09-23  Simon Josefsson  <jas@extundo.com>
108839         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
108841 2004-09-22  Bruno Haible  <bruno@clisp.org>
108843         * modules/*: Add 'License' field.
108844         * gnulib-tool: Accept --extract-license option.
108845         (func_get_license): New function.
108847 2004-09-21  Bruno Haible  <bruno@clisp.org>
108849         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
108850         Reported by Simon Josefsson.
108852 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108854         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
108855         gl_AC_TYPE_LONG_LONG.
108857 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
108859         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
108861 2004-09-18  Simon Josefsson  <jas@extundo.com>
108862         and  Paul Eggert  <eggert@cs.ucla.edu>
108864         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
108865         calls with autoreconf.  Define GL_LIB.
108867 2004-09-14  Karl Berry  <karl@gnu.org>
108869         * config/srclist.txt: unsync setenv.c, sigh.
108871 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108873         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
108874         Problem reported by Bruno Haible in:
108875         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
108877 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
108879         * config/srclist.txt: Comment out argp-pvh.c.
108881 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
108883         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
108884         in case some system header has #define'd it.  Problem reported by
108885         Soeren D. Schulze in
108886         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
108888 2004-09-09  Karl Berry  <karl@gnu.org>
108890         * regex.[ch]: delete from the root.  These were supposed to be
108891                 synced with emacs cvs, but this has not happened for about
108892                 a year, and anyway nothing else uses emacs regex.[ch].
108893                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
108894                 lib/regex[.ch] is untouched.
108896 2004-09-09  Bruno Haible  <bruno@clisp.org>
108898         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
108900 2004-09-09  Bruno Haible  <bruno@clisp.org>
108902         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
108903         modifications.
108904         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
108906 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108908         * modules/xvasprintf: New file.
108909         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
108911 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
108913         * lib/xvasprintf.h: New file.
108914         * lib/xvasprintf.c: New file.
108915         * lib/xasprintf.c: New file.
108917 2004-09-08  Bruno Haible  <bruno@clisp.org>
108919         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
108921 2004-09-08  Bruno Haible  <bruno@clisp.org>
108923         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
108924         length is > INT_MAX.
108925         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
108926         more.
108928 2004-09-08  Bruno Haible  <bruno@clisp.org>
108930         * lib/stdint_.h: New file, taken from GNU clisp.
108932 2004-09-08  Bruno Haible  <bruno@clisp.org>
108933             Oskar Liljeblad  <oskar@osk.mine.nu>
108935         * modules/stdint: New file.
108936         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
108938 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108940         Import from coreutils.
108941         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
108942         strings on unbounded length.  alloca's performance benefits aren't
108943         that important here.
108944         (V_STRDUP): Remove.
108945         (parse_with_separator): New function, with most of the internals
108946         of the old parse_user_spec.  Allow user to omit both user and group,
108947         for compatibility with FreeBSD.
108948         Clone only the user name, not the entire spec.
108949         Do not set *uid, *gid unless entirely successful.
108950         Avoid memory leak in some failing cases.
108951         Fix regression for USER.GROUP reported by Dmitry V. Levin in
108952         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
108953         (parse_user_spec): Rewrite to use parse_with_separator.
108955 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108957         * modules/userspec: Don't depend on alloca.
108959 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
108961         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
108963 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
108965         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
108966         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
108967         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
108969 2004-08-16  Simon Josefsson  <jas@extundo.com>
108971         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
108972         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
108973         Add --dry-run for --import.
108974         Let user provided command line parameters override configure.ac
108975         settings.
108977 2004-08-12  Simon Josefsson  <jas@extundo.com>
108979         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
108980         as discussed with Paul Eggert in threads rooted at
108981         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
108982         and
108983         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
108984         Before, the test was empty, and relied on ELIDE_CODE in source
108985         code.)
108986         (gl_PREREQ_GETOPT): New macro.
108987         (gl_GETOPT): Use them.
108989 2004-08-12  Simon Josefsson  <jas@extundo.com>
108991         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
108992         * lib/getopt_.h: Renamed from getopt.h.
108994 2004-08-12  Simon Josefsson  <jas@extundo.com>
108996         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
108997         Change default library name from libfoo to libgnu.
108998         Now, if you have a configure.ac that says:
108999                 gl_SOURCE_BASE(gl)
109000                 gl_M4_BASE(gl/m4)
109001                 gl_MODULES(error getopt etcetera)
109002                 gl_INIT
109003         you can import all you need by running:
109004                 ../gnulib/gnulib-tool --import
109006         * modules/getopt (Files): Rename getopt.h to getopt_.h.
109007         (Makefile.am): Rewrite, use logic from argz.
109008         (Include): Use <getopt.h> instead of "getopt.h".
109010 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
109012         * modules/argp (Files): Add m4/unlocked-io.m4.
109013         (Depends-on): Add extensions.
109015 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
109017         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
109018         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
109019         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
109020         Check for program_invocation_name, program_invocation_short_name,
109021         flockfile, funlockfile, features.h, _getopt_long_only_r.
109023 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
109025         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
109026         its complicated substitute.
109027         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
109028         and program_invocation_name.
109029         (__argp_basename) [!_LIBC]: Remove; the only use was
109030         replaced by its body.
109031         (__argp_short_program_name): Change condition from
109032         !defined __argp_short_program_name to
109033         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
109034         to match argp-namefrob.h.
109035         (__argp_failure): Don't assume strerror_r returns char *.
109036         * lib/argp-parse.c (N_): Define unconditionally.
109037         (argp_default_options): Fill out initializers with 0 to avoid
109038         gcc warnings.
109040 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
109042         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
109043         getopt1.c.
109045 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
109047         Merge from coreutils.
109049         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
109051         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
109052         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
109054 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
109056         Merge from coreutils.
109058         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
109059         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
109060         for Reliant Unix 5.43.
109062         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
109063         (union fooround): Use uintmax_t, not long int.
109064         The rest is a merge from libc:
109065         [defined _LIBC]: Include <shlib-compat.h>.
109066         (_obstack) [defined _LIBC]: Remove after 2.3.4.
109068         * lib/settime.c (settime): Recode to avoid warning with
109069         Sun Forte C 6U2.
109071         * lib/strverscmp.c: Convert to UTF-8.
109073 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
109075         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
109076         m4/uintmax_t.m4.
109078 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109080         * modules/xalloc-die: New file.
109081         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
109083         * modules/md5 (Files): Add m4/uint32_t.m4.
109084         * modules/sha1: Renamed from modules/sha.
109085         (Files):
109086         Rename lib/sha.h to lib/sha1.h.
109087         Rename lib/sha.c to lib/sha1.c.
109088         Rename m4/sha.m4 to m4/sha1.m4.
109089         (lib_SOURCES): Likewise.
109090         (configure.ac): Rename gl_SHA to gl_SHA1.
109091         (Include): sha.h -> sha1.h.
109093 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109095         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
109096         * m4/sha1.m4: Renamed from sha.m4.
109097         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
109099 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
109101         * lib/obstack.h (obstack_empty_p):
109102         Don't assume that chunk->contents is suitably aligned.
109103         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
109104         Likewise. Problem reported by Benno in
109105         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
109107         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
109108         readable.  This could be improved further but it'd take some work.
109110 2004-08-08  Simon Josefsson  <jas@extundo.com>
109112         * modules/xgethostname (Depends-on): Remove exit and error (not
109113         used).
109115         * modules/getpass-gnu: Add getpass.h.
109116         (Depends-on): Add stdbool.
109117         * modules/getpass: Add getpass.h.
109119 2004-08-08  Simon Josefsson  <jas@extundo.com>
109121         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
109122         Check getpass declaration.
109124 2004-08-08  Simon Josefsson  <jas@extundo.com>
109126         * lib/xgethostname.c: Don't include error.h (not used).
109128         * lib/getpass.h: Add.
109129         * lib/getpass.c: Include getpass.h first.
109131 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
109133         * lib/xalloc-die.c: New file.
109134         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
109135         All uses removed.
109136         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
109137         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
109138         xalloc-die.c.
109139         (_, N_, xalloc_die): Move to xalloc-die.c.
109140         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
109141         so that we needn't mess with xalloc_msg_memory_exhausted.
109143         * lib/sha1.h: Renamed from sha.h.
109144         (SHA1_H): Renamed from _SHA_H.
109145         (sha1_ctx): Renamed from sha_ctx.
109146         (sha1_init_ctx): Renamed from sha_init_ctx.
109147         (sha1_process_block): Renamed from sha_process_block.
109148         (sha1_process_bytes): Renamed from sha_process_bytes.
109149         (sha1_finish_ctx): Renamed from sha_finish_ctx.
109150         (sha1_read_ctx): Renamed from sha_read_ctx.
109151         (sha1_stream): Renamed from sha_stream.
109152         (sha1_buffer): Renamed from sha_buffer.
109153         * lib/sha1.c: Likewise; renamed from sha.c.
109154         Do not include <sys/types.h>.
109155         Include <stddef.h> rather than <stdlib.h>.
109157 2004-08-08  Bruno Haible  <bruno@clisp.org>
109159         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
109160         FILESYSTEM_PREFIX_LEN.
109161         * lib/progreloc.c: Likewise.
109162         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
109164 2004-08-06  Simon Josefsson  <jas@extundo.com>
109166         * modules/progname (Depends-on): Don't depend on stdbool.
109168 2004-08-06  Simon Josefsson  <jas@extundo.com>
109170         * modules/getsubopt: New file.
109171         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109172         getsubopt.
109174 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109176         More merge from coreutils.
109178         * m4/utimens.m4, m4/utimecmp.m4: New files.
109179         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
109180         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
109181         prereq.m4, sha.m4: Import changes from coreutils.
109183 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109185         More merge from coreutils.
109186         * modules/raise, modules/readtokens0, modules/utimens:
109187         * modules/utimecmp, module/xnanosleep: New files.
109188         * modules/strftime: Add lib/strftime.h.
109189         Change include from <time.h> to "strftime.h".
109190         * modules/yesno: Add lib/yesno.h.
109191         * modules/backupfile: Remove lib/addext.c.
109192         * modules/euidaccess: Add stat-macros.h.
109193         * modules/canonicalize, modules/euidaccess,
109194         modules/filemode, modules/lchown, modules/makepath,
109195         modules/rmdir, modules/stat: Likewise.
109197 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
109199         Merge from tar.
109200         * lib/argp-help.c (make_hol, hol_append): Don't assume that
109201         SIZE_MAX is a valid preprocessor constant.
109202         (__argp_basename): Change from "#ifndef _LIBC"
109203         to "#ifndef __argp_short_program_name", so that
109204         we don't compile these functions for tar.
109206         More merges from coreutils.
109207         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
109208         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
109209         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
109210         * lib/addext.c: Remove; no longer needed.
109211         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
109212         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
109213         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
109214         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
109215         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
109216         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
109217         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
109218         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
109219         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
109220         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
109221         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
109222         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
109223         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
109224         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
109225         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
109226         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
109227         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
109228         Import changes from coreutils.
109230 2004-08-05  Simon Josefsson  <jas@extundo.com>
109232         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
109234 2004-08-05  Simon Josefsson  <jas@extundo.com>
109236         * m4/getsubopt.m4: New file.
109238 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109240         Merge from coreutils.
109242         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
109243         * m4/getcwd-path-max.m4: New files.
109245         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
109246         FILESYSTEM_PREFIX_LEN ->
109247         FILE_SYSTEM_PREFIX_LEN.
109248         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
109249         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
109250         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
109251         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
109253         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
109254         prerequisite modules now handle the DOS stuff.
109255         Don't check for unistd.h.
109257 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109259         Merge from coreutils.
109261         * lib/.gdb-history: Remove; this doesn't belong here.
109263         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
109264         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
109265         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
109266         * lib/getcwd.c: New files.
109268         * lib/dirname.h: Include <stdbool.h>.
109269         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
109270         for consistency with POSIX terminology.  All uses changed.
109271         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
109272         (strip_trailing_slashes): Use bool for booleans.
109273         * lib/stripslash.c (strip_trailing_slashes): Likewise.
109275         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
109276         sometimes returns a positive errno value even when it succeeds.
109277         (print_errno_message) [!LIBC]: Fall back on strerror if
109278         __strerror_r fails.
109280         * lib/path-concat.c (mempcpy): Don't define if a system header defines
109281         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
109282         (longest_relative_suffix): New function.
109283         (path_concat): Use it.  Assume first argument is not NULL.
109284         Port to DOS.  Omit redundant separators.
109285         Report an error instead of returning NULL.
109286         Use mempcpy instead of memcpy.
109287         (xpath_concat): Remove: not declared or used.
109289         * lib/same.h: Include <stdbool.h>
109290         (same_name): Return bool, not int.
109291         * lib/same.c (same_name): Likewise.
109292         (errno): Don't declare; we assume C89 or better now.
109294         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
109295         if not already defined.
109297         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
109298         * lib/dup-safer.c (errno): Likewise.
109300 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
109302         Merge from coreutils.
109303         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
109304         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
109305         * modules/path-concat: Don't depend on strdup.
109307 2004-08-03  Simon Josefsson  <jas@extundo.com>
109309         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
109310         * lib/progname.h: Don't include stdbool.h.
109312 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109314         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
109315         * MODULES.html.sh (func_all_modules): Remove fatal.
109317 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109319         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
109321 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
109323         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
109324         working.
109326 2004-08-02  Simon Josefsson  <jas@extundo.com>
109328         * lib/getsubopt.h: New file, with comments from Bruno Haible.
109329         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
109330         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
109332 2004-08-01  Simon Josefsson  <jas@extundo.com>
109334         * lib/xgetdomainname.c: Include stdlib.h, for free().
109336 2004-07-19  Bruno Haible  <bruno@clisp.org>
109338         * MODULES.html.sh (func_all_modules): Add dummy.
109340 2004-07-16  Simon Josefsson  <jas@extundo.com>
109342         * modules/dummy: New file.
109344 2004-07-16  Simon Josefsson  <jas@extundo.com>
109346         * lib/dummy.c: New file.
109348 2004-07-16  Bruno Haible  <bruno@clisp.org>
109350         * lib/backupfile.h: Add extern "C" for C++.
109351         * lib/closeout.h: Likewise.
109352         * lib/copy-file.h: Likewise.
109353         * lib/findprog.h: Likewise.
109354         * lib/full-write.h: Likewise.
109355         * lib/pathname.h: Likewise.
109356         * lib/progname.h: Likewise.
109357         * lib/stpcpy.h: Likewise.
109358         * lib/stpncpy.h: Likewise.
109359         * lib/strcase.h: Likewise.
109360         * lib/strstr.h: Likewise.
109361         * lib/xalloc.h: Likewise.
109363         * lib/mbswidth.h: Add extern "C" for C++.
109364         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
109366 2004-07-13  Robert Millan  <robertmh@gnu.org>
109368         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
109370 2004-07-09  Simon Josefsson  <jas@extundo.com>
109372         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
109373         failed without this.)
109375 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109377         * modules/chown (Files): Add lib/fchown-stub.c, since
109378         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
109380 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
109382         * lib/fchown-stub.c: New file.
109384 2004-06-24  Jim Meyering  <jim@meyering.net>
109386         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
109388 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109390         * modules/argz: Omit "#include".
109392         * MODULES.html.sh (func_all_modules): Add calloc, to match
109393         2004-06-01 addition of calloc module.
109395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109397         * m4/argz.m4: New file, which is autoupdated from libtool.
109399 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109401         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
109402         libtool.
109404 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
109406         * config/srclist-update: Don't insist on "USA." before the
109407         close-comment, as libtool omits the period and puts the */ on a
109408         separate line.
109409         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
109410         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
109412 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
109414         * modules/argz: New file.
109415         * MODULES.html.sh (func_all_modules): Add argz.
109417 2004-06-12  Jim Meyering  <jim@meyering.net>
109418         and  Paul Eggert  <eggert@cs.ucla.edu>
109420         * modules/hash (Files): Add lib/xalloc.h.
109421         * modules/pipe (Depends-on): Add wait-process.
109422         * modules/stat (Depends-on): Add xalloc.
109423         * modules/userspec (Files): Add lib/userspec.h.
109424         * modules/xstrto
109426         Upgrade from gettext-0.13.
109427         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
109428         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
109429         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
109431 2004-06-10  Jim Meyering  <jim@meyering.net>
109433         * lib/calloc.c: New file.
109435 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
109437         * lib/getdate.y (yylex): Allow space between sign and number.
109438         Problem reported by Dan Jacobson.
109440 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109442         Merge from coreutils CVS.
109444         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
109445         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
109446         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
109447         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
109448         xstrtol.m4: Fix copyright date and/or serial number.
109450         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
109451         See if we need an fchown replacement.
109452         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
109453         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
109454         and use the replacement function if we detect either defect.
109456         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
109457         gl_UTIMECMP.
109459 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
109460         and  Jim Meyering  <jim@meyering.net>
109462         Merge from coreutils CVS.
109464         * lib/stat-macros.h: New file, with contents from file-type.h
109465         and coreutils' system.h.
109466         * lib/file-type.c: Include "stat-macros.h".
109467         * lib/file-type.h (file_type): Move all macro definitions to new file,
109468         stat-macros.h.
109470         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
109471         Wrap old code with this conditional.
109472         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
109473         function that does not dereference symlinks.
109474         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
109476         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
109477         dependency problems.
109478         (xreadlink): Accept new arg SIZE, for efficiency.
109479         All decls and uses changed.
109480         * lib/xreadlink.h: Include <stddef.h>, for size_t.
109482         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
109483         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
109485         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
109486         sysexits.h.
109488 2004-06-01  Jim Meyering  <jim@meyering.net>
109490         * m4/calloc.m4: New file.
109492 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
109494         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
109495         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
109496         Also, fix a typo in a diagnostic.
109498 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109500         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
109501         or AC_FUNC_REALLOC.
109503 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
109505         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
109506         macros to be defined.
109507         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
109508         the allocator returns NULL because the requested size is zero.
109510 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
109512         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
109513         var.  Add comment explaining why libc still defines it.  This
109514         merges the following patch from glibc:
109515         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
109517 2004-05-20  Andreas Schwab  <schwab@suse.de>
109519         * m4/free.m4: Replace free if it not known to work, not the other
109520         way round.
109522 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
109524         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
109525         present in glibc since revision 1.1 of this file.
109526         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
109527         obstack_alignment_mask, obstack_alloc, obstack_base,
109528         obstack_blank, obstack_blank_fast, obstack_chunk_size,
109529         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
109530         obstack_grow0, obstack_init, obstack_int_grow,
109531         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
109532         obstack_next_free, obstack_object_size, obstack_ptr_grow,
109533         obstack_ptr_grow_fast, obstack_room): Remove declarations of
109534         nonexistent functions.
109536 2004-05-18  Karl Berry  <karl@gnu.org>
109538         * config/srclist.txt: break link for vasnprintf.c.
109540 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109542         Port obstack to the AS/400, where pointers are 16 bytes wide and
109543         you cannot cast an integer to a valid pointer.  This patch is
109544         currently waiting to be integrated into glibc; see
109545         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
109547         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
109548         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
109549         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
109550         (struct obstack): temp member is now a union of a pointer and
109551         an integer, instead of an integer.  All integer uses changed.
109552         This does not affect the physical layout of struct obstack,
109553         except on hosts (like the AS/400) where the size or alignment of
109554         void * is greater than that of ptrdiff_t.
109555         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
109556         __STDC__)]: Store temporary in pointer member of union, not
109557         integer member.
109558         * lib/obstack.c: Include <stddef.h>, for offsetof.
109559         (struct fooalign): Remove; it doesn't need a name.
109560         (union fooround): Change double to long double, and add void *.
109561         (DEFAULT_ALIGNMENT): Use offsetof to compute.
109562         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
109563         not a macro.  Hence the values are always int; so remove all
109564         casts-to-int in uses.
109566 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
109568         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
109569         we can get this patch merged into glibc.
109571 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109572             Paul Eggert  <eggert@cs.ucla.edu>
109574         * m4/argp: Depend on alloca.
109576 2004-05-17  Derek R. Price  <derek@ximbiot.com>
109577             Paul Eggert  <eggert@cs.ucla.edu>
109579         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
109580         freecoding.
109582 2004-05-17  Bruno Haible  <bruno@clisp.org>
109584         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
109585         precision that consists of a '.' followed by an empty digit string.
109586         Patch by Tor Lillqvist <tml@iki.fi>.
109588 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109590         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
109591         for backward compatibility with older code.  We need our own
109592         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
109593         it under some other name, and our alloca.h will define it.
109595 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
109596             Derek Price  <derek@ximbiot.com>
109598         * lib/alloca.c: Include <alloca.h>, to get our interface.
109599         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
109600         include <alloca.h> first.  Use C89 prototype for alloca; this
109601         requires including <stddef.h> for size_t.  Use extern "C" if C++.
109602         Use #elif for simplicity, since we can assume C89 now.
109603         Don't try to source the system alloca.h since it will not be found
109604         and to prevent recursively including its replacement.
109605         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
109606         * lib/regex.c: Likewise.
109608 2004-05-16  Derek Price  <derek@ximbiot.com>
109609             Paul Eggert  <eggert@cs.ucla.edu>
109611         getline cleanup.  This changes the getndelim2 API: both order of
109612         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
109613         no delimiter).
109615         * lib/getline.c: Don't include stddef.h or stdio.h, since our
109616         interface does that.
109617         (getline): Always use getdelim, so that we don't have two
109618         copies of this code.
109619         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
109620         if available.
109621         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
109622         (GETNDELIM2_MAXIMUM): New macro.
109623         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
109624         instead of the old practice of delim2==0.  All callers changed.
109625         Return -1 on overflow, instead of returning junk.
109626         Do not set *linesize unless allocation succeeds.
109627         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
109628         that we include sys/types.h.
109629         * lib/getnline.h: Likewise.
109630         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
109631         (getndelim2): Reorder arguments.
109632         * lib/getnline.c (getnline, getndelim):
109633         Don't discard the NMAX argument.
109634         (getnline): Invoke getndelim, to avoid code duplication.
109635         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
109636         of (size_t) -1 by callers of the getnline family.
109638 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109640         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
109641         Check for gettimeofday.
109642         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
109643         Check for settimeofday, stime.
109645 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
109647         * lib/nanosleep.c (suspended): Change its type from int to
109648         sig_atomic_t volatile.
109649         (first_call): Make it private to rpl_nanosleep, and have it
109650         be zero initially as that's a bit faster.
109651         (my_usleep): Round up fractional times instead of truncating them,
109652         as this is the usual meaning for 'sleep'.
109654         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
109655         doesn't work.
109656         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
109657         (ENOSYS): Define if not defined.
109658         (settime): Fall back on stime if it exists and settimeofday fails.
109659         But don't bother with fallbacks if a method fails with errno == EPERM.
109661 2004-05-11  Jim Meyering  <jim@meyering.net>
109663         Prior to this change, the save_cwd caller required read access to the
109664         current directory on most systems (ones with the fchdir function).
109666         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
109667         fails, try write-only, and finally, resort to using xgetcwd.
109669 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
109671         * lib/obstack.c, obstack.h: Import changes from libc.
109673 2004-04-28  Bruno Haible  <bruno@clisp.org>
109675         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
109676         also implicitly appends .exe to executables.
109677         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
109678         accepts Windows pathnames.
109679         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109680         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109681         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
109682         Treat Cygwin like Windows, since it now accepts Windows pathnames.
109683         Reported by Derek Robert Price <derek@ximbiot.com>.
109685 2004-04-21  Karl Berry  <karl@gnu.org>
109687         * config/srclist.txt (localcharset.c): break sync.
109689 2004-04-20  Paul Eggert  <eggert@twinsun.com>
109691         * m4/host-os.m4: Add a copyright notice.
109693 2004-04-20  Jim Meyering  <jim@meyering.net>
109695         Change UTILS_ to gl_ in AC_DEFINE'd names.
109696         Change utils_- and jm_-prefixed variables, too.
109697         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
109698         UTILS_FUNC_MKDIR_TRAILING_SLASH.
109699         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
109701         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
109702         Don't emit trailing blanks.
109703         Also rename jm_-prefixed variables to have gl_ prefix.
109705         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
109706         Also rename jm_-prefixed variables to have gl_ prefix.
109708         * m4/jm-macros.m4: Reflect the renamings.
109709         * m4/prereq.m4: Likewise.
109711 2004-04-20  Jim Meyering  <jim@meyering.net>
109713         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
109714         memory.
109716 2004-04-20  Jim Meyering  <jim@meyering.net>
109717             Bruno Haible  <bruno@clisp.org>
109719         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
109720         memory when realloc fails.
109722 2004-04-19  Jim Meyering  <jim@meyering.net>
109724         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
109725         now that readutmp.c may call `free (0)'.
109727 2004-04-19  Bruno Haible  <bruno@clisp.org>
109729         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
109730         * m4/inttypes_h.m4: Likewise.
109731         * m4/stdint_h.m4: Likewise.
109732         * m4/intmax_t.m4: Likewise.
109733         * m4/uintmax_t.m4: Likewise.
109735 2004-04-18  Jim Meyering  <jim@meyering.net>
109737         * m4/prereq.m4: Don't forbid jm_ prefix.
109739         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
109740         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
109741         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
109742         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
109743         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
109744         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
109745         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
109746         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
109747         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
109748         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
109749         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
109750         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
109751         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
109752         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
109753         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
109754         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
109755         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
109756         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
109757         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
109759 2004-04-18  Jim Meyering  <jim@meyering.net>
109761         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
109762         failure, don't leak memory and do call END_UTMP_ENT.
109764 2004-04-16  Jim Meyering  <jim@meyering.net>
109766         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
109767         coreutils' stat program.
109768         (gl_PREREQ): Don't require jm_PREREQ_STAT.
109770 2004-04-11  Paul Eggert  <eggert@twinsun.com>
109772         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
109773         C89.
109774         (CHAR_BIT): Remove, since we assume C89.
109775         Include <stdint.h> if available, as per current Autoconf CVS advice.
109777 2004-03-31  Jim Meyering  <jim@meyering.net>
109779         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
109780         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
109781         * m4/xalloc.m4: Likewise.
109783 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109785         Merge from coreutils.
109787         * m4/inttostr.m4: New file.
109788         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
109789         Require AM_STDBOOL_H and gl_TIMESPEC instead.
109790         Require gl_CLOCK_TIME.
109791         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
109793 2004-03-30  Paul Eggert  <eggert@twinsun.com>
109795         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
109796         not bool, to be more consistent with Unix conventions.
109797         Suggested by Bruno Haible.
109799         Merge from coreutils.
109801         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
109802         * lib/umaxtostr.c: New files.
109804         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
109805         the usual <time.h> dance.
109806         (get_date): Change signature to support fractional time stamps.
109807         All callers changed.
109808         * lib/getdate.y: Include "getdate.h" first, as we can now
109809         assume C89 and don't need to worry about 'const'.
109810         Similarly, include "unlocked-io.h" near start, not in middle.
109811         Include <limits.h>.
109812         (textint.value): Use long int rather than int.
109813         (textint.digits): Use size_t rather than int.
109814         (BILLION, LOG10_BILLION): New constants.
109815         (parser_control): New member rel_ns.  Members day_ordinal,
109816         time_zone, month, day, hour, minutes, rel_year, rel_month,
109817         rel_day, rel_hour, rel_minutes, rel_seconds
109818         are now long int, not int.  Member seconds is now struct timespec,
109819         not int.  New member timespec_seen.  Members dates_seen, days_seen,
109820         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
109821         not int.
109822         (%union.intval): Now long int, not int.
109823         New member timespec.
109824         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
109825         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
109826         (spec): Now is a timespec or an item list.
109827         (timespec, items): New nonterminals.
109828         (time, rel, relunit, number, get_date):
109829         Add support for fractional seconds.
109830         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
109831         (gmtime, localtime, mktime): Remove decls; not needed with C89.
109832         (to_hour): First arg is now long int, not int.
109833         (to_year): Returns long int, not int.
109834         Don't treat year -70 like 70.
109835         (tm_diff): Returns long int, not int.
109836         (lookup_word): Use bool instead of int when appropriate.
109837         (yylex): Use size_t for count, not int.
109838         Detect overflow when parsing large integer constants.
109839         Add support for fractions.
109840         (get_date): Make pointers 'const' if possible.
109841         Use more-portable code to detect integer overflow.
109842         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
109843         Don't use ctime; it's not reliable if the year has >4 digits.
109845         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
109846         This is for compatibility with BSD.
109848         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
109849         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
109850         From coreutils' system.h.
109852         * lib/userspec.c: Don't include "posixver.h".
109853         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
109854         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
109855         compatible extension.  Simplify code by removing a boolean int
109856         that was always nonzero if a string was nonnull.
109858 2004-03-30  Jim Meyering  <jim@meyering.net>
109860         Merge from coreutils.
109862         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
109863         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
109864         on some systems one must include <grp.h> before it.
109865         Reported by Christian Krackowizer.
109867 2004-03-30  Jim Meyering  <jim@meyering.net>
109869         Merge from coreutils.
109871         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
109873         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
109874         an empty input stream.
109876         * lib/readtokens.c: Include <stdbool.h>.
109877         (readtoken): Use `size_t' rather than int/long.
109878         All callers adjusted.
109879         Use `bool' rather than `int' where appropriate.
109880         Use memset rather than an explicit loop.
109881         Use x2nrealloc rather than xrealloc.
109882         Allow the use of `\0' as a delimiter.
109883         (readtokens): Likewise.
109884         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
109886 2004-03-30  Jim Meyering  <jim@meyering.net>
109888         * m4/realloc.m4: Remove file, since now it does no more than
109889         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
109890         the `configure.ac' section of module/realloc.
109891         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
109893 2004-03-30  Bruno Haible  <bruno@clisp.org>
109895         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
109896         nonnull.
109898 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109900         Merge changes to getloadavg.c from coreutils and Emacs.
109902         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
109903         Define to an expression, not to the empty string.
109904         Include cloexec.h and xalloc.h.
109905         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
109906         Use set_cloexec_flag rather than rolling our own.
109907         * lib/cloexec.c, lib/cloexec.h: New files.
109909 2004-03-29  Paul Eggert  <eggert@twinsun.com>
109911         * m4/cloexec.m4: New file.
109913 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109915         * lib/getopt.h: Sync with libc CVS.
109917 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109918             Bruno Haible  <bruno@clisp.org>
109920         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
109921         mbswidth.
109923 2004-03-18  Paul Eggert  <eggert@twinsun.com>
109924             Bruno Haible  <bruno@clisp.org>
109926         * lib/mbswidth.h: Include <wchar.h> only if
109927         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
109928         <wchar.h>.
109929         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
109931 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109933         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
109934         Sync with libc CVS.
109935         * lib/getopt_int.h: New file, also synced from libc.
109937 2004-03-09  Paul Eggert  <eggert@twinsun.com>
109939         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
109940         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
109941         Bring back getopt.c, getopt.h, getopt1.c.
109943 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109945         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
109946         All uses changed.  Check for sa_sigaction member; this fixes
109947         a bug first reported by Jason Andrade in
109948         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109950 2004-03-07  Paul Eggert  <eggert@twinsun.com>
109952         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
109953         '#if' expressions.  Unlike the code it replaces, it does not
109954         depend on (defined _SC_PAGESIZE).  However, it does depend on
109955         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
109956         first reported by Jason Andrade in
109957         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
109959 2004-02-25  Simon Josefsson  <jas@extundo.com>
109961         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
109963 2004-02-25  Simon Josefsson  <jas@extundo.com>
109965         * lib/strdup.h: New file.
109966         * lib/strdup.c: Include it.
109967         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
109968         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
109970 2004-02-23  Karl Berry  <karl@gnu.org>
109972         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
109973         (from fencepost.gnu.org:/gd/gnuorg).
109975 2004-02-23  Karl Berry  <karl@gnu.org>
109977         * config/srclistvars.sh (GNUORG) [karl]: redefine.
109978         * config/srclist.txt: add maintain/standards documents.
109980 2004-02-18  Bruno Haible  <bruno@clisp.org>
109982         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
109983         Reported by Derek Robert Price <derek@ximbiot.com>.
109985 2004-02-16  Karl Berry  <karl@gnu.org>
109987         * config/mkinstalldirs, install-sh: update from automake.
109989 2004-02-06  Karl Berry  <karl@gnu.org>
109991         * m4/po.m4: update from gettext 0.14.1.
109993 2004-02-06  Karl Berry  <karl@gnu.org>
109995         * lib/config.charset: update from gettext 0.14.1.
109997 2004-02-05  Paul Eggert  <eggert@twinsun.com>
109999         Add comments and code, prompted by suggestions from Bruno Haible
110000         for sh-quote.
110001         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
110002         describing the enum quoting_style values.
110003         * lib/quotearg.c (quotearg_alloc): New function.
110004         (quotearg_buffer_restyled): Treat lone { and } as special.
110005         Treat = as special.  Work around bug with older shells
110006         that "see" a '\' that is really the 2nd byte of a multibyte char.
110007         Quote empty string with shell_quoting_style.
110009 2004-02-03  Bruno Haible  <bruno@clisp.org>
110011         * m4/pipe.m4: New file, from GNU gettext.
110013 2004-02-03  Bruno Haible  <bruno@clisp.org>
110015         * lib/pipe.h: New file, from GNU gettext.
110016         * lib/pipe.c: New file, from GNU gettext.
110018 2004-01-27  Bruno Haible  <bruno@clisp.org>
110020         * m4/execute.m4: New file, from GNU gettext.
110022 2004-01-27  Bruno Haible  <bruno@clisp.org>
110024         * lib/execute.h: New file, from GNU gettext.
110025         * lib/execute.c: New file, from GNU gettext.
110026         * lib/w32spawn.h: New file, from GNU gettext.
110028 2004-01-24  Paul Eggert  <eggert@twinsun.com>
110030         Merge from diffutils.
110032         * lib/file-type.c (file_type): Add typed memory objects.
110033         * lib/file-type.h (S_TYPEISTMO): New macro.
110035         * lib/c-stack.h (c_stack_action): Remove argv argument.
110036         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
110037         (die): Don't calculate message unless segv_action returns.
110038         (get_stack_location, min_address_from_argv, max_address_from_argv,
110039         volatile stack_base, volatile_stack_size): Remove.
110040         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
110041         that every segmentation violation is a stack overflow.  (Ouch!)
110042         See Debian bug 136249 (still outstanding) for more info about why
110043         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
110045 2004-01-24  Paul Eggert  <eggert@twinsun.com>
110047         Exit-status fix from coreutils.
110049         Use exit_failure consistently in place of EXIT_FAILURE,
110050         so that program exit statuses are consistent on failure.
110052         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
110053         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
110054         * lib/argmatch.h: Comment fix to match the above.
110055         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
110056         Now a macro referring to exit_failure, instead of a separate
110057         variable.  Include "exitfail.h" to get it.
110058         * lib/xstrtol.h: Include "exitfail.h".
110059         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
110061         * lib/long-options.c (parse_long_options): Use prototype
110062         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
110063         for clarity.
110065 2004-01-21  Jim Meyering  <jim@meyering.net>
110067         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
110068         so as not to conflict with a different-sized __mktime_internal
110069         function in GNU libc.
110070         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
110071         Problem building statically-linked `ls' reported by Michael Brunnbauer.
110073 2004-01-20  Karl Berry  <karl@gnu.org>
110075         * config/config.guess: update from config.
110077         * config/srclistvars.sh: GNUWWWLICENSES for karl.
110079 2004-01-20  Bruno Haible  <bruno@clisp.org>
110081         Safer stack allocation.
110082         * lib/setenv.c: Include allocsa.h.
110083         (alloca): Remove fallback definition.
110084         (freea): Remove macro.
110085         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
110086         instead of freea.
110088 2004-01-20  Bruno Haible  <bruno@clisp.org>
110090         * m4/eealloc.m4: New file, from GNU gettext.
110092 2004-01-20  Bruno Haible  <bruno@clisp.org>
110094         * m4/allocsa.m4: New file, from GNU gettext.
110096 2004-01-20  Bruno Haible  <bruno@clisp.org>
110098         * lib/xallocsa.h: New file, from GNU gettext.
110099         * lib/xallocsa.c: New file, from GNU gettext.
110101 2004-01-20  Bruno Haible  <bruno@clisp.org>
110103         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
110105 2004-01-20  Bruno Haible  <bruno@clisp.org>
110107         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
110108         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
110109         specially.
110111 2004-01-20  Bruno Haible  <bruno@clisp.org>
110113         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
110114         patch.
110116 2004-01-20  Bruno Haible  <bruno@clisp.org>
110118         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
110120 2004-01-20  Bruno Haible  <bruno@clisp.org>
110122         * lib/eealloc.h: New file.
110124 2004-01-20  Bruno Haible  <bruno@clisp.org>
110126         * lib/binary-io.h: Avoid warnings on Cygwin.
110128 2004-01-20  Bruno Haible  <bruno@clisp.org>
110130         * lib/allocsa.h: New file, from GNU gettext.
110131         * lib/allocsa.c: New file, from GNU gettext.
110133 2004-01-18  Karl Berry  <karl@gnu.org>
110135         * doc/gpl.texi, doc/lgpl.texi: new files.
110137 2004-01-18  Karl Berry  <karl@gnu.org>
110139         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
110140         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
110142 2004-01-15  Paul Eggert  <eggert@twinsun.com>
110144         Merge from coreutils.
110146         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
110147         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
110148         (gl_DEFAULT_POSIX2_VERSION): Move
110149         the documentation from 'configure' into 'config.hin',
110150         so that 'configure --help' isn't burdened by it and
110151         we don't have to worry about its formatting there.
110152         Reword the documentation so that it's more succinct
110153         and can be run together into a single paragraph.
110154         * m4/same.m4 (gl_SAME): Check for pathconf.
110156 2004-01-15  Paul Eggert  <eggert@twinsun.com>
110158         Merge from coreutils.
110160         * lib/posixver.c: Include posixver.h.
110162         * lib/same.c: Include <stdbool.h>, <limits.h>.
110163         (_POSIX_NAME_MAX): Define if not defined.
110164         (MIN): New macro.
110165         (same_name): If file names are silently truncated, report
110166         that the file names are the same if they are the same after
110167         the silent truncation.
110169         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
110170         conversion function.
110171         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
110172         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
110173         longer needed.
110175 2004-01-15  Jim Meyering  <jim@meyering.net>
110177         Merge from coreutils.
110179         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
110180         if no library is required.
110181         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
110182         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
110183         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
110184         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
110185         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
110186         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
110187         value, $ac_cv_search_crypt, if it's "none required".
110188         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
110189         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
110190         not gl_FUNC_GETLOADAVG.
110191         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
110192         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
110194 2004-01-15  Jim Meyering  <jim@meyering.net>
110196         Merge from coreutils.
110198         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
110199         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
110200         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
110202         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
110203         optional configure-time default.
110205         * lib/version-etc.c (version_etc_copyright): Update copyright date.
110207         * lib/xreadlink.c (xreadlink): Correct outdated comment.
110209 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
110211         Merge from coreutils.
110213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
110214         value, $ac_cv_search_nanosleep, if it's "none required".
110216 2004-01-14  Paul Eggert  <eggert@twinsun.com>
110218         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
110219         with like-named macro in fnmatch.c.
110220         (EXT): Use an internal constant instead.
110222         Merge fnmatch patches from glibc.
110223         * lib/fnmatch.c (mbsinit): Remove define.
110224         Add libc_hidden_ver (__fnmatch, fnmatch).
110225         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
110226         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
110228 2004-01-14  Karl Berry  <karl@gnu.org>
110230         * config/install-sh: update from automake.
110232 2004-01-13  Karl Berry  <karl@gnu.org>
110234         * config/install-sh: update from automake.
110236 2004-01-09  Karl Berry  <karl@gnu.org>
110238         * config/install-sh: update from automake.
110240 2004-01-05  Karl Berry  <karl@gnu.org>
110242         * config/config.{sub,guess}: update from config.
110244 2003-12-31  Karl Berry  <karl@gnu.org>
110246         * config/depcomp: update from automake.
110248 2003-12-14  Karl Berry  <karl@gnu.org>
110250         * lib/config.charset: update from gettext-runtime.
110252 2003-12-03  Paul Eggert  <eggert@twinsun.com>
110254         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
110255         Bug reported by Alfred M. Szmidt.
110257 2003-12-03  Bruno Haible  <bruno@clisp.org>
110259         * m4/gettext.m4: Upgrade from gettext-0.13.
110260         * m4/po.m4: Upgrade from gettext-0.13.
110261         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
110262         * m4/intmax.m4: New file, from gettext-0.13.
110263         * m4/printf-posix.m4: New file, from gettext-0.13.
110265 2003-11-29  Karl Berry  <karl@gnu.org>
110267         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
110269 2003-11-25  Paul Eggert  <eggert@twinsun.com>
110270             Bruno Haible  <bruno@clisp.org>
110272         * lib/printf-parse.h: Don't include sys/types.h.
110273         (ARG_NONE): New macro.
110274         (char_directive): Change type of *arg_index fields to size_t.
110275         * lib/printf-parse.c: Don't include sys/types.h.
110276         (SSIZE_MAX): Remove macro.
110277         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
110278         Remove unnecessary overflow check.
110279         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
110280         fields.
110282 2003-11-25  Bruno Haible  <bruno@clisp.org>
110284         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
110286 2003-11-25  Bruno Haible  <bruno@clisp.org>
110288         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
110289         gt_TYPE_SSIZE_T.
110291 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110293         * modules/alloca: Remove dependency on xalloc.
110295 2003-11-24  Paul Eggert  <eggert@twinsun.com>
110297         * lib/alloca.c: Remove dependency on xalloc module.
110298         (xalloc_die): Remove.
110299         (memory_full) [!defined emacs]: New macro.
110300         [!defined emacs]: Don't include xalloc.h.
110301         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
110302         address arithmetic overflows.  Change datatypes a bit to avoid
110303         unnecessary casts.
110305 2003-11-22  Jim Meyering  <jim@meyering.net>
110307         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
110308         s/size/size_t/.
110310 2003-11-21  Karl Berry  <karl@gnu.org>
110312         * config/config.{sub,guess}: update from config.
110314 2003-11-18  Karl Berry  <karl@gnu.org>
110316         * config/config.{sub,guess}: update from config.
110318         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
110320 2003-11-17  Paul Eggert  <eggert@twinsun.com>
110322         * README: Mention that S+T cannot overflow if S is the size of
110323         an existing object and T is sufficiently small.
110325 2003-11-17  Jim Meyering  <jim@meyering.net>
110327         On systems without utime and without a utimes function capable of
110328         dealing with a NULL struct utimbuf* argument, this utime replacement
110329         could -- in unusual circumstances -- leak a file descriptor.
110330         * lib/utime.c: Include <unistd.h> and <errno.h>.
110331         (utime_null): Be sure to close `fd' and to preserve errno.
110332         Reported by Geoff Collyer via Arnold Robbins.
110334 2003-11-17  Bruno Haible  <bruno@clisp.org>
110336         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
110337         (Depends-on): Add xsize.
110339 2003-11-17  Bruno Haible  <bruno@clisp.org>
110341         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
110343 2003-11-17  Bruno Haible  <bruno@clisp.org>
110345         * lib/vasnprintf.c (alloca): Remove fallback definition.
110346         (freea): Remove definition.
110347         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
110348         Reported by Paul Eggert.
110350 2003-11-16  Paul Eggert  <eggert@twinsun.com>
110351             Bruno Haible  <bruno@clisp.org>
110353         Protect against address arithmetic overflow.
110354         * lib/printf-args.h: Include stddef.h.
110355         (arguments): Change type of field 'count' to size_t.
110356         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
110357         'unsigned int' where appropriate.
110358         * lib/printf-parse.h: Include sys/types.h.
110359         (char_directive): Change type of *arg_index fields to ssize_t.
110360         (char_directives): Change type of fields 'count', max_*_length to
110361         size_t.
110362         * lib/printf-parse.c: Include sys/types.h and xsize.h.
110363         (SSIZE_MAX): Define fallback value.
110364         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
110365         instead of 'int' where appropriate. Check a_allocated, d_allocated
110366         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
110367         * lib/vasnprintf.c: Include xsize.h.
110368         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
110369         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
110370         overflow. Avoid wraparound when converting a width or precision from
110371         decimal to binary.
110373 2003-11-16  Bruno Haible  <bruno@clisp.org>
110375         Update from GNU gettext.
110376         * lib/printf-parse.c: Generalize to it can be compiled for wide
110377         strings.
110378         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
110379         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
110380         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
110381         SNPRINTF): New macros.
110382         Don't include <alloca.h> if the file is used inside libintl.
110383         (local_wcslen): New function, for Solaris 2.5.1.
110384         (VASNPRINTF): Use it instead of wcslen.
110386 2003-11-16  Bruno Haible  <bruno@clisp.org>
110388         * lib/xsize.h (xmax): New function.
110389         (xsum, xsum3, xsum4): Declare as "pure" functions.
110391 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110393         * modules/xalloc (Files): Undo latest change, since xalloc.h
110394         no longer needs SIZE_MAX or PTRDIFF_MAX.
110396 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110398         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
110399         gl_PTRDIFF_MAX.
110401 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110403         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
110404         "return", to pacify some unknown compiler.  Problem reported
110405         by Joerg Schilling.
110407 2003-11-12  Paul Eggert  <eggert@twinsun.com>
110409         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
110410         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
110411         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
110412         heuristic is just as accurate as far as we know, and it removes a
110413         dependency on size_max.m4 and ptrdiff_max.m4.
110415 2003-11-11  Bruno Haible  <bruno@clisp.org>
110417         * modules/xsize (Files): Add m4/size_max.m4.
110418         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
110420 2003-11-11  Bruno Haible  <bruno@clisp.org>
110422         * m4/size_max.m4: New file.
110423         * m4/ptrdiff_max.m4: New file.
110424         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
110425         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
110426         (gl_XALLOC): Invoke it.
110428 2003-11-11  Bruno Haible  <bruno@clisp.org>
110430         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
110431         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
110432         defined.
110434 2003-11-10  Paul Eggert  <eggert@twinsun.com>
110436         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
110437         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
110438         rejected some allocations of exactly SIZE_MAX - 2 bytes.
110439         From Bruno Haible.
110440         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
110441         not (size_t) -1, since it's defined here.
110443 2003-11-09  Karl Berry  <karl@gnu.org>
110445         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
110447 2003-11-06  Paul Eggert  <eggert@twinsun.com>
110449         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
110450         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
110451         Reject sizes of exactly SIZE_MAX bytes.
110452         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
110453         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
110455 2003-11-05  Bruno Haible  <bruno@clisp.org>
110457         * lib/xsize.h: Include limits.h, to avoid a possible collision with
110458         SIZE_MAX defined in <limits.h> on Solaris.
110460 2003-11-04  Jim Meyering  <jim@meyering.net>
110462         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
110463         variable names, rather than @VAR@.
110464         * modules/poll: Likewise.
110466 2003-11-04  Bruno Haible  <bruno@clisp.org>
110468         * modules/xsize: New file.
110469         * modules/linebreak: Depend on xsize.
110470         * MODULES.html.sh (func_all_modules): Add xsize.
110472 2003-11-04  Bruno Haible  <bruno@clisp.org>
110474         * m4/xsize.m4: New file.
110476 2003-11-04  Bruno Haible  <bruno@clisp.org>
110478         * lib/xsize.h: New file.
110479         * lib/linebreak.c: Include xsize.h.
110480         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
110481         argument for overflow.
110482         Suggested by Paul Eggert.
110484 2003-11-03  Karl Berry  <karl@gnu.org>
110486         * config/config.{guess,sub}: update from config.
110488 2003-11-03  Jim Meyering  <jim@meyering.net>
110490         * modules/userspec (lib_SOURCES): Add userspec.h.
110491         (Include): Add "userspec.h".
110492         Improve description.
110494 2003-11-03  Jim Meyering  <jim@meyering.net>
110496         * lib/userspec.c: Include "userspec.h".
110497         * lib/userspec.h: New file.
110499 2003-11-03  Bruno Haible  <bruno@clisp.org>
110501         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
110503 2003-11-03  Bruno Haible  <bruno@clisp.org>
110505         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
110506         available, to avoid (extremely rare) race condition.
110507         Suggested by Paul Eggert.
110509 2003-11-02  Karl Berry  <karl@gnu.org>
110511         * config/srclist.txt (vasprintf.c): sync broken, sigh.
110513 2003-10-31  Paul Eggert  <eggert@twinsun.com>
110515         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
110516         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
110517         (read_filesystem_list): Set and use me_type_malloced.
110518         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
110519         whatever the type happens to be), for brevity and consistency.
110520         Check for size calculation overflow on Alphas running OSF/1.
110522 2003-10-31  Jim Meyering  <jim@meyering.net>
110524         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
110526         * lib/linebuffer.c: Include <string.h> for declaration of memset.
110528 2003-10-30  Paul Eggert  <eggert@twinsun.com>
110529             Bruno Haible  <bruno@clisp.org>
110531         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
110532         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
110534 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
110536         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
110537         netbsd*-gnu*.  Suggested by Robert Millan.
110539 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110541         * modules/group-member: Depend on stdbool.
110543 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110545         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
110547 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110549         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
110550         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
110551         after the 'gnu' in these cases.  This fixes some bugs in the
110552         previous change, and is based on suggestions by Robert Millan.
110554 2003-10-29  Paul Eggert  <eggert@twinsun.com>
110556         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
110557         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
110558         no longer needed.
110559         * lib/quotearg.c (quotearg_n_options): Use it.
110560         * lib/group-member.c: Include <stdbool.h>.
110561         (free_group_info): Arg is now const *; don't free arg.
110562         (get_group_info): Now returns bool and accepts struct group_info *,
110563         rather than returning a malloc'ed struct group_info *.
110564         All uses changed.  Check for overflow in internal size calculation.
110566         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
110567         rather than xmalloc/xrealloc.
110568         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
110569         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
110570         conformance bug: the old code used a pointer after freeing the
110571         storage that it addressed.
110572         * lib/hash.c (hash_initialize): Simplify the code by using
110573         xalloc_oversized rather than doing it by hand.
110574         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
110575         the buffer preserved.  Use free and xmalloc instead.
110576         * lib/quotearg.c (quotearg_n_options): Likewise.
110577         Use a simpler test for size overflow.  Don't use xalloc_oversized
110578         because unsigned int might be wider than size_t (!); this suggests
110579         that we should switch from unsigned int to size_t for slot numbers.
110581 2003-10-28  Paul Eggert  <eggert@twinsun.com>
110583         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
110584         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
110585         NetBSD kernels.  Requested by Richard Stallman.
110587 2003-10-27  Paul Eggert  <eggert@twinsun.com>
110589         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
110590         to allocate the returned structure.  Do not allocate a subarray,
110591         as x2nrealloc will do that.
110592         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
110593         instead of xnrealloc.
110594         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
110596 2003-10-27  Bruno Haible  <bruno@clisp.org>
110598         * lib/stdbool_.h: Better support for BeOS.
110600 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110602         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
110603         now uses inline.
110605 2003-10-26  Paul Eggert  <eggert@twinsun.com>
110607         * lib/xalloc.h (xalloc_oversized): New static inline function, for
110608         callers that want to do their own size-overflow checking.  Include
110609         <stdbool.h>, since xalloc_oversized returns bool.
110610         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
110611         to use xalloc_oversized.
110613         Add two functions x2realloc, x2nrealloc, for programs that grow
110614         arrays dynamically by doubling their sizes.
110615         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
110616         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
110617         New functions.
110619         Port to C99 semantics for 'inline' of external functions.
110620         Bug reported by Bruno Haible.
110621         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
110622         with the old contents of xnmalloc.
110623         (xnmalloc, xmalloc): Use it.
110624         (xnrealloc_inline): New static inline function,
110625         with the old contents of xnrealloc.
110626         (xnrealloc, xrealloc): Use it.
110628         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
110629         that.
110631 2003-10-26  Karl Berry  <karl@gnu.org>
110633         * config/srclist.txt (COPYING.DOC): no longer available from
110634         /gd/gnuorg; don't know where the ultimate source is.
110636 2003-10-25  Paul Eggert  <eggert@twinsun.com>
110638         Fix several address-calculation bugs in the hash modules,
110639         plus some minor code cleanup.
110641         * lib/hash.h: Include <stdbool.h>, for bool.
110642         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
110643         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
110644         hash_get_n_entries, hash_get_max_bucket_length,
110645         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
110646         hash_rehash): Use size_t rather than unsigned.
110647         * lib/hash.c (struct hash_table, hash_get_n_buckets,
110648         hash_get_n_buckets_used, hash_get_n_entries,
110649         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
110650         hash_get_entries, hash_do_for_each, hash_string, is_prime,
110651         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
110652         Likewise.
110653         (SIZE_MAX): Define if not defined.
110654         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
110655         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
110656         hash_print):
110657         Use const * when possible.
110658         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
110659         (check_tuning): Fix bug: if tuning parameters were very close to
110660         0 or 1, rounding errors could have caused subscript violations.
110661         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
110662         (hash_initialize): Add 'fail:' label
110663         to free table and return NULL, and use it to simplify code.
110664         Use calloc rather than clearing the storage ourself.
110665         (hash_initialize, hash_rehash): Check for arithmetic overflow in
110666         buffer size calculations.
110667         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
110668         Include <stddef.h>, for size_t.
110669         * lib/hash-pjw.c (hash_pjw): Likewise.
110670         Switch to method described by Bruno Haible.
110671         Include <limits.h>, for CHAR_BIT.
110672         (SIZE_BITS): New macro.
110674 2003-10-23  Paul Eggert  <eggert@twinsun.com>
110676         * m4/getline.m4 (AM_FUNC_GETLINE):
110677         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
110678         hosts.  Problem reported by Derek Robert Price in
110679         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
110680         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
110681         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
110683 2003-10-21  Paul Eggert  <eggert@twinsun.com>
110685         * lib/getndelim2.c (getndelim2): When size calculation overflows,
110686         ceiling the allocation at NMAX bytes rather than silently
110687         discarding input bytes before NMAX is reached.  This makes
110688         a difference only if NMAX exceeds SIZE_MAX / 2.
110690         * lib/obstack.c: Merge from glibc.
110691         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
110692         Add libc_hidden_def (_obstack_newchunk).
110693         (_obstack_free) [! defined _LIBC]: Remove.
110694         [defined _LIBC]: Make a strong alias from obstack_free, rather than
110695         a clone of the function body.
110696         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
110697         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
110699         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
110700         glibc.
110701         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
110702         arg to memcpy.
110704         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
110705         (obstack_ptr_grow_fast, obstack_int_grow_fast):
110706         Don't use lvalue casts, as GCC plans to remove support for them
110707         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
110708         was also present in the non-GCC version, indicating that this
110709         code had always been buggy and had never been widely used.
110710         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
110711         Use the fast variant of each macro, rather than copying the
110712         definiens of the fast variant; that way, we'll be more likely to
110713         catch future bugs in the fast variants.
110715 2003-10-20  Bruno Haible  <bruno@clisp.org>
110717         * modules/wait-process: New file.
110718         * MODULES.html.sh (func_all_modules): Add wait-process.
110720 2003-10-20  Bruno Haible  <bruno@clisp.org>
110722         * m4/wait-process.m4: New file.
110724 2003-10-20  Bruno Haible  <bruno@clisp.org>
110726         * lib/wait-process.h: New file, from GNU gettext.
110727         * lib/wait-process.c: New file, from GNU gettext.
110729 2003-10-19  Jim Meyering  <jim@meyering.net>
110731         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
110732         HPUX 10.20.
110734 2003-10-18  Karl Berry  <karl@gnu.org>
110736         * config/config.guess: update from config.
110738 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110740         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
110741         (getgroups): First arg is int, not size_t.
110742         Don't let 'free' mangle errno.
110744 2003-10-16  Paul Eggert  <eggert@twinsun.com>
110746         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
110748 2003-10-16  Karl Berry  <karl@gnu.org>
110750         * config/config.{guess,sub}: update from config.
110752 2003-10-16  Jim Meyering  <jim@meyering.net>
110754         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
110755         memcpy.
110757 2003-10-15  Paul Eggert  <eggert@twinsun.com>
110759         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
110760         (SIZE_MAX): Remove.
110761         (new_exclude, add_exclude_file): Initial size no longer needs to
110762         be a power of 2.
110763         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
110764         our own address arithmetic overflow checking.
110766         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
110767         (fnmatch): Do not alloca more than 2000 wide characters;
110768         instead, use malloc for large buffers.
110769         Check for address arithmetic overflow, and return -1
110770         with errno set to ENOMEM in that case.
110771         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
110772         (NEW_PATTERN): Do not alloca more than 8000 bytes;
110773         instead, return -1.  Check for address arithmetic overflow.
110775 2003-10-14  Paul Eggert  <eggert@twinsun.com>
110777         Handle invalid suffixes and overflow independently, so that
110778         callers can treat them independently as needed.  Fix some bugs in
110779         suffix handling, e.g., "100k@" was not diagnosed as an invalid
110780         suffix for a human-readable blocksize.  The major caller-visible
110781         change is the addition of a new
110782         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
110783         that both overflow and suffix chars were found.
110785         * lib/human.c (humblock): Don't check separately for invalid suffix
110786         char; that is xstrtoumax's job (now that its bug is fixed).
110787         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
110788         INTMAX_MAX]: New macros.
110789         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
110790         TYPE_MAXIMUM): New macros.
110791         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
110792         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
110793         if overflow occurs, as it's what __strtol does and it's more useful
110794         in practice.
110795         (__xstrtol): If __strtol reports some error other than ERANGE,
110796         reflect it to the caller as LONGINT_INVALID.  If it reports
110797         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
110798         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
110799         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
110800         value.
110801         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
110802         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
110803         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
110804         [defined UINTMAX_MAX]: New macros.
110806 2003-10-14  Bruno Haible  <bruno@clisp.org>
110808         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
110810 2003-10-14  Bruno Haible  <bruno@clisp.org>
110812         * m4/sig_atomic_t: New file, from GNU gettext.
110813         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
110815 2003-10-14  Bruno Haible  <bruno@clisp.org>
110817         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
110818         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
110819         Also use volatile where needed.
110821 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110823         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
110824         Change maintainer from Bruno Haible to 'all'.
110826 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110828         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
110830 2003-10-12  Paul Eggert  <eggert@twinsun.com>
110832         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
110833         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
110834         and define in terms of the other primitives.
110835         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
110836         (SIZE_MAX): Define if not already defined.
110837         (array_size_overflow): New function.
110838         (xalloc_die): Abort instead of exiting if 'error' returns.
110839         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
110840         (xmalloc, xrealloc): Use them.
110841         (xcalloc): Check for address arithmetic overflow.
110842         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
110843         a bit faster than strcpy.
110845 2003-10-10  Simon Josefsson  <jas@extundo.com>
110847         * modules/argp (Depends-on): Add restrict and strcase.
110849 2003-10-10  Simon Josefsson  <jas@extundo.com>
110851         * m4/argp.m4: Add AC_C_INLINE.
110853 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110855         Merge getpass from libc, plus a few fixes.
110857         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
110858         Include <stdbool.h>.
110859         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
110860         __fsetlocking to empty.
110861         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
110862         do include <bits/libc-lock.h>.
110863         Do not include <fcntl.h>; not needed.
110864         [_LIBC]: Include <wchar.h>.
110865         (NOTCANCEL_MODE): New macro.
110866         (flockfile, funlockfile) [_LIBC]: New macros.
110867         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
110868         [!_LIBC]: New macros.
110869         (call_fclose): New function.
110870         (getpass): Use it.  Save tty stream separately; this simplifies the
110871         code and makes it more reliable if stdin happens to equal stdout.
110872         Invoke __fsetlocking on tty.
110873         Handle thread cancellation if needed.
110874         Namespace cleanup (use __tcgetattr, __getline).
110875         Use bool for Booleans.
110876         [USE_IN_LIBIO]: Handle wide streams.
110877         [!_LIBC]: Unconditionally do the fseek, since we don't know what
110878         stream might go where.
110880         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
110881         doesn't have to include <stdio.h> before us.
110882         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
110883         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
110884         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
110885         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
110886         if not declared, so that we can use getpass.c code from libc without
110887         rewriting it.
110888         (flockfile, ftrylockfile, funlockfile): New macros.
110890 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110892         * modules/getpass: Depend on stdbool.
110894 2003-10-08  Paul Eggert  <eggert@twinsun.com>
110896         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
110898 2003-10-07  Karl Berry  <karl@gnu.org>
110900         * config/config.{guess,sub}: update from config.
110902 2003-10-06  Jim Meyering  <jim@meyering.net>
110903             Bruno Haible  <bruno@clisp.org>
110905         This lets translators provide better translations for the
110906         "Written by ..." part of --version output.
110907         * lib/version-etc.h: Include stdarg.h.
110908         (version_etc_copyright): Declare as readonly.
110909         (version_etc): Make this function variadic with a NULL-terminated list
110910         of author name strings.
110911         (version_etc_va): New declaration.
110912         * lib/version-etc.c: Include stdarg.h, stdlib.h.
110913         (version_etc_copyright): Declare as readonly.
110914         (version_etc_va): New function. Provide a different translatable string
110915         for each possible number of authors < 10. Abbreviate when there are 10
110916         authors or more.
110917         (version_etc): Make this function variadic. Call version_etc_va.
110918         Suggestion from Gary V. Vaughan.
110920         * lib/long-options.h (parse_long_options): Change prototype: the
110921         authors string is moved to the end and becomes variadic.
110922         * lib/long-options.c: Include stdarg.h.
110923         (parse_long_options): Make this function variadic, too.
110924         Call version_etc_va, not version_etc.
110926 2003-10-06  Bruno Haible  <bruno@clisp.org>
110928         * modules/version-etc-2: Remove file.
110929         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
110931 2003-10-06  Bruno Haible  <bruno@clisp.org>
110933         * modules/fatal-signal: New file.
110934         * MODULES.html.sh (func_all_modules): Add fatal-signal.
110936 2003-10-06  Bruno Haible  <bruno@clisp.org>
110938         * m4/fatal-signal.m4: New file.
110939         * m4/signalblocking.m4: New file, from GNU gettext.
110941 2003-10-06  Bruno Haible  <bruno@clisp.org>
110943         * lib/version-etc-2.h: Remove file.
110944         * lib/version-etc-2.c: Remove file.
110946 2003-10-06  Bruno Haible  <bruno@clisp.org>
110948         * lib/fatal-signal.h: New file, from GNU gettext.
110949         * lib/fatal-signal.c: New file, from GNU gettext.
110951 2003-10-05  Paul Eggert  <eggert@twinsun.com>
110953         * README: Rework advice for preventing empty .o files.
110954         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
110955         not <sys/types.h>.
110957 2003-10-04  Karl Berry  <karl@gnu.org>
110959         * lib/argp*: update from libc.
110961 2003-10-04  Karl Berry  <karl@gnu.org>
110963         * config/config.{guess,sub}: update from config.
110965 2003-10-02  Bruno Haible  <bruno@clisp.org>
110967         * modules/lchown (Include): Add lchown.h.
110968         * modules/time_r (Include): Use "..." syntax.
110969         * modules/xgetdomainname (Include): Add xgetdomainname.h.
110971 2003-10-01  Simon Josefsson  <jas@extundo.com>
110973         * MODULES.html.sh (func_all_modules): Move gethostname from section
110974         'based on' to section 'lacking' POSIX:2001.
110976 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
110978         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
110979         to output mode on the same stream.
110981 2003-09-29  Paul Eggert  <eggert@twinsun.com>
110983         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
110984         Fix arg typo in previous patch.
110986 2003-09-28  Jim Meyering  <jim@meyering.net>
110988         * lib/error.c: Correct cpp indentation.
110990 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110992         * modules/free: New file.
110994 2003-09-27  Paul Eggert  <eggert@twinsun.com>
110996         * m4/free.m4: New file.
110998 2003-09-27  Paul Eggert  <eggert@twinsun.com>
111000         * lib/minmax.h (MIN, MAX)
111001         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
111002         Omit the special code that used __typeof__, since we worry that
111003         it could be more trouble than it's worth.  See:
111004         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
111005         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
111007         * lib/free.c: New file.
111009 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
111011         Trivial fixes to Makefile.am parts of module listings.
111012         * modules/strstr: Append strstr.h to lib_SOURCES.
111013         * modules/strcase: Likewise, for strcase.h.
111015 2003-09-27  Karl Berry  <karl@gnu.org>
111017         * config/mkinstalldirs: update from automake.
111019 2003-09-26  Paul Eggert  <eggert@twinsun.com>
111021         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
111022         (error_tail): Do not loop, reallocating temporary buffer, since
111023         the output cannot contain more wide characters than the input
111024         contains bytes, the size must be big enough already.  This avoids
111025         one potential size overflow calculation.  Check for size overflow
111026         when calculating temporary buffer size.  Free temporary buffer
111027         when done, if it was allocated with malloc; this plugs a memory
111028         leak.  Remove casts from void * to pointers, that are no longer
111029         needed now that we're assuming C89 or better.
111031         Merge error changes from glibc.
111033         * lib/error.c, error.h: Update copyright notice header to match glibc.
111034         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
111035         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
111036         Disable cancellation while printing error.
111037         * lib/error.h: Prepend __ to parameter names.
111039 2003-09-26  Jim Meyering  <jim@meyering.net>
111041         * lib/error.c (error_tail): Move some declarations
111042         into inner scope where the local variables are used.
111044 2003-09-26  Bruno Haible  <bruno@clisp.org>
111046         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
111047         stpncpy().
111048         Don't define stpncpy through config.h; it's now done through stpncpy.h.
111050 2003-09-26  Bruno Haible  <bruno@clisp.org>
111052         * lib/stpncpy.h (gnu_stpncpy): New declaration.
111053         (stpncpy): Define as alias for gnu_stpncpy.
111054         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
111056 2003-09-25  Simon Josefsson  <jas@extundo.com>
111058         * lib/xgetdomainname.h: New file.
111059         * lib/xgetdomainname.c: New file.
111061 2003-09-25  Simon Josefsson  <jas@extundo.com>
111062             Bruno Haible  <bruno@clisp.org>
111064         * modules/getdomainname: New file.
111065         * modules/xgetdomainname: New file.
111066         * MODULES.html.sh (func_all_modules): Add getdomainname,
111067         xgetdomainname.
111069 2003-09-25  Simon Josefsson  <jas@extundo.com>
111070             Bruno Haible  <bruno@clisp.org>
111072         * m4/getdomainname.m4: New file.
111074 2003-09-25  Simon Josefsson  <jas@extundo.com>
111075             Bruno Haible  <bruno@clisp.org>
111077         * lib/getdomainname.h: New file.
111078         * lib/getdomainname.c: New file.
111080 2003-09-25  Karl Berry  <karl@gnu.org>
111082         * lib/argp-fmtstream.c, argp-help.c: update from libc.
111084 2003-09-25  Karl Berry  <karl@gnu.org>
111086         * config/install-sh: update from automake.
111088 2003-09-25  Bruno Haible  <bruno@clisp.org>
111090         * modules/version-etc-2: New file, from modules/version-etc with
111091         modifications.
111092         * MODULES.html.sh (func_all_modules): Add version-etc-2.
111094 2003-09-25  Bruno Haible  <bruno@clisp.org>
111096         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
111097         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
111099 2003-09-24  Simon Josefsson  <jas@extundo.com>
111101         * modules/xgethostname: Add xgethostname.h.
111103 2003-09-24  Paul Eggert  <eggert@twinsun.com>
111105         * lib/linebuffer.c (freebuffer): Don't free the argument, just
111106         the buffer associated with the argument.  Bug reported by
111107         Simon Josefsson.
111109 2003-09-24  Paul Eggert  <eggert@twinsun.com>
111111         * README: Document assumptions that 'int' is at least 32 bits
111112         wide, that integer arithmetic is 2's complement without overflow,
111113         that there are no holes in integer values, that adding sizes of
111114         two nonoverlapping objects can't overflow, and that all-bits-zero
111115         yields scalar zero.  Fix spelling and capitalization typos.
111117 2003-09-19  Karl Berry  <karl@gnu.org>
111119         * lib/argp.h: update from libc.
111121 2003-09-17  Paul Eggert  <eggert@twinsun.com>
111123         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
111124         to avoid spurious warnings like "AC_RUN_IFELSE was called before
111125         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
111127 2003-09-17  Paul Eggert  <eggert@twinsun.com>
111129         * gnulib-tool: Use "test -h", not "test -L", for portability
111130         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
111131         (tags_regexp): Remove, since \| doesn't conform to POSIX.
111132         (sed_extract_prog): Issue s commands one-by-one, rather than
111133         using \| in one s command.
111135 2003-09-16  Paul Eggert  <eggert@twinsun.com>
111137         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
111138         input error, instead of returning NULL the next time we are called
111139         (and therefore losing track of errno).
111141 2003-09-16  Bruno Haible  <bruno@clisp.org>
111143         * gnulib-tool (func_create_testdir): Warn about duplicated
111144         dependencies.
111146 2003-09-15  Paul Eggert  <eggert@twinsun.com>
111148         * modules/argmatch, modules/fatal, modules/obstack,
111149         modules/xalloc, modules/xgethostname: Sort dependencies by
111150         importance, not alphabetically.
111152 2003-09-15  Paul Eggert  <eggert@twinsun.com>
111154         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
111155         fails, so that the caller gets the proper errno.
111157         * lib/readutmp.c (read_utmp): Likewise.
111158         Check for fstat error.  Close stream and free storage
111159         when failing.
111161 2003-09-14  Karl Berry  <karl@gnu.org>
111163         * config/srclist.txt (strdup.c): disable for c89 changes.
111165 2003-09-14  Jim Meyering  <jim@meyering.net>
111167         * lib/getloadavg.c: Correct cpp indentation.
111168         * lib/strdup.c: Likewise.
111169         * lib/vasnprintf.c: Likewise.
111171 2003-09-14  Bruno Haible  <bruno@clisp.org>
111173         * modules/fwriteerror: New file.
111174         * MODULES.html.sh (func_all_modules): Add fwriteerror.
111176 2003-09-14  Bruno Haible  <bruno@clisp.org>
111178         * lib/fwriteerror.h: New file.
111179         * lib/fwriteerror.c: New file.
111181 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111183         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
111184         modules/xgethostname, modules/xalloc: Depend on exit.
111186 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111188         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
111190         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
111191         and AC_MINIX, too, so that their extensions are available.
111193         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
111194         This macro has been superseded by gl_BACKUPFILE.
111196         More patches to assume C89 or better.
111198         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
111200         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
111201         unconditionally.
111202         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
111203         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
111204         Include <string.h>, <stdlib.h> unconditionally.
111205         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
111206         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
111207         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
111208         headers or for string.h.
111209         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
111210         or strtoul.
111212         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
111213         headers.
111214         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
111215         * m4/userspec.m4 (gl_USERSPEC): Likewise.
111216         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
111217         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
111218         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
111219         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
111220         memcpy, memset.
111221         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
111222         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
111223         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
111224         strtol.
111225         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
111226         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
111227         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
111228         strtoul.
111230 2003-09-12  Paul Eggert  <eggert@twinsun.com>
111232         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
111233         * lib/obstack.c [!defined _LIBC]: Likewise.
111234         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
111235         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
111236         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
111238         More changes to assume C89 or better.
111240         * lib/error.c (error_tail): Assume vprintf.
111242         * lib/argmatch.c (getenv): Remove decl.
111243         * lib/progreloc.c (get_full_program_name): Define via prototype.
111244         * lib/setenv.c (clearenv): Likewise.
111245         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
111246         needed.
111247         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
111248         (malloc, memcpy): Remove decls.
111249         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
111250         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
111251         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111252         (memcpy): Remove macro.
111253         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
111254         (__P): Remove.  All uses removed.
111255         (PTR): Remove.  All uses changed to void *.
111256         (CHAR_BIT, NULL): Remove.
111257         (spaces, zeros, memset_space, memset_zero)
111258         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
111259         Remove.
111260         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
111261         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
111262         Define with prototype.
111263         Remove now-unnecessary prototype decl.
111264         (extra_args_spec): Assume ANSI C.  All uses changed.
111265         (extra_args_spec_iso): Remove.
111266         (my_strftime, emacs_strftimeu): Define via prototype.
111267         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
111268         unconditionally.
111269         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
111270         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
111271         (strtoul, strtol): Remove decls.
111272         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
111273         LONG_MAX): Remove.
111274         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
111275         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
111276         (LOCALE_PARAM_PROTO): New macro.
111277         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
111278         (INTERNAL (strtol), strtol): Define with a prototype.
111279         (PARAMS): Remove.  All uses removed.
111280         * lib/tempname.c: Include <string.h> unconditionally.
111281         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
111282         * lib/xgethostname.c (main): Define with a prototype.
111283         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
111284         Include <stdlib.h> unconditionally.
111285         (calloc, malloc, realloc, free): Remove decls.
111286         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
111287         Include <stdlib.h> unconditionally.  Sort include file names.
111288         (strtod): Remove.
111289         (xstrtod): Define with a prototype.
111290         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
111291         (strtol, strtoul): Remove decls.
111293 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111295         More patches to assume C89 or better.
111296         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
111297         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
111298         string.h, memchr, STDC_HEADERS.
111300 2003-09-11  Paul Eggert  <eggert@twinsun.com>
111302         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
111303         Include <stdlib.h>, <string.h> unconditionally.
111304         Remove now-unnecessary cast to char *.
111305         * lib/strnlen.c: Include <string.h> unconditionally.
111306         * lib/yesno.c (yesno): Define with a prototype.
111308 2003-09-11  Bruno Haible  <bruno@clisp.org>
111310         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
111312 2003-09-10  Jim Meyering  <jim@meyering.net>
111314         * lib/error.c: Correct indentation of cpp directives.
111316 2003-09-10  Bruno Haible  <bruno@clisp.org>
111318         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
111319         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
111320         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
111321         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
111322         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
111323         <stdlib.h> and <string.h> checks.
111324         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
111325         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
111327 2003-09-10  Bruno Haible  <bruno@clisp.org>
111329         * lib/strcspn.c: Include <string.h> unconditionally.
111330         * lib/strpbrk.c: Include <string.h> unconditionally.
111331         * lib/strstr.c: Include <string.h> unconditionally.
111332         * lib/unicodeio.c: Include <string.h> unconditionally.
111333         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
111334         * lib/unsetenv.c: Likewise.
111335         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
111336         * lib/yesno.c: Include <stdlib.h> unconditionally.
111337         (rpmatch): Add prototype.
111339 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111341         More patches to assume C89 or better.
111342         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
111343         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
111344         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
111345         or for string.h.
111346         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
111347         stdlib.h.
111348         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
111349         C headers.
111350         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
111351         string.h.
111352         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
111353         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
111354         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
111355         or for string.h.
111356         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
111357         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
111358         C headers.
111359         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
111360         memcpy.
111361         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
111362         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
111363         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
111364         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
111365         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
111366         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
111367         string.h, free.
111368         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
111369         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
111370         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
111371         C headers, or for string.h.
111372         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
111373         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
111374         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
111375         headers, memory.h, stdlib.h, string.h, strings.h.
111376         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
111377         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
111378         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
111379         strchr.
111380         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
111381         headers, memory.h, string.h.
111382         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
111383         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
111384         free.
111385         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
111386         headers.
111387         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
111388         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
111389         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
111390         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
111391         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
111393 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111395         More K&R removal.
111397         * lib/acosl.c (main): Use a prototype.
111398         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
111399         tanl.c: Likewise.
111401         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
111403         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
111404         (getopt, etopt_long, getopt_long_only, _getopt_internal)
111405         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
111406         with a prototype.
111407         * lib/getopt.c (const): Remove macro.
111408         Include <string.h> unconditionally.
111409         (my_index): Remove; all uses changed to strchr.
111410         (strlen): Remove decl.
111411         (exchange): Remove forward decl; no longer needed.
111412         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
111413         Define with prototype.
111414         * lib/getopt1.c (const): Remove macro.
111415         (getopt_long, getopt_long_only, main): Define with prototype.
111417         * lib/getugroups.c: Include <string.h> unconditionally.
111419         * lib/getusershell.c: Include <stdlib.h> unconditionally.
111420         (getusershell, setusershell, endusershell, readname, main):
111421         Define with prototypes.
111423         * lib/group-member.c: Include group-member.h first.
111424         Include <stdlib.h> unconditionally.
111426         * lib/hard-locale.c: Include hard-locale.h first.
111427         Include <stdlib.h>, <string.h> unconditionally.
111429         * lib/hash.c (free, malloc): Remove decls.
111430         Include <stdlib.h> unconditionally.
111432         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
111433         (getenv): Do not declare.
111435         * lib/idcache.c: Include <string.h> unconditionally.
111437         * lib/long-options.c: Include long-options.h first, to test interface.
111438         Include <stdlib.h> unconditionally.
111440         * lib/makepath.c: Include makepath.h first, to test interface.
111441         Include <stdlib.h> and <string.h> unconditionally.
111443         * lib/linebuffer.c: Include <stdlib.h>.
111444         (free): Remove decl.
111446         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
111447         stddef.h. rpl_malloc returns void *, not char *.
111448         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
111449         prototype.
111451         * lib/md5.h: Include <limits.h> unconditionally.
111452         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
111453         (__P): Remove; all uses removed.
111454         * lib/md5.c: Include "md5.h" first.
111455         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
111456         md5_buffer, md5_process_bytes, md5_process_block):
111457         Define with prototypes.
111458         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
111459         * lib/sha.c: Include "sha.h" first.
111460         Include <stdlib.h>, <string.h> unconditionally.
111462         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
111463         * lib/memcmp.c (__ptr_t): Likewise.
111464         * lib/memrchr.c (__ptr_t): Likewise.
111465         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
111466         Include <string.h> unconditionally.
111467         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
111468         * lib/memchr.c: Include <stdlib.h> unconditionally.
111469         * lib/memchr.c (LONG_MAX): Remove.
111470         * lib/memrchr.c (LONG_MAX): Likewise.
111471         * lib/memchr.c (__memchr): Define via a prototype.
111472         * lib/memrchr.c (__memrchr): Likewise.
111473         * lib/memcmp.c (__P): Remove, and remove all uses.
111474         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
111475         Remove forward decls; no longer needed.
111476         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
111477         Use types required by C89 in prototype.
111479         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
111480         * lib/savedir.c: Likewise.
111481         * lib/mkdir.c (free): Remove decl.
111482         * lib/rmdir.c (rmdir): Define with a prototype.
111483         * lib/savedir.c: Include savedir.h first, to test interface.
111485         * lib/mktime.c (STDC_HEADERS): Remove.
111486         Include <stdlib.h>, <string.h> unconditionally.
111488         * lib/modechange.c: Include <stdlib.h> unconditionally.
111489         (malloc): Remove decl.
111491         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
111492         (free): Remove decl.
111494         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
111495         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
111496         (This type really should be intptr_t, but that's a C99ism.)
111497         (_obstack_memcpy): Remove: all uses changed to memcpy.
111498         Include <string.h> unconditionally.
111499         (struct obstack): Assume __STDC__ for types of members
111500         chunkfun, freefun, extra_arg.
111501         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
111502         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
111503         obstack_begin, obstack_specify_allocation,
111504         obstack_specify_allocation_with_arg, obstack_chunkfun,
111505         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
111506         Remove unprototyped decls and the macros that use them.
111507         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
111508         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
111509         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
111510         (defined __STDC__ && __STDC__)]:
111511         Remove nonprototyped code.
111512         Include <stdlib.h> unconditionally.
111513         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
111514         _obstack_allocated_p, _obstack_free, obstack_free,
111515         _obstack_memory_used, print_and_abort):
111516         Define using prototypes.
111517         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
111518         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
111519         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
111520         obstack_next_free, obstack_object_size, obstack_room) [0]:
111521         Remove unused, unprototyped code.
111523         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
111525         * lib/physmem.c (physmem_total, physmem_available, main): Define
111526         with prototypes.
111528         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
111529         (main): Define with a prototype.
111531         * lib/posixver.c (getenv): Remove decl.
111533         * lib/putenv.c (malloc): Returns void *, not char *.
111534         Include <string.h> unconditionally.
111535         (strchr, memcpy, NULL): Do not define.
111537         * lib/readtokens.c: Include readtokens.h first, to test interface.
111538         Include <stdlib.h>, <string.h> unconditionally.
111539         (init_tokenbuffer): Define with a prototype.
111541         * lib/regex.c (PARAMS): Remove.  All uses removed.
111542         All uses of _RE_ARGS removed, too.
111543         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
111544         unconditionally.
111545         (bzero): Assume memset exists.
111546         (memcmp, memcpy, NULL): Remove.
111547         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
111548         char, or assignments to local vars of type signed char.
111549         (init_syntax_once, PREFIX(extract_number_and_incr),
111550         PREFIX(print_partial_compiled_pattern),
111551         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
111552         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
111553         PREFIX(regex_grow_registers), PREFIX(regex_compile),
111554         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
111555         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
111556         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
111557         wcs_compile_range, byte_compile_range, truncate_wchar,
111558         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
111559         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
111560         count_mbs_length, wcs_re_match_2_internal,
111561         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
111562         PREFIX(alt_match_null_string_p),
111563         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
111564         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
111565         regfree, PREFIX(extract_number)): Define with prototype.  Remove
111566         now-unnecessary declaration, if any.
111567         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
111568         regcomp, regexec):
111569         Remove now-unnecessary casts among pointer types.
111570         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
111572         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
111573         (free): Remove decl.
111575         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
111577         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
111578         (free): Remove decl.
111580         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
111581         * lib/xgetcwd.c: Likewise.
111583         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
111584         (free): Remove decl.
111586         * lib/strchrnul.c (strchrnul): Define with a prototype.
111587         Fix bug: c_in was not converted to char before searching.
111589         The following changes are not K&R related:
111591         * lib/group-member.h: Include <sys/types.h>, so that this file is
111592         self-contained.
111593         * lib/makepath.h: Likewise.
111595         * lib/getusershell.c (readname, default_index, line_size, readname):
111596         Use size_t, not int, for sizes.
111597         (readname): If the size overflows, report an error instead of
111598         looping forever.
111600 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111602         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
111603         libc.
111605 2003-09-09  Paul Eggert  <eggert@twinsun.com>
111607         * README: New section: portability guidelines.
111609 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111611         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
111612         C89 spec.
111614 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
111616         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
111618 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111620         Assume C89 or better; remove K&R cruft.
111621         A few of these changes were first proposed by Derek Robert Price
111622         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
111624         * lib/addext.c: Include <string.h> unconditionally.
111625         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
111626         Don't declare getenv or malloc.
111628         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
111629         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
111630         (NULL): Remove.
111631         (find_stack_direction, alloca): Use prototypes.
111633         * lib/atexit.c (atexit): Define using a prototype.
111635         * lib/basename.c, dirname.c, stripslash.c:
111636         Include <string.h> unconditionally.
111638         * lib/bcopy.c: Include <stddef.h>.
111639         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
111641         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
111643         * lib/error.h (error, error_at_line, error_print_progname)
111644         [! (defined (__STDC__) && __STDC__)]: Remove decls.
111645         * lib/error.c: Include error.h first, to check interface.
111646         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111647         (VA_START): Remove; all uses changeed to va_start.
111648         (exit, strerror): Remove decls.
111649         (error_print_progname): Prototype uncondionally.
111650         Don't include <errno.h>; no longer needed.
111651         (private_strerror): Remove.
111652         (error_tail): Always define.
111653         (error, error_at_line): Assume C89 or better; always use prototypes.
111654         * lib/fatal.c: Include "fatal.h" first, to test interface.
111655         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
111656         (VA_START): Remove; all uses changed to va_start.
111657         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
111658         this case.
111659         (exit): Remove decl.
111660         (fatal): Prototype unconditionally.  Assume va_start works.
111661         Abort at end, to pacify gcc.
111663         * lib/euidaccess.c (main): Define with a prototype.
111665         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
111667         * lib/exitfail.c: Include <stdlib.h> unconditionally.
111669         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
111670         prototypes.
111671         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
111672         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
111673         (getenv): Remove decl.
111674         (fnmatch): Define using a prototype.
111675         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
111676         (FCT): Define using a prototype.
111678         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
111680         * lib/gethostname.c: Include <stddef.h>.
111681         (gethostname): Define with prototype.  Length is size_t, not int.
111683 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111685         Assume C89 or better; remove K&R cruft.
111686         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
111687         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
111688         string.h, getenv, malloc.
111689         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
111690         headers.
111691         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
111692         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
111693         do not check for strerror.
111694         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
111695         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
111696         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
111697         do not check for doprnt or vprintf.
111698         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
111699         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
111701 2003-09-08  Paul Eggert  <eggert@twinsun.com>
111703         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
111704         getversion.c should have been removed then, but was accidentally
111705         preserved.
111707         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
111708         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
111710 2003-09-08  Karl Berry  <karl@gnu.org>
111712         * config/config.sub, config.guess, srclistvars.sh: update from savannah
111713                 config, forget about prep.
111715         * config/depcomp, missing: update from automake.
111717 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111719         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
111720         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111722 2003-09-07  Paul Eggert  <eggert@twinsun.com>
111724         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
111725         copy_tm_result.  Bug reported by Simon Josefsson in
111726         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
111728 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111730         * m4/time_r.m4: New file.
111731         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
111732         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
111733         is. Check for timegm declaration.
111734         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
111735         Do not check for gmtime_r.
111736         Replace mktime if __mktime_internal does not exist and if mktime
111737         hasn't been replaced already.
111739 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111741         * lib/time_r.c, lib/time_r.h: New files.
111743         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
111744         __localtime_r.
111745         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
111746         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
111748         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
111749         __gmtime_r.
111750         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
111751         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
111752         Include <time_r.h>.
111754         * lib/timegm.c: Switch to glibc implementation, with the following
111755         changes:
111756         [defined HAVE_CONFIG_H]: Include <config.h>.
111757         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
111758         (__mktime_internal) [!defined _LIBC]: New decl.
111759         (__gmtime_r) [!defined _LIBC]: New macro and function.
111760         (timegm): Use a prototype, since gnulib assumes C89.
111761         Do not bother declaring tmp to be const, as it's not really usefu.
111762         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
111763         (timegm): Declare only if HAVE_DECL_TIMEGM.
111765 2003-09-06  Paul Eggert  <eggert@twinsun.com>
111767         * MODULES.html.sh (func_all_modules): Add time_r.
111768         * modules/time_r: New file.
111769         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
111770         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
111772 2003-09-03  Paul Eggert  <eggert@twinsun.com>
111774         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
111775         Bug reported by Lute Kamstra in
111776         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
111778         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
111779         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
111780         course with correspondingly smaller numbers for tomorrow and
111781         yesterday.  From Tadayoshi Funaba.  Originally installed into
111782         sh-utils on 1999-08-07, but the patch got lost (I guess during the
111783         coreutils merge?).
111785 2003-08-31  Simon Josefsson  <jas@extundo.com>
111787         * modules/timegm: New file.
111788         * MODULES.html.sh (func_all_modules): Add timegm.
111790 2003-08-31  Simon Josefsson  <jas@extundo.com>
111792         * m4/timegm.m4: New file.
111794 2003-08-31  Simon Josefsson  <jas@extundo.com>
111796         * lib/timegm.h: New file.
111797         * lib/timegm.c: New file.  Based on
111798         wget-1.8.2/src/http.c:mktime_from_utc.
111800 2003-08-31  Karl Berry  <karl@gnu.org>
111802         * lib/argp.h: update from libc.
111804 2003-08-28  Bruno Haible  <bruno@clisp.org>
111806         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
111807         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
111808         followed by '#define fnmatch fnmatch_posix' gives an error.
111810 2003-08-28  Bruno Haible  <bruno@clisp.org>
111812         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
111813         warning on QNX, which defines O_BINARY to 000000.
111815 2003-08-27  Jim Meyering  <jim@meyering.net>
111817         * m4/mkstemp.m4: Require that the system mkstemp be able to create
111818         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
111819         would fail after 32.  Reported by Danny Levinson.  Details here:
111820         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
111822 2003-08-24  Bruno Haible  <bruno@clisp.org>
111824         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
111825         MSVC7 <stdio.h> is included later.
111827 2003-08-22  Simon Josefsson  <jas@extundo.com>
111829         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
111831 2003-08-20  Karl Berry  <karl@gnu.org>
111833         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
111835 2003-08-20  Bruno Haible  <bruno@clisp.org>
111837         * modules/progname: New file.
111838         * MODULES.html.sh (func_all_modules): Add progname.
111840 2003-08-20  Bruno Haible  <bruno@clisp.org>
111842         * lib/progname.h: New file, from GNU gettext.
111843         * lib/progname.c: New file, from GNU gettext.
111844         * lib/progreloc.c: New file, from GNU gettext.
111846 2003-08-19  Jim Meyering  <jim@meyering.net>
111848         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
111849         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
111851 2003-08-19  Bruno Haible  <bruno@clisp.org>
111853         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
111854         more.
111856 2003-08-19  Bruno Haible  <bruno@clisp.org>
111858         * lib/xstrdup.c: Assume <string.h> exists.
111860 2003-08-18  Paul Eggert  <eggert@twinsun.com>
111862         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
111863         in makefile rules.
111865 2003-08-18  Jim Meyering  <jim@meyering.net>
111867         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
111868         * m4/lib-ld.m4: Likewise.
111870 2003-08-18  Jim Meyering  <jim@meyering.net>
111872         * lib/setenv.h: Indent nested cpp directive.
111873         * lib/vasnprintf.c: Remove trailing blanks.
111875 2003-08-17  Simon Josefsson  <jas@extundo.com>
111877         * modules/xstrndup: New file.
111878         * MODULES.html.sh (func_all_modules): Add xstrndup.
111880 2003-08-17  Simon Josefsson  <jas@extundo.com>
111882         * modules/argp: Fix autoconf macro name. Add more dependencies.
111884 2003-08-17  Simon Josefsson  <jas@extundo.com>
111886         * m4/xstrndup.m4: New file.
111888 2003-08-17  Simon Josefsson  <jas@extundo.com>
111890         * m4/argp.m4: New file.
111892 2003-08-17  Simon Josefsson  <jas@extundo.com>
111893             Bruno Haible  <bruno@clisp.org>
111895         * lib/xstrndup.h: New file.
111896         * lib/xstrndup.c: New file.
111898 2003-08-17  Bruno Haible  <bruno@clisp.org>
111900         * modules/strndup (Files, Include): Add lib/strndup.h.
111902 2003-08-17  Bruno Haible  <bruno@clisp.org>
111904         * modules/euidaccess (Files): Add lib/euidaccess.h.
111906 2003-08-17  Bruno Haible  <bruno@clisp.org>
111908         * lib/strndup.h: New file.
111910 2003-08-17  Bruno Haible  <bruno@clisp.org>
111912         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
111913         like AC_GNU_SOURCE.
111914         * modules/extensions (configure.ac): Comment out the invocation of
111915         gl_USE_SYSTEM_EXTENSIONS.
111917 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111919         Merges from coreutils, etc.
111920         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
111921         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
111922         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
111923         fixing a typo.
111924         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
111925         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
111927 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111929         Document merge from coreutils.
111930         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
111931         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
111932         * modules/utime: Add m4/utimes-null.m4.
111934 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111936         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
111937         space, undoing this 2003-08-12 change:
111938         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111940 2003-08-16  Paul Eggert  <eggert@twinsun.com>
111942         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
111943         strtoul.c from libc, undoing this 2003-08-12 change:
111944         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
111946 2003-08-16  Jim Meyering  <jim@meyering.net>
111948         Merges from coreutils.
111949         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
111950         prefix.  Adjust cache variables similarly.  Create 500 rather than
111951         just 300 files, to exercise bug on Darwin6.5, too.
111952         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
111953         $missing_dir.
111954         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
111955         AM_SYS_POSIX_TERMIOS.
111956         Reported by mkc@mathdogs.com.
111957         Also change use of $am_cv_sys_posix_termios
111958         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
111959         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
111960         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
111961         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
111962         in /proc/mounts until it finds one with matching device number.  This
111963         is unnecessary when the FILE argument *is* a mount point.  No stat call
111964         is necessary in that case.  So, disable the statvfs-testing code on
111965         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
111966         as RedHat bug# 84846.
111967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111968         to 1MB, so as not to render systems with no stack size limit (e.g.,
111969         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111970         Include <unistd.h>.  On some systems,
111971         it is required for the definition of _SC_PAGESIZE.
111973 2003-08-16  Jim Meyering  <jim@meyering.net>
111975         Merge from coreutils.
111976         * lib/xstrtoimax.c: #else #if -> #elif.
111977         * lib/xstrtoumax.c: Likewise.
111979 2003-08-16  Jim Meyering  <jim@meyering.net>
111981         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
111982         * m4/utimes.m4: Removed.
111983         * m4/utimes-null.m4: Renamed from utimes.m4.
111985         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
111986         to 1MB, so as not to render systems with no stack size limit (e.g.,
111987         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
111988         Include <unistd.h>.  On some systems,
111989         it is required for the definition of _SC_PAGESIZE.
111991 2003-08-16  Jim Meyering  <jim@meyering.net>
111992         and Paul Eggert  <eggert@cs.ucla.edu>
111994         Merges from coreutils, etc.
111996         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
111997         using the latest version from cvs.  This avoids problems with #line
111998         directives using a vendor (Sun) compiler.
111999         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
112000         Don't set GETGROUPS_LIB here; now it's
112001         done via getgroups.m4's wrapper function.
112002         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
112003         rather than just in sh-util/configure.in, so that the
112004         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
112005         same.
112006         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
112007         AC_FUNC_GETLOADAVG where to find getloadavg.c.
112008         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
112009         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
112010         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
112011         Remove code that is now done by the newly-required macros.
112012         Append $(EXEEXT) to DF_PROG.
112013         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
112014         Do not invoke or require the following here,
112015         since prereq.m4 or some gnulib .m4 now does this for us:
112016         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
112017         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
112018         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
112019         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
112020         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
112021         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
112022         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
112023         AC_FUNC_OBSTACK.
112024         Do not replace the following functions, as this is now the job
112025         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
112026         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
112027         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
112028         atexit getpass, strdup, getpagesize.
112029         Replace 'raise'.
112030         Do not check for the following functions, as this is now the job
112031         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
112032         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
112033         setregid.
112034         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
112035         Check for sys/sysctl.h.
112036         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
112037         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
112038         of checking for ssize_t ourselves.
112040         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
112041         Require every macro that gnulib/modules/* suggests for us.
112042         (jm_PREREQ_ADDEXT): New macro.
112043         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
112044         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
112046         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
112047         (gl_PHYSMEM): Use it.
112048         Also check for `table' function.
112049         Check for new headers and functions.
112050         Add check for sys/sysmp.h.
112051         With suggestions from Kaveh Ghazi.
112052         Ignore headers that are present but cannot be compiled.  This
112053         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
112054         C 5.4.
112056 2003-08-15  Paul Eggert  <eggert@twinsun.com>
112058         Document merge from coreutils.
112059         * modules/userspec: Depend on posixver.
112060         * modules/strftime: Depend on tzset.
112062 2003-08-15  Paul Eggert  <eggert@twinsun.com>
112064         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
112065         rather than tab, after '#' in shell-script copyright notices.
112066         Suggested by Bruno Haible.
112068 2003-08-15  Paul Eggert  <eggert@twinsun.com>
112070         * config/srclist-update: Use three spaces, rather than tab, after '#'
112071         in shell-script copyright notices.  Suggested by Bruno Haible.
112072         Remove unnecessary parenthesization in regular expression.
112074 2003-08-15  Jim Meyering  <jim@meyering.net>
112076         Merge from coreutils.
112077         * lib/xgethostname.c: Include <stdlib.h>.
112078         (xghostname): Don't exit for anything other than memory-related
112079         failure; just return NULL.
112080         * lib/userspec.c: Include "posixver.h".
112081         (parse_user_spec): Accept `.' as a separator only
112082         in pre-POSIX-200112 mode.
112083         * lib/strtoimax.c: Use #elif rather than #else #if.
112084         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
112085         Remove function, now that we can rely on a working tzset function.
112086         [!_LIBC]: Ensure that the required autoconf test has been run.
112087         [!defined _NL_CURRENT && HAVE_STRFTIME]:
112088         Use underlying_strftime for %r.
112089         * lib/sha.c: Merge in some clean-up and optimization changes from
112090         glibc.
112091         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
112092         Ensure that it is a multiple of 64.
112093         Rearrange loop exit tests so as to avoid performing an
112094         additional fread after encountering an error or EOF.
112095         * lib/realloc.c: Update copyright date.
112097 2003-08-15  Jim Meyering  <jim@meyering.net>
112098         and Paul Eggert  <eggert@twinsun.com>
112100         Merge from coreutils.
112101         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
112102         member but strut utmpx does not.  Needed for AIX 4.3.3.
112103         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
112105 2003-08-15  Jim Meyering  <jim@meyering.net>
112106         and Paul Eggert  <eggert@cs.ucla.edu>
112108         Merges from coreutils, etc.
112109         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
112110         Require gl_FUNC_TZSET_CLOBBER.
112111         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
112112         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
112113         members.
112115 2003-08-14  Paul Eggert  <eggert@twinsun.com>
112117         Help the merge from coreutils.
112118         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
112119         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
112120         * m4/tzset.m4: Use it too.
112122 2003-08-14  Paul Eggert  <eggert@twinsun.com>
112124         * modules/tzset: New file.
112126 2003-08-14  Jim Meyering  <jim@meyering.net>
112128         Merges from coreutils.
112129         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
112130         variable names, rather than @FNMATCH_H@.
112131         * modules/alloca: Likewise for $(ALLOCA_H).
112133         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
112134         the three copies of the literal target, `fnmatch.h'.
112135         * modules/alloca (alloca.h): Likewise.
112137 2003-08-14  Jim Meyering  <jim@meyering.net>
112139         Merge from coreutils.
112140         * m4/tzset.m4: New file.
112141         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
112142         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
112143         otherwise, AIX 5.1 systems would end up using the latter.
112144         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
112145         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
112146         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
112147         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
112149 2003-08-14  Jim Meyering  <jim@meyering.net>
112151         Merge from coreutils.
112152         * lib/obstack.h: Whitespace changes.
112153         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
112154         and xcalloc return values.
112155         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
112156         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
112157         hang on OSF/1 5.1 for DIR on both local and remote file systems.
112158         Reported by (and fix confirmed by) Nelson H. F. Beebe.
112159         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
112160         error from mntctl.
112161         Use mntctl's return value to drive the entry-processing loop, since
112162         we can't rely on the value of the vmt_length member in the last
112163         entry.  On some systems doing so could result in exhausting
112164         virtual memory.  Based in part on a patch from Mike Jetzer.
112166 2003-08-14  Jim Meyering  <jim@meyering.net>
112167         and Paul Eggert  <eggert@twinsun.com>
112169         Merges from coreutils, plus other fixes.
112170         * lib/physmem.c: Merge in portability changes from gcc/libiberty
112171         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
112172         for credits and details.  Thanks to Kaveh Ghazi for helping
112173         to keep these files in sync.
112174         (ARRAY_SIZE): Define it.
112175         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
112176         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
112177         (memcasecmp): Don't assume size_t fits in unsigned int.
112178         Remove casts and duplicate code.
112179         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
112180         (memcpy): Remove definition.
112181         Merge in some clean-up and optimization changes from glibc.
112182         [BLOCKSIZE]: Move definition to top of file.
112183         Ensure that it is a multiple of 64.
112184         Rearrange loop exit tests so as to avoid performing an
112185         additional fread after encountering an error or EOF.
112186         * lib/md5.h (md5_uintptr): Define.
112187         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
112188         return to the initial working directory.  Preserve errno
112189         for caller.
112190         * lib/idcache.c: Include "xalloc.h".
112191         (xmalloc, xrealloc): Remove decls.
112192         (getuser): Remove casts no longer required in C89.
112193         * lib/human.c: Include stdio.h, for sprintf.
112194         * lib/group-member.c: Include "xalloc.h".
112195         (xmalloc, xrealloc): Remove decls.
112196         (get_group_info): Remove casts no longer required in C89.
112197         * lib/getusershell.c (readname): Remove casts no longer required in
112198         C89.
112199         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
112200         * lib/getline.c: Whitespace fix, from coreutils.
112202 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112204         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
112205         Check for isascii.
112207         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
112208         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112209         Undo previous (whitespace-only) change.
112211 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112213         * lib/exclude.c: Include <ctype.h>
112214         (IN_CTYPE_DOMAIN): New macro.
112215         (is_space): New fn.
112216         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
112217         and empty lines.
112219         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112220         Undo previous (whitespace-only) change.
112222 2003-08-13  Paul Eggert  <eggert@twinsun.com>
112224         * config/srclist-update: Change update back to the old behavior,
112225         leaving whitespace alone.  Use one 'sed' command rather than a
112226         pipeline.
112227         (fixlicense): Now a variable, not a function.
112228         (remove_trailing_blanks): Remove.
112229         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
112230         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112231         Undo previous (whitespace-only) change.
112233 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112235         Merge from coreutils.
112236         * modules/euidaccess: Add lib_SOURCES, include for new
112237         file euidaccess.h
112239 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112241         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
112242         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
112243         Normalize leading white space and remove trailing white space.
112245         Merge from coreutils
112246         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
112248         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
112249         0.12.1.  These files are now being upgraded automatically by
112250         ../config/srclist-update.
112252 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112254         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
112255         Normalize leading white space and remove trailing white space.
112256         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
112257         notice, as per ../config/srclist-update.
112259         Merge from coreutils.
112260         * lib/euidaccess.h: New file.
112261         * lib/euidaccess.c: Include it.
112262         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
112263         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
112264         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
112266 2003-08-12  Paul Eggert  <eggert@twinsun.com>
112268         * config/srclist-update: Add copyright notice.
112269         (remove_id_lines, remove_trailing_blanks): New constants.
112270         (fixfile): Use them to normalize spacing a bit in copied files.
112271         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
112272         Normalize leading white space and remove trailing white space.
112274         * config/texinfo.tex: Sync with texinfo.
112276         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
112277         strtoul.c from libc, to merge coreutils whitespace changes.
112279         * config/srclist.txt: Get the following m4 files from gettext:
112280         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
112281         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
112282         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
112283         wint_t.m4.
112285 2003-08-12  Karl Berry  <karl@gnu.org>
112287         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
112288         been made.
112290 2003-08-11  Paul Eggert  <eggert@twinsun.com>
112292         * modules/gnu-source, m4/gnu-source.m4:
112293         Remove; we're assuming Autoconf 2.54 or later now.
112294         Suggested by Bruno Haible.
112295         * MODULES.html.sh (func_all_modules): Remove gnu-source.
112297 2003-08-11  Bruno Haible  <bruno@clisp.org>
112299         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
112301 2003-08-11  Bruno Haible  <bruno@clisp.org>
112303         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
112304         (vasnprintf): Use it instead of wcslen.
112306 2003-08-11  Bruno Haible  <bruno@clisp.org>
112308         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
112309         value to ensure that _Bool promotes to int. Use #define for _Bool when
112310         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
112312 2003-08-10  Karl Berry  <karl@gnu.org>
112314         * lib/regex.h: update from libc (whitespace fix).
112316 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112318         Merge some files from coreutils.  These changes were
112319         originally made by Jim Meyering.
112320         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
112321         many older Unixes require this.
112322         * lib/alloca.c (alloca): Remove cast to argument of free;
112323         no longer needed in C89.
112324         * lib/alloca_.h, regex.h: Fix white space to match
112325         what GNU indent does.
112327 2003-08-09  Paul Eggert  <eggert@twinsun.com>
112329         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
112330         apparently Emacs's Unicode mode got confused before my 2003-08-05
112331         checkin.
112333 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112335         * m4/extensions.m4: New file.
112336         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
112337         Require gl_USE_SYSTEM_EXTENSIONS.
112338         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
112339         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
112341 2003-08-08  Paul Eggert  <eggert@twinsun.com>
112343         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
112344         * modules/extensions, modules/gnu-source: New files.
112345         * modules/timespec, modules/unlocked-io: Depend on extensions.
112347 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112349         * modules/restrict: New file.
112350         * MODULES.html.sh (func_all_modules): Add restrict.
112351         * modules/regex: Depend on restrict.
112353 2003-08-07  Paul Eggert  <eggert@twinsun.com>
112355         * m4/restrict.m4: New file.
112356         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
112358 2003-08-07  Bruno Haible  <bruno@clisp.org>
112360         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
112361         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
112363 2003-08-07  Bruno Haible  <bruno@clisp.org>
112365         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
112366         makes the module 'getndelim2' compatible with the module 'getline'.
112368 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112370         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
112371         byte with "\201" to avoid glitches when editing that source file
112372         with multi-gnome-terminal.
112374 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112376         * lib/bumpalloc.h: Remove.
112378 2003-08-05  Paul Eggert  <eggert@twinsun.com>
112380         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
112381         * modules/bumpalloc: Remove.
112383 2003-08-04  Paul Eggert  <eggert@twinsun.com>
112385         * lib/getloadavg.c: Change copyright notice and spacing to conform to
112386         GNU coding style.
112388         Merge from coreutils.
112389         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
112390         1. From glibc.
112391         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
112392         from Karl Berry, implemented by Jim Meyering.
112393         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
112394         from Dmitry V. Levin.
112395         Remove anachronistic cast of xrealloc.
112396         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
112397         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
112398         type. Otherwise, it wouldn't compile with at least /bin/cc on
112399         ymp-cray-unicos9.0.2.X.
112400         Combine two mostly-identical uses of alloca into one.
112401         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
112403 2003-08-04  Dave Love  <d.love@dl.ac.uk>
112405         [From Emacs.]
112407         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
112408         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
112409         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
112410         obsolete NLIST_NAME_UNION.
112411         [__GNU__]: Undef BSD and FSCALE.
112412         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
112414 2003-08-03  Paul Eggert  <eggert@twinsun.com>
112416         * lib/stdbool_.h (_Bool): Make it signed char, instead of
112417         an enum type, so that it's guaranteed to promote to int.  See:
112418         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
112420 2003-08-03  Karl Berry  <karl@gnu.org>
112422         * config/depcomp: update from automake.
112424 2003-07-31  Paul Eggert  <eggert@twinsun.com>
112426         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
112427         (strerror): Don't assume that a printable int fits in 14 bytes.
112429 2003-07-31  Bruno Haible  <bruno@clisp.org>
112431         * modules/getpass-gnu: New file.
112432         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
112434 2003-07-31  Bruno Haible  <bruno@clisp.org>
112436         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
112438 2003-07-24  Karl Berry  <karl@gnu.org>
112440         * config/missing: update from automake.
112442 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
112443             Bruno Haible  <bruno@clisp.org>
112445         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
112446         * lib/getline.c (getline, getdelim): Likewise.
112447         Remove _GNU_SOURCE define; now it's defined in config.h through
112448         m4/getline.m4.
112450 2003-07-23  Karl Berry  <karl@gnu.org>
112452         * config/config.sub: update from prep.
112454 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112456         * modules/xalloc (Depends-on): Add exitfail.
112457         * modules/xmemcoll: Likewise.
112459 2003-07-22  Paul Eggert  <eggert@twinsun.com>
112461         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
112462         over-parenthesization in macros.
112464         Sync with coreutils.
112466         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
112467         required by C99.
112469         Use `exit_failure' for xalloc and xmemcoll instead of their own
112470         private exit-failure variables.
112471         * lib/xalloc.h (xalloc_exit_failure): Remove.
112472         * lib/xmalloc.c: Likewise.  Include exitfail.h.
112473         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
112474         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
112475         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
112476         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
112478 2003-07-20  Jim Meyering  <jim@meyering.net>
112480         * modules/closeout (Depends-on): Add exitfail.
112481         Suggestion from Bruno Haible.
112483 2003-07-19  Karl Berry  <karl@gnu.org>
112485         * config/config.sub: update from prep.
112487 2003-07-18  Paul Eggert  <eggert@twinsun.com>
112489         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
112490         Remove.
112491         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
112492         to test that it can stand by itself.  Include "exitfail.h".
112493         Clients should set exit_failure instead.
112494         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
112496 2003-07-18  Bruno Haible  <bruno@clisp.org>
112498         * modules/getndelim2: New file.
112499         * modules/getline: Share files with module getndelim2.
112500         * modules/getnline: Depend on getndelim2 instead of sharing files with
112501         it. Add getnline.c to lib_SOURCES.
112502         * MODULES.html.sh (func_all_modules): Add getndelim2.
112504 2003-07-18  Bruno Haible  <bruno@clisp.org>
112506         * m4/getndelim2.m4: New file.
112507         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
112508         invoke gl_PREREQ_GETNDELIM2.
112509         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
112510         gl_PREREQ_GETNDELIM2.
112511         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
112512         gl_GETNDELIM2.
112514 2003-07-18  Bruno Haible  <bruno@clisp.org>
112516         * lib/getndelim2.h: New file.
112517         * lib/getndelim2.c: Make into a module of its own. Include config.h,
112518         getndelim2.h.
112519         (getndelim2): Make non-static. Change return type to ssize_t.
112520         * lib/getline.h: Change argument names.
112521         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
112522         * lib/getnline.c: Include getndelim2.h.
112524 2003-07-18  Andreas Schwab  <schwab@suse.de>
112526         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
112528 2003-07-17  Karl Berry  <karl@gnu.org>
112530         * config/config.sub: update from prep.
112532 2003-07-17  Bruno Haible  <bruno@clisp.org>
112534         * modules/getnline: New file.
112535         * modules/getline: Add lib/getndelim2.c to source file list.
112536         * MODULES.html.sh (func_all_modules): Add getnline.
112538 2003-07-17  Bruno Haible  <bruno@clisp.org>
112540         * m4/getnline.m4: New file.
112542 2003-07-17  Bruno Haible  <bruno@clisp.org>
112544         * m4/Makefile.am.in: Remove file.
112545         * m4/Makefile.am: Remove file.
112546         * m4/Makefile.in: Remove file.
112548 2003-07-17  Bruno Haible  <bruno@clisp.org>
112550         * lib/getnline.h: New file.
112551         * lib/getnline.c: New file.
112552         * lib/getndelim2.c: New file, extracted from getline.c.
112553         (getndelim2): Renamed from getdelim2, with added nmax argument.
112554         * lib/getline.c: Include getndelim2.c.
112555         (getdelim2): Moved out to getndelim2.c.
112556         (getline, getdelim): Update.
112558 2003-07-17  Bruno Haible  <bruno@clisp.org>
112560         * lib/Makefile.am: Remove file.
112561         * lib/Makefile.in: Remove file.
112563 2003-07-17  Bruno Haible  <bruno@clisp.org>
112565         * configure.in: Remove file.
112566         * Makefile.in: Remove file.
112568 2003-07-17  Bruno Haible  <bruno@clisp.org>
112570         * MODULES.html.sh: Put the </BODY> right before </HTML>.
112572 2003-07-16  Karl Berry  <karl@gnu.org>
112574         * config/srclist-update: was running fixlicense twice, which caused
112575                 texinfo.tex to be nullified for some reason.  Simplify,
112576                 $gplsrc is no longer needed as far as I can see?
112578 2003-07-16  Jim Meyering  <jim@meyering.net>
112580         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
112582 2003-07-15  Paul Eggert  <eggert@twinsun.com>
112584         * config/srclist.txt: Get the following files from gettext-runtime/intl
112585         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
112586         ref-del.sin.  From Bruno Haible.
112587         * config/srclist-update (fixfile): Change grep pattern again, since the
112588         previous fix didn't work (there was another trailing $).  Use
112589         '[$]' to escape the $s.
112591 2003-07-15  Karl Berry  <karl@gnu.org>
112593         * lib/vasnprintf.c: update from gettext.
112595 2003-07-15  Karl Berry  <karl@gnu.org>
112597         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
112598         gets expanded when surrounded by '$'.
112600 2003-07-15  Jim Meyering  <jim@meyering.net>
112602         * modules/save-cwd: Don't depend on error.  From Derek Price.
112604 2003-07-15  Jim Meyering  <jim@meyering.net>
112606         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
112608 2003-07-14  Simon Josefsson  <jas@extundo.com>
112610         * modules/mempcpy: New file.
112611         * MODULES.html.sh (func_all_modules): Add mempcpy.
112613 2003-07-14  Simon Josefsson  <jas@extundo.com>
112615         * m4/mempcpy.m4: New file.
112617 2003-07-14  Simon Josefsson  <jas@extundo.com>
112619         * lib/mempcpy.h: New file.
112620         * lib/mempcpy.c: New file.
112622 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112624         * modules/getdate, modules/posixtm: Depend on mktime.
112626 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112628         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
112629         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
112630         unicodeio.c, unicodeio.h, unlocked-io.h:
112631         Switch from LGPL to GPL.
112633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112635         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
112636         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
112637         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
112638         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
112639         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
112640         updated automatically by ../config/srclist-update.  This changes
112641         their license from LPGL to GPL.
112643 2003-07-14  Paul Eggert  <eggert@twinsun.com>
112645         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
112646         assumed to refer to the root of the most recent stable gettext version.
112647         * config/srclistvars.sh: Add defaults for eggert.
112648         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
112649         Match "This program" as well as "The program".  This is needed
112650         for gettext.
112652 2003-07-14  Jim Meyering  <jim@meyering.net>
112654         Don't emit diagnostics.  Let callers do that.
112655         * lib/save-cwd.c: Don't include "error.h".
112656         (save_cwd): Don't call error.  Ensure that errno is valid
112657         when returning nonzero.
112659         * lib/save-cwd.h (restore_cwd): Update prototype.
112660         * lib/save-cwd.c (restore_cwd): Remove two parameters.
112661         Simplify.  Don't call error upon failure.  Let callers do that.
112662         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
112663         when auditing is enabled.  But don't bother updating the #if.
112665 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
112667         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
112668         it breaks C++ compilation.
112669         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
112671 2003-07-10  Simon Josefsson  <jas@extundo.com>
112673         * modules/strchrnul (Makefile.am): Add strchrnul.h.
112675 2003-07-10  Jim Meyering  <jim@meyering.net>
112677         * m4/clock_time.m4: Remove trailing blank.
112678         * m4/intmax_t.m4: Likewise.
112680 2003-07-10  Jim Meyering  <jim@meyering.net>
112682         * lib/vasnprintf.c: Remove trailing blanks.
112683         Make cpp indentation consistent.
112685 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112687         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
112688         posixver.c, strftime.c, strnlen.c, strverscmp.c:
112689         Switch from LGPL to GPL.
112691 2003-07-09  Paul Eggert  <eggert@twinsun.com>
112693         * config/srclist.txt: Sort sublists.  Add
112694         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
112695         that differ from gnulib for one reason or another; we'd like this list
112696         to be smaller but for now let's document what we have.
112698 2003-07-08  Paul Eggert  <eggert@twinsun.com>
112700         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
112701         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
112702         and sweeter "eval x=$x".
112703         * config/srclist.txt: Get lib/argp* from glibc.
112705 2003-07-07  Paul Eggert  <eggert@twinsun.com>
112707         * lib/mktime.c: Fix some boundary cases and remove need for floating
112708         point.
112710         Issue a compile-time diagnostic if time_t is floating point, or if
112711         two's complement arithmetic is not in effect, or if arithmetic
112712         right shift does not propagate the sign.  These assumptions were
112713         all in the original code but they weren't checked.
112715         (TIME_T_MIDPOINT, verify): New macros.
112716         (__isleap): Remove; it has integer overflow problems.
112717         (leapyear): New function, without those problems.
112718         (ydhms_tm_diff): Remove; splitting into two parts.
112719         (ydhms_diff): New function, containing the arithmetic part of
112720         the old ydhms_tm_diff function.  Issue a compile-time
112721         diagnostic if we are not using C99 integer division.
112722         Avoid casts when possible.
112723         (guess_time_tm): New function, containing the checking part of
112724         the old ydhms_tm_diff function.  Return the new value, rather than
112725         the difference between it and the old.  Accept a new argument T
112726         so that *T specifies the old value.  Check for overflow in the result.
112728         (__mktime_internal): Use a time_t offset, not a long int offset.
112729         This undoes the 2003-06-04 change, which is no longer needed now
112730         that we have better overflow checking.
112731         (localtime_offset): Likewise.
112733         (__mktime_internal): Avoid harmful overflow on hosts where time_t
112734         and long are 64-bit but int is only 32-bit.
112735         (ydhms_diff): Use long int to store year1 and yday1.
112736         Issue a compile-time diagnostic if long int is not wide enough.
112738         (__mktime_internal): Use long int to store adjusted year and yday.
112739         Use plain C rather than preprocessor commands, if that doesn't
112740         affect efficiency.
112741         Check for overflow (and try to repair) after each probe
112742         rather than checking only at the very end.  This avoids some bugs
112743         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
112744         does not equal GMT offset at maximum time).
112745         Use integer to check for overflow rather than floating point; this
112746         is more portable to non-IEEE hosts, and is a tad faster.
112747         When we detect that we are oscillating between two values,
112748         don't check whether tm_isdst has the requested value, since
112749         we already know the answer.  When tm_isdst has the wrong value,
112750         use a different heuristic to find the right one, based on the
112751         extreme values actually observed in practice in tz2003a,
112752         rather than the (overly optimistic) "previous 3 calendar quarters".
112754         (not_equal_tm, print_tm, check_result): Use "const T" rather than
112755         "T const" to accommodate glibc style.
112756         (check_result): Use less-confusing report format.  "long" -> "long int.
112757         (main): Likewise.
112758         Don't loop if the iteration overflows time_t.
112759         Allow a negative step in the iteration.
112761 2003-07-06  Karl Berry  <karl@gnu.org>
112763         * config/depcomp: update from automake.
112764         * config/config.sub: update from prep.
112766 2003-07-03  Karl Berry  <karl@gnu.org>
112768         * config/config.guess: update from prep.
112770 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112772         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
112773         xreadlink.c now includes it unconditionally.
112775 2003-07-01  Paul Eggert  <eggert@twinsun.com>
112777         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
112778         having it depend on HAVE_SYS_TYPES_H.
112780 2003-07-01  Bruno Haible  <bruno@clisp.org>
112782         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
112783         <sys/types.h> should be sufficient.
112784         Reported by Paul Eggert.
112786 2003-06-26  Karl Berry  <karl@gnu.org>
112788         * config/depcomp: update from automake.
112790 2003-06-26  Bruno Haible  <bruno@clisp.org>
112792         * modules/human: Depend on module stdbool.
112794 2003-06-25  Bruno Haible  <bruno@clisp.org>
112796         * modules/readlink: New file.
112797         * modules/xreadlink: Depend on it.
112798         * MODULES.html.sh (func_all_modules): Add readlink.
112800 2003-06-25  Bruno Haible  <bruno@clisp.org>
112802         * m4/readlink.m4: New file.
112804 2003-06-25  Bruno Haible  <bruno@clisp.org>
112806         * lib/readlink.c: New file.
112808 2003-06-22  Karl Berry  <karl@gnu.org>
112810         * config/srclist.txt: update mkinstalldirs from automake.
112811         * config/mkinstalldirs: update.
112813 2003-06-22  Bruno Haible  <bruno@clisp.org>
112815         Portability to mingw32.
112816         * m4/ssize_t.m4: New file, from GNU gettext.
112817         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
112818         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
112820 2003-06-22  Bruno Haible  <bruno@clisp.org>
112822         * modules/safe-read: Add m4/ssize_t.m4.
112823         * modules/xreadlink: Add m4/ssize_t.m4.
112825 2003-06-20  Bruno Haible  <bruno@clisp.org>
112827         Assume C89, so PARAMS isn't needed.
112828         * lib/unicodeio.h (PARAMS): Remove.
112829         * lib/unicodeio.c: Don't use PARAMS.
112831 2003-06-18  Karl Berry  <karl@gnu.org>
112833         * config/config.{guess,sub}: update from prep.
112835 2003-06-18  Jim Meyering  <jim@meyering.net>
112837         Merge changes from coreutils.
112838         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
112839         Remove explicit declarations of xmalloc and realloc.
112840         Include xalloc.h.
112841         (read_utmp): Remove anachronistic cast of xmalloc.
112843 2003-06-17  Paul Eggert  <eggert@twinsun.com>
112845         Assume C89, so PARAMS isn't needed.
112846         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
112847         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
112848         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
112849         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
112850         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
112851         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
112852         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
112853         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
112854         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
112855         lib/xstrtod.h, lib/xstrtol.h: Likewise.
112856         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
112857         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
112858         no longer needed. Anyway, config.h should always be included before any
112859         other file.
112861 2003-06-11  Simon Josefsson  <jas@extundo.com>
112863         * modules/sysexits: New file.
112864         * MODULES.html.sh (func_all_modules): Add sysexits.
112866 2003-06-11  Simon Josefsson  <jas@extundo.com>
112868         * lib/sysexit_.h: New file.
112870 2003-06-11  Derek Price  <derek@ximbiot.com>
112872         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
112873         necessary.
112875 2003-06-11  Bruno Haible  <bruno@clisp.org>
112877         * m4/sysexits.m4: New file.
112879 2003-06-10  Simon Josefsson  <jas@extundo.com>
112881         * lib/argp.h: New file, from glibc.
112882         * lib/argp-ba.c: New file, from glibc.
112883         * lib/argp-eexst.c: New file, from glibc.
112884         * lib/argp-fmtstream.c: New file, from glibc.
112885         * lib/argp-fmtstream.h: New file, from glibc.
112886         * lib/argp-fs-xinl.c: New file, from glibc.
112887         * lib/argp-help.c: New file, from glibc.
112888         * lib/argp-namefrob.h: New file, from glibc.
112889         * lib/argp-parse.c: New file, from glibc.
112890         * lib/argp-pv.c: New file, from glibc.
112891         * lib/argp-pvh.c: New file, from glibc.
112892         * lib/argp-xinl.c: New file, from glibc.
112894 2003-06-10  Simon Josefsson  <jas@extundo.com>
112896         * modules/strchrnul: New file.
112898 2003-06-10  Simon Josefsson  <jas@extundo.com>
112900         * modules/argp: New file.
112902 2003-06-10  Simon Josefsson  <jas@extundo.com>
112904         * m4/strchrnul.m4: New file.
112906 2003-06-10  Simon Josefsson  <jas@extundo.com>
112908         * lib/strchrnul.h: New file.
112909         * lib/strchrnul.c: New file.
112911 2003-06-10  Bruno Haible  <bruno@clisp.org>
112913         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
112915 2003-06-07  Karl Berry  <karl@gnu.org>
112917         * config/config.{guess,sub}: update from prep.
112919 2003-06-07  Jim Meyering  <jim@meyering.net>
112921         * modules/strtod: Use $(...) notation, not @...@ for
112922         AC_REPLACE'd variables.
112923         * modules/localcharset: Likewise.
112925 2003-06-07  Jim Meyering  <jim@meyering.net>
112927         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
112928         in place of my name in the copyright comment.
112929         Remove definition and uses of __P.
112931         From coreutils.
112932         * lib/stat.c: Don't declare xmalloc explicitly.
112933         Instead, include "xalloc.h".
112934         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
112935         xrealloc, and xcalloc return values.
112936         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
112937         Improve comment.
112938         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
112940 2003-06-07  Bruno Haible  <bruno@clisp.org>
112942         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
112943         avoid AC_CONFIG_LINKS.
112944         * modules/fnmatch (Makefile.am): Use explicit creation rule for
112945         fnmatch.h, to avoid AC_CONFIG_LINKS.
112946         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
112948 2003-06-07  Bruno Haible  <bruno@clisp.org>
112950         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
112951         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
112952         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112953         directory.
112954         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
112955         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
112956         directory.
112958 2003-06-06  Jim Meyering  <jim@meyering.net>
112960         Merge from coreutils.
112961         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
112962         Consolidate declarations and initializations of *_base* locals.
112964         Merge from coreutils.
112965         This avoids a core dump on systems without GNU putenv,
112966         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
112967         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
112968         (unsetenv): New static function, from GNU libc.
112969         (rpl_putenv): Use it.
112971         * lib/modechange.c: Remove trailing blanks.
112973         Merge from coreutils.
112974         * lib/fsusage.c: Remove declaration of statfs.
112975         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
112977         * lib/posixtm.c: Include <stdbool.h> unconditionally.
112979 2003-06-06  Jim Meyering  <jim@meyering.net>
112981         * lib/stdbool_.h: Renamed from stdbool.h.in.
112983 2003-06-06  Jim Meyering  <jim@meyering.net>
112984             Bruno Haible  <bruno@clisp.org>
112986         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
112987         Adjust Makefile.am snippet not to redirect directly to target.
112988         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
112990 2003-06-05  Paul Eggert  <eggert@twinsun.com>
112992         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
112993         mismatch, look in future quarters as well as past.  This fixes a
112994         bug when processing fall-backwards gaps immediately after a long
112995         period of daylight-saving time.
112997         * lib/mktime.c: Assume freestanding C89 or better.
112998         (HAVE_LIMITS_H): Remove.  Assume it's 1.
112999         (__P): Remove; not used.
113000         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
113001         (mktime, not_equal_tm, print_tm, check_result,
113002         main): Use prototypes.  Use const * where appropriate.
113003         (main): Fix typo in testing code that uncovered by above changes.
113004         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
113006 2003-06-04  Paul Eggert  <eggert@twinsun.com>
113008         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
113009         locale.h, localeconv.  This merges changes from coreutils.
113011         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
113012         It can be removed after the next Autoconf is released.
113013         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
113014         needed.
113016 2003-06-04  Paul Eggert  <eggert@twinsun.com>
113018         * lib/mktime.c: Fix Debian bug 177940
113019         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
113020         (localtime_offset): Now long int, not time_t, because we want it
113021         to be guaranteed to be signed.  All uses changed.
113022         (__mktime_internal): If overflow would occur when adding offset,
113023         don't add it.
113025         Merge 'human' changes from coreutils.  Rewrite to support
113026         locale-specific notations like thousands separators.
113027         * lib/human.c: Simplify authorship notice.
113028         Include human.h immediately after config.h.
113029         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
113030         <limits.h>: Do not include, since human.h does.
113031         (SIZE_MAX, UINTMAX_MAX): New macros.
113032         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
113033         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
113034         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
113035         (power_letter): Renamed from suffixes.
113036         (generate_suffix_backwards): Remove.
113037         (adjust_value): Now takes int style (because of human.h changes)
113038         and long double value (for greater precision on some platforms).
113039         (group_number): New function.
113040         (human_readable): Use it.  Use integer options, not enum.
113041         Put the options before the sizes in the arg list.
113042         Support all the new options.
113043         The old human_readable function has been removed;
113044         use inttostr.h instead.
113045         (human_readable, default_block_size, humblock):
113046         Use uintmax_t, not int, for block sizes.
113047         (human_readable_inexact, block_size_types): Remove.
113048         (block_size_opts): New constant.
113049         (human_options): Renamed from human_block_size, with new signature
113050         that allows block sizes up to UINTMAX_MAX.  All callers changed.
113051         * lib/human.h: Add copyright and authorship notice.
113052         Include <limits.h> and <stdbool.h> unconditionally.
113053         (PARAMS): Remove.  All uses removed.
113054         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
113055         (enum human_inexact_style): Remove tag; now a nameless enum.
113056         (human_floor, human_ceiling, human_round_to_even): Now have
113057         values 2, 0, 1 rather than -1, 1, 0.
113058         (human_group_digits, human_suppress_point_zero, human_autoscale,
113059         human_base_1024, human_SI, human_B): New constants.
113060         (human_readable_inexact, human_block_size): Remove.
113061         (human_readable): Size args are now uintmax_t, not int.
113062         (human_options): New decl.
113064         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
113065         unnecessary now that we assume C89 or better.  This change
113066         imported from coreutils.
113068         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
113069         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
113070         in the 2003-05-30 sync from glibc.
113072         .h files should stand alone, but we shouldn't include <sys/types.h>
113073         if we can get away with just <stddef.h>.
113075         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
113076         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
113077         rather than <sys/types.h>, as we merely need size_t.
113078         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
113079         to get size_t.
113080         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
113081         Include <stdio.h>, to get FILE.
113082         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
113083         memcasecmp.h has included <stddef.h> and all we need is size_t.
113084         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
113085         our interface, instead of including <sys/types.h>
113087 2003-06-04  Paul Eggert  <eggert@twinsun.com>
113089         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
113090         now, as glibc mktime is buggy on non-glibc systems.
113092 2003-06-03  Karl Berry  <karl@gnu.org>
113094         * config/config.sub: update from prep.
113096 2003-06-02  Paul Eggert  <eggert@twinsun.com>
113098         [from coreutils]
113099         Fix some minor time-related bugs with POSIX time arguments.
113100         Some valid time stamps were being rejected (notably -1, and
113101         time stamps before 1900 on 64-bit hosts).  And some invalid
113102         time stamps were being accepted, e.g. September 31.
113104         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
113105         that we can return (time_t) -1 successfully.
113106         * lib/posixtm.c: Likewise.
113107         [HAVE_STDBOOL_H]: Include <stdbool.h>.
113108         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
113109         (t): Remove static var.
113110         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
113111         of static var.  All uses changed.
113112         (year): Do not reject years before 1900; they can occur with
113113         64-bit time_t.
113114         (posix_time_parse): Do not check for out-of-range components;
113115         that is now the caller's responsibility, since our checks were
113116         only approximations.
113117         (posixtime): Use mktime to check for out-of-range components,
113118         since it knows them exactly.
113119         If mktime returns (time_t) -1, check whether an error actually occurred
113120         by invoking localtime on -1.
113121         (main) [TEST_POSIXTIME]: Check for input data errors, and report
113122         posixtime failures better.
113123         Improve the test data (in comments only).
113125 2003-06-02  Karl Berry  <karl@gnu.org>
113127         * config/mkinstalldirs (version): new variable.
113128         (--version): new option.
113129         (usage): improve message.
113131 2003-05-30  Karl Berry  <karl@gnu.org>
113133         * lib/mktime.c: update from libc.
113135 2003-05-30  Bruno Haible  <bruno@clisp.org>
113137         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
113138         * config/config.rpath: Upgrade to gettext-0.12.1.
113140 2003-05-30  Bruno Haible  <bruno@clisp.org>
113142         * m4/gettext.m4: Upgrade to gettext-0.12.1.
113143         * m4/nls.m4: New file, from gettext-0.12.1.
113144         * m4/po.m4: New file, from gettext-0.12.1.
113145         * m4/progtest.m4: Upgrade to gettext-0.12.1.
113147 2003-05-30  Bruno Haible  <bruno@clisp.org>
113149         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
113150         * lib/localcharset.h: Likewise.
113151         * lib/localcharset.c: Likewise.
113153 2003-05-29  Karl Berry  <karl@gnu.org>
113155         * config/config.rpath: update from gettext.
113157 2003-05-28  Paul Eggert  <eggert@twinsun.com>
113159         Assume the headers required for C89 freestanding compilers.
113160         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
113161         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
113162         * m4/human.m4 (gl_HUMAN): Likewise.
113163         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
113164         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
113165         * m4/userspec.m4 (gl_USERSPEC): Likewise.
113166         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
113167         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
113168         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
113170 2003-05-28  Paul Eggert  <eggert@twinsun.com>
113172         Assume the headers required for C89 freestanding compilers.
113173         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
113174         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
113175         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
113176         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
113177         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
113178         define, since <limits.h> is guaranteed to do that.
113179         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
113180         * lib/exclude.c: Include <stdbool.h> unconditionally.
113181         * lib/tempname.c: Include <stddef.h> unconditionally.
113182         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
113183         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
113184         <stddef.h> does that.
113185         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
113186         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
113187         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
113188         needed.
113189         * lib/xstrtol.c: Likewise.
113190         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
113191         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
113193         * lib/addext.c (addext): Use assignment rather than cast, to avoid
113194         warnings on some platforms.
113196         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
113197         arbitrarily.
113199 2003-05-26  Jim Meyering  <jim@meyering.net>
113201         Merge in a change from coreutils:
113202         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
113203         that is guaranteed to be `no'.  Use `no_such_member' to indicate
113204         that condition, rather than `-1' which is slightly misleading.
113205         Change the name of the cache variable to have the gl_ prefix.
113206         Prompted by a patch from Richard Dawe for DJGPP.
113208 2003-05-24  Karl Berry  <karl@gnu.org>
113210         * config/config.guess: update from prep.
113212 2003-05-22  Karl Berry  <karl@gnu.org>
113214         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
113216 2003-05-20  Karl Berry  <karl@gnu.org>
113218         * config/config.guess: update from prep.
113220 2003-05-18  Karl Berry  <karl@gnu.org>
113222         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
113223         might actually be set by the user.
113225         * config/depcomp, install-sh, mdate-sh: update from automake.
113227 2003-05-17  Bruno Haible  <bruno@clisp.org>
113229         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
113230         invalid expansion for AC_EGREP_CPP.
113231         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
113232         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
113233         Suggested by Akim Demaille <akim@epita.fr> in
113234         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
113236 2003-05-12  Jim Meyering  <jim@meyering.net>
113238         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
113239         the space-padded-by-default conversion specifiers, %e, %k, %l.
113241 2003-05-12  Bruno Haible  <bruno@clisp.org>
113243         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
113244         the string is longer than 4 KB.
113246 2003-05-11  Karl Berry  <karl@gnu.org>
113248         * config/config.{guess,sub}: update from prep.
113250 2003-05-09  Bruno Haible  <bruno@clisp.org>
113252         * modules/error: Add m4/strerror_r.m4 to file list.
113254 2003-05-03  Bruno Haible  <bruno@clisp.org>
113256         Upgrade to Unicode-4.0.
113257         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
113258         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
113259         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
113260         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
113261         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
113262         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
113263         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
113264         Change width of U+E0100..U+E01EF from 1 to 0.
113266 2003-04-25  Jim Meyering  <jim@meyering.net>
113268         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
113269         of type size_t, not int.
113271 2003-04-25  Bruno Haible  <bruno@clisp.org>
113273         * lib/copy-file.c: Include <stddef.h>, for size_t.
113275 2003-04-21  Paul Eggert  <eggert@twinsun.com>
113277         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
113278         code which expansion is under static control.  Patch imported from
113279         Akim Demaille's patch to Bison; see
113280         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
113282 2003-04-14  Bruno Haible  <bruno@clisp.org>
113284         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
113286 2003-04-11  Jim Meyering  <jim@meyering.net>
113288         Merge changes from Coreutils.
113290         2003-03-22  Jim Meyering  <jim@meyering.net>
113292         * lib/strftime.c (widen): Cast alloca return value to proper type.
113294         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
113296         From GNU libc.
113297         * lib/strftime.c (my_strftime): Handle very large width
113298         specifications for numeric values correctly.  Improve checks for
113299         overflow.
113301         2003-01-19  Jim Meyering  <jim@meyering.net>
113303         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
113304         definitions.
113305         (nl_get_alt_digit) [! defined my_strftime]: Define.
113306         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
113307         _nl_get_alt_digit and _nl_get_walt_digit.
113309         * lib/strftime.c (my_strftime): Merge in locale-related changes from
113310         libc. These changes have no effect outside of _LIBC.
113312 2003-04-10  Bruno Haible  <bruno@clisp.org>
113314         * modules/findprog: New file.
113315         * MODULES.html.sh (func_all_modules): Add it.
113317 2003-04-10  Bruno Haible  <bruno@clisp.org>
113319         * m4/findprog.m4: New file.
113320         * m4/eaccess.m4: New file.
113322 2003-04-10  Bruno Haible  <bruno@clisp.org>
113324         * lib/findprog.h: New file, from GNU gettext.
113325         * lib/findprog.c: New file, from GNU gettext.
113327 2003-04-05  Jim Meyering  <jim@meyering.net>
113329         Merge changes from Coreutils.
113331         * lib/exclude.h (PARAMS): Remove definition and uses.
113332         * lib/exclude.c: Remove uses of `PARAMS'.
113334         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
113335         Add test-cases for DOS filenames. Declare program_name.
113336         (main): Set up program_name.  Patch by Rich Dawe.
113338         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
113339         error from mntctl.
113340         Use mntctl's return value to drive the entry-processing loop, since
113341         we can't rely on the value of the vmt_length member in the last
113342         entry.  On some systems doing so could result in exhausting
113343         virtual memory.  Based in part on a patch from Mike Jetzer.
113345 2003-04-04  Bruno Haible  <bruno@clisp.org>
113347         * modules/linebreak: New file.
113348         * MODULES.html.sh (func_all_modules): Add it.
113350 2003-04-04  Bruno Haible  <bruno@clisp.org>
113352         * m4/linebreak.m4: New file.
113354 2003-04-04  Bruno Haible  <bruno@clisp.org>
113356         * lib/linebreak.h: New file, from GNU gettext.
113357         * lib/linebreak.c: New file, from GNU gettext with slight
113358         modifications.
113359         * lib/lbrkprop.h: New file, from GNU gettext.
113361 2003-04-03  Bruno Haible  <bruno@clisp.org>
113363         * modules/utf8-ucs4: New file.
113364         * modules/utf16-ucs4: New file.
113365         * modules/ucs4-utf8: New file.
113366         * modules/ucs4-utf16: New file.
113367         * MODULES.html.sh (func_all_modules): Add them.
113369 2003-04-03  Bruno Haible  <bruno@clisp.org>
113371         * m4/utf-ucs4.m4: New file.
113372         * m4/ucs4-utf.m4: New file.
113374 2003-04-03  Bruno Haible  <bruno@clisp.org>
113376         * lib/utf8-ucs4.h: New file, from GNU gettext.
113377         * lib/utf16-ucs4.h: New file, from GNU gettext.
113378         * lib/ucs4-utf8.h: New file, from GNU gettext.
113379         * lib/ucs4-utf16.h: New file, from GNU gettext.
113381 2003-04-02  Bruno Haible  <bruno@clisp.org>
113383         * modules/binary-io: New file.
113384         * MODULES.html.sh (func_all_modules): Add it.
113386 2003-04-02  Bruno Haible  <bruno@clisp.org>
113388         * lib/binary-io.h: New file, from GNU gettext.
113390 2003-04-01  Bruno Haible  <bruno@clisp.org>
113392         * modules/pathname: New file.
113393         * MODULES.html.sh (func_all_modules): Add it.
113395 2003-04-01  Bruno Haible  <bruno@clisp.org>
113397         * lib/pathname.h: New file, from GNU gettext.
113398         * lib/concatpath.c: New file, from GNU gettext.
113400 2003-03-30  Bruno Haible  <bruno@clisp.org>
113402         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
113404 2003-03-30  Bruno Haible  <bruno@clisp.org>
113406         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
113407         function chown() doesn't exist.
113409 2003-03-28  Bruno Haible  <bruno@clisp.org>
113411         * modules/copy-file: New file.
113412         * MODULES.html.sh (func_all_modules): Add it.
113414 2003-03-28  Bruno Haible  <bruno@clisp.org>
113416         * m4/copy-file.m4: New file.
113418 2003-03-28  Bruno Haible  <bruno@clisp.org>
113420         * lib/copy-file.h: New file, from GNU gettext.
113421         * lib/copy-file.c: New file, from GNU gettext.
113423 2003-03-18  Jim Meyering  <jim@meyering.net>
113425         * lib/quote.c (quote_n): Fix typo in comment.
113427 2003-03-18  Bruno Haible  <bruno@clisp.org>
113429         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
113430         checking.
113431         * m4/onceonly_2_57.m4: Likewise.
113433 2003-03-17  Bruno Haible  <bruno@clisp.org>
113435         * m4/onceonly.m4: Require autoconf 2.54 or newer.
113436         (m4_quote): Remove macro.
113437         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
113439 2003-03-14  Jim Meyering  <jim@meyering.net>
113441         Merge changes from Coreutils.
113442         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
113443         to be const, in order to avoid warnings.
113444         (obstack_room): Likewise.
113445         (obstack_empty_p): Likewise.
113447 2003-03-14  Bruno Haible  <bruno@clisp.org>
113449         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
113450         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
113452 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113454         Merge changes from Bison.
113455         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
113456         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
113457         when compiling Bison 1.875's `bitset bset = obstack_alloc
113458         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
113459         * lib/hash.c: Include <stdbool.h> unconditionally.
113461 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113463         * m4/onceonly.m4 (m4_quote): New macro.
113464         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
113465         Quote AC_FOREACH variable-expansions properly.
113467 2003-03-13  Paul Eggert  <eggert@twinsun.com>
113469         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
113471 2003-03-09  Paul Eggert  <eggert@twinsun.com>
113473         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
113474         Reported by Bruce Becker; see:
113475         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
113477 2003-03-03  Paul Eggert  <eggert@twinsun.com>
113478             Bruno Haible  <bruno@clisp.org>
113480         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
113481         Reported by John Hughes, see
113482         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
113484 2003-02-20  Bruno Haible  <bruno@clisp.org>
113486         * MODULES.html.sh (func_all_modules): Add poll.
113488 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113490         * modules/poll: New file.
113492 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113494         * lib/poll_.h: New file.
113495         * lib/poll.c: New file.
113497 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
113499         * m4/poll.m4: New file.
113501 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113503         * modules/mathl: New file.
113505 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113507         * lib/mathl.h: New file.
113508         * lib/acosl.c: New file.
113509         * lib/asinl.c: New file.
113510         * lib/atanl.c: New file.
113511         * lib/ceill.c: New file.
113512         * lib/cosl.c: New file.
113513         * lib/expl.c: New file.
113514         * lib/floorl.c: New file.
113515         * lib/frexpl.c: New file.
113516         * lib/ldexpl.c: New file.
113517         * lib/logl.c: New file.
113518         * lib/sincosl.c: New file.
113519         * lib/sinl.c: New file.
113520         * lib/sqrtl.c: New file.
113521         * lib/tanl.c: New file.
113522         * lib/trigl.c: New file.
113523         * lib/trigl.h: New file.
113525 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
113527         * m4/mathl.m4: New file.
113529 2003-02-18  Bruno Haible  <bruno@clisp.org>
113531         * MODULES.html.sh (func_all_modules): Add mathl.
113533 2003-02-17  Bruno Haible  <bruno@clisp.org>
113535         * modules/mkdtemp: New module.
113536         * MODULES.html.sh (func_all_modules): Add it.
113538 2003-02-17  Bruno Haible  <bruno@clisp.org>
113540         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
113542 2003-02-17  Bruno Haible  <bruno@clisp.org>
113544         * lib/mkdtemp.h: New file, from GNU gettext.
113545         * lib/mkdtemp.c: New file, from GNU gettext.
113547 2003-02-02  Jim Meyering  <jim@meyering.net>
113549         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
113550         e.g. glibc-2.2.93.
113552 2003-01-31  Bruno Haible  <bruno@clisp.org>
113554         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
113555         'rpl_rename'.
113556         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
113557         'rpl_strnlen'.
113558         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
113559         'rpl_strtod'.
113560         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
113561         'rpl_utime'.
113563 2003-01-31  Bruno Haible  <bruno@clisp.org>
113565         * lib/rename.c: #undef rename before defining rpl_rename.
113566         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
113568 2003-01-30  Bruno Haible  <bruno@clisp.org>
113570         * modules/vasnprintf, modules/vasprintf: New modules.
113571         * MODULES.html.sh (func_all_modules): Add them.
113573 2003-01-30  Bruno Haible  <bruno@clisp.org>
113575         * m4/signed.m4: New file, from GNU gettext.
113576         * m4/longdouble.m4: New file, from GNU gettext.
113577         * m4/wchar_t.m4: New file, from GNU gettext.
113578         * m4/wint_t.m4: New file, from GNU gettext.
113579         * m4/vasnprintf.m4: New file.
113580         * m4/vasprintf.m4: New file.
113582 2003-01-30  Bruno Haible  <bruno@clisp.org>
113584         * lib/printf-args.h: New file, from GNU gettext.
113585         * lib/printf-args.c: New file, from GNU gettext.
113586         * lib/printf-parse.h: New file, from GNU gettext.
113587         * lib/printf-parse.c: New file, from GNU gettext.
113588         * lib/vasnprintf.h: New file, from GNU gettext.
113589         * lib/vasnprintf.c: New file, from GNU gettext.
113590         * lib/asnprintf.c: New file, from GNU gettext.
113591         * lib/vasprintf.h: New file, from GNU gettext with modifications.
113592         * lib/vasprintf.c: New file, from GNU gettext.
113593         * lib/asprintf.c: New file, from GNU gettext.
113595 2003-01-29  Bruno Haible  <bruno@clisp.org>
113597         * modules/stpncpy: New module.
113598         * MODULES.html.sh (func_all_modules): Add it.
113600 2003-01-29  Bruno Haible  <bruno@clisp.org>
113602         * m4/stpncpy.m4: New file.
113604 2003-01-29  Bruno Haible  <bruno@clisp.org>
113606         * lib/stpncpy.h: New file, from GNU gettext with modifications.
113607         * lib/stpncpy.c: New file, from GNU gettext with modifications.
113609 2003-01-28  Bruno Haible  <bruno@clisp.org>
113611         * modules/c-ctype: New module.
113612         * MODULES.html.sh (func_all_modules): Add it.
113614 2003-01-28  Bruno Haible  <bruno@clisp.org>
113616         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
113617         Paul Eggert.
113618         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
113619         Paul Eggert.
113621 2003-01-27  Bruno Haible  <bruno@clisp.org>
113623         * modules/xsetenv: New module.
113624         * MODULES.html.sh (func_all_modules): Add it.
113626 2003-01-27  Bruno Haible  <bruno@clisp.org>
113628         * lib/xsetenv.h: New file, from GNU gettext.
113629         * lib/xsetenv.c: New file, from GNU gettext.
113631 2003-01-23  Jim Meyering  <jim@meyering.net>
113633         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
113634         from working on systems without dirfd (at least Irix and OSF1/Tru64).
113636 2003-01-23  Bruno Haible  <bruno@clisp.org>
113638         * modules/minmax: New module.
113639         * MODULES.html.sh (func_all_modules): Add it.
113641 2003-01-23  Bruno Haible  <bruno@clisp.org>
113643         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
113644         Eggert.
113646 2003-01-22  Bruno Haible  <bruno@clisp.org>
113648         * modules/exit: New module.
113649         * MODULES.html.sh (func_all_modules): Add it.
113651 2003-01-22  Bruno Haible  <bruno@clisp.org>
113653         * lib/exit.h: New file, from GNU gettext.
113655 2003-01-19  Bruno Haible  <bruno@clisp.org>
113657         * gnulib-tool: Recognize option --extract-maintainer.
113658         (func_get_maintainer): New function.
113659         * modules/*: Add Maintainer entry.
113661 2003-01-16  Jim Meyering  <jim@meyering.net>
113663         * m4/regex.m4: The `regex' struct is both input and output.
113664         Initialize it before each use.  Patch by Tim Waugh.
113666 2003-01-16  Bruno Haible  <bruno@clisp.org>
113668         * MODULES.html.sh: Add a table of contents. Add the module name as
113669         leftmost column. Add hyperlinks.
113671 2003-01-15  Bruno Haible  <bruno@clisp.org>
113673         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
113675 2003-01-15  Bruno Haible  <bruno@clisp.org>
113677         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
113678         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
113679         suffix.
113681 2003-01-15  Bruno Haible  <bruno@clisp.org>
113683         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
113685 2003-01-15  Bruno Haible  <bruno@clisp.org>
113687         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
113688         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
113690 2003-01-14  Jim Meyering  <jim@meyering.net>
113692         * lib/same.c (same_name): Tweak a comment.
113694 2003-01-14  Bruno Haible  <bruno@clisp.org>
113696         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
113697         when a string comparison is sufficient.
113699 2003-01-14  Bruno Haible  <bruno@clisp.org>
113701         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
113702         'unsigned int'.
113704 2003-01-14  Bruno Haible  <bruno@clisp.org>
113706         * lib/hash-pjw.c: Add comment about low quality of this function.
113708 2003-01-13  Bruno Haible  <bruno@clisp.org>
113710         * modules/stpcpy: Distribute lib/stpcpy.h.
113711         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
113713 2003-01-13  Bruno Haible  <bruno@clisp.org>
113715         * modules/*: Add a description.
113716         * modules/strpbrk: Fix Makefile.am snippet.
113717         * modules/strtoimax: Fix dependencies.
113718         * modules/strtoumax: Likewise.
113720 2003-01-13  Bruno Haible  <bruno@clisp.org>
113722         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
113723         * modules/alloca (Makefile.am): All object files depend on alloca.h.
113724         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
113726 2003-01-13  Bruno Haible  <bruno@clisp.org>
113728         * gnulib-tool (func_create_testdir): Store config/* files in the main
113729         directory.
113730         * config.rpath: Move to ...
113731         * config/config.rpath: ... here.
113732         * modules/gettext: Contains config/config.rpath, not config.rpath.
113733         * modules/iconv: Likewise.
113735 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113737         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113738         to avoid collisions with libcurses and libreadline.
113740         * m4/getstr.m4: Remove.
113741         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
113743 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113745         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113746         to avoid collisions with libcurses and libreadline.
113748         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
113749         * lib/getstr.h, getstr.c: Remove.
113750         * lib/getline.c: Include "getline.h", to check interface.
113751         Move body of old getstr.c here: this defines MIN_CHUNK and
113752         declares getdelim2, which is renamed from getstr.
113753         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
113755         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
113756         All uses changed.
113757         * lib/linebuffer.h: Likewise.
113758         (readline): Remove backward-compatibility macro.
113760 2003-01-12  Paul Eggert  <eggert@twinsun.com>
113762         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
113763         to avoid collisions with libcurses and libreadline.
113764         * getstr: Remove.
113765         * MODULES.html.sh: Remove getstr.
113766         * modules/getline: Depend on unlocked-io, not getstr.
113768 2003-01-12  Jim Meyering  <jim@meyering.net>
113770         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
113772 2003-01-10  Bruno Haible  <bruno@clisp.org>
113774         * modules/alloca: Change Makefile.am requirements. Simplify Include
113775         requirements. Add lib/alloca_.h to file list.
113777 2003-01-10  Bruno Haible  <bruno@clisp.org>
113779         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
113781 2003-01-10  Bruno Haible  <bruno@clisp.org>
113783         * lib/alloca_.h: New file.
113784         * lib/getdate.y: Unconditionally include alloca.h.
113785         * lib/makepath.c: Likewise.
113786         * lib/setenv.c: Likewise.
113787         * lib/userspec.c: Likewise.
113789 2003-01-09  Karl Berry  <karl@gnu.org>
113791         * MODULES.html.sh: include `dirname $0` in PATH, to find
113792         gnulib-tool.
113794 2003-01-09  Bruno Haible  <bruno@clisp.org>
113796         * modules/stdbool: Change configure.ac, Makefile.am requirements.
113797         Simplify Include requirements. Add lib/stdbool.h.in to file list.
113799 2003-01-09  Bruno Haible  <bruno@clisp.org>
113801         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
113803 2003-01-09  Bruno Haible  <bruno@clisp.org>
113805         * lib/stdbool.h.in: New file.
113807 2003-01-09  Bruno Haible  <bruno@clisp.org>
113809         * gnulib-tool (func_all_modules): Ignore files ending in ~.
113810         * MODULES.html.sh: Likewise.
113812 2003-01-08  Jim Meyering  <jim@meyering.net>
113814         * lib/full-write.c: Undefine and define-away `const' after inclusion
113815         of errno.h, not before.  Suggestion from Bruno Haible.
113817 2003-01-08  Bruno Haible  <bruno@clisp.org>
113819         * modules/full-read: Depend on full-write.
113821 2003-01-08  Bruno Haible  <bruno@clisp.org>
113823         * lib/safe-read.c: Include specification header first, to ensure its
113824         selfcontainedness.
113825         * lib/full-write.c: Likewise.
113827 2003-01-07  Jim Meyering  <jim@meyering.net>
113829         * lib/full-write.c: Rework so that it may serve to define full_read,
113830         too.
113831         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
113833 2003-01-07  Bruno Haible  <bruno@clisp.org>
113835         * lib/strtoimax.c: Include <stdint.h> as an alternative to
113836         <inttypes.h>.
113837         * lib/xstrtol.h: Likewise.
113838         * lib/xstrtoimax.c: Likewise.
113839         * lib/xstrtoumax.c: Likewise.
113840         * lib/human.h: Likewise.
113842         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
113843         on systems that have <inttypes.h> but not <stdint.h>.
113845 2003-01-07  Bruno Haible  <bruno@clisp.org>
113847         * MODULES.html.sh: Add copyright notice.
113848         (missed_files): Omit CVS directory entries.
113849         (func_module): Make it work with sed-3.02.
113850         * MODULES.txt: Remove file.
113852 2003-01-06  Jim Meyering  <jim@meyering.net>
113854         * lib/version-etc.c: Update year in translatable copyright string.
113856 2003-01-03  Karl Berry  <karl@gnu.org>
113858         * config/config.{guess,sub}: update from prep.
113860 2003-01-02  Karl Berry  <karl@gnu.org>
113862         * doc/COPYING.DOC: belatedly updated to 1.2.
113864 2003-01-01  Karl Berry  <karl@gnu.org>
113866         * gnulib-tool (func_verify_module): report module name $module in
113867         error message, not $1.
113868         * gnulib-tool (create-testdir): don't complain if destdir couldn't
113869         be created, only if it doesn't exist.
113870         * gnulib-tool (last_checkin_date): don't expand the $Date here.
113872 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113874         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
113876 2002-12-31  Paul Eggert  <eggert@twinsun.com>
113878         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
113879         memcmp if strcoll doesn't work.
113881 2002-12-31  Bruno Haible  <bruno@clisp.org>
113883         * lib/utime.c (utime_null): No need to call ftruncate if the file was
113884         nonempty.
113886 2002-12-31  Bruno Haible  <bruno@clisp.org>
113888         * lib/memcoll.c (STRCOLL): New macro.
113889         (memcoll): Use it.
113891 2002-12-31  Bruno Haible  <bruno@clisp.org>
113893         * lib/localcharset.h: New file.
113894         * lib/localcharset.c: Include it.
113895         * lib/unicodeio.c: Likewise.
113897 2002-12-31  Bruno Haible  <bruno@clisp.org>
113899         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
113900         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
113902 2002-12-31  Bruno Haible  <bruno@clisp.org>
113904         * lib/getline.h: Include <stddef.h>, for size_t.
113906         * lib/unicodeio.h: Include <stddef.h>, for size_t.
113907         * lib/unicodeio.c: Don't include <stddef.h>.
113909 2002-12-31  Bruno Haible  <bruno@clisp.org>
113911         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
113912         HAVE_TM_ZONE.
113914 2002-12-24  Karl Berry  <karl@gnu.org>
113916         * config/config.guess: update from prep.
113918 2002-12-24  Bruno Haible  <bruno@clisp.org>
113920         General infrasructure.
113921         * m4/README: Rewritten.
113922         * m4/onceonly.m4: New file.
113923         * m4/onceonly_2_57.m4: New file.
113925         Module atexit.
113926         * m4/atexit.m4: New file.
113928         Module strtod.
113929         * m4/strtod.m4: New file.
113931         Module strtol.
113932         * m4/strtol.m4: New file.
113934         Module strtoul.
113935         * m4/strtoul.m4: New file.
113937         Module memchr.
113938         * m4/memchr.m4: New file.
113940         Module memcmp.
113941         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
113942         (jm_FUNC_MEMCMP): Invoke it.
113944         Module memcpy.
113945         * m4/memcpy.m4: New file.
113947         Module memmove.
113948         * m4/memmove.m4: New file.
113950         Module memset.
113951         * m4/memset.m4: New file.
113953         Module strcspn.
113954         * m4/strcspn.m4: New file.
113956         Module strpbrk.
113957         * m4/strpbrk.m4: New file.
113959         Module strstr.
113960         * m4/strstr.m4: New file.
113962         Module strerror.
113963         * m4/strerror.m4: New file.
113965         Module mktime.
113966         * m4/mktime.m4: Renamed from jm-mktime.m4.
113967         (gl_PREREQ_MKTIME): New macro.
113968         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
113970         Module malloc.
113971         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
113972         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
113973         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
113975         Module realloc.
113976         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
113977         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
113978         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
113980         Module strftime.
113981         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
113982         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
113983         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
113984         gl_TM_GMTOFF.
113985         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
113987         Module xalloc.
113988         * m4/xalloc.m4: New file.
113990         Module alloca.
113991         * m4/alloca.m4: New file.
113993         Module putenv.
113994         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
113995         (jm_FUNC_PUTENV): Invoke it.
113997         Module setenv.
113998         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
113999         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
114000         when invoked twice.
114001         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
114002         gt_FUNC_SETENV.
114004         Module memrchr.
114005         * m4/memrchr.m4: New file.
114007         Module stpcpy.
114008         * m4/stpcpy.m4: New file.
114010         Module strcase.
114011         * m4/strcase.m4: New file.
114013         Module strdup.
114014         * m4/strdup.m4: New file.
114016         Module strnlen.
114017         * m4/strnlen.m4: New file.
114019         Module strndup.
114020         * m4/strndup.m4: New file.
114022         Module xstrtod.
114023         * m4/xstrtod.m4: New file.
114025         Module xstrtol.
114026         * m4/xstrtol.m4: New file.
114028         Module getdate.
114029         * m4/getdate.m4: New file.
114031         Module unlocked-io.
114032         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
114033         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
114034         * m4/jm-glibc-io.m4n: Remove file.
114036         Module long-options.
114037         * m4/long-options.m4: New file.
114039         Module md5.
114040         * m4/md5.m4: New file.
114042         Module sha.
114043         * m4/sha.m4: New file.
114045         Module getstr.
114046         * m4/getstr.m4: New file.
114048         Module getline.
114049         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
114050         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
114051         <sys/types.h>, for size_t. Use the function name gnu_getline, not
114052         simply getline. Infoke gl_PREREQ_GETLINE.
114054         Module obstack.
114055         * m4/obstack.m4: New file.
114057         Module hash.
114058         * m4/hash.m4: New file.
114060         Module readtokens.
114061         * m4/readtokens.m4: New file.
114063         Module strverscmp.
114064         * m4/strverscmp.m4: New file.
114066         Module stdbool.
114067         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
114068         OSF/1.
114070         Module strtoll.
114071         * m4/strtoll.m4: New file.
114073         Module strtoull.
114074         * m4/strtoull.m4: New file.
114076         Module strtoimax.
114077         * m4/strtoimax.m4: New file.
114079         Module strtoumax.
114080         * m4/strtoumax.m4: New file.
114082         Module xstrtoimax.
114083         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
114084         jm_AC_PREREQ_XSTRTOIMAX.
114085         Moved the strtol prerequisites to strtol.m4.
114086         Moved the strtoll prerequisites to strtoll.m4.
114087         Moved the strtoimax prerequisites to strtoimax.m4.
114089         Module xstrtoumax.
114090         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
114091         jm_AC_PREREQ_XSTRTOUMAX.
114092         Moved the strtoul prerequisites to strtoul.m4.
114093         Moved the strtoull prerequisites to strtoull.m4.
114094         Moved the strtoumax prerequisites to strtoumax.m4.
114096         Module chown.
114097         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
114098         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
114100         Module dup2.
114101         * m4/dup2.m4: New file.
114103         Module ftruncate.
114104         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
114105         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
114107         Module getgroups.
114108         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
114109         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
114111         Module gettimeofday.
114112         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
114113         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
114114         gl_PREREQ_GETTIMEOFDAY.
114116         Module mkdir.
114117         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
114118         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
114120         Module mkstemp.
114121         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
114122         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
114123         jm_AC_TYPE_UINTMAX_T.
114124         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
114126         Module stat.
114127         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
114128         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
114130         Module lstat.
114131         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
114132         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
114134         Module timespec.
114135         * m4/timespec.m4 (gl_TIMESPEC): New macro.
114136         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
114137         * m4/st_mtim.m4: Indentation.
114139         Module nanosleep.
114140         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
114141         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
114142         gl_PREREQ_NANOSLEEP.
114144         Module regex.
114145         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
114146         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
114147         (gl_REGEX): New macro.
114149         Module rename.
114150         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
114151         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
114153         Module rmdir.
114154         * m4/rmdir.m4: New file.
114156         Module utime.
114157         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
114158         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
114159         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
114161         Module dirname.
114162         * m4/dirname.m4: New file.
114164         Module getopt.
114165         * m4/getopt.m4: New file.
114167         Module unistd-safer.
114168         * m4/unistd-safer.m4: New file.
114170         Module fnmatch.
114171         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
114172         declaration.
114173         (gl_PREREQ_FNMATCH_EXTRA): New macro.
114174         (gl_FUNC_FNMATCH_POSIX): New macro.
114175         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
114176         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
114177         simply fnmatch.
114179         Module exclude.
114180         * m4/exclude.m4: New file.
114182         Module human.
114183         * m4/human.m4: New file.
114185         Module acl.
114186         * m4/acl.m4: Nop.
114188         Module backupfile.
114189         * m4/backupfile.m4: New file.
114190         * m4/d-ino.m4: Indentation.
114192         Module fsusage.
114193         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
114194         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
114195         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
114197         Module dirfd.
114198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
114199         requirements.
114201         Module euidaccess.
114202         * m4/euidaccess.m4: New file.
114204         Module file-type.
114205         * m4/file-type.m4: New file.
114207         Module fileblocks.
114208         * m4/fileblocks.m4: New file.
114210         Module filemode.
114211         * m4/filemode.m4: New file.
114213         Module isdir.
114214         * m4/isdir.m4: New file.
114216         Module lchown.
114217         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
114218         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
114220         Module makepath.
114221         * m4/makepath.m4: New file.
114223         Module modechange.
114224         * m4/modechange.m4: New file.
114226         Module mountlist.
114227         * m4/mountlist.m4: New file.
114228         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
114229         Indentation.
114231         Module path-concat.
114232         * m4/path-concat.m4: New file.
114234         Module pathmax.
114235         * m4/pathmax.m4: New file.
114237         Module same.
114238         * m4/same.m4: New file.
114240         Module save-cwd.
114241         * m4/save-cwd.m4: New file.
114243         Module savedir.
114244         * m4/savedir.m4: New file.
114246         Module xgetcwd.
114247         * m4/xgetcwd.m4: New file.
114248         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
114250         Module xreadlink.
114251         * m4/xreadlink.m4: New file.
114253         Module safe-read.
114254         * m4/safe-read.m4: New file.
114256         Module safe-write.
114257         * m4/safe-write.m4: New file.
114259         Module closeout.
114260         * m4/closeout.m4: New file.
114262         Module stdio-safer.
114263         * m4/stdio-safer.m4: New file.
114265         Module getpass.
114266         * m4/getpass.m4: New file.
114268         Module getugroups.
114269         * m4/getugroups.m4: New file.
114271         Module group-member.
114272         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
114273         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
114275         Module idcache.
114276         * m4/idcache.m4: New file.
114278         Module userspec.
114279         * m4/userspec.m4: New file.
114281         Module gettime.
114282         * m4/clock_time.m4: New file.
114283         * m4/gettime.m4: New file.
114285         Module settime.
114286         * m4/settime.m4: New file.
114288         Module posixtm.
114289         * m4/posixtm.m4: New file.
114291         Module gethostname.
114292         * m4/gethostname.m4: New file.
114294         Module canon-host.
114295         * m4/canon-host.m4: New file.
114297         Module gettext.
114298         * m4/codeset.m4: New file, from gettext-0.11.5.
114299         * m4/gettext.m4: New file, from gettext-0.11.5.
114300         * m4/glibc21.m4: New file, from gettext-0.11.5.
114301         * m4/iconv.m4: New file, from gettext-0.11.5.
114302         * m4/intdiv0.m4: New file, from gettext-0.11.5.
114303         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
114304         * m4/inttypes.m4: New file, from gettext-0.11.5.
114305         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
114306         * m4/isc-posix.m4: New file, from gettext-0.11.5.
114307         * m4/lcmessage.m4: New file, from gettext-0.11.5.
114308         * m4/lib-ld.m4: New file, from gettext-0.11.5.
114309         * m4/lib-link.m4: New file, from gettext-0.11.5.
114310         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
114311         * m4/progtest.m4: New file, from gettext-0.11.5.
114312         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
114313         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
114314         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
114316         Module localcharset.
114317         * m4/localcharset.m4: New file.
114319         Module hard-locale.
114320         * m4/hard-locale.m4: New file.
114322         Module mbswidth.
114323         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
114324         onceonly macros.
114325         * m4/mbrtowc.m4: Add comment.
114327         Module memcasecmp.
114328         * m4/memcasecmp.m4: New file.
114330         Module memcoll.
114331         * m4/memcoll.m4: New file.
114333         Module unicodeio.
114334         * m4/unicodeio.m4: New file.
114336         Module rpmatch.
114337         * m4/rpmatch.m4: New file.
114339         Module yesno.
114340         * m4/yesno.m4: New file.
114342         Module exitfail.
114343         * m4/exitfail.m4: New file.
114345         Module c-stack.
114346         * m4/c-stack.m4 (gl_C_STACK): New macro.
114347         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
114349         Module error.
114350         * m4/error.m4 (gl_ERROR): New macro.
114351         (jm_PREREQ_ERROR): Use onceonly macros.
114353         Module fatal.
114354         * m4/fatal.m4: New file.
114356         Module getloadavg.
114357         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
114358         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
114360         Module getpagesize.
114361         * m4/getpagesize.m4: New file.
114363         Module getusershell.
114364         * m4/getusershell.m4: New file.
114366         Module physmem.
114367         * m4/physmem.m4: New file.
114369         Module posixver.
114370         * m4/posixver.m4: New file.
114372         Module quotearg.
114373         * m4/quotearg.m4: New file.
114375         Module quote.
114376         * m4/quote.m4: New file.
114378         Module readutmp.
114379         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
114381         Module sig2str.
114382         * m4/sig2str.m4: New file.
114384         Other.
114385         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
114386         ulonglong.m4.
114387         * m4/intmax_t.m4: New file.
114388         * m4/d-type.m4: Indentation.
114389         * m4/jm-macros.m4: Update.
114390         * m4/prereq.m4 (jm_PREREQ): Update.
114391         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
114392         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
114393         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
114394         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
114395         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
114396         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
114397         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
114398         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
114399         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
114400         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
114401         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
114402         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
114403         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
114404         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
114405         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
114406         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
114407         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
114408         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
114409         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
114411 2002-12-24  Bruno Haible  <bruno@clisp.org>
114413         * MODULES.txt: Update according to m4/ changes.
114415         Module gettext.
114416         * config.rpath: New file, from gettext-0.11.5.
114418         * modules/*: New module descriptions.
114419         * gnulib-tool: New file.
114420         * MODULES.html.sh: New file.
114422 2002-12-21  Karl Berry  <karl@gnu.org>
114424         * doc/fdl.texi: update to version 1.2.
114426 2002-12-19  Karl Berry  <karl@gnu.org>
114428         * config/config.guess: update from prep.
114430 2002-12-18  Bruno Haible  <bruno@clisp.org>
114432         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
114433         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
114435 2002-12-17  Bruno Haible  <bruno@clisp.org>
114437         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
114438         stdlib.h, string.h.
114440 2002-12-17  Bruno Haible  <bruno@clisp.org>
114442         * lib/canon-host.c (strdup): Remove unused declaration.
114444         * lib/fsusage.c: Include full_read.h.
114445         (get_fs_usage): Use full_read instead of safe_read.
114447         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
114449 2002-12-12  Karl Berry  <karl@gnu.org>
114451         * config/config.guess: update from prep.
114453 2002-12-11  Bruno Haible  <bruno@clisp.org>
114455         * m4/setenv.m4: New file, from gettext-0.11.5.
114457 2002-12-11  Bruno Haible  <bruno@clisp.org>
114459         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
114460         not unsetenv().
114461         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
114462         modifications:
114464         2002-12-11  Bruno Haible  <bruno@clisp.org>
114466                 * setenv.c (alloca): Fall back to malloc.
114467                 (freea): New macro.
114468                 (setenv): Use freea() to free memory allocated with alloca().
114470         2002-11-13  Bruno Haible  <bruno@clisp.org>
114472                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
114473                 function declarations.
114474                 * unsetenv.c (unsetenv): Likewise.
114476         2002-03-04  Bruno Haible  <bruno@clisp.org>
114478                 Portability to AIX 4.3.3.
114479                 * unsetenv.c: New file, extracted from setenv.c.
114480                 * setenv.c: Move the unsetenv() function to unsetenv.c.
114482         2001-12-20  Bruno Haible  <bruno@clisp.org>
114484                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
114485                 use malloc instead. For SunOS 4.
114487         2001-12-11  Bruno Haible  <bruno@clisp.org>
114489                 * setenv.c: Declare alloca.
114490                 (compar_fn_t): New typedef.
114491                 (KNOWN_VALUE, STORE_VALUE): Use it.
114493         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
114494         setenv.h.
114496 2002-12-10  Paul Eggert  <eggert@twinsun.com>
114498         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
114499         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
114500         Choose values that are less likely to collide with system fnmatch
114501         options.
114502         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
114503         defined (e.g., a pure POSIX system).
114504         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
114505         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
114507 2002-12-06  Paul Eggert  <eggert@twinsun.com>
114509         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
114510         a pain in practice to deal with generated m4 files.  This change
114511         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
114513         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
114514         and jm-glibc-io.m4, as they are no longer a special case.
114515         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
114516         kludge and the auto-generation stuff.  Check only whether the
114517         functions are declared, not whether they exist, since older hosts
114518         that don't declare the functions can't use the optimization anyway.
114520 2002-12-06  Jim Meyering  <jim@meyering.net>
114522         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
114524         Merge in changes from libc's misc/error.c, in preparation
114525         for the merge of gnulib's changes back into libc.
114527         * lib/error.c (_): Define only if not already defined.
114528         Move definition to follow all #include directives.
114529         Include unlocked-io.h only if !_LIBC.
114530         [_LIBC]: Include <libio/libioP.h>.
114531         [USE_IN_LIBIO]: Include <libio/iolibio.h>
114532         (fflush): Tweak definition to use INTUSE.
114533         (putc): Define.
114535 2002-12-05  Paul Eggert  <eggert@twinsun.com>
114537         * lib/alloca.c [defined emacs]: Include "lisp.h".
114538         (xalloc_die) [defined emacs]: New macro.
114539         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
114540         [! defined emacs]: Include <xalloc.h>.
114541         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
114542         (pointer): Typedef to POINTER_TYPE *.
114543         (malloc): Remove decl; we now always use xmalloc.
114544         (alloca): Use old-style definition, since Emacs needs this.
114545         Check for arithmetic overflow when computing combined size.
114547 2002-12-04  Paul Eggert  <eggert@twinsun.com>
114549         Do not generate unlocked-io.h automatically, since it's easier to
114550         maintain it by hand.
114552         * lib/unlocked-io.h: New file, from GNU diffutils,
114553         but with proper copyright notice and attribution.
114554         * lib/gen-uio: Remove.
114555         * lib/Makefile.am: Add copyright notice.
114556         (libfetish_a_SOURCES): Add unlocked-io.h.
114557         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
114558         (DISTCLEANFILES, io_functions): Remove macros.
114559         (EXTRA_DIST): Remove gen_uio.
114560         (unlocked-io.h): Remove rule.
114562 2002-12-04  Jim Meyering  <jim@meyering.net>
114564         Reflect the fact that stat.c and lstat.c are no longer generated.
114565         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
114566         (DISTCLEANFILES): Likewise.
114567         (EXTRA_DIST): Likewise.
114568         (all_local): Don't depend on stat.c or lstat.c.
114569         (stat.c, lstat.c): Remove rules.
114570         (EXTRA_DIST): Remove xstat.in.
114572         * lib/xstat.in: Remove file.  Contents moved into stat.c.
114573         * lib/stat.c: New file.  Contents mostly from xstat.in.
114574         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
114575         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
114577         * lib/safe-read.c: Rework so that it may serve to define safe_write,
114578         too.
114579         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
114581 2002-12-03  Jim Meyering  <jim@meyering.net>
114583         * lib/safe-read.c, safe-write.c: Change variable names and comments,
114584         but not semantics, to minimize the differences between these two files.
114585         (safe_read): Change comment to mention SAFE_READ_ERROR.
114587         * lib/safe-read.c (IS_EINTR): Define.
114588         (safe_read): Use IS_EINTR in place of in-function cpp directives.
114590 2002-12-02  Jim Meyering  <jim@meyering.net>
114592         * lib/safe-read.c (EINTR): Define.
114593         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
114594         (INT_MAX): Provide fallback.
114595         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
114597         * lib/safe-read.h (SAFE_READ_ERROR): Define.
114599 2002-12-02  Bruno Haible  <bruno@clisp.org>
114601         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
114602         Define, taken from safe-read.c.
114603         (INT_MAX): Provide fallback.
114604         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
114605         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
114607         * lib/safe-read.c (EINTR): Remove definition.
114608         (safe_read): Don't use EINTR if it is absent.
114610 2002-12-01  Jim Meyering  <jim@meyering.net>
114612         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
114613         zero.
114614         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
114616 2002-11-27  Paul Eggert  <eggert@twinsun.com>
114618         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
114619         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
114620         with `if (! (value < limit)) abort ();', for readability.
114622 2002-11-26  Karl Berry  <karl@gnu.org>
114624         * lib/strdup.c: copy from libc again, with jim's ok.
114625         * lib/.cppi-disable: re-add strdup.c
114627 2002-11-25  Karl Berry  <karl@gnu.org>
114629         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
114630         instead of "strtol.c".
114632 2002-11-25  Karl Berry  <karl@gnu.org>
114634         * config/install-sh: update from automake for variable quoting, $0 in
114635         error msgs, etc.
114637         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
114638         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
114639         entry.
114641 2002-11-25  Jim Meyering  <jim@meyering.net>
114643         * lib/mktime.c: Sync from libc, now that it has the latest fix.
114645 2002-11-24  Karl Berry  <karl@gnu.org>
114647         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
114648         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
114650 2002-11-24  Jim Meyering  <jim@meyering.net>
114652         Update from coreutils:
114654         * lib/mktime.c: Merge in changes from libc.
114656         Avoid a link-time failure on some Linux systems.
114657         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
114658         (otherwise).
114659         (__mon_yday): Declare with the STATIC attribute.
114660         (__mktime_internal): Likewise.
114661         Based on a report from Greg Schafer.
114663 2002-11-23  Jim Meyering  <jim@meyering.net>
114665         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
114666         Use `unsigned', not `int', as type of index.
114668         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
114670         * lib/fsusage.c: Remove unneeded parentheses around operands of
114671         `defined'.
114673 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114675         * lib/quotearg.h: Allow multiple inclusion by surrounding with
114676         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
114677         so that we can be included first.
114678         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
114679         * lib/quotearg.c: Include quotearg.h immediately after config.h.
114680         No need to include stddef.h or sys/types.h any more.
114681         Surround local include files with "", not "<>".
114682         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
114683         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
114684         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
114685         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
114686         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
114687         (ISPRINT): Remove; no longer needed now that we assume C89.
114689         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
114690         Preserve errno.
114692         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
114693         quotearg_char): Use SIZE_MAX rather than
114694         (size_t) -1 when we are talking about "infinity".
114696         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
114698 2002-11-22  Paul Eggert  <eggert@twinsun.com>
114700         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
114701         hint that one should use `if (! x) abort ();' rather than `assert
114702         (x);', and anyway it's one less thing to worry about configuring.
114703         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
114704         hash_rehash, hash_insert): Use abort rather than assert.
114706 2002-11-22  Bruno Haible  <bruno@clisp.org>
114708         * lib/safe-read.h: Assume C89. Add comments.
114709         (safe_read): Change return type to size_t.
114710         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
114711         byte counts > SSIZE_MAX correctly.
114712         * lib/safe-write.h: New file.
114713         * lib/safe-write.c: New file.
114714         * lib/full-read.h: New file.
114715         * lib/full-read.c: New file.
114716         * lib/full-write.h: Assume C89. Add comments.
114717         * lib/full-write.c: Include safe-write.h.
114718         (full_write): Rewritten to use safe_write.
114719         Suggested by Jim Meyering and Paul Eggert.
114721 2002-11-21  Jim Meyering  <jim@meyering.net>
114723         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
114725         Merge in changes from the coreutils.
114727         2002-09-25  Paul Eggert  <eggert@twinsun.com>
114728         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
114729         <stdint.h>.
114730         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
114731         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
114732         int.  Work more efficiently if X is the same width as uintmax_t.
114733         Do not compare X to -1, to avoid bogus compiler warning.
114734         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
114735         Don't assume that f_frsize and f_bsize are the same type.
114737         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
114738         warning on FreeBSD.
114740         * lib/makepath.c (make_path): Restore umask *before* creating the final
114741         component.
114742         (make_path): Minor reformatting.
114744         * lib/xmalloc.c: Adjust to work with new autoconf macros,
114745         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
114746         HAVE_MALLOC/HAVE_REALLOC.
114748         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
114749         dummy ones.  At least on GNU/Linux systems, `auto' means something
114750         else.
114751         From Michael Stone.
114753 2002-11-21  Bruno Haible  <bruno@clisp.org>
114755         Remove case insensitive option matching.
114756         * lib/argmatch.h (argcasematch): Remove declaration.
114757         (ARGCASEMATCH): Remove macro.
114758         (__xargmatch_internal): Remove case_sensitive argument.
114759         (XARGMATCH): Update.
114760         (XARGCASEMATCH): Remove macro.
114761         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
114762         case_sensitive argument.
114763         (argcasematch): Remove function.
114764         (__xargmatch_internal): Remove case_sensitive argument.
114765         (main): Use XARGMATCH instead of XARGCASEMATCH.
114767         * lib/xmalloc.c: Change compile-time error message. Add comment about
114768         required autoconf version.
114770 2002-11-20  Paul Eggert  <eggert@twinsun.com>
114772         Merge argmatch cleanups from Bison.  Assume C89.
114774         * lib/argmatch.c: Include config.h here, not in argmatch.h.
114775         Include stdlib.h, for EXIT_FAILURE.
114776         Always include <string.h>, since we assume C89.
114777         (EXIT_FAILURE): Remove pre-C89 bug workaround.
114778         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
114779         Include <stddef.h> instead, since it's all we need for size_t.
114780         (PARAMS): Remove.  All uses removed.
114781         (ARRAY_CARDINALITY): Do not bother to #undef.
114782         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
114783         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114784         Remove unnecessary parentheses.
114785         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
114786         Insert necessary parentheses.
114787         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
114788         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
114790 2002-11-19  Bruno Haible  <bruno@clisp.org>
114792         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
114793         * lib/mbswidth.h: Include <stddef.h>, for size_t.
114795         * lib/mbswidth.h (PARAMS): Remove macro.
114796         (mbswidth, mbsnwidth): Use ANSI C function declarations.
114797         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
114799         * lib/gcd.h (PARAMS): Remove macro.
114800         (gcd): Use ANSI C function declarations.
114801         * lib/gcd.c (gcd): Likewise.
114803 2002-11-15  Bruno Haible  <bruno@clisp.org>
114805         * lib/strcspn.c: Include <stddef.h>.
114806         (strcspn): Use ANSI C function declaration. Change return type to
114807         size_t. Use NULL.
114808         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
114809         (strpbrk): Use NULL.
114810         * lib/strpbrk.h (PARAMS): Remove macro.
114811         (strpbrk): Use ANSI C function declaration.
114812         * lib/strstr.c: Don't include <sys/types.h>.
114813         * lib/strstr.h (PARAMS): Remove macro.
114814         (strstr): Use ANSI C function declarations.
114816 2002-11-14  Karl Berry  <karl@gnu.org>
114818         * config/mkinstalldirs: `do' on separate line, instead of
114819         `for var; do'.
114821 2002-11-06  Bruno Haible  <bruno@clisp.org>
114823         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
114824         * lib/gcd.c (gcd): Likewise.
114826 2002-11-05  Bruno Haible  <bruno@clisp.org>
114828         * lib/gcd.h: New file, from gettext-0.11.5.
114829         * lib/gcd.c: New file, from gettext-0.11.5.
114831 2002-11-05  Bruno Haible  <bruno@clisp.org>
114833         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114834         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114835         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114836         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
114838         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
114839         <libintl.h>.
114840         * lib/makepath.c: Include gettext.h instead of <locale.h> and
114841         <libintl.h>.
114843         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
114844         * lib/human.c: Include gettext.h instead of <libintl.h>.
114845         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
114846         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
114847         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
114848         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
114849         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
114850         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
114851         (textdomain): Remove definition.
114852         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
114854         * lib/long-options.c: Remove include of <libintl.h> and definition of
114855         _.
114856         * lib/same.c: Remove include of <libintl.h> and definition of _.
114858 2002-11-04  Owen Taylor  <otaylor@redhat.com>
114860         * lib/config.charset: A few additions for Solaris.
114862 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114864         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
114865         * lib/localcharset.c (locale_charset): Declare as extern "C".
114867 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
114869         * lib/config.charset: msdos in uk_UA uses CP1125.
114871 2002-11-04  Bruno Haible  <bruno@clisp.org>
114873         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
114874         * lib/strcase.h: New file, from GNU gettext-0.11.5.
114875         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
114876         * lib/strstr.h: New file, from GNU gettext-0.11.5.
114877         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
114879 2002-11-04  Bruno Haible  <bruno@clisp.org>
114881         * lib/localcharset.c (locale_charset): Don't return an empty string.
114883 2002-11-04  Bruno Haible  <bruno@clisp.org>
114885         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
114886         aliases.
114888 2002-11-04  Bruno Haible  <bruno@clisp.org>
114890         * lib/config.charset: Update for newest glibc. Add canonical names
114891         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
114893 2002-11-04  Bruno Haible  <bruno@clisp.org>
114895         * lib/config.charset: Add support for NetBSD.
114897 2002-11-04  Bruno Haible  <bruno@clisp.org>
114899         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
114901 2002-11-01  Bruno Haible  <bruno@clisp.org>
114903         * configure.in: Add AC_CONFIG_AUX_DIR call.
114904         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
114905         test/Makefile.
114906         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
114908 2002-09-28  Karl Berry  <karl@gnu.org>
114910         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
114911         installed automake until the next release, since changes have been
114912         made.
114914 2002-09-25  Karl Berry  <karl@gnu.org>
114916         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
114917         * lib/getopt*: copy from libc/posix.
114918         * lib/gettext.h: copy from gettext.
114919         * lib/.cppi-disable: add strdup.c, gettext.h.
114921 2002-09-25  Karl Berry  <karl@gnu.org>
114923         * config/srclist.txt: enable gettext.h check.
114924         * config/config.{guess,sub}: update from prep.
114925         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
114926                 from automake 1.6.3.
114927         See srclist*.
114929 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
114931         * regex.c (PATFETCH): Remove the translating fetch.
114932         (PATFETCH_RAW): Rename to PATFETCH.
114933         (set_image_of_range): New fun.
114934         (SET_RANGE_TABLE_WORK_AREA): Use it.
114935         (regex_compile): Don't translate the pattern chars so eagerly.
114936         Only do it when inserting an `exactn' bytecode or when handling
114937         a char-range.
114938         (mutually_exclusive_p): Avoid empty statement.
114940 2002-07-06  Jim Meyering  <meyering@lucent.com>
114942         * m4/README: Don't mention Makefile.am.in.
114943         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
114945 2002-07-01  Jim Meyering  <meyering@lucent.com>
114947         * lib/c-stack.c: Include sys/time.h.
114948         From Volker Borchert.
114950 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114952         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
114954 2002-06-26  Paul Eggert  <eggert@twinsun.com>
114956         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
114957         New macro.  Use it uniformly instead of
114958         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
114959         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
114960         reported by Vin Shelton.
114962 2002-06-22  Paul Eggert  <eggert@twinsun.com>
114964         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
114965         Do not assume SA_SIGINFO behavior.
114966         Bug reported by Jim Meyering on NetBSD 1.5.2.
114968 2002-06-22  Jim Meyering  <meyering@lucent.com>
114970         * m4/c-stack.m4: New file, from diffutils-2.8.2.
114971         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
114973         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
114974         now that configure.ac uses AC_GNU_SOURCE.
114975         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
114976         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
114978         Update to latest tools.  Suggestions from Paul Eggert.
114979         * m4/stdbool.m4: New file, from diffutils-2.8.2.
114980         * m4/gnu-source.m4: Update from diffutils-2.8.2.
114981         * m4/fnmatch.m4: Likewise.
114982         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
114983         to AC_HEADER_STDBOOL
114985 2002-06-22  Jim Meyering  <meyering@lucent.com>
114987         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
114988         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
114990 2002-06-22  Jim Meyering  <meyering@lucent.com>
114992         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
114994         * lib/exitfail.c, exitfail.h: Likewise.
114995         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
114997         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
114998         of fnmatch.h.
114999         (EXTRA_DIST): Add fnmatch_loop.c.
115000         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
115002         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
115003         * lib/fnmatch.c: Update from diffutils-2.8.2.
115004         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
115005         * lib/fnmatch.h: Remove file.
115007 2002-06-21  Jim Meyering  <meyering@lucent.com>
115009         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
115010         * m4/mbrtowc.m4: Likewise.
115012         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
115013         * m4/mbswidth.m4: Reflect name change:
115014         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
115015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
115017         * m4/lib-link.m4: Update from gettext-0.11.2.
115018         * m4/gettext.m4: Likewise.
115020         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
115021         From Alfred M. Szmidt.
115023 2002-06-18  Paul Eggert  <eggert@twinsun.com>
115025         * lib/file-type.h: Report an error if neither S_ISREG nor
115026         S_IFREG is defined, instead of using a test specific to glibc
115027         2.2.  This should be safe, since POSIX requires S_ISREG and
115028         Unix Version 7 had S_IFREG.  We don't need to check for
115029         <sys/types.h> since we don't use any symbols that it defines.
115031 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
115033         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
115034         $@-t, so that each temporary file name is unique and valid in the first
115035         8 characters, for operation under DOS.
115037 2002-06-15  Paul Eggert  <eggert@twinsun.com>
115039         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
115041 2002-06-15  Jim Meyering  <meyering@lucent.com>
115043         Work even with DJGPP 2.03, which lacks support for symlinks.
115044         From Richard Dawe.
115045         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
115046         is defined.
115047         * lib/lchown.c (S_ISLNK): Likewise.
115049 2002-06-15  Jim Meyering  <meyering@lucent.com>
115051         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
115052         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
115053         have been included before this file.
115055 2002-06-14  Jim Meyering  <meyering@lucent.com>
115057         * lib/file-type.h: Use the version from diffutils-2.8.2.
115058         * lib/file-type.c: Likewise.
115060 2002-06-07  Jim Meyering  <meyering@lucent.com>
115062         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
115063         They're needed at least for NetBSD 1.5.2.
115064         ($statxfs_includes): Include those same headers.
115065         ($statxfs_includes): Include sys/vfs.h if available.
115066         ($statxfs_includes): Likewise for sys/statvfs.h.
115067         Check for the following members in both structs statfs and statvfs:
115068         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
115070 2002-06-01  Jim Meyering  <meyering@lucent.com>
115072         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
115073         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
115075 2002-05-28  Jim Meyering  <meyering@lucent.com>
115077         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
115078         Reported by Volker Borchert.
115080 2002-05-27  Jim Meyering  <meyering@lucent.com>
115082         Fix a problem seen only on nonconforming systems whereby ls.c's
115083         use of localtime, and then of gettimeofday would cause trouble:
115084         the localtime call used to initialize rpl_gettimeofday's save
115085         mechanism would clobber ls's current local time information so
115086         that in any long listing the first file would always be listed
115087         with date 1970-01-01.  Analysis by Volker Borchert.
115089         * lib/gettimeofday.c (localtime): Undefine.
115090         (rpl_localtime): New function.
115092 2002-05-27  Jim Meyering  <meyering@lucent.com>
115094         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
115095         localtime.
115097         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
115098         use the replacement function; it wouldn't resolve at link time.
115099         Reported by Volker Borchert.
115101 2002-05-22  Jim Meyering  <meyering@lucent.com>
115103         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
115104         file-type.h.
115105         * lib/file-type.h: New file.
115106         * lib/file-type.c (file_type): New file/function.  Extracted from
115107         diffutils.
115109 2002-04-30  Jim Meyering  <meyering@lucent.com>
115111         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
115113 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115115         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
115117 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115119         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
115120         Do not check for alloca.h (no longer used) or stdbool.h (was never
115121         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
115123 2002-04-29  Paul Eggert  <eggert@twinsun.com>
115125         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
115127 2002-04-29  Jim Meyering  <meyering@lucent.com>
115129         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
115130         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
115131         Use AC_FUNC_STRNLEN here instead.
115133         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
115134         With autoconf-2.53a, it's part of AC_PROG_CC.
115136 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115138         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
115139         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
115141 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115143         * lib/sig2str.h, lib/sig2str.c: New files.
115144         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
115146 2002-04-28  Paul Eggert  <eggert@twinsun.com>
115148         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
115149         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
115150         of 127, since 64 is the largest conceivable number for ancient
115151         nonstandard hosts.
115152         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
115154 2002-04-28  Jim Meyering  <meyering@lucent.com>
115156         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
115158 2002-04-24  Jim Meyering  <meyering@lucent.com>
115160         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
115161         (jm_PREREQ): Use it.
115163         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
115164         mach/mach.h fcntl.h.
115165         Check for this function: setlocale.
115167 2002-04-24  Jim Meyering  <meyering@lucent.com>
115169         * lib/gettext.h: New file, from Gettext.
115170         * lib/Makefile.am (INCLUDES): Remove -I../intl.
115171         (libfetish_a_SOURCES): Add gettext.h.
115173 2002-04-16  Jim Meyering  <meyering@lucent.com>
115175         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
115176         ut_pid, ut_id, ut_exit.
115178 2002-04-16  Jim Meyering  <meyering@lucent.com>
115180         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
115181         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
115182         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
115184 2002-04-12  Jim Meyering  <meyering@lucent.com>
115186         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
115187         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
115188         existence of the getmntinfo function.  Needed for Darwin 5.3.
115190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
115191         This is necessary at least on Darwin 5.3.
115193         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
115194         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
115195         strnlen.o in the library, and that makes some versions of ranlib
115196         object.
115198 2002-04-12  Jim Meyering  <meyering@lucent.com>
115200         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
115202 2002-04-09  Jim Meyering  <meyering@lucent.com>
115204         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
115205         to be more precise.  Rather than saying we're checking whether the
115206         function `works', say what we're testing.
115207         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
115208         Reported by Bruno Haible.
115210 2002-03-10  Jim Meyering  <meyering@lucent.com>
115212         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
115213         Suggestion from Santiago Vila.
115215 2002-03-08  Jim Meyering  <meyering@lucent.com>
115217         * lib/rename.c: Mention that this wrapper is needed also on
115218         mips-dec-ultrix4.4 systems.
115220 2002-03-02  Jim Meyering  <meyering@lucent.com>
115222         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
115223         not HAVE_CLOCK_SETTIME.
115225 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115227         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
115228         Check for clock_settime.
115230 2002-02-27  Paul Eggert  <eggert@twinsun.com>
115232         * lib/nanosleep.h: Rename to....
115233         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
115235         * lib/gettime.c: New file.
115236         * lib/settime.c: New file.
115237         * lib/stime.c: Remove.
115239         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
115240         timespec.h.  Remove nanosleep.h.
115242 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115244         * m4/acl.m4: New file.
115245         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
115246         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
115248 2002-02-25  Paul Eggert  <eggert@twinsun.com>
115250         * lib/acl.c, lib/acl.h: New files.
115251         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
115253 2002-02-24  Jim Meyering  <meyering@lucent.com>
115255         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
115256         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
115257         cause trouble.  Reported by Nelson Beebe.
115259 2002-02-23  Paul Eggert  <eggert@twinsun.com>
115261         * lib/path-concat.c (xpath_concat): Reorder code to pacify
115262         compilers that don't know that xalloc_die never returns.
115264 2002-02-20  Jim Meyering  <meyering@lucent.com>
115266         * lib/getdate.c: Regenerate using bison-1.33.
115268 2002-02-17  Jim Meyering  <meyering@lucent.com>
115270         * config/config.guess (main): Don't use `head -1'; it's no longer
115271         portable. Use `sed 1q' instead.
115273 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
115275         * m4/codeset.m4: Upgrade to gettext-0.11.
115276         * m4/gettext.m4: Upgrade to gettext-0.11.
115277         * m4/glibc21.m4: Upgrade to gettext-0.11.
115278         * m4/iconv.m4: Upgrade to gettext-0.11.
115279         * m4/isc-posix.m4: Upgrade to gettext-0.11.
115280         * m4/lcmessage.m4: Upgrade to gettext-0.11.
115281         * m4/lib-ld.m4: New file, from gettext-0.11.
115282         * m4/lib-link.m4: New file, from gettext-0.11.
115283         * m4/lib-prefix.m4: New file, from gettext-0.11.
115284         * m4/progtest.m4: Upgrade to gettext-0.11.
115286 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115288         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
115289         (jm_PREREQ): Use it.
115291 2002-02-15  Paul Eggert  <eggert@twinsun.com>
115293         * lib/posixver.c, lib/posixver.h: New files.
115294         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115296 2002-02-02  Paul Eggert  <eggert@twinsun.com>
115297             Bruno Haible  <bruno@clisp.org>
115299         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
115300         (fwrite_success_callback): New declaration.
115301         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
115302         print_unicode_char. Call failure callback instead of error.
115303         (fwrite_success_callback): New function.
115304         (exit_failure_callback): New function.
115305         (fallback_failure_callback): New function.
115306         (print_unicode_char): Call unicode_to_mb.
115308 2002-01-26  Jim Meyering  <meyering@lucent.com>
115310         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
115311         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
115313 2002-01-26  Jim Meyering  <meyering@lucent.com>
115315         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
115317 2002-01-22  Paul Eggert  <eggert@twinsun.com>
115319         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
115321 2002-01-22  Jim Meyering  <meyering@lucent.com>
115323         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
115324         Otherwise, some versions of automake would omit the rule that makes
115325         Makefile from Makefile.in.
115327 2002-01-21  Paul Eggert  <eggert@twinsun.com>
115329         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
115330         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
115331         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
115332         (memcoll): Set errno to zero if there is no error.
115334         * lib/quotearg.c (quotearg_buffer_restyled):
115335         Fix bug with quoting buffers containing NUL when backslashing escapes.
115336         This bug was exposed by the other changes in this patch.
115337         (quotearg_n_options): New arg ARGSIZE.
115338         All callers changed.
115339         (quoting_options_from_style): New function.
115340         (quotearg_n_style): Use it.
115341         (quotearg_n_style_mem): New function.
115343         * lib/quotearg.h (quotearg_n_style_mem): New function.
115345 2002-01-19  Jim Meyering  <meyering@lucent.com>
115347         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
115348         Remove useless quotes: DF_PROG="df".
115349         * m4/strnlen.m4: New file.
115351 2002-01-16  Paul Eggert  <eggert@twinsun.com>
115353         * lib/backupfile.c (ISDIGIT): Comment fix.
115354         * lib/getdate.y (ISDIGIT): Likewise.
115355         * lib/posixtm.c (ISDIGIT, year): Likewise.
115356         * lib/strverscmp.c (ISDIGIT): Likewise.
115357         * lib/userspec.c (ISDIGIT): Likewise.
115359 2002-01-16  Jim Meyering  <meyering@lucent.com>
115361         * lib/getdate.y: Add three semicolons, each just before a closing
115362         brace. Bison (as of version 1.31) no longer papers over that mistake.
115364 2002-01-05  Jim Meyering  <meyering@lucent.com>
115366         * lib/version-etc.c (version_etc_copyright): Update copyright year.
115368 2001-12-19  Paul Eggert  <eggert@twinsun.com>
115370         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
115371         not silently exit merely because the output buffer happens to
115372         have nothing pending.
115374 2001-12-18  Paul Eggert  <eggert@twinsun.com>
115376         See the big note in ../ChangeLog.
115377         * lib/human.c (suffixes): Prefer K to k for 1024.
115378         (generate_suffix_backwards): New function.
115379         (human_readable_inexact): Use it.
115380         * lib/xstrtol.c (__xstrtol): If there is no number but there
115381         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
115382         Accept 'K' as well as 'k'.
115384 2001-12-15  Jim Meyering  <meyering@lucent.com>
115386         * lib/regex.h (__restrict_arr): Update from libc.
115388         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
115389         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
115390         (STREQ): Define.
115392 2001-12-14  Jim Meyering  <meyering@lucent.com>
115394         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
115395         Suggestion from Bruno Haible.
115397 2001-12-10  Jim Meyering  <meyering@lucent.com>
115399         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
115400         xrealloc, Instead, include "xalloc.h".
115401         (initbuffer): Don't cast xmalloc return value to char*.
115402         (readline): Reword comment.
115403         Don't cast xrealloc return value to char*
115404         Return NULL, not 0.
115406 2001-12-09  Jim Meyering  <meyering@lucent.com>
115408         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
115409         about `signed and unsigned type in conditional expression'.
115410         * lib/posixtm.c (posix_time_parse): Likewise.
115412         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
115414         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
115415         to avoid a pedantic warning.
115417         * lib/getstr.c: Don't include assert.h.
115418         (getstr): Remove warning-evoking assertions.
115419         Return -1 if offset parameter is out of bounds.
115420         Change the type of a local from int to size_t.
115422         * lib/strftime.c (my_strftime_localtime_r): Include this function
115423         definition in the `#if ! HAVE_TM_GMTOFF' block.
115425         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
115426         Include xalloc.h instead.
115428 2001-12-02  Jim Meyering  <meyering@lucent.com>
115430         * lib/tempname.c: Don't declare getenv, thus reverting the change of
115431         2001-11-18.  It's no longer necessary, now that stdlib.h is always
115432         included.
115434         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
115435         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
115437 2001-11-30  Akim Demaille  <akim@epita.fr>
115439         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
115440         before being defined.
115442 2001-11-27  Paul Eggert  <eggert@twinsun.com>
115444         * lib/quotearg.h (quotearg_n, quotearg_n_style):
115445         First arg is int, not unsigned.
115446         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
115447         (SIZE_MAX, UINT_MAX): New macros.
115448         (quotearg_n_options): Abort if N is negative.
115449         Avoid overflow check on hosts where size_t is 64 bits and int
115450         is 32 bits, as overflow is impossible there.
115451         Fix off-by-one typo that caused unnecessary reallocation.
115453 2001-11-27  Jim Meyering  <meyering@lucent.com>
115455         * lib/tempname.c: Merge with version from libc.
115456         * lib/regex.c: Likewise.
115458         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
115459         systems for which STDC_HEADERS is 0, it was not included, resulting in
115460         a warning about an integer-to-pointer conversion problem with getenv.
115461         Reported by Volker Borchert.
115463 2001-11-26  Jim Meyering  <meyering@lucent.com>
115465         * lib/gtod.h: Remove file.
115466         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
115467         * lib/gettimeofday.c: Don't include gtod.h.
115468         (GTOD_init): Remove function.
115469         (rpl_gettimeofday): Do its job here instead, rather than aborting.
115470         Suggestion from Volker Borchert.
115472 2001-11-23  Jim Meyering  <meyering@lucent.com>
115474         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
115475         it.
115476         * lib/hash.c (struct hash_table): Define it here instead.
115478 2001-11-22  Jim Meyering  <meyering@lucent.com>
115480         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
115482 2001-11-20  Jim Meyering  <meyering@lucent.com>
115484         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
115485         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
115487 2001-11-19  Jim Meyering  <meyering@lucent.com>
115489         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
115490         directory.  Use "conftestXXXXXX" as the template.
115491         Suggestion from Paul Eggert.
115493         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
115494         immediately, so the test doesn't mistakenly hit the max-open-files
115495         limit.
115497 2001-11-18  Paul Eggert  <eggert@twinsun.com>
115499         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
115500         (TEMPORARIES): New macro.
115501         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
115502         removes an artificial limitation (e.g. HP-UX 10.20, where
115503         TMP_MAX is 17576).
115505 2001-11-18  Jim Meyering  <meyering@lucent.com>
115507         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
115509 2001-11-18  Jim Meyering  <meyering@lucent.com>
115511         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
115512         on SunOS 4.
115514         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
115515         files will be created before anything else.
115517 2001-11-17  Paul Eggert  <eggert@twinsun.com>
115519         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
115520         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
115522 2001-11-17  Jim Meyering  <meyering@lucent.com>
115524         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
115525         Prompted by a report from Bob Proulx.
115527         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
115528         Instead, require UTILS_FUNC_MKSTEMP.
115530 2001-11-17  Jim Meyering  <meyering@lucent.com>
115532         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
115533         Now, that's done as part of AC_FUNC_STRTOD.
115535 2001-11-17  Jim Meyering  <meyering@lucent.com>
115537         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
115538         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
115539         rather than group writable.  Patch by Juan F. Codagnone.
115541         * lib/readtokens.c: Remove explicit declarations of xmalloc and
115542         xrealloc, Instead, include "xalloc.h".
115544         * lib/mountlist.c: Include unlocked-io.h after all system headers.
115545         Remove explicit declarations of xmalloc, xrealloc,
115546         and xstrdup.  Instead, include "xalloc.h".
115548         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
115549         unlocked-io.h.
115550         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
115551         Likewise.
115552         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
115554         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
115555         Reported by Padraig Brady.
115557         * lib/mkstemp.c: #undef mkstemp.
115558         Include config.h.
115559         (rpl_mkstemp): Rename from mkstemp.
115560         Protoize.
115562 2001-11-16  Jim Meyering  <meyering@lucent.com>
115564         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
115565         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
115566         determine the amount of total physical memory, use pstat_getstatic.
115567         HPUX-11 doesn't define _SC_PHYS_PAGES.
115568         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
115569         If sysconf couldn't be used to determine the amount of available
115570         physical memory, use both pstat_getstatic and pstat_getdynamic.
115571         Based on a patch from Bob Proulx.
115573 2001-11-10  Jim Meyering  <meyering@lucent.com>
115575         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
115576         (jm_PREREQ): Use it.
115578 2001-11-09  Jim Meyering  <meyering@lucent.com>
115580         * m4/jm-macros.m4: Require autoconf-2.52f.
115581         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
115582         Use these AC_-prefixed names, not the AM_-prefixed ones.
115584         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
115586 2001-11-05  Jim Meyering  <meyering@lucent.com>
115588         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
115590 2001-11-04  Jim Meyering  <meyering@lucent.com>
115592         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
115593         $DEFS.
115595 2001-11-03  Jim Meyering  <meyering@lucent.com>
115597         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
115598         of AC_DEFUN.
115600         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
115601         know the name of the variable in the macro definition.
115603 2001-11-03  Jim Meyering  <meyering@lucent.com>
115605         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
115606         in argmatch_to_argument call.
115608         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
115609         argument.
115611         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
115612         e.g., a fault due to an attempt to free a NULL pointer.
115614 2001-11-01  Jim Meyering  <meyering@lucent.com>
115616         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
115617         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
115619 2001-11-01  Jim Meyering  <meyering@lucent.com>
115621         * lib/dirfd.c, lib/dirfd.h: New files.
115622         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
115624         * lib/hash.c (hash_print) [TESTING]: Clean up.
115626 2001-10-22  Paul Eggert  <eggert@twinsun.com>
115628         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
115629         to avoid a warning if -Wall.
115631 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
115633         * README: New file
115634         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
115635         (per RMS's instructions, this is now the canonical source)
115636         * lgpl/, gpl/: New directories.
115638 2001-10-21  Paul Eggert  <eggert@twinsun.com>
115640         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
115642 2001-10-21  Jim Meyering  <meyering@lucent.com>
115644         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
115645         this code would end up calling gettext even in packages built
115646         with --disable-nls.
115647         * lib/getopt.c (_): Likewise.
115648         * lib/regex.c (_): Likewise.
115650 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115652         * m4/error.m4 (jm_PREREQ_ERROR):
115653         Do not invoke AC_CHECK_FUNCS with strerror_r, as
115654         AC_FUNC_STRERROR_R does that.
115655         Check for strerror declaration.
115657         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
115658         are supposed to have them these days.
115659         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
115660         Merge changes from latest Autoconf CVS.
115661         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
115662         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
115663         POSIX decided to standardize on the int flavor of strerror_r.
115665 2001-10-20  Paul Eggert  <eggert@twinsun.com>
115667         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
115668         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
115669         Use strerror_r that is only a macro, even if it is not a function.
115670         (strerror): Check for HAVE_DECL_STRERROR before declaring.
115671         (private_strerror): Use prototypes, not old-style function definition.
115672         (print_errno_message): New function.
115673         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
115674         char*-flavored one.
115675         (error_tail, error, error_at_line): Use it.
115677 2001-10-11  Jim Meyering  <meyering@lucent.com>
115679         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
115680         and quote_n (1, ... to avoid clobbering a buffer.
115682 2001-10-05  Jim Meyering  <meyering@lucent.com>
115684         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
115685         hash-pjw.h.
115686         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
115687         * lib/hash-pjw.h: New file.
115689 2001-09-30  Jim Meyering  <meyering@lucent.com>
115691         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
115692         `struct fsstat' has the `f_fstypename' member.
115693         Use that to define FS_TYPE, which is now used to make
115694         the getfsstat link test tighter.
115696 2001-09-30  Jim Meyering  <meyering@lucent.com>
115698         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
115699         Include <sys/ucred.h>, for Apple Darwin.
115700         Include sys/mount.h and sys/fs_types.h only if available.
115701         (FS_TYPE): Define.
115702         (read_filesystem_list): Use FS_TYPE.
115704 2001-09-29  Paul Eggert  <eggert@twinsun.com>
115706         * lib/exclude.c (excluded_filename): 0 -> false, since it's
115707         a boolean context.
115709 2001-09-29  Jim Meyering  <meyering@lucent.com>
115711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115712         [one-argument getmntent function]): Include stdio.h before mntent.h.
115713         SunOS 4.1.x needs it for the declaration of `FILE'.
115714         Patch by Volker Borchert.
115716         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
115717         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
115718         sys/fs_types.h, and make the link-test for getfsstat guard #include
115719         directives with appropriate #if HAVE_*_H tests so that we can
115720         detect getfsstat on Apple Darwin1.3.7 systems.
115721         Reported by Nelson Beebe.
115722         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
115724 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115726         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115727         #defines strtoimax.  Also treat the other strto* functions
115728         like strtoimax.
115730         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
115731         Check for strtoul and strtoumax,
115732         as those declarations are made even in the signed case.
115733         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
115734         Likewise, for strtol and strtoimax.
115736 2001-09-28  Paul Eggert  <eggert@twinsun.com>
115738         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
115739         #defines strtoimax.  Also treat the other strto* functions
115740         like strtoimax.
115742         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
115743         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
115744         (strtoimax, strtoumax): Do not declare if already defined as a macro.
115746 2001-09-26  Jim Meyering  <meyering@lucent.com>
115748         Most macros in unlocked-io.h had the wrong number of arguments.
115749         * lib/gen-uio: New script.
115750         (USE_UNLOCKED_IO): Define to 1 if not already defined.
115751         * lib/unlocked-io.hin: Remove file.
115752         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
115753         rather than trying to embed it here.
115754         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
115755         Reported by Padraig Brady.
115757 2001-09-25  Volker Borchert  <bt@teknon.de>
115759         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
115760         `result'.
115762 2001-09-24  Jim Meyering  <meyering@lucent.com>
115764         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
115766 2001-09-23  Jim Meyering  <meyering@lucent.com>
115768         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
115769         instead of the mere test for existence of mntent.h.  The latter
115770         would get a false-positive on AIX 3.4 systems.
115771         In the outer getmntent if-block, don't die if neither of the getmntent
115772         tests succeeds.  Instead, just fall through and continue with the
115773         remaining tests.
115775 2001-09-23  Jim Meyering  <meyering@lucent.com>
115777         * lib/mountlist.c: Remove useless parentheses in #if directives.
115778         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
115779         the deprecated MOUNTED symbol is no longer defined in mntent.h.
115781 2001-09-22  Jim Meyering  <meyering@lucent.com>
115783         * m4/gettext.m4: New file.  From gettext.
115784         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
115785         * m4/progtest.m4: Likewise
115786         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
115787         * m4/glibc21.m4: Likewise.
115789         * m4/libintl.m4: Remove.  No longer used.
115791 2001-09-22  Jim Meyering  <meyering@lucent.com>
115793         * lib/localcharset.c: Update from latest gettext.
115794         * lib/config.charset: Likewise.
115796 2001-09-20  Jim Meyering  <meyering@lucent.com>
115798         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
115799         strtoimax.
115800         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
115801         strtoumax.
115803 2001-09-20  Jim Meyering  <meyering@lucent.com>
115805         * lib/xstrtol.c (strtoimax): Guard declaration with
115806         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
115807         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
115808         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
115809         (strtoumax): Likewise, for completeness (it wasn't necessary).
115811 2001-09-17  Paul Eggert  <eggert@twinsun.com>
115813         * lib/strtoimax.c (HAVE_LONG_LONG):
115814         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
115815         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
115816         to work around bug in IBM C compiler.
115818 2001-09-17  Jim Meyering  <meyering@lucent.com>
115820         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
115821         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
115822         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
115823         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
115824         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
115825         whenever the right hand side need not be expanded by the shell.
115827 2001-09-16  Paul Eggert  <eggert@twinsun.com>
115829         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
115830         library.  It's not correct, as some older glibcs are buggy.
115831         fnmatch wasn't fixed until glibc 2.2.
115833         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
115834         special shell magic here.
115836 2001-09-16  Jim Meyering  <meyering@lucent.com>
115838         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
115839         * m4/jm-macros.m4: Require it.
115841 2001-09-16  Jim Meyering  <meyering@lucent.com>
115843         * lib/mkdir.c: New file.
115845 2001-09-15  Jim Meyering  <meyering@lucent.com>
115847         * m4/jm-macros.m4: Check for help2man.
115849 2001-09-11  Jim Meyering  <meyering@lucent.com>
115851         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
115852         The body, by Paul Eggert, was moved here from configure.in.
115853         * m4/jm-macros.m4: Require UTILS_HOST_OS.
115855 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115857         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
115858         (jm_PREREQ): Use it.
115860 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115862         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
115863         Use ssize_t, not int, to store result of readlink.
115864         Check for ssize_t overflow as well as size_t overflow,
115865         as POSIX says the result of readlink is implementation-defined
115866         when ssize_t overflows.
115867         Remove unnecessary cast to char*.
115868         Use free+malloc instead of realloc, as the storage doesn't need
115869         to be preserved and it's clearer and can be more efficient that way.
115870         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
115871         * lib/xreadlink.h (xreadlink): Update prototype.
115873 2001-09-04  Paul Eggert  <eggert@twinsun.com>
115875         * lib/xgetcwd.c: Revert some of the previous change; intead,
115876         fix the HAVE_GETCWD_NULL code to behave more like the
115877         !HAVE_GETCWD_NULL code used to.
115879         Include "xalloc.h".
115880         (xgetcwd): Do not return NULL when memory is exhausted; instead,
115881         invoke xalloc_die.
115883 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115885         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
115886         sys/param.h, as pathmax.h includes them.
115888 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115890         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
115891         (jm_PREREQ_XGETCWD): New macro.
115893         * m4/getcwd.m4: New file.
115895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115897         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
115898         like the HAVE_GETCWD_NULL code.
115899         Include pathmax.h if not HAVE_GETCWD.
115900         Do not include xalloc.h.
115901         (INITIAL_BUFFER_SIZE): New symbol.
115902         Do not use xmalloc / xrealloc, since the caller is responsible for
115903         handling errors.  Preserve errno around `free' during failure.
115904         Do not overrun buffer when using getwd.
115906 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115908         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
115909         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
115910         getcwd (NULL, 0).
115912 2001-09-03  Paul Eggert  <eggert@twinsun.com>
115914         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
115915         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
115916         spotted by Jim Meyering.
115918 2001-09-03  Jim Meyering  <meyering@lucent.com>
115920         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
115921         failure.
115923 2001-09-02  Jim Meyering  <meyering@lucent.com>
115925         * lib/error.c: Update from GNU libc.
115927 2001-09-01  Jim Meyering  <meyering@lucent.com>
115929         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
115930         Used by df.
115932 2001-09-01  Jim Meyering  <meyering@lucent.com>
115934         * lib/xreadlink.c: New file.
115935         * lib/xreadlink.h: New file.
115936         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
115937         xreadlink.h.
115939         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
115940         doesn't conflict with sparc Solaris 7's definition in
115941         /usr/include/sys/int_types.h.
115943         * lib/exclude.c: Use `""', not `<>' to #include non-system header
115944         files.
115945         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
115946         and strncasecmp as r-values.  Unixware didn't have declarations.
115948 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115950         * lib/xstrtol.h: Add copyright notice.
115951         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
115952         LONGINT_INVALID_SUFFIX_CHAR.
115954 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115956         * lib/xstrtol.c (strtoimax): New decl.
115958 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115960         * lib/xgetcwd.c: Don't include pathmax.h.
115961         Include stdlib.h and unistd.h if available.
115962         Include xalloc.h.
115963         (xmalloc, xstrdup, free): Remove decls.
115964         (xgetcwd): Don't assume sizes fit in unsigned.
115965         Check for overflow when computing sizes.
115966         Simplify reallocation code.
115968 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115970         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
115971         a directory's st_size can have an arbitrary value, so the old
115972         usage could waste an arbitrary amount of memory.  All uses
115973         changed.
115974         * lib/savedir.h: Update prototype.
115976 2001-08-31  Paul Eggert  <eggert@twinsun.com>
115978         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
115980         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
115981         old strtoimax.c.
115983         Also, make the following further changes to make this file's
115984         configuration more similar to that of strtol.c:
115985         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
115986         (strtoumax, uintmax_t, strtoull, strtol): Remove.
115987         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
115988         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
115989         changed to signed values.
115991         And make the following changes as well:
115992         Fix copyright notice, as 1999 was missing.
115993         (verify): New macro.
115994         (strtoimax): Check sizes at compile-time, not run-time.
115995         Prefer strtol to strtoll if both work.
115996         (main): Remove; it was not that useful and was a pain to maintain.
115998         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
116000 2001-08-31  Jim Meyering  <meyering@lucent.com>
116002         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
116003         Use an initial, malloc'd, buffer of length 128 rather than
116004         a statically allocated one of length 1024.
116006 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116008         Simplify code, partly by assuming autoconf 2.52 semantics.
116010         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
116012         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
116013         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
116014         All uses removed.
116015         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
116016         Move AC_REQUIRE to next-to-top level, to avoid confusion.
116017         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
116018         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
116019         jm_AC_HEADER_INTTYPES_H.
116020         * m4/jm-macros.m4 (jm_MACROS): Likewise.
116022         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
116024         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
116025         Quote first arg of AC_DEFUN.
116026         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
116027         since they are needed to parse the include file even if we need
116028         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
116029         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
116030         but with opposite signedness.
116032 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116034         Merge 'exclude' changes from tar 1.13.22.
116035         This fixes one or two unlikely storage allocation overflow bugs,
116036         but doesn't change user-visible behavior otherwise.
116038 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116040         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
116041         (jm_PREREQ_EXCLUDE): New macro.
116043 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116045         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
116046         tm to be declared.
116048 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116050         * lib/hash.c: Remove '2001' from copyright notice.
116052 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116054         * lib/full-write.h: New file.
116055         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
116056         * lib/full-write.c: Correct credits, as cccp.c no longer
116057         exists and anyway it was so heavily changed from the old cccp
116058         code as to be unrecognizable.  Include full-write.h.
116059         (full_write): Return size_t, with short writes meaning failure.
116060         All callers changed.  This fixes a bug with large buffers
116061         on 64-bit hosts.
116062         * lib/utime.c: Include full-write.h.
116064 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116066         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
116067         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
116068         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
116069         Include if available.
116070         (<xalloc.h>): Include
116071         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
116072         (verify): New macro.  Use it to verify that EXCLUDE macros do not
116073         collide with FNM macros.
116074         (struct patopts): New struct.
116075         (struct exclude): Use it, as exclude patterns now come with options.
116076         (new_exclude): Support above changes.
116077         (new_exclude, add_exclude_file):
116078         Initial size must now be a power of two to simplify overflow checking.
116079         (free_exclude, fnmatch_no_wildcards): New function.
116080         (excluded_filename): No longer requires options arg, as the options
116081         are determined by add_exclude.  Now returns bool, not int.
116082         (excluded_filename, add_exclude):
116083         Add support for the fancy new exclusion options.
116084         (add_exclude, add_exclude_file): Now takes int options arg.
116085         Check for arithmetic overflow when computing sizes.
116086         (add_exclude_file): xrealloc might modify errno, so don't
116087         realloc until after errno might be used.
116089         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
116090         New macros.
116091         (free_exclude): New decl.
116092         (add_exclude, add_exclude_file): Now takes int options arg.
116093         (excluded_filename): No longer requires options arg, as the options
116094         are determined by add_exclude.  Now returns bool, not int.
116096 2001-08-30  Paul Eggert  <eggert@twinsun.com>
116098         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
116100 2001-08-27  Jim Meyering  <meyering@lucent.com>
116102         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
116104         * lib/version-etc.c (N_): Remove definition.
116105         Revert most of last change.
116106         Instead, simply don't mark the `Copyright...' string for translation.
116107         Based on advice from Paul Eggert.
116109         * lib/strtoxmax.c: Tweak comment.
116111 2001-08-26  Jim Meyering  <meyering@lucent.com>
116113         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
116115         * m4/xstrtoimax.m4: New file.
116116         * m4/xstrtoumax.m4: Add comments explaining why we
116117         AC_REPLACE_FUNCS(strtol).
116119 2001-08-26  Jim Meyering  <meyering@lucent.com>
116121         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
116122         of copyright with `%s' so translators don't get an untranslated
116123         message in 2002.
116124         (COPYRIGHT_YEAR): Define.
116125         (version_etc): Use fprintf rather than fputs.
116126         Suggestion from Ulrich Drepper.
116128         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
116130         * lib/strtoll.c: New file, from GNU libc.
116131         * lib/xstrtoimax.c: New file.
116133         * lib/xstrtol.h: Add xstrtoimax.
116134         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
116135         * lib/strtoimax.c: New file.  Likewise, but first define
116136         STRTOUXMAX_SIGNED.
116138         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
116139         ...
116140         * lib/strtoxmax.c: ... then renamed to this.
116142 2001-08-18  Paul Eggert  <eggert@twinsun.com>
116144         * m4/inttypes.m4: Add AC_PREREQ(2.13).
116145         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
116146         (jm_AC_TYPE_INTMAX_T): New macro.
116147         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
116149         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
116151         * m4/longlong.m4: Renamed from ulonglong.m4.
116152         * m4/inttypes.m4: Renamed from inttypes_h.m4.
116153         * m4/uintmax_t.m4: Removed.
116155 2001-08-13  Paul Eggert  <eggert@twinsun.com>
116157         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
116158         Port to Solaris 8, where 'sed' requires a space after the 'r'
116159         command, and where sh dislikes "$/".  Clean up the spacing a bit.
116160         Redirect output to $tmp just once.
116162 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
116164         * lib/addext.c (<errno.h>): Include.
116165         (errno): Declare if not defined.
116166         (addext): Work correctly when pathconf returns -1 and leaves
116167         errno alone because there is no limit.  Also, work even if
116168         pathconf returns a value greater than SIZE_MAX.
116170 2001-08-12  Jim Meyering  <meyering@lucent.com>
116172         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
116173         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
116174         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
116175         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
116176         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
116177         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
116178         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
116179         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
116180         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
116181         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
116182         utime.m4, utimes.m4, xstrtoumax.m4:
116183         Quote the first argument in each use of AC_DEFUN.
116185 2001-08-12  Jim Meyering  <meyering@lucent.com>
116187         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
116188         Simply `return getcwd (NULL, 0);'.
116189         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
116190         Use 1300 as initial value for length, not PATH_MAX.
116192         * lib/pathmax.h: Clean up cpp syntax.
116194 2001-08-12  Jim Meyering  <meyering@lucent.com>
116196         * lib/gettimeofday.c: New file.
116197         * lib/gtod.h: New file.
116198         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
116200 2001-08-05  Jim Meyering  <meyering@lucent.com>
116202         * m4/jm-macros.m4: Require autoconf-2.52.
116204 2001-08-04  Jim Meyering  <meyering@lucent.com>
116206         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
116207         stmt, to get in sync with glibc.
116209 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116211         The following changes are from gettext 0.10.39 as maintained by
116212         Bruno Haible.
116214         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
116215         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
116216         with inverted sense.  All uses changed.
116218         * lib/mbswidth.c: Don't include <limits.h>.
116219         Include <stdlib.h> and <string.h> unconditionally.
116220         (iswcntrl, mbsinit, ISCNTRL): New macros.
116221         (mbsnwidth): Use K&R style function declarations.
116222         Don't bother checking for MB_LEN_MAX == 1, since the compiler
116223         can optimize it when MB_CUR_MAX == 1.
116224         The width of control characters is zero, not 1.
116226 2001-08-03  Paul Eggert  <eggert@twinsun.com>
116228         The following changes are from gettext 0.10.39 as maintained by
116229         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
116231         * m4/codeset.m4: Upgrade to serial AM1.
116232         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
116233         all uses changed.  Quote first arg of AC_DEFUN.
116234         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
116236         * m4/iconv.m4: Upgrade to serial AM2.
116237         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
116238         Add --with-libconv-prefix.
116239         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
116240         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
116241         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
116242         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
116243         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
116245         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
116246         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
116247         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
116248         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
116249         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
116250         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
116251         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
116252         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
116253         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116255         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
116256         string.h any more.
116258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
116259         not the default value.
116261         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
116262         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
116263         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
116264         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
116265         Also check for iswcntrl, used for wcwidth fallback.
116266         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
116267         to Autoconf 2.13.
116269 2001-08-03  Jim Meyering  <meyering@lucent.com>
116271         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
116272         as it was in the original.  Reported by Paul Eggert.
116274 2001-07-16  Jim Meyering  <meyering@lucent.com>
116276         * m4/gettimeofday.m4: New file.
116277         Prompted by a report from Bernhard Baehr.
116279 2001-07-15  Jim Meyering  <meyering@lucent.com>
116281         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
116282         stuff. Now it's in ../Makefile.cfg.
116284 2001-07-15  Jim Meyering  <meyering@lucent.com>
116286         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
116287         (BUILT_SOURCES): Add unlocked-io.h.
116288         (io_functions): Define.
116289         (unlocked-io.h): New rule.
116290         (DISTCLEANFILES): Add unlocked-io.h.
116291         (all-local): Depend on unlocked-io.h, to ensure it is created.
116293         * lib/unlocked-io.hin: New file
116295         * lib/regex.c: Update from glibc.
116297 2001-07-05  Jim Meyering  <meyering@lucent.com>
116299         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
116300         recommendation.
116301         (libfetish_a_SOURCES): Put all .h files here instead.
116302         Remove a thus-exposed (better checks in automake) duplicate and
116303         two unnecessary .h files.
116305 2001-07-04  Jim Meyering  <meyering@lucent.com>
116307         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
116308         that generates jm-glibc-io.m4 so that it doesn't trigger any make
116309         distcheck failure.
116311 2001-07-02  Jim Meyering  <meyering@lucent.com>
116313         The following changes were prompted by suggestions from Bruno Haible.
116315         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
116316         is now generated.
116317         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
116318         definition of EXTRA_DIST.
116319         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
116320         ensure that the generated file is created/updated whenever the list
116321         of $(unlocked_functions) is changed.
116322         (jm-glibc-io.m4): New rule.
116323         (unlocked-io.h): New rule -- currently unused.
116325 2001-06-24  Jim Meyering  <meyering@lucent.com>
116327         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
116328         unmatched right bracket, rather than kludging it with an extra,
116329         falsely-matching quote in a comment.  Patch by Akim Demaille.
116331 2001-06-11  Jim Meyering  <meyering@lucent.com>
116333         * lib/regex.c: Update from GNU libc.
116335 2001-05-27  Jim Meyering  <meyering@lucent.com>
116337         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
116338         Check for ut_type in struct utmp.
116340 2001-05-27  Jim Meyering  <meyering@lucent.com>
116342         * lib/readutmp.h (UT_TYPE): Define.
116344 2001-05-24  Jim Meyering  <meyering@lucent.com>
116346         * lib/argmatch.c: Include "quote.h".
116347         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
116348         quote function.  Reported by Göran Uddeborg.
116350 2001-05-22  Jim Meyering  <meyering@lucent.com>
116352         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
116353         now that we use the package-supplied version unconditionally.
116354         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
116356 2001-05-21  Jim Meyering  <meyering@lucent.com>
116358         * m4/regex.m4: Change a couple backticks to single quotes to avoid
116359         shell syntax errors.
116361 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116363         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
116365 2001-05-20  Paul Eggert  <eggert@twinsun.com>
116367         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
116368         Don't bother to check library strftime, since
116369         we'll be using our own my_strftime function anyway.
116370         Define my_strftime instead of strftime.
116372 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
116374         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
116375         which is not yet declared.
116377 2001-05-15  Jim Meyering  <meyering@lucent.com>
116379         * m4/regex.m4: Use proper quoting so brackets appear in the test
116380         program.
116381         Reported by, and with help from, Bruno Haible.
116383 2001-05-13  Jim Meyering  <meyering@lucent.com>
116385         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
116386         undefined.
116388 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116390         dirname code cleanup.  base_name now behaves more compatibly
116391         with POSIX basename when given file names that have trailing
116392         slashes, and similarly for dir_name.  Add new primitives
116393         base_len and dir_len.  Put the directory-name-related decls
116394         into dirname.h.
116396         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
116397         * lib/backupfile.c (base_name): Likewise.
116398         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
116399         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
116400         * lib/makepath.c (strip_trailing_slashes): Likewise.
116401         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
116402         ISSLASH): Likewise.
116403         * lib/rename.c (strip_trailing_slashes): Likewise.
116404         * lib/same.c (base_name): Likewise.
116405         * lib/stripslash.c (ISSLASH): Likewise.
116407         * lib/addext.c: Include <dirname.h> after size_t is defined.
116408         * lib/backupfile.c: Likewise.
116410         * lib/addext.c (addext): Use base_len to trim redundant
116411         trailing slashes instead of doing it ourselves.
116412         But do not trim the last slash if it is not redundant.
116414         * lib/backupfile.c (find_backup_file_name,
116415         max_backup_version): Use base_len instead of rolling it ourselves.
116416         Handle the case of "" and (on DOS) "C:" correctly.
116418         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
116419         needed. Include <string.h>, <dirname.h>.
116420         (base_name): Allow file names ending in slashes, other than names
116421         that are all slashes.  In this case, return the basename followed
116422         by the slashes.  This is more general, and can be used in places
116423         where the original base_name purposely had an assertion failure.
116424         (base_len): New function.
116426         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
116427         Do not include <assert.h>; no longer needed.
116428         Include xalloc.h.
116429         (memrchr): Remove decl.
116430         (dir_name_r): Remove.
116431         (dir_len): Renamed from dirlen.  All callers changed.
116432         Rewrite in terms of base_name, for simplicity and consistency.
116433         (dir_name): Never return NULL.  All callers changed.
116434         Do not include <stdlib.h> in test program; no longer needed.
116435         return 0; is fine for test program.
116437         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
116438         New macros.
116439         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
116441         * lib/path-concat.c (path_concat): Use base_len to compute
116442         base length, not strlen; this means we cannot rely on memcpy
116443         to null-terminate.
116445         * lib/same.c (STREQ): Remove.
116446         (same_name): Handle the case where the basename ends in trailing '/'.
116448         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
116449         a slash was stripped.  Do not strip the last slash after a
116450         file system prefix.
116452 2001-05-11  Paul Eggert  <eggert@twinsun.com>
116454         * lib/Makefile.am (libfetish_a_SOURCES):
116455         Add strftime.c, since we now compile it on all hosts.
116457         * lib/strftime.c (my_strftime):
116458         Define to nstrftime if emacs, but only if my_strftime is not defined.
116459         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
116460         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
116461         Add one more extra argument: a nanoseconds value.
116462         All uses changed.
116463         (ns): New macro.
116464         (my_strftime function): Add %N format.
116465         (emacs_strftimeu): Renamed from emacs_strftime,
116466         with extra ut argument.
116468 2001-05-09  Paul Eggert  <eggert@twinsun.com>
116470         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
116472 2001-04-21  Jim Meyering  <meyering@lucent.com>
116474         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
116475         doesn't interfere.
116477 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
116479         * m4/ftruncate.m4: Check for chsize.
116480         Link with ftruncate.o unconditionally if ftruncate is missing.
116481         This was required when cross-compiling to i586-mingw32msvc.
116483 2001-04-08  Jim Meyering  <meyering@lucent.com>
116485         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
116486         recomputed; that's necessary when the offset spans a DST transition.
116487         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
116489 2001-04-02  Jim Meyering  <meyering@lucent.com>
116491         * lib/regex.h, regex.c: Update from GNU libc.
116493 2001-03-24  Jim Meyering  <meyering@lucent.com>
116495         * m4/jm-macros.m4: Require autoconf-2.49d.
116497 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
116499         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
116501 2001-03-19  Paul Eggert  <eggert@twinsun.com>
116503         * lib/version-etc.c (version_etc_copyright): Update to 2001.
116505 2001-03-17  Jim Meyering  <meyering@lucent.com>
116507         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
116508         now that the version in autoconf is equivalent.
116509         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
116511         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
116512         Suggestion from Akim Demaille.
116514         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
116515         (jm_PREREQ_TEMPNAME): New function.
116517 2001-03-16  Paul Eggert  <eggert@twinsun.com>
116519         * lib/tempname.c (uint64_t): Define to uintmax_t if
116520         not defined, and if UINT64_MAX is not defined.
116521         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
116522         Reported by John David Anglin.
116524 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
116526         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
116527         resolve alias if codeset is empty.
116528         * lib/config.charset (BeOS): Use wildcard syntax.
116530 2001-03-13  Jim Meyering  <meyering@lucent.com>
116532         * lib/path-concat.c (path_concat)
116533         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
116534         concatenating e.g., `C:' and `foo'.
116535         From Bruno Haible.
116537 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116539         * lib/localcharset.c (locale_charset): Don't use
116540         setlocale(LC_CTYPE,NULL). Don't return NULL.
116541         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
116543 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
116545         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
116546         support for DOS/DJGPP.
116548 2001-03-01  Paul Eggert  <eggert@twinsun.com>
116550         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
116551         lacks mkstemp.  Compile our own tempname.c if we compile our own
116552         mkstemp.c, as mkstemp relies on tempname.
116554 2001-03-01  Jim Meyering  <meyering@lucent.com>
116556         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
116557         AH_VERBATIM really does output its argument verbatim.
116559 2001-02-28  Paul Eggert  <eggert@twinsun.com>
116561         * lib/Makefile.am (libfetish_a_SOURCES):
116562         Add dup-safer.c, fopen-safer.c.
116563         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
116565         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
116566         * lib/unistd-safer.h: New files.
116568 2001-02-25  Paul Eggert  <eggert@twinsun.com>
116570         The mkstemp replacement is taken from glibc 2.2.2, with some
116571         portability fixes for use outside glibc, as follows:
116573         * lib/tempname.c (struct_stat64): New macro.
116574         (direxists, __gen_tempname): Use it.
116575         This avoids a portability problem with Solaris 8.
116577         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
116578         (<stddef.h>, <stdint.h>, <string.h>):
116579         Include only if STDC_HEADERS || _LIBC.
116580         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
116581         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
116582         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
116583         (__set_errno): Define this macro if <errno.h> doesn't.
116584         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
116585         Define these macros if <stdio.h> doesn't.
116586         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
116587         Define these macros if <sys/stat.h>
116588         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
116589         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
116590         __xstat64): Define if not _LIBC.
116591         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
116592         (__gen_tempname): Invoke gettimeofday only if
116593         HAVE_GETTIMEOFDAY || _LIBC;
116594         otherwise, fall back on plain "time".
116595         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
116597         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
116599         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
116601 2001-02-18  Paul Eggert  <eggert@twinsun.com>
116603         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
116605 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116607         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
116608         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
116609         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
116610         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
116612 2001-02-17  Paul Eggert  <eggert@twinsun.com>
116614         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
116615         Remove workaround macros for hosts that have mbrtowc but not
116616         mbstate_t, as we now insist on proper declarations for both
116617         before using mbrtowc.
116619 2001-02-17  Jim Meyering  <meyering@lucent.com>
116621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
116622         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
116623         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
116624         UnixWare 7.1.1.
116626         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
116627         rather than AC_CACHE_VAL.
116629 2001-02-17  Jim Meyering  <meyering@lucent.com>
116631         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
116632         around included file name.
116634         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
116636         * lib/strftime.c: Update from GNU libc (the only changes were to
116637         comments).
116639 2001-02-17  Jim Meyering  <meyering@lucent.com>
116641         * lib/regex.c: Update from libc.
116643 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
116645         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
116646         clash.
116648 2001-02-16  Paul Eggert  <eggert@twinsun.com>
116650         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
116651         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
116652         Reported by Mark Hounschell via Paul Eggert.
116654 2001-02-07  Jim Meyering  <meyering@lucent.com>
116656         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
116658 2001-02-05  Jim Meyering  <meyering@lucent.com>
116660         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
116661         it includes the patch required for `large file' support with at least
116662         HP-UX's 10.20 /bin/cc.
116664 2001-02-03  Jim Meyering  <meyering@lucent.com>
116666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
116667         AS_IF, now that it works once again (mysteriously).
116668         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116670 2001-01-30  Jim Meyering  <meyering@lucent.com>
116672         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
116673         * m4/chown.m4: Rename conftestchown to conftest.chown.
116674         * m4/rename.m4: s/conftestdir/conftest.d1/ and
116675         s/conftestdir2/conftest.d2/.
116676         * m4/utimes.m4: s/conftestdata/conftest.data/
116677         Inspired by Pavel Roskin's change in autoconf.
116679 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
116681         * lib/config.charset: Update for FreeBSD 4.2.
116683 2001-01-27  Jim Meyering  <meyering@lucent.com>
116685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
116686         a use of AS_IF.
116687         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
116689 2001-01-26  Jim Meyering  <meyering@lucent.com>
116691         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
116692         quotearg.c includes it.
116694 2001-01-26  Jim Meyering  <meyering@lucent.com>
116696         * lib/quotearg.c: Include stddef.h.
116697         * lib/quote.c: Include stddef.h.
116698         Reported by Axel Kittenberger.
116700         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
116701         line in double quotes so that it evokes a better diagnostic.
116702         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
116703         Reported by Axel Kittenberger.
116705 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
116707         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
116708         as if it was a `charset'.
116710 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116712         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
116713         has const.
116715 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
116717         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
116718         to avoid a warning.  Add back 'const' to inptr.
116720 2001-01-20  Jim Meyering  <meyering@lucent.com>
116722         Be sure that headers are checked before used in code compiled
116723         for the type checks.
116724         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
116725         In place of that, invoke jm_CHECK_ALL_TYPES.
116726         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
116727         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
116728         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
116729         The check for ssize_t was mistakenly run before the test for unistd.h.
116731         The configure-time check for stdbool.h was missing.
116732         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
116733         (jm_PREREQ_HASH): New function.
116735 2001-01-17  Jim Meyering  <meyering@lucent.com>
116737         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
116738         for autoconf-2.49c.
116739         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
116741 2001-01-16  Jim Meyering  <meyering@lucent.com>
116743         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
116744         From Bruno Haible.
116746 2001-01-14  Jim Meyering  <meyering@lucent.com>
116748         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
116749         foo and bar.  Create conftestdir/ in the script, not in the C code.
116750         Remove directories in the script, not in the C code.
116751         Remove conftestdir{,2} before trying to create the directory.
116752         Make the entire configure script fail if the mkdir fails.
116754 2001-01-14  Jim Meyering  <meyering@lucent.com>
116756         * lib/rename.c: New file.  From Volker Borchert.
116757         Include stdlib.h, string.h or strings.h, and xalloc.h.
116758         Use strip_trailing_slashes rather than open-coding it.
116760 2001-01-03  Paul Eggert  <eggert@twinsun.com>
116762         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
116764 2001-01-03  Jim Meyering  <meyering@lucent.com>
116766         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
116767         of local `inptr' to avoid warning with some system declarations of
116768         iconv.
116770 2001-01-02  Volker Borchert  <bt@teknon.de>
116772         * m4/rename.m4: New file.
116773         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
116775 2001-01-01  Jim Meyering  <meyering@lucent.com>
116777         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
116778         even on systems with utmpx.h.  It's necessary for the declaration of
116779         utmp's ut_user member.  Reported by Andreas Jaeger.
116781         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
116782         available. They are required for the declarations of getgrgid and
116783         getpwuid resp.
116784         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
116785         Reported by Andreas Jaeger.
116787 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
116789         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
116790         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
116791         so `make install' also works in VPATH builds.
116793 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
116795         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
116796         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
116797         can be used in subdirectories.
116799 2000-12-29  Paul Eggert  <eggert@twinsun.com>
116801         * lib/modechange.c: Do not assume that mode_t uses the
116802         traditional octal encoding.  E.g. "chmod 1 FOO" should set
116803         the other-execute bit of FOO even if S_IXOTH != 1.
116805         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
116806         WOTH, XOTH, ALLM): New macros.
116807         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
116808          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
116809         Use them.
116810         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
116811         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
116812         (mode_compile):
116813         No need to use uintmax_t; unsigned long is long enough.
116814         Don't bother to get suffix since we don't use it.
116816 2000-12-26  Jim Meyering  <meyering@lucent.com>
116818         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
116819         better with autoheader.
116821 2000-12-24  Jim Meyering  <meyering@lucent.com>
116823         * lib/hash.c (is_prime): Return explicit boolean values.
116824         (hash_get_first): Return NULL to appease Irix5.6's 89.
116825         Reported by Nelson Beebe.
116827 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
116829         * lib/localcharset.c (locale_charset): Add support for Win32.
116831 2000-12-18  Paul Eggert  <eggert@twinsun.com>
116833         * lib/physmem.h, lib/physmem.c: New files.
116835         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
116836         (noinst_HEADERS): Add physmem.h.
116838         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
116839         't' for compatibility with Solaris 8 sort.
116841 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
116843         * lib/config.charset: Add support for BeOS.
116845 2000-12-17  Jim Meyering  <meyering@lucent.com>
116847         * m4/dos.m4 (jm_AC_DOS): New file and macro.
116848         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
116850 2000-12-16  Jim Meyering  <meyering@lucent.com>
116852         This bug had a serious impact on chown: `chown N:M FILE' (for integer
116853         N and M) would have treated it like `chown N:N FILE'.
116855         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
116857 2000-12-16  Jim Meyering  <meyering@lucent.com>
116859         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
116860         SHELLS_FILE to a file name that's useful on djgpp systems.
116861         Include stdlib.h.
116862         (ADDITIONAL_DEFAULT_SHELLS): Define.
116863         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
116864         Based mostly on a patch from Prashant TR.
116866 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
116868         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
116869         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
116870         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
116872 2000-12-08  Andreas Schwab  <schwab@suse.de>
116874         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
116875         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
116877 2000-12-07  Jim Meyering  <meyering@lucent.com>
116879         * lib/stripslash.c (ISSLASH): Define.
116880         (strip_trailing_slashes): Use ISSLASH rather than comparing against
116881         `/'.
116882         From Prashant TR.
116884         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
116885         (dir_name_r): Declare this function as static.
116886         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
116887         manifest itself on a name containing a mix of slashes and
116888         backslashes.
116889         Make this function work with names starting with a DOS-style
116890         drive letter and colon prefix.
116891         (dir_name): Append `.' if necessary.
116892         Based mostly on patches from Prashant TR and Eli Zaretskii.
116894         * lib/dirname.h (dir_name_r): Remove prototype.
116896 2000-12-06  Paul Eggert  <eggert@twinsun.com>
116898         * m4/off_t-format.m4: Remove this file.
116899         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
116901 2000-12-06  Jim Meyering  <meyering@lucent.com>
116903         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
116904         replacement strtoull, we may well need the replacement strtoul, too.
116905         Check for declarations of strtoul and strtoull.
116906         Check for strtol.  Mainly as a cue to cause automake to include
116907         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
116908         Check for limits.h -- strtol.c needs it.
116910 2000-12-05  Jim Meyering  <meyering@lucent.com>
116912         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
116914 2000-12-04  Jim Meyering  <meyering@lucent.com>
116916         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
116917         Also include memory.h, stdlib.h, unistd.h if appropriate.
116918         Reported by Andreas Jaeger (conflicting declaration of malloc).
116920 2000-12-02  Jim Meyering  <meyering@lucent.com>
116922         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
116923         * m4/jm-macros.m4 (jm_MACROS): require it.
116925 2000-12-02  Jim Meyering  <meyering@lucent.com>
116927         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
116929 2000-12-01  Paul Eggert  <eggert@twinsun.com>
116931         * lib/memrchr.c: Include <config.h> before any system include file.
116933 2000-11-30  Jim Meyering  <meyering@lucent.com>
116935         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
116937 2000-11-30  Jim Meyering  <meyering@lucent.com>
116939         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
116941 2000-11-29  Paul Eggert  <eggert@twinsun.com>
116943         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
116945 2000-11-26  Jim Meyering  <meyering@lucent.com>
116947         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
116949 2000-11-22  Paul Eggert  <eggert@twinsun.com>
116951         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
116952         size of (size_t) -1; it's not portable.
116954 2000-11-17  Jim Meyering  <meyering@lucent.com>
116956         * lib/strstr.c: Update from GNU libc.
116958 2000-11-17  Akim Demaille  <akim@epita.fr>
116960         * lib/obstack.h: Formatting changes.
116961         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
116962         prevent type checking.
116963         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
116964         cast the value to (void *): assigning a `foo *' to a `void *'
116965         variable is valid.
116966         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
116968 2000-11-16  Jim Meyering  <meyering@lucent.com>
116970         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
116972 2000-11-11  Jim Meyering  <meyering@lucent.com>
116974         * lib/error.c: Add a couple #includes, merging from GNU libc version.
116976 2000-11-10  Jim Meyering  <meyering@lucent.com>
116978         * lib/obstack.h: Update from GNU libc.
116979         * lib/obstack.c: Likewise.
116981 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
116983         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
116985 2000-11-06  Paul Eggert  <eggert@twinsun.com>
116987         * lib/getusershell.c (setusershell): Use rewind rather than
116988         fseek/fseeko, to avoid configuration hassles with fseeko.
116989         Don't bother opening SHELLS_FILE if shellstream is NULL;
116990         it's not necessary.
116992 2000-11-05  Jim Meyering  <meyering@lucent.com>
116994         * lib/makepath.h (make_dir): Declare.
116995         * lib/makepath.c (make_dir): Remove `static' attribute.
116996         Tweak a comment.
116998 2000-11-04  Jim Meyering  <meyering@lucent.com>
117000         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
117002 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
117004         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
117005         last one in a bucket, advance to the next bucket.
117007 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
117009         * lib/fnmatch.c: Do not comment out all the code if we are using
117010         the GNU C library, because in some cases we are replacing buggy
117011         code in the GNU C library itself.
117013 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
117015         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
117016         (regex_compile): Catch bogus \(\1\).
117018 2000-10-30  Paul Eggert  <eggert@twinsun.com>
117020         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
117021         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
117022         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
117024 2000-10-30  Paul Eggert  <eggert@twinsun.com>
117026         * lib/error.h, getline.h, modechange.h:
117027         Remove "2000" from Copyright line, as the file hasn't been
117028         changed this year other than in the copyright notice.
117030         * lib/xalloc.h: Add "2000" to Copyright line, as this file
117031         was changed this year.
117033 2000-10-29  Jim Meyering  <meyering@lucent.com>
117035         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
117036         renaming.
117037         * m4/ls-mntd-fs.m4: Likewise
117039 2000-10-29  Jim Meyering  <meyering@lucent.com>
117041         * lib/xstat.in: Fix grammar in comment.
117043 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
117045         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
117046         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
117047         doesn't define __restrict_arr.
117049 2000-10-28  Jim Meyering  <meyering@lucent.com>
117051         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
117052         (jm_PREREQ_MEMCHR): New function.
117054 2000-10-28  Jim Meyering  <meyering@lucent.com>
117056         * lib/memchr.c: Update from libc.
117057         Adjust for portability:
117058         [HAVE_STDLIB_H]: Include stdlib.h.
117059         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
117060         Undef __memchr, too.
117061         [!weak_alias]: Define __memchr to memchr.
117063         * lib/regex.c: Update from libc.
117064         * lib/regex.h: Likewise.
117065         * lib/getopt1.c: Likewise.
117066         * lib/memcmp.c: Likewise.
117068         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
117069         Avoid using fseek, when possible -- it's broken by design.
117070         Patch by Ulrich Drepper.
117072 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
117074         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
117075         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
117076         Giving in to popular pressure to shut up the compiler with casts.
117078 2000-10-26  Jim Meyering  <meyering@lucent.com>
117080         * lib/strftime.c: Update from libc.
117082 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
117084         * regex.c: More `unsigned char' -> `re_char' changes.
117085         Also change several `int' into `re_wchar_t'.
117086         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
117087         (PUSH_FAILURE_POINTER): Don't cast any more.
117088         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
117089         We want GCC to complain, since this piece of code makes
117090         re_match non-reentrant, which *should* be fixed.
117091         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
117092         (EXTEND_BUFFER): Use RETALLOC.
117093         (SET_LIST_BIT): Don't cast.
117094         (re_wchar_t): New type.
117095         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
117096         that those two functions will always properly return.
117097         (IMMEDIATE_QUIT_CHECK): Cast to void.
117098         (analyse_first): Use recursion rather than an explicit stack.
117099         (re_compile_fastmap): Can't fail anymore.
117100         (re_search_2): Don't check re_compile_fastmap for failure.
117101         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
117102         Now also sets the new value (passed in a new argument).
117103         (re_match_2_internal): Use it.
117104         Also, use a new var `reg' of type size_t when looping through regs
117105         rather than reuse the inappropriate `mcnt'.
117107 2000-10-25  Jim Meyering  <meyering@lucent.com>
117109         * lib/obstack.c: Update from libc.
117111 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
117113         * regex.c (regex_compile): Change the way of handling a range from
117114         a char less than 256 to a char not less than 256.
117116 2000-10-24  Andrew Innes  <andrewi@gnu.org>
117118         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
117119         NT-Emacs only.
117120         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
117121         so that re_search functions only quit when callers expect them to.
117123 2000-10-23  Jim Meyering  <meyering@lucent.com>
117125         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
117126         wrong.  That set_locale call must not have any side effects.
117127         From Paul Eggert.
117129 2000-10-22  Jim Meyering  <meyering@lucent.com>
117131         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
117132         [CYCLIC]: Remove now-unused definition.
117134         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
117135         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
117136         Suggestion from Ulrich Drepper.
117138 2000-10-21  Jim Meyering  <meyering@lucent.com>
117140         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
117141         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
117142         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
117144 2000-10-21  Jim Meyering  <meyering@lucent.com>
117146         * lib/dirname.c (memrchr): Declare if necessary.
117147         (dir_name): Remove the restriction that there be no
117148         trailing slashes.  Now, this code skips past them, effectively
117149         ignoring them.
117150         [TEST_DIRNAME] (main): New unit tests.
117152         * lib/memrchr.c: New file from GNU libc.
117153         Undef __memrchr, too.
117154         [!weak_alias]: Define __memrchr to memrchr.
117155         Guard weak_alias use with `#ifdef weak_alias'.
117157 2000-10-21  Jim Meyering  <meyering@lucent.com>
117159         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
117160         (dir_name): Use dir_name_r.
117161         * lib/dirname.h (dir_name_r): Declare it.
117163 2000-10-17  Jim Meyering  <meyering@lucent.com>
117165         * lib/quote.h (PARAMS): Define and use.
117166         Reported by Akim Demaille.
117168         * lib/getopt.c: Update from libc.
117170 2000-10-16  Jim Meyering  <meyering@lucent.com>
117172         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
117173         setlocale.
117174         From Jan Fedak.
117176 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
117178         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
117180 2000-09-25  Jim Meyering  <meyering@lucent.com>
117182         * lib/md5.h (rol): Define (from GnuPG).
117184         * lib/sha.c: Give credit (GnuPG) where due.
117185         (M): Use rol rather than open-coding it.
117186         Add a FIXME comment.
117188 2000-09-21  Jim Meyering  <meyering@lucent.com>
117190         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
117191         Reported by Michael Stone.
117193 2000-09-20  Jim Meyering  <meyering@lucent.com>
117195         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
117196         (noinst_HEADERS): Add sha.h.
117197         Based on code from Scott G. Miller and from GnuPG.
117199 2000-09-18  Jim Meyering  <meyering@lucent.com>
117201         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
117202         LIBS. Otherwise, everyone ends up linking with -lelf for some
117203         configurations.
117204         Reported by Mike Stone.
117206 2000-09-15  Jim Meyering  <meyering@lucent.com>
117208         * lib/regex.c: Update from libc.
117210 2000-09-10  Jim Meyering  <meyering@lucent.com>
117212         * lib/getopt.c (_getopt_internal): Update from glibc.
117214 2000-09-09  Jim Meyering  <meyering@lucent.com>
117216         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
117217         think it should be used as a general replacement for isascii.
117218         * lib/fnmatch.c: Likewise.
117219         * lib/mbswidth.c: Likewise
117220         * lib/regex.c: Likewise.
117222         Don't use atoi.
117223         * lib/userspec.c: Include sys/param.h and limits.h.
117224         Include xstrtol.h.
117225         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
117226         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
117227         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
117228         UID, GID.  Check range.
117230 2000-09-06  Jim Meyering  <meyering@lucent.com>
117232         * lib/getopt.c (_getopt_internal): Update from glibc.
117234 2000-08-30  Jim Meyering  <meyering@lucent.com>
117236         * lib/strftime.c: Merge in changes from GNU libc.
117238 2000-08-26  Jim Meyering  <meyering@lucent.com>
117240         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
117241         * m4/fpending.m4: New file.
117243 2000-08-26  Jim Meyering  <meyering@lucent.com>
117245         * lib/closeout.c: Include "__fpending.h".
117246         (close_stdout_status): Return right away if there's nothing to flush.
117248         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
117249         * lib/__fpending.c: New file.
117250         * lib/__fpending.h: New file.
117252 2000-08-20  Jim Meyering  <meyering@lucent.com>
117254         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
117255         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
117256         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
117258 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
117260         Improve fileutils installation on systems where running
117261         programs (like install) can't be unlinked.
117262         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
117263         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
117265 2000-08-07  Paul Eggert  <eggert@twinsun.com>
117267         Standardize on "memory exhausted" instead of "Memory exhausted"
117268         or "virtual memory exhausted".
117269         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
117270         "virtual memory exhausted".
117271         * lib/same.c (same_name): Invoke xalloc_die instead of printing
117272         our own message.
117273         * lib/userspec.c (parse_user_spec): Likewise.
117274         * lib/bumpalloc.h: comment fix
117275         * lib/same.c, userspec.c: Include xalloc.h.
117277         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
117278         not char *const and pointing to a constant array.
117279         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
117280         (xrealloc): Comment fix.
117282         * lib/userspec.c (parse_user_spec):
117283         Don't translate a message until just before returning,
117284         to avoid unnecessary translation.
117286 2000-08-07  Jim Meyering  <meyering@lucent.com>
117288         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
117289         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
117290         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
117291         getgroups.c, gethostname.c, getopt.h, group-member.c,
117292         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
117293         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
117294         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
117295         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
117296         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
117297         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
117298         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
117299         yesno.c: Back out Copyright date changes for each file with no change
117300         this year.  This eases coordination with other programs using the same
117301         source code modules.  From Paul Eggert.
117303 2000-08-06  Paul Eggert  <eggert@twinsun.com>
117305         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
117306         not char, for compatibility with glibc 2.1.3 strftime.c.
117308 2000-08-03  Greg McGary  <greg@mcgary.org>
117310         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
117311         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
117312         (EXTEND_BUFFER): Use them.
117314 2000-08-01  Jim Meyering  <meyering@lucent.com>
117316         * lib/dirname.c (ISSLASH): Define.
117317         (BACKSLASH_IS_PATH_SEPARATOR): Define.
117318         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
117319         both `\' and `/' may be use as path separators.
117320         Based on a patch from Prashant TR.
117322 2000-07-31  Paul Eggert  <eggert@twinsun.com>
117324         * lib/quotearg.c (quotearg_n_options): Don't make the initial
117325         slot vector a constant, since it might get modified.
117327 2000-07-31  Jim Meyering  <meyering@lucent.com>
117329         * lib/xmalloc.c: Use `virtual memory exhausted', not
117330         `Memory exhausted'.
117331         * lib/obstack.c (print_and_abort): Likewise.
117333 2000-07-30  Paul Eggert  <eggert@twinsun.com>
117335         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
117336         buffer, so that the caller can always quote one small
117337         component of a "memory exhausted" message in slot 0.
117338         From a suggestion by Jim Meyering.
117340 2000-07-30  Jim Meyering  <meyering@lucent.com>
117342         * lib/makepath.c (make_path): Quote the other instance, too.
117344         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
117345         (STATIC_BUF_SIZE): Define.
117346         (quotearg_n_options): Use only statically allocated storage when
117347         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
117348         than STATIC_BUF_SIZE.
117350 2000-07-29  Jim Meyering  <meyering@lucent.com>
117352         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
117353         * lib/dirname.c (dir_name): Likewise.
117355         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
117356         `/'.
117358         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
117359         (dir_name): Assert that there are no trailing slashes.
117361 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
117363         * lib/mbswidth.h (mbswidth): Add a flags argument.
117364         (mbswidth): New declaration.
117365         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
117366         * lib/mbswidth.c (mbswidth): Add a flags argument.
117367         (mbsnwidth): New function.
117369 2000-07-24  Jim Meyering  <meyering@lucent.com>
117371         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
117373 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117375         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
117377 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117379         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
117380         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
117381         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
117382         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
117383         invoke multibyte primitives.
117385 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117387         * lib/quotearg.c:
117388         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
117389         so that mbstate_t is always defined.
117391         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
117392         be 1 in at least one GCC installation, and this configuration
117393         error is likely to be common.  Ignoring MB_LEN_MAX hurts
117394         performance on hosts that have mbrtowc but have only unibyte
117395         locales, but I assume these hosts are rare.
117397 2000-07-23  Paul Eggert  <eggert@twinsun.com>
117399         * lib/mbswidth.c (_XOPEN_SOURCE):
117400         Don't define; this causes problems on Solaris 7.
117401         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
117403 2000-07-23  Jim Meyering  <meyering@lucent.com>
117405         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
117406         too: getgrgid, getpwuid, getuid.
117408 2000-07-23  Jim Meyering  <meyering@lucent.com>
117410         * lib/basename.c (base_name): Add an assertion.
117412 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
117414         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
117415         shadow its mbsinit function.
117417 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117419         * lib/mbswidth.h: New file.
117420         * lib/mbswidth.c: New file.
117421         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
117422         (noinst_HEADERS): Add mbswidth.h.
117424 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
117426         * lib/config.charset: Add support for FreeBSD. Improve support for
117427         HP-UX and IRIX 6.
117429 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
117431         * m4/mbswidth.m4: New file.
117432         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
117434 2000-07-15  Jim Meyering  <meyering@lucent.com>
117436         * lib/makepath.c: Include quote.h.
117437         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
117438         corresponding argument in a `quote (...)' call.
117439         Give better diagnostics.
117441         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
117442         (noinst_HEADERS): Add quote.h.
117444         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
117445         from tar's src/misc.c.
117446         * lib/quote.h: New file.  Prototypes for same.
117448 2000-07-14  Paul Eggert  <eggert@twinsun.com>
117450         From a suggestion by Bruno Haible.
117451         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
117452         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
117453         to decide whether to define the BeOS workaround macro;
117454         this adjusts to the change to AC_MBSTATE_T.
117456 2000-07-14  Jim Meyering  <meyering@lucent.com>
117458         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
117459         jm_AC_TYPE_UINTMAX_T.
117461 2000-07-13  Paul Eggert  <eggert@twinsun.com>
117463         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
117465         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
117466         quotearg_buffer_restyled): Add support for
117467         clocale_quoting_style.  Undo previous change to
117468         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
117469         and "{RIGHT QUOTATION MARK}" msgids.
117471 2000-07-10  Paul Eggert  <eggert@twinsun.com>
117473         From a suggestion by Bruno Haible.
117474         * m4/mbstate_t.m4 (AC_MBSTATE_T):
117475         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
117476         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
117477         and mbstate_t, to a single-part test that simply defines mbstate_t.
117478         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
117479         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
117481 2000-07-10  Jim Meyering  <meyering@lucent.com>
117483         * m4/strerror_r.m4: Mirror the correction made in autoconf.
117485         * m4/gnu-source.m4: Output to confdefs.h directly.
117486         Suggestion from Akim Demaille.
117488 2000-07-09  Paul Eggert  <eggert@twinsun.com>
117490         The old behavior of quoting `like this' doesn't look good with
117491         newer, ISO-style fonts.  See:
117492         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
117494         Instead, quote "like this" by default.  Let the translator
117495         tailor the locale-specific quoting behavior by providing
117496         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
117498         * lib/quotearg.c (N_): New macro.
117499         (gettext_default): New function.
117500         (quotearg_buffer_restyled): Use
117501         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
117502         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
117504 2000-07-09  Jim Meyering  <meyering@lucent.com>
117506         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
117507         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
117509         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
117510         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
117512 2000-07-09  Jim Meyering  <meyering@lucent.com>
117514         * lib/Most files: Update copyright dates to include 2000.
117516 2000-07-08  Jim Meyering  <meyering@lucent.com>
117518         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
117519         if not defined.
117520         (xgethostname): Remove now-unnecessary #ifdef.
117521         Move declaration of `err' into loop where it's used.
117523 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117524         and Bruno Haible  <haible@clisp.cons.org>
117526         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
117527         only if the test for an object-type mbstate_t fails.  This
117528         prevents us from mistakenly reporting that mbstate_t is a
117529         system object type after we "#define mbstate_t int" to work
117530         around its lack.
117532 2000-07-05  Paul Eggert  <eggert@twinsun.com>
117533         and Bruno Haible  <haible@clisp.cons.org>
117535         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
117537 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117539         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
117540         to strerror_r.
117541         Include <ctype.h> for use of isalpha.
117543 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117545         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
117546         by allocating a larger buffer. Test the gethostname return value for
117547         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
117548         returns an error and ENAMETOOLONG isn't defined.
117550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
117552         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
117553         dimension.
117555 2000-07-04  Jim Meyering  <meyering@lucent.com>
117557         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
117558         of the deprecated AC_CHECKING.
117560 2000-07-04  Jim Meyering  <meyering@lucent.com>
117562         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
117563         Reported by Bruno Haible.
117565 2000-07-04  Jim Meyering  <meyering@lucent.com>
117567         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
117568         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
117569         lacks mbrtowc.
117571 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117573         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
117574         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
117576 2000-07-03  Paul Eggert  <eggert@twinsun.com>
117577         and Bruno Haible  <haible@clisp.cons.org>
117579         * lib/quotearg.c (mbrtowc):
117580         Assign to *pwc, and return 1 only if result is nonzero.
117581         (iswprint): Use ISPRINT when substituting our own mbrtowc.
117583 2000-07-03  Jim Meyering  <meyering@lucent.com>
117585         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
117587 2000-07-03  Jim Meyering  <meyering@lucent.com>
117589         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
117590         This is necessary to get a definition of e.g., UTMP_FILE on
117591         HP-UX 10.20.
117592         From Bob Proulx.
117594 2000-07-02  Jim Meyering  <meyering@lucent.com>
117596         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
117598         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
117599         AC_LIBOBJ(function_name).
117600         * m4/chown.m4: Likewise.
117601         * m4/fnmatch.m4: Likewise.
117602         * m4/ftruncate.m4: Likewise.
117603         * m4/getgroups.m4: Likewise.
117604         * m4/getline.m4: Likewise.
117605         * m4/group-member.m4: Likewise.
117606         * m4/jm-macros.m4: Likewise.
117607         * m4/lstat.m4: Likewise.
117608         * m4/malloc.m4: Likewise.
117609         * m4/memcmp.m4: Likewise.
117610         * m4/nanosleep.m4: Likewise.
117611         * m4/putenv.m4: Likewise.
117612         * m4/realloc.m4: Likewise.
117613         * m4/regex.m4: Likewise.
117614         * m4/stat.m4: Likewise.
117615         * m4/strftime.m4: Likewise.
117617 2000-07-02  Jim Meyering  <meyering@lucent.com>
117619         * lib/quotearg.c (mbstate_t): Don't define here.
117621 2000-07-02  Jim Meyering  <meyering@lucent.com>
117623         * lib/nanosleep.c (SIGCONT): Define if not already defined.
117625 2000-07-01  Jim Meyering  <meyering@lucent.com>
117627         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
117629 2000-07-01  Jim Meyering  <meyering@lucent.com>
117631         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
117632         problem.
117634 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117636         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
117637         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
117639 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
117641         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
117642         per change in ../m4/ls-mntd-fs.m4.
117643         (read_filesystem_list): Ignore symbolic links.
117645 2000-06-29  Jim Meyering  <meyering@lucent.com>
117647         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
117648         for declaration of strcmp.
117650         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
117652         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
117653         Avoid warning by casting result to `char *' to remove `const'.
117655 2000-06-28  Jim Meyering  <meyering@lucent.com>
117657         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
117658         included by quotearg.c, for which we perform this test.  From
117659         Bruno Haible.
117661 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117663         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
117664         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
117665         <utmpx.h> exists, put readutmp.o into LIBOBJS.
117667 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
117669         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
117671 2000-06-26  Paul Eggert  <eggert@twinsun.com>
117673         savedir now sets errno on failure and invokes xmalloc to get memory.
117674         Fix a couple of other minor bugs while we're at it.
117676         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
117677         (NAMLEN): Remove macro.
117678         (malloc, realloc): Remove decls.
117679         (stpcpy): Likewise.
117680         ("xalloc.h"): Include.
117681         (NAME_SIZE_DEFAULT): New macro.
117682         (savedir): Use xmalloc / xrealloc to allocate memory.
117683         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
117684         Skip "" directory entries.
117685         Use strlen to calculate directory entry length, since the old method
117686         is rarely used these days and isn't worth supporting.
117687         Don't use a pointer after freeing it.
117688         Check for integer overflow when calculating allocation size.
117689         Use memcpy to copy entries, instead of stpcpy.
117690         Set errno properly when returning NULL.
117691         Check for readdir error.
117693 2000-06-26  Jim Meyering  <meyering@lucent.com>
117695         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
117697 2000-06-25  Jim Meyering  <meyering@lucent.com>
117699         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
117700         Linux header bug when _XOPEN_SOURCE is defined to 500.
117702 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117704         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
117705         deficiency.
117707 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
117709         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
117710         Include xalloc.h.
117711         Don't include <stdlib.h>.  Don't declare malloc, realloc.
117713 2000-06-24  Jim Meyering  <meyering@lucent.com>
117715         * m4/strerror_r.m4: Revive this file -- to try out an experimental
117716         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
117717         for which strerror does return char*, but which lacks a conveniently
117718         accessible declaration of the function.  If the compile-test says
117719         strerror_r doesn't work, then resort to a `run'-test that works on
117720         BeOS and segfaults on DEC Unix.
117722 2000-06-24  Jim Meyering  <meyering@lucent.com>
117724         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
117726 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117728         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
117729         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
117731 2000-06-23  Paul Eggert  <eggert@twinsun.com>
117733         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
117734         (mbrtowc, mbstate_t): Define substitutes if
117735         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
117736         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
117737         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
117739 2000-06-23  Jim Meyering  <meyering@lucent.com>
117741         * m4/afs.m4: Add missing AC_MSG_RESULT.
117742         Reported by Bruno Haible.
117744         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
117745         Suggestion from Bruno Haible.
117747 2000-06-23  Jim Meyering  <meyering@lucent.com>
117749         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
117751 2000-06-21  Jim Meyering  <meyering@lucent.com>
117753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
117755 2000-06-21  Jim Meyering  <meyering@lucent.com>
117757         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
117758         (noinst_HEADERS): Add getstr.h.
117760         * lib/getline.c (getstr): Move into a separate file.
117761         * lib/getstr.c (getstr): New file, extracted from getline.c, with
117762         the following changes: new parameter, delim2; both delim[12]
117763         parameters have type `int', not `char'.  The latter would lose
117764         with 8-bit delimiters.
117765         * lib/getstr.h: New file.
117767 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117769         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
117770         than 1024, return a memory chunk of least possible size, instead
117771         of size PATH_MAX + 2. In the loop, increment the size proportionally.
117772         Use free/xmalloc instead of xrealloc to avoid copying for very long
117773         paths.
117775 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117777         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
117778         the empty string.
117780 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
117782         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
117783         address, not strdup.  Include <stdlib.h> and don't declare free().
117785 2000-06-19  Jim Meyering  <meyering@lucent.com>
117787         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
117789 2000-06-18  Jim Meyering  <meyering@lucent.com>
117791         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
117793         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
117794         `checking whether...' message to be consistent with that of the
117795         lstat test.
117797 2000-06-18  Jim Meyering  <meyering@lucent.com>
117799         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
117800         Besides, these days every porting target provides a mkdir function.
117802         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
117803         needed. (this snippet comes from src/system.h).
117805 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
117807         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
117809 2000-06-15  Paul Eggert  <eggert@twinsun.com>
117811         * lib/human.c (adjust_value): New function.
117812         (human_readable_inexact): Apply rounding style even when
117813         printing approximate values.
117815 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117817         * lib/human.c (human_readable_inexact): Allow an input block
117818         size that is not a multiple of the output block size, and vice versa.
117819         Reported by Piergiorgio Sartor.
117821 2000-06-14  Paul Eggert  <eggert@twinsun.com>
117823         * lib/getdate.y (get_date): Apply relative times after time
117824         zone indicator, not before.  Reported by Todd A. Jacobs.
117826 2000-06-13  Jim Meyering  <meyering@lucent.com>
117828         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
117830         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
117832 2000-06-12  Paul Eggert  <eggert@twinsun.com>
117834         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
117836 2000-06-12  Jim Meyering  <meyering@lucent.com>
117838         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
117839         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
117840         optional argument.
117841         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
117842         the optional argument, `lib'.
117844 2000-06-08  Jim Meyering  <meyering@lucent.com>
117846         * m4/largefile.m4: Remove file (now that it's part of autoconf).
117848 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117850         Rewrite largefile configuration so that we don't need to run
117851         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
117852         AC_CANONICAL_HOST in configure.in -- jmm]
117854         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
117855         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
117856         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
117857         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
117858         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
117859         All uses changed.
117860         Instead of inspecting the output of getconf, try to compile the
117861         test program without and with the macro definition.
117862         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
117863         for getconf.  Instead, check for the needed flags by compiling
117864         test programs.
117866 2000-06-04  Paul Eggert  <eggert@twinsun.com>
117868         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
117870 2000-06-04  Jim Meyering  <meyering@lucent.com>
117872         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
117873         SunOS 4.1.4 for which gid_t is an unsigned type.
117875 2000-06-03  Jim Meyering  <meyering@lucent.com>
117877         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
117878         now that autoconf requires that.
117880         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
117881         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
117882         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
117884 2000-06-03  Jim Meyering  <meyering@lucent.com>
117886         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
117888 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117890         * m4/glibc21.m4: New file.
117891         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
117893 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
117895         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
117896         newer, don't install charset.alias.
117897         * lib/config.charset: Change the Linux/glibc rules so they become empty
117898         on glibc-2.1 or newer.
117900 2000-06-02  Jim Meyering  <meyering@lucent.com>
117902         * lib/mountlist.c: Back out last change.  Instead, do this...
117903         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
117904         me_dummy member using the same `ignore'-testing code.
117905         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
117906         fs_type strings.
117907         From Mark D. Roth.
117909 2000-05-29  Jim Meyering  <meyering@lucent.com>
117911         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
117912         mounts with the `ignore' attribute.  Based on a patch from
117913         Mark D. Roth.
117915 2000-05-28  Jim Meyering  <meyering@lucent.com>
117917         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
117918         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117919         * m4/stat.m4: Likewise.
117920         * m4/lstat.m4: Likewise.
117921         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
117923         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
117924         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
117926 2000-05-26  Jim Meyering  <meyering@lucent.com>
117928         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
117930 2000-05-24  Jim Meyering  <meyering@lucent.com>
117932         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
117933         autoconf requires that.
117934         * m4/lib-check.m4: Likewise.
117935         * m4/jm-macros.m4: Likewise.
117936         * m4/strftime.m4: Likewise.
117938         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
117939         AC_CHECK_DECLS, now that autoconf requires that.
117941 2000-05-22  Jim Meyering  <meyering@lucent.com>
117943         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
117944         * m4/lstat.m4: Likewise.
117946 2000-05-22  Jim Meyering  <meyering@lucent.com>
117948         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
117950 2000-05-20  Jim Meyering  <meyering@lucent.com>
117952         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
117953         (jm_PREREQ): Use it.
117955 2000-05-18  Jim Meyering  <meyering@lucent.com>
117957         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
117958         back, too, since it may have been modified by allocate_entry.
117959         (hash_delete): Rewrite to use neither the assignment operator
117960         nor the comma operator in an if-expression.
117962 2000-05-15  Paul Eggert  <eggert@twinsun.com>
117964         * lib/closeout.c:
117965         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
117966         Remove; no longer needed.
117967         "quotearg.h": Add include.
117968         (file_name): Do not bother to explicitly initialize to NULL; it's less
117969         efficient on some hosts.
117970         (close_stdout_status): Remove test as to whether stdout was already
117971         closed; it breaks for the case "echo x | sort >&-".
117972         Quote file name colons.
117973         Do not assume that _("write error") lacks format strings.
117975 2000-05-15  Jim Meyering  <meyering@lucent.com>
117977         * lib/version-etc.c (version_etc_copyright): Update the copyright
117978         string used in all --version output.
117980 2000-05-14  Jim Meyering  <meyering@lucent.com>
117982         * lib/closeout.c (close_stdout_set_file_name): New function.
117983         (close_stdout_status): Use new file-scoped global.
117984         Return right away if fstat says the stdout file descriptor is invalid.
117985         * lib/closeout.h (close_stdout_set_file_name): Declare.
117987 2000-05-10  Jim Meyering  <meyering@lucent.com>
117989         * lib/closeout.c [default_exit_status]: New file-scoped variable.
117990         (close_stdout_set_status): New function.
117991         * lib/closeout.h (close_stdout_set_status): Declare.
117993 2000-05-09  Jim Meyering  <meyering@lucent.com>
117995         * m4/gettext.m4: Rename this...
117996         * m4/libintl.m4: ...to this.
117998 2000-05-08  Jim Meyering  <meyering@lucent.com>
118000         * lib/long-options.c: Don't include closeout.h.
118001         (parse_long_options): Don't call close_stdout for --version.
118003 2000-05-06  Paul Eggert  <eggert@twinsun.com>
118005         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
118006         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
118007         2.1.3 bug.  This avoids a clash when files like regex.c define
118008         _GNU_SOURCE.
118010 2000-05-06  Jim Meyering  <meyering@lucent.com>
118012         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
118013         (AC_REPLACE_FUNCS): Add strnlen.
118015         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
118016         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
118018         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
118019         AC_SEARCH_LIBS call for nanosleep.
118020         (LIB_NANOSLEEP): Set and AC_SUBST.
118022 2000-05-06  Jim Meyering  <meyering@lucent.com>
118024         * lib/strnlen.c: Undefine __strnlen and strnlen.
118025         [!weak_alias]: Define __strnlen to strnlen.
118027         * lib/atexit.c: New file, from libiberty.
118029 2000-05-06  Jim Meyering  <meyering@lucent.com>
118031         * lib/closeout.c (close_stdout_status): Also check for errors on the
118032         stderr stream.
118034 2000-05-05  Jim Meyering  <meyering@lucent.com>
118036         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
118037         AC_SEARCH_LIBS call for clock_gettime.
118038         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
118040         * m4/search-libs.m4: Update from autoconf.
118042         su doesn't work on Solaris 2.6.
118043         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
118044         <shadow.h>.  Reported by Dragos Harabor.
118046 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
118048         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
118049         memcpy instead of xmalloc, xrealloc, path_concat.
118050         (locale_charset): Treat empty environment variables as absent.
118051         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
118053 2000-05-04  Jim Meyering  <meyering@lucent.com>
118055         * lib/getopt.c: Update from glibc.
118056         * lib/obstack.c: Likewise.
118057         * lib/obstack.h: Likewise.
118058         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
118059         file
118061         * lib/regex.h: Likewise.
118062         * lib/strndup.c: Likewise.
118063         * lib/strnlen.c: New file, from glibc.
118065 2000-05-03  Jim Meyering  <meyering@lucent.com>
118067         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
118069 2000-05-02  Paul Eggert  <eggert@twinsun.com>
118071         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
118072         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
118073         compile-time test, rather than inspecting host and OS, to
118074         decide whether to define _LARGEFILE_SOURCE.
118076 2000-05-01  Jim Meyering  <meyering@lucent.com>
118078         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
118080         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
118081         Based on a patch from Bruno Haible.
118083 2000-05-01  Jim Meyering  <meyering@lucent.com>
118085         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
118087 2000-04-29  Jim Meyering  <meyering@lucent.com>
118089         * lib/path-concat.c: Declare strdup only if it's not defined.
118090         * lib/canon-host.c: Likewise.
118092 2000-04-28  Jim Meyering  <meyering@lucent.com>
118094         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
118095         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
118096         is included first, then limits.h is included by locale.h by libintl.h.
118097         From John David Anglin.
118099 2000-04-25  Jim Meyering  <meyering@lucent.com>
118101         * lib/makepath.c (S_IRWXUGO): Define.
118102         (make_path): Always perform explicit chmod if MODE specifies any
118103         of the `special' permission bits.  Prompted by a bug report against
118104         install from Mate Wierdl and Joost van Baal.
118106 2000-04-18  Jim Meyering  <meyering@lucent.com>
118108         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
118109         (jm_PREREQ): Use it.
118111 2000-04-18  Jim Meyering  <meyering@lucent.com>
118113         * lib/README: New file.
118115         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
118116         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
118118 2000-04-17  Jim Meyering  <meyering@lucent.com>
118120         Get it right :-)
118121         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
118122         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
118123         Suggestion from Akim Demaille.
118125 2000-04-17  Jim Meyering  <meyering@lucent.com>
118127         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
118128         the definition of it to rpl_strftime also defined-away the system's
118129         declaration.
118131 2000-04-15  Jim Meyering  <meyering@lucent.com>
118133         Use `C' to denote so-called `contiguous' files, the same way
118134         that tar does.
118135         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
118136         (ftypelet): Use S_ISCTG.
118137         From Michael Deutschmann.
118139 2000-04-14  Jim Meyering  <meyering@lucent.com>
118141         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
118142         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
118143         clobbered.
118145 2000-04-14  Jim Meyering  <meyering@lucent.com>
118147         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
118149 2000-04-13  Jim Meyering  <meyering@lucent.com>
118151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
118152         AH_VERBATIM to insert required #ifndef into config.h.in.
118153         Suggestion from Akim Demaille.
118155 2000-04-12  Jim Meyering  <meyering@lucent.com>
118157         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
118158         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
118159         Christian Krackowizer.
118161         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
118162         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
118163         (AC_SYS_LARGEFILE): Require.
118164         (AM_C_PROTOTYPES): Require.
118166 2000-04-08  Jim Meyering  <meyering@lucent.com>
118168         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
118169         names don't conflict.  Reported by Eli Zaretskii.
118171 2000-04-07  Jim Meyering  <meyering@lucent.com>
118173         * lib/putenv.c: Move inclusion of errno.h so it follows that of
118174         sys/types.h, to work around system header problems on AIX 3.2.5.
118175         From Bruno Haible.
118177 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
118179         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
118180         bug.  Deal with the different error behavior of Irix iconv.
118182 2000-04-05  Paul Eggert  <eggert@twinsun.com>
118184         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
118185         IRIX if the installer said otherwise.
118187 2000-04-05  Jim Meyering  <meyering@lucent.com>
118189         Portability tweaks required for ultrix4.3.
118190         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
118191         (jm_CHECK_DECLS): Add getutent to the list of functions.
118192         (_jm_DECL_HEADERS): Add utmpx.h.
118193         From John David Anglin.
118195         * m4/strftime.m4: Back out the 2000-04-02 change.
118196         Instead of that change, simply undefine putenv in the test program.
118198 2000-04-05  Jim Meyering  <meyering@lucent.com>
118200         Portability tweaks required for ultrix4.3.
118201         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
118202         getutent.
118203         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
118204         * lib/canon-host.c: Declare strdup.
118205         * lib/path-concat.c: Likewise.
118206         From John David Anglin.
118208 2000-04-04  Jim Meyering  <meyering@lucent.com>
118210         Be more DOS 8.3-friendly.
118211         * lib/ref-add.sin: Renamed from ref-add.sed.in.
118212         * lib/ref-del.sin: Renamed from ref-del.sed.in.
118213         * lib/Makefile.am: Reflect renaming.
118214         Reported by Eli Zaretskii.
118216         Use a temporary file name that won't clash with `charset.alias'
118217         in the DOS 8.3 name space.
118218         * lib/Makefile.am (charset_tmp): Define.
118219         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
118220         (uninstall-local): Likewise.
118221         Reported by Eli Zaretskii.
118223 2000-04-03  Jim Meyering  <meyering@lucent.com>
118225         * m4/gettext.m4: Fix typo in comment.
118227         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
118228         textutils/configure.in).  Suggestion from Paul Eggert.
118229         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
118231 2000-04-02  Paul Eggert  <eggert@twinsun.com>
118233         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
118234         variable in the shell rather than using putenv, which isn't
118235         portable.  This avoids the configure-time inter-test dependency
118236         on the potentially-renamed putenv function.
118238 2000-03-30  Paul Eggert  <eggert@twinsun.com>
118240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
118241         before checking struct stat.st_blksize, so that
118242         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
118244 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118246         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
118247         since strftime.c uses HAVE_STRFTIME to decide whether to use
118248         the underlying strftime.
118250 2000-03-29  Paul Eggert  <eggert@twinsun.com>
118252         * lib/time/strftime.c (my_strftime): Make sure we call the system
118253         strftime, not ourselves, when invoking the underlying strftime.
118255 2000-03-24  Jim Meyering  <meyering@lucent.com>
118257         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
118258         (charset_alias): Define.
118259         (install-exec-local): Factor out common code.
118260         (uninstall-local): Split lines longer than 80.
118261         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
118262         (SUFFIXES): Define.
118263         (.sed.in.sed): New rule.  Don't redirect directly to $@.
118264         (CLEANFILES): Add ref-add.sed and ref-del.sed.
118266 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
118268         * lib/config.charset: Output a line containing "Packages using this
118269         file".
118270         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
118271         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
118272         ref-del.sed): New rules.
118274 2000-03-17  Jim Meyering  <meyering@lucent.com>
118276         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
118277         Otherwise, include <strings.h>
118279 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
118281         * lib/unicodeio.c (utf8_wctomb): New function.
118282         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
118283         format instead of in UCS-4 with platform dependent endianness.
118285 2000-03-10  Jim Meyering  <meyering@lucent.com>
118287         * m4/lib-check.m4: Look for getspnam in -lgen, too.
118288         From Marco Franzen.
118290 2000-03-07  Paul Eggert  <eggert@twinsun.com>
118292         * lib/savedir.c (savedir): Work even if directory size is
118293         negative; this can happen with some screwy NFS configurations.
118295 2000-03-06  Jim Meyering  <meyering@lucent.com>
118297         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
118298         if it's NULL (because we ran out of memory).  From Bruno Haible.
118300 2000-03-05  Jim Meyering  <meyering@lucent.com>
118302         * lib/localcharset.c ("path-concat.h"): Include.
118303         (get_charset_aliases): Use path_concat instead of ANSI string
118304         concatenation.
118306         * lib/unicodeio.h (PARAMS): Define.
118307         Use it to guard prototype.
118309 2000-03-04  Jim Meyering  <meyering@lucent.com>
118311         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
118312         for lib/localcharset.c.
118314 2000-03-04  Jim Meyering  <meyering@lucent.com>
118316         * lib/Makefile.am (install-exec-local): Create $(libdir) before
118317         installing into it.
118318         (uninstall-local): Uncomment this rule so `make distcheck' works
118319         once again.
118321         * lib/unicodeio.c (<errno.h>): Include it.
118322         (errno): Declare if not defined.
118324         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
118326         * lib/config.charset: New version, incorporating remarks from a linux
118327         i18n mailing list.  From Bruno Haible.
118329 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
118331         * m4/codeset.m4: New file.
118332         * m4/iconv.m4: New file.
118333         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
118335 2000-03-03  Jim Meyering  <meyering@lucent.com>
118337         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
118339 2000-03-02  Jim Meyering  <meyering@lucent.com>
118341         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
118342         the messages come out on separate lines.
118344         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
118345         rather than jm_CHECK_DECLARATIONS.
118346         * m4/decl.m4: Remove now-unused file.
118348         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
118349         geteuid.
118351 2000-03-02  Jim Meyering  <meyering@lucent.com>
118353         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
118355 2000-03-01  Jim Meyering  <meyering@lucent.com>
118357         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
118358         * lib/unicodeio.c: Likewise.
118360 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
118362         * lib/config.charset: New file.
118363         * lib/localcharset.c: New file.
118364         * lib/unicodeio.h, lib/unicodeio.c: New files.
118365         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
118366         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
118367         (noinst_HEADERS): Add unicodeio.h.
118368         (all-local, install-exec-local, charset.alias): New targets.
118370 2000-02-28  Paul Eggert  <eggert@twinsun.com>
118372         * lib/quotearg.c (ALERT_CHAR): New macro.
118373         (quotearg_buffer_restyled): Use it.
118375 2000-02-27  Jim Meyering  <meyering@lucent.com>
118377         * m4/check-decl.m4: Add getenv to the list.
118379 2000-02-27  Jim Meyering  <meyering@lucent.com>
118381         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
118382         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
118384         * lib/backupfile.c: Guard inclusion of stdlib.h with
118385         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
118386         Declare malloc if needed.
118388         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
118389         `#ifndef HAVE_DECL..'
118390         now that autoconf always defines the HAVE_DECL_ symbols.
118391         * lib/human.c: Likewise.
118392         * lib/same.c: Likewise.
118393         * lib/strtoumax.c: Likewise.
118395         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
118396         declaration check was not run.
118397         * lib/hash.c: Likewise.
118398         * lib/human.c: Likewise.
118399         * lib/same.c: Likewise.
118400         * lib/strtoumax.c: Likewise.
118402         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
118403         `.', then first look up the entire `.'-containing string as a login
118404         name.
118406 2000-02-23  Jim Meyering  <meyering@lucent.com>
118408         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
118409         in place of my hack.
118411 2000-02-18  Paul Eggert  <eggert@twinsun.com>
118413         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
118414         (textint): New typedef.
118415         (parser_control): Member year changed from int to textint.
118416         All uses changed.
118417         (YYSTYPE): Removed; replaced by %union with int and textint members.
118418         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
118419         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
118420         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
118421         (tSNUMBER, tUNUMBER): Now of type <textintval>.
118422         (date, number, to_year): Use width of number in digits, not its value,
118423         to determine whether it's a 2-digit year, or a 2-digit time.
118424         (yylex): Store number of digits of numeric tokens.
118425         Reported by John Kendall.
118427         (parser_control): Changed from struct parser_control to typedef (for
118428         consistency).  All uses changed.
118430         (tID): Removed; not used.
118431         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
118433 2000-02-14  Paul Eggert  <eggert@twinsun.com>
118435         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
118436         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
118438 2000-02-12  Jim Meyering  <meyering@lucent.com>
118440         * lib/userspec.c (ISDIGIT): Define it.
118441         (isdigit): Remove definition.
118442         (is_number): Use ISDIGIT, not isdigit.
118443         <libintl.h>: Include.
118444         (_ and N_): Define.
118445         (parse_user_spec): Mark translatable strings.
118447 2000-02-10  Jim Meyering  <meyering@lucent.com>
118449         With these changes, nanosleep.[ch] are finally enough like the other
118450         lib/* replacement files to compile on a few more losing systems.
118452         * lib/nanosleep.h: Don't include config.h.
118453         Remove prototype from declaration of nanosleep.
118454         (PARAMS): Remove now-unneeded definition.
118455         * lib/nanosleep.c: #undef nanosleep.
118456         (rpl_nanosleep): Rename from nanosleep.
118458 2000-02-10  Jim Meyering  <meyering@lucent.com>
118460         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
118461         gnu_nanosleep to rpl_nanosleep.
118463 2000-02-09  Jim Meyering  <meyering@lucent.com>
118465         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
118466         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
118468 2000-02-08  Akim Demaille  <akim@epita.fr>
118470         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
118471         `[' and `]' and remove uses of `changequote'.
118472         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
118473         (AC_SYS_LARGEFILE): Likewise.
118474         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
118475         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
118476         of changequote.
118477         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
118478         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
118479         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
118480         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
118482 2000-02-05  Jim Meyering  <meyering@lucent.com>
118484         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
118485         Remove explicit use of AC_HEADER_TIME.  It is required by
118486         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
118487         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
118488         in autoconf whereby the expansion of the latter ended up preceding
118489         the expansion of its prerequisite, AC_HEADER_TIME.
118490         Reported by Volker Borchert.
118492 2000-02-03  Jim Meyering  <meyering@lucent.com>
118494         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
118496 2000-02-03  Jim Meyering  <meyering@lucent.com>
118498         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
118499         rather than with `#if HAVE_UTMPNAME'.
118501 2000-02-02  Jim Meyering  <meyering@lucent.com>
118503         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
118504         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
118505         Reported by Eli Zaretskii.
118507 2000-02-01  Jim Meyering  <meyering@lucent.com>
118509         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
118511 2000-01-31  Jim Meyering  <meyering@lucent.com>
118513         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
118514         functions.  Add the time.h and sys/time.h headers along with the
118515         AC_REQUIRE'ment of AC_HEADER_TIME.
118517 2000-01-31  Jim Meyering  <meyering@lucent.com>
118519         * lib/nanosleep.h (nanosleep): Guard declaration with
118520         `#if ! HAVE_DECL_NANOSLEEP'.
118521         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
118522         the declaration in that vendor's sys/timers.h.
118523         Reported by Christian Krackowizer.
118525         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
118526         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
118527         (ISPRINT): Likewise.
118528         Reported by Tom Tromey.
118530 2000-01-30  Jim Meyering  <meyering@lucent.com>
118532         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
118534         * m4/prereq.m4 (utmp_includes): Define.
118535         Check for ut_user and ut_name members in both struct utmpx
118536         and struct utmp.
118538 2000-01-30  Jim Meyering  <meyering@lucent.com>
118540         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
118541         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
118542         header files where only utmpx.ut_user is declared.
118544         * lib/readutmp.h (UT_USER): Define.
118546 2000-01-29  Jim Meyering  <meyering@lucent.com>
118548         * m4/lib-check.m4: New file containing library-related checks from
118549         fileutils and sh-utils (textutils had none).
118551 2000-01-28  Jim Meyering  <meyering@lucent.com>
118553         * m4/perl.m4: Change format of warning message to look more like that
118554         from the missing script.  Suggestion from François Pinard.
118556 2000-01-25  Jim Meyering  <meyering@lucent.com>
118558         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
118559         well as time.h in the compile check.
118560         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
118561         Fix typo in cross-compiling case: s/yes/no/.
118563 2000-01-23  Jim Meyering  <meyering@lucent.com>
118565         * m4/jm-macros.m4: Move df-related tests here from
118566         fileutils/configure.in
118568         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
118569         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
118571         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
118572         s/space/ac_fsusage_space/.
118573         (jm_FILE_SYSTEM_USAGE): Take two parameters.
118575         * m4/ftruncate.m4: New file (derived from part of
118576         fileutils/configure.in).
118577         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
118578         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
118580         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
118581         AC_SUBST these here, rather than just in sh-util/configure.in, so
118582         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
118583         all the same.
118584         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
118585         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
118586         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
118587         (AC_SUBST(POW_LIBM)): Likewise.
118588         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
118590 2000-01-23  Jim Meyering  <meyering@lucent.com>
118592         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
118593         obstack.c.
118595 2000-01-22  Jim Meyering  <meyering@lucent.com>
118597         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
118599         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
118601         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
118602         configure.in
118603         (AC_CHECK_HEADERS): Likewise for sh-utils.
118604         (AC_CHECK_HEADERS): Likewise for textutils.
118605         Merge the three lists of headers.
118607         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
118608         from fileutils' configure.in.
118610         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
118611         code. Moved tests into their own function (_jm_DECL_HEADERS) in
118612         check-decl.m4.
118614         * m4/check-decl.m4: Use #if rather than #ifdef.
118615         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
118616         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
118617         (_jm_DECL_HEADERS): Define new function.
118618         (jm_CHECK_DECLARATIONS): Require it.
118620 2000-01-22  Jim Meyering  <meyering@lucent.com>
118622         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
118623         [! HAVE_DECL_STRTOULL]: Declare strtoull.
118624         Required for some AIX systems.  Reported by Christian Krackowizer.
118625         [TESTING] (main): New function.
118627         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
118628         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
118629         letters.
118631         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
118632         iswprint.
118634         * lib/strverscmp.c (ISDIGIT): Define.
118635         (strverscmp): Use ISDIGIT, not isdigit.
118637 2000-01-19  Jim Meyering  <meyering@lucent.com>
118639         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
118640         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
118641         defines `struct timespec' in <sys/time.h>
118643         * m4/c-bs-a.m4: Remove uses of changequote altogether.
118644         Thanks to Akim for explaining.
118646 2000-01-17  Paul Eggert  <eggert@twinsun.com>
118648         * lib/nanosleep.c (nanosleep):
118649         Don't use SA_INTERRUPT to decide whether to call sigaction, as
118650         POSIX.1 doesn't require SA_INTERRUPT and some systems
118651         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
118652         it's been part of POSIX.1 since day 1 (in 1988).
118654 2000-01-17  Jim Meyering  <meyering@lucent.com>
118656         * lib/interlock: Remove unused file.  Reported by François Pinard.
118658 2000-01-16  Paul Eggert  <eggert@twinsun.com>
118660         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
118661         alert, backslash, formfeed, and vertical tab unnecessarily in
118662         shell quoting style.
118664 2000-01-16  Jim Meyering  <meyering@lucent.com>
118666         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
118667         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
118668         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
118669         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
118671 2000-01-16  Jim Meyering  <meyering@lucent.com>
118673         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
118674         because the latter didn't work.
118676 2000-01-15  Jim Meyering  <meyering@lucent.com>
118678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
118679         (AC_REPLACE_FUNCS): Add memcpy and memset.
118680         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
118681         Add strpbrk.
118682         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
118684 2000-01-12  Jim Meyering  <meyering@lucent.com>
118686         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
118687         (jm_PREREQ): Use it.
118688         (jm_PREREQ_READUTMP): New macro.
118689         (jm_PREREQ): Use it.
118691 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118693         Quote multibyte characters correctly.
118694         * m4/c-bs-a.m4: New file.
118695         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
118696         (jm_PREREQ): Use it.
118698 2000-01-11  Paul Eggert  <eggert@twinsun.com>
118700         * m4/uintmax_t.m4: Port to autoconf 2.13.
118702 2000-01-08  Jim Meyering  <meyering@ascend.com>
118704         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
118705         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
118707 2000-01-04  Jim Meyering  <meyering@ascend.com>
118709         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
118710         jm_STRUCT_DIRENT_D_TYPE.
118711         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
118712         jm_STRUCT_DIRENT_D_INO.
118713         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
118714         jm_STRUCT_UTIMBUF.
118715         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
118716         renamings.
118717         * m4/utime.m4: Likewise.
118719         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
118720         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
118722 2000-01-03  Paul Eggert  <eggert@twinsun.com>
118724         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
118725         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
118727 2000-01-02  Jim Meyering  <meyering@ascend.com>
118729         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
118730         remember if this is necessary.
118732 1999-12-26  Jim Meyering  <meyering@ascend.com>
118734         * m4/jm-macros.m4: Use it here.
118735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
118737 1999-12-23  Jim Meyering  <meyering@ascend.com>
118739         * m4/jm-macros.m4: Check for clock_gettime (moved from
118740         fileutils/configure.in)
118741         Check for gettimeofday.
118743 1999-12-20  Jim Meyering  <meyering@ascend.com>
118745         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
118746         autoconf-2.14a-1999-12-20.
118748 1999-12-19  Jim Meyering  <meyering@ascend.com>
118750         * m4/lstat-slash.m4: New file.
118751         * m4/jm-macros.m4: Use the new macro:
118752         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
118754 1999-12-07  Jim Meyering  <meyering@ascend.com>
118756         * m4/perl.m4: Require that File::Compare be available, too.
118757         Too many systems seem to lack it.
118759         * m4/strftime.m4: Add checks for most of the cpp macros tested in
118760         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
118762 1999-11-18  Paul Eggert  <eggert@twinsun.com>
118764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
118765         problem with the QNX 4.25 shell, which doesn't propagate exit
118766         status of failed commands inside shell assignments.
118768 1999-11-17  Jim Meyering  <meyering@ascend.com>
118770         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
118772 1999-11-07  Jim Meyering  <meyering@ascend.com>
118774         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
118776 1999-11-06  Jim Meyering  <meyering@ascend.com>
118778         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
118779         * m4/jm-macros.m4 (jm_MACROS): Use it here.
118781 1999-11-05  Jim Meyering  <meyering@ascend.com>
118783         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
118784         configure.in of textutils, fileutils, and sh-utils into this one
118785         (shared between those packages) file.
118786         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
118787         AC_STRUCT_ST_BLKSIZE.
118789 1999-11-03  Jim Meyering  <meyering@ascend.com>
118791         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
118792         of AC_CHECK_TYPE checks includes unistd.h.
118793         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
118794         Suggestion from Akim Demaille.
118796 1999-10-30  Jim Meyering  <meyering@ascend.com>
118798         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
118799         m4-quoted string.
118800         * m4/ls-mntd-fs.m4: Likewise.
118801         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
118802         * m4/jm-winsz1.m4: Likewise.
118804         * m4/const.m4: Remove file, since the fix made it into the experimental
118805         version of autoconf.
118806         * m4/mktime.m4: Likewise.
118808         * m4/check-type.m4: Remove file, now that the latest version of
118809         AC_CHECK_TYPE takes a third arg to specify additional #includes.
118811         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
118812         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
118813         AC_CHECK_TYPE.
118815 1999-10-04  Jim Meyering  <meyering@ascend.com>
118817         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
118819 1999-09-22  Paul Eggert  <eggert@twinsun.com>
118821         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
118822         2.95.1 bug with HP-UX 10.20.
118824 1999-09-17  Jim Meyering  <meyering@ascend.com>
118826         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
118827         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
118828         due to missing strdup (against sh-utils-2.0).
118830 1999-08-29  Jim Meyering  <meyering@ascend.com>
118832         * m4/jm-macros.m4: Require jm_BISON.
118833         * m4/bison.m4: New file.
118835 1999-08-17  Paul Eggert  <eggert@twinsun.com>
118837         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
118838         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
118840 1999-08-05  Jim Meyering  <meyering@ascend.com>
118842         * m4/getline.m4: Rename test file from conftestdata to conftest.data
118843         to avoid conflicts with `conftest' on 8+3 filesystems.
118844         Suggestion from Eli Zaretskii.
118846 1999-08-04  Jim Meyering  <meyering@ascend.com>
118848         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
118849         fileutils and sh-utils (textutils's getline test was inadequate).
118850         (AM_FUNC_GETLINE): Run this test.
118851         (AC_CHECK_FUNCS): Check for getdelim.
118852         Reported by Bob Proulx.
118854 1999-08-02  Jim Meyering  <meyering@ascend.com>
118856         * m4/jm-macros.m4: Add a comment.
118858 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
118861         <inttypes.h> defines strtoumax as a macro (and not as a
118862         function).
118864 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118866         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
118867         that we can shift, multiply and divide unsigned long long
118868         values; Ultrix cc can't do it.
118870 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118872         * m4/mktime.m4: New file, which is a preview of what should appear
118873         in the next public autoconf release.
118875 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118877         * m4/lfs.m4: Remove this file.
118878         * m4/largefile.m4: New file.  It contains the old contents of
118879         lfs.m4, except that all names with prefix AC_LFS have been
118880         changed to use the prefix AC_SYS_LARGEFILE instead, to be
118881         compatible with future autoconf versions.  Also, some minor m4
118882         quoting problems have been fixed.
118884 1999-08-01  Paul Eggert  <eggert@twinsun.com>
118886         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
118887         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
118888         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
118889         and simplify the shell code.
118891 1999-08-01  Jim Meyering  <meyering@ascend.com>
118893         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
118894         m4.
118896 1999-07-20  Jim Meyering  <meyering@ascend.com>
118898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
118900 1999-07-15  Jim Meyering  <meyering@ascend.com>
118902         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
118904 1999-05-22  Jim Meyering  <meyering@ascend.com>
118906         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
118908 1999-05-20  Jim Meyering  <meyering@ascend.com>
118910         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
118911         Add a colon after each `then' in case $4 is empty.
118913 1999-05-16  Jim Meyering  <meyering@ascend.com>
118915         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
118917 1999-05-10  Jim Meyering  <meyering@ascend.com>
118919         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
118921         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
118922         AC_FUNC_MKTIME.
118924 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
118926         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
118928 1999-05-04  Paul Eggert  <eggert@twinsun.com>
118930         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
118931         not CPPFLAGS, so that linking works correctly in IRIX.
118933 1999-04-30  Paul Eggert  <eggert@twinsun.com>
118935         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
118937 1999-04-20  Paul Eggert  <eggert@twinsun.com>
118939         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
118940         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
118941         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
118942         jm_AC_TYPE_UNSIGNED_LONG_LONG.
118943         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
118945         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
118947 1999-04-20  Jim Meyering  <meyering@ascend.com>
118949         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
118950         AC_REPLACE xstroull if necessary.  From Paul Eggert.
118951         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
118953 1999-04-18  Jim Meyering  <meyering@ascend.com>
118955         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
118956         * m4/jm-macros.m4: Use it.
118958 1999-04-06  Jim Meyering  <meyering@ascend.com>
118960         * m4/strftime.m4: Remove test for %f.
118962 1999-03-29  Jim Meyering  <meyering@ascend.com>
118964         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
118965         superset of the AC_TYPE_* checks in the textutils, fileutils,
118966         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
118967         AC_TYPE_PID_T.
118969 1999-03-28  Jim Meyering  <meyering@ascend.com>
118971         * m4/jm-macros.m4: Define GNU_PACKAGE here.
118972         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
118973         replaced e.g., in the *.sh files of the sh-utils.
118975 1999-03-20  Jim Meyering  <meyering@ascend.com>
118977         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
118978         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
118979         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
118981 1999-03-19  Jim Meyering  <meyering@ascend.com>
118983         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
118985 1999-03-12  Jim Meyering  <meyering@ascend.com>
118987         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
118989 1999-03-07  Jim Meyering  <meyering@ascend.com>
118991         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
118992         declared.
118994 1999-02-17  Jim Meyering  <meyering@ascend.com>
118996         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
118997         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
118999 1999-02-07  Jim Meyering  <meyering@ascend.com>
119001         * m4/group-member.m4: New file -- extracted from sh-utils'
119002         configure.in.
119004         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
119005         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
119007 1999-02-06  Jim Meyering  <meyering@ascend.com>
119009         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
119010         * m4/fnmatch.m4: Likewise.
119011         * m4/getgroups.m4: Likewise.
119012         * m4/lstat.m4: Likewise.
119013         * m4/malloc.m4: Likewise.
119014         * m4/putenv.m4: Likewise.
119015         * m4/realloc.m4: Likewise.
119016         * m4/regex.m4: Likewise.
119017         * m4/stat.m4: Likewise.
119018         * m4/strftime.m4: Likewise.
119019         Suggestion from Alain Magloire.
119021         * m4/chown.m4: Use `.$ac_objext', not `.o'.
119022         * m4/fnmatch.m4: Likewise.
119023         * m4/getgroups.m4: Likewise.
119024         * m4/getline.m4: Likewise.
119025         * m4/lstat.m4: Likewise.
119026         * m4/malloc.m4: Likewise.
119027         * m4/memcmp.m4: Likewise.
119028         * m4/putenv.m4: Likewise.
119029         * m4/realloc.m4: Likewise.
119030         * m4/regex.m4: Likewise.
119031         * m4/stat.m4: Likewise.
119032         * m4/strftime.m4: Likewise.
119033         Suggestion from Alain Magloire.
119035         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
119036         an argument.
119038         * m4/regex.m4: Add a run-time Test for proper operation of
119039         re_compile_pattern.
119041 1999-01-31  Jim Meyering  <meyering@ascend.com>
119043         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
119045 1999-01-30  Jim Meyering  <meyering@ascend.com>
119047         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
119049         * m4/jm-mktime.m4: Make this a wrapper around the official
119050         AM_FUNC_MKTIME rather than my private copy, now that the official one
119051         is up to date.
119052         * m4/mktime.m4: Remove file.
119054         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
119055         * m4/uptime.m4: Likewise.
119056         * m4/uintmax_t.m4: Likewise.
119058 1999-01-28  Jim Meyering  <meyering@ascend.com>
119060         * m4/jm-macros.m4: Use jm_AFS.
119061         * m4/afs.m4: New file (from fileutils' configure.in).
119063         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
119064         * m4/chown.m4: Likewise.
119065         * m4/d-ino.m4: Likewise.
119066         * m4/d-type.m4: Likewise.
119067         * m4/fnmatch.m4: Likewise.
119068         * m4/getgroups.m4: Likewise.
119069         * m4/gettext.m4: Likewise.
119070         * m4/jm-mktime.m4: Likewise.
119071         * m4/jm-winsz2.m4: Likewise.
119072         * m4/lcmessage.m4: Likewise.
119073         * m4/ls-mntd-fs.m4: Likewise.
119074         * m4/malloc.m4: Likewise.
119075         * m4/memcmp.m4: Likewise.
119076         * m4/putenv.m4: Likewise.
119077         * m4/realloc.m4: Likewise.
119078         * m4/st_mtim.m4: Likewise.
119079         * m4/strftime.m4: Likewise.
119081 1999-01-16  Jim Meyering  <meyering@ascend.com>
119083         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
119084         (ARGMATCH_DIE_DECL): Define.
119086 1999-01-12  Jim Meyering  <meyering@ascend.com>
119088         * m4/Makefile.am.in: Rewrite to avoid using fmt.
119089         Reported by Lars Hecking.
119091 1999-01-10  Jim Meyering  <meyering@ascend.com>
119093         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
119094         gross kludge.
119095         * m4/inttypes_h.m4: Likewise.
119096         * m4/lstat.m4: Likewise.
119097         * m4/malloc.m4: Likewise.
119098         * m4/readdir.m4: Likewise.
119099         * m4/realloc.m4: Likewise.
119100         * m4/st_dm_mode.m4: Likewise.
119101         * m4/stat.m4: Likewise.
119102         * m4/utimbuf.m4: Likewise.
119103         * m4/utimes.m4: Likewise.
119105         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
119106         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
119107         comments in config.h.in are meaningful.
119109         * m4/jm-macros.m4: Require autoconf-2.13 here.
119111         * m4/regex.m4: By default, don't use the included regex.c on systems
119112         with glibc 2.  Suggestion from Uli Drepper.
119114 1999-01-02  Jim Meyering  <meyering@ascend.com>
119116         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
119118 1998-12-18  Jim Meyering  <meyering@ascend.com>
119120         * m4/Makefile.am.in (Makefile.am): Simplify rule.
119121         Based on a suggestion from Lars Hecking.
119123 1998-11-16  Paul Eggert  <eggert@twinsun.com>
119125         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
119127 1998-11-16  Jim Meyering  <meyering@ascend.com>
119129         * m4/lfs.m4: Double-quote the `uname...` expression.
119131 1998-11-14  Jim Meyering  <meyering@ascend.com>
119133         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
119134         * m4/stat.m4: Likewise.
119136 1998-11-03  Jim Meyering  <meyering@ascend.com>
119138         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
119139         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
119141 1998-10-18  Jim Meyering  <meyering@ascend.com>
119143         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
119145 1998-10-17  Jim Meyering  <meyering@ascend.com>
119147         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
119148         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
119149         calls for those previously hard-coded headers.  Instead, take a new
119150         parameter.
119151         (jm_CHECK_DECLARATIONS): Reflect interface change.
119152         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
119153         (jm_CHECK_DECL_LOCALTIME_R): New macro.
119155         * m4/mktime.m4: Test for spring-forward gap before long-running test.
119157 1998-10-14  Jim Meyering  <meyering@ascend.com>
119159         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
119160         instead of "TZ=America/Vancouver".  From Paul Eggert.
119162 1998-10-11  Jim Meyering  <meyering@ascend.com>
119164         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
119165         This adds a test for a recently added compatibility fix for mktime.c.
119166         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
119168 1998-09-27  Jim Meyering  <meyering@ascend.com>
119170         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
119172         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
119173         ../configure.in, including a change from Gordon Matzigkeit to allow
119174         cross-compiling for the Hurd.
119176         * m4/glibc.m4: New file/macro to test for the GNU C Library
119177         versions 1 and 2.  From Gordon Matzigkeit.
119178         Indent.
119180 1998-09-21  Jim Meyering  <meyering@ascend.com>
119182         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
119184 1998-08-18  Paul Eggert  <eggert@twinsun.com>
119186         Port nanosecond-resolution times to UnixWare 2.1.2 and
119187         pedantic Solaris 2.6.
119189         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
119190         AC_STRUCT_ST_MTIM.
119191         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
119192         Generate name of ns member, instead of just 1 or undef.
119193         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
119195 1998-08-15  Jim Meyering  <meyering@ascend.com>
119197         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
119198         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
119199         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
119200         instead of jm_TYPE_SSIZE_T.
119202 1998-08-12  Jim Meyering  <meyering@ascend.com>
119204         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
119206 1998-08-02  Jim Meyering  <meyering@ascend.com>
119208         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
119209         in acconfig.h manually.
119211 1998-07-31  Paul Eggert  <eggert@twinsun.com>
119213         * m4/st_mtim.m4: New file.
119215 1998-07-28  Jim Meyering  <meyering@ascend.com>
119217         * m4/utimes.m4: Undef stat.
119219 1998-07-25  Jim Meyering  <meyering@ascend.com>
119221         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
119222         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
119224 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
119226         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
119227         uid and gid actually remain unchanged.
119229 1998-07-07  Jim Meyering  <meyering@ascend.com>
119231         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
119233 1998-07-04  Jim Meyering  <meyering@ascend.com>
119235         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
119236         to prove that this macro can be used in packages without regex.c.
119238 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
119240         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
119241         is to be used.
119243 1998-07-03  Jim Meyering  <meyering@ascend.com>
119245         * m4/gettext.m4: Add -lintl if it's found to be necessary.
119247         * m4/gettext.m4: New file -- from gettext-0.10.35.
119248         * m4/lcmessage.m4: Likewise.
119249         * m4/progtest.m4: Likewise.
119251         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
119252         * m4/jm-macros.m4: Require the new macro.
119254 1998-06-29  Jim Meyering  <meyering@ascend.com>
119256         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
119257         for the definition of NGROUPS (used in a system header included
119258         by sys/mount.h).
119260 1998-06-28  Jim Meyering  <meyering@ascend.com>
119262         * m4/ls-mntd-fs.m4: New file.
119263         * m4/fstypename.m4: New file.
119265         * m4/jm-macros.m4: Require the new macro.
119266         * m4/jm-glibc-io.m4: New file.
119268 1998-05-19  Jim Meyering  <meyering@ascend.com>
119270         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
119271         * m4/lchown.m4: New file.
119273         * m4/Makefile.am.in: New file.
119274         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
119276 1998-05-14  Jim Meyering  <meyering@ascend.com>
119278         * m4/Makefile.am (EXTRA_DIST): Add them.
119279         * m4/jm-macros.m4: New file.
119280         * m4/utimbuf.m4: New file.
119282 1998-05-12  Jim Meyering  <meyering@ascend.com>
119284         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
119286 1998-05-11  Jim Meyering  <meyering@ascend.com>
119288         * m4/isc-posix.m4: New file.
119290 1998-05-10  Jim Meyering  <meyering@ascend.com>
119292         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
119294 1998-05-09  Jim Meyering  <meyering@ascend.com>
119296         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
119297         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
119298         with automake.
119300         * m4/ssize_t.m4: New file.
119301         * m4/mktime.m4: Remove file -- the new automake has this now.
119303 1998-04-26  Jim Meyering  <meyering@ascend.com>
119305         * m4/assert.m4: New file.
119306         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
119308 1998-04-05  Jim Meyering  <meyering@ascend.com>
119310         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
119311         (jm_PREREQ): Use it here.
119313 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
119315         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
119316         in acconfig.h.
119318 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
119320         * m4/prereq.m4: New file.
119321         * m4/error.m4: New file.
119322         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
119324 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
119326         * m4/getline.m4: Don't set am_cv_func_working_getline before the
119327         cache-check for the same variable -- that defeated the purpose of
119328         the test; the test program was never run.  This was a problem only
119329         on systems with losing getline functions -- HP-UX 10.20 is one.
119330         Reported by Bjorn Helgaas.
119332 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
119334         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
119336 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
119338         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
119340         * m4/const.m4: New file.  Use an initializer in this declaration
119341         typedef int charset[2]; const charset x;
119342         Reported by Bob Glickstein.
119344 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
119346         * m4/chown.m4: Fix reversed types on -1 args to chown.
119347         From Kaveh Ghazi.
119349 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
119351         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
119352         Add lseek and memchr.
119354         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
119355         T.E.Dickey <dickey@clark.net> said that some older preprocessors
119356         have a 20-character limit on names.
119358 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
119360         * m4/inttypes_h.m4: New file.
119361         * m4/uintmax_t.m4: New file.
119362         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
119365         -----
119367         Local Variables:
119368         coding: utf-8
119369         End:
119371         Copyright (C) 1997-2019 Free Software Foundation, Inc.
119373         Copying and distribution of this file, with or without
119374         modification, are permitted provided the copyright notice
119375         and this notice are preserved.